Bump to 2.4.7
[platform/upstream/libtool.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Libtool 2.4.7.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bug-libtool@gnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 lt_ltdl_dir='libltdl'
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571 lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/
572
573
574 test -n "$DJDIR" || exec 7<&0 </dev/null
575 exec 6>&1
576
577 # Name of the host.
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582 #
583 # Initializations.
584 #
585 ac_default_prefix=/usr/local
586 ac_clean_files=
587 ac_config_libobj_dir=.
588 LIBOBJS=
589 cross_compiling=no
590 subdirs=
591 MFLAGS=
592 MAKEFLAGS=
593
594 # Identity of this package.
595 PACKAGE_NAME='GNU Libtool'
596 PACKAGE_TARNAME='libtool'
597 PACKAGE_VERSION='2.4.7'
598 PACKAGE_STRING='GNU Libtool 2.4.7'
599 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
600 PACKAGE_URL='http://www.gnu.org/software/libtool/'
601
602 ac_unique_file="libtoolize.in"
603 ac_config_libobj_dir=libltdl
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 #  include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #  include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='GLtests_LIBOBJDEPS
641 GLtests_LTLIBOBJS
642 GLtests_LIBOBJS
643 GL_LIBOBJDEPS
644 GL_LTLIBOBJS
645 GL_LIBOBJS
646 CONFIG_INCLUDE
647 am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 HELP2MAN
651 GL_CFLAG_GNULIB_WARNINGS
652 abs_aux_dir
653 GLtests_WITNESS
654 GL_CXXFLAG_ALLOW_WARNINGS
655 GL_CFLAG_ALLOW_WARNINGS
656 GL_COND_LIBTOOL_FALSE
657 GL_COND_LIBTOOL_TRUE
658 with_aix_soname
659 to_tool_file_cmd
660 to_host_file_cmd
661 RC
662 GCJFLAGS
663 GCJ
664 GOC
665 ac_ct_FC
666 FCFLAGS
667 FC
668 ac_ct_F77
669 FFLAGS
670 F77
671 CXXCPP
672 am__fastdepCXX_FALSE
673 am__fastdepCXX_TRUE
674 CXXDEPMODE
675 ac_ct_CXX
676 CXXFLAGS
677 CXX
678 LTDLOPEN
679 LT_CONFIG_H
680 CONVENIENCE_LTDL_FALSE
681 CONVENIENCE_LTDL_TRUE
682 INSTALL_LTDL_FALSE
683 INSTALL_LTDL_TRUE
684 LT_ARGZ_H
685 LIBOBJS
686 sys_symbol_underscore
687 LIBADD_DL
688 LT_DLPREOPEN
689 LIBADD_DLD_LINK
690 LIBADD_SHL_LOAD
691 LIBADD_DLOPEN
692 LT_DLLOADERS
693 LT_SYS_LIBRARY_PATH
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 ac_ct_AR
701 FILECMD
702 LN_S
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 OBJDUMP
711 DLLTOOL
712 AS
713 RANLIB
714 ARFLAGS
715 AR
716 EGREP
717 GREP
718 CPP
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 pkgaux_scripts
736 pkgdatadir
737 aclocaldir
738 CONFIG_STATUS_DEPENDENCIES
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 AM_BACKSLASH
748 AM_DEFAULT_VERBOSITY
749 AM_DEFAULT_V
750 AM_V
751 am__untar
752 am__tar
753 AMTAR
754 am__leading_dot
755 SET_MAKE
756 AWK
757 mkdir_p
758 MKDIR_P
759 INSTALL_STRIP_PROGRAM
760 STRIP
761 install_sh
762 MAKEINFO
763 AUTOHEADER
764 AUTOMAKE
765 AUTOCONF
766 ACLOCAL
767 VERSION
768 PACKAGE
769 CYGPATH_W
770 am__isrc
771 INSTALL_DATA
772 INSTALL_SCRIPT
773 INSTALL_PROGRAM
774 M4_DEBUGFILE
775 M4_GNU
776 M4
777 AUTOTEST
778 AUTOM4TE
779 package_revision
780 macro_dir
781 aux_dir
782 ltdl_dir
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 runstatedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL
822 am__quote'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 enable_silent_rules
827 enable_ltdl_install
828 enable_dependency_tracking
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_aix_soname
834 with_gnu_ld
835 with_sysroot
836 enable_libtool_lock
837 enable_cross_guesses
838 '
839       ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 M4
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CPP
849 LT_SYS_LIBRARY_PATH
850 CXX
851 CXXFLAGS
852 CCC
853 CXXCPP
854 F77
855 FFLAGS
856 FC
857 FCFLAGS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 runstatedir='${localstatedir}/run'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913   # If the previous option needs an argument, assign it.
914   if test -n "$ac_prev"; then
915     eval $ac_prev=\$ac_option
916     ac_prev=
917     continue
918   fi
919
920   case $ac_option in
921   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922   *=)   ac_optarg= ;;
923   *)    ac_optarg=yes ;;
924   esac
925
926   # Accept the important Cygnus configure options, so we can diagnose typos.
927
928   case $ac_dashdash$ac_option in
929   --)
930     ac_dashdash=yes ;;
931
932   -bindir | --bindir | --bindi | --bind | --bin | --bi)
933     ac_prev=bindir ;;
934   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935     bindir=$ac_optarg ;;
936
937   -build | --build | --buil | --bui | --bu)
938     ac_prev=build_alias ;;
939   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940     build_alias=$ac_optarg ;;
941
942   -cache-file | --cache-file | --cache-fil | --cache-fi \
943   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944     ac_prev=cache_file ;;
945   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947     cache_file=$ac_optarg ;;
948
949   --config-cache | -C)
950     cache_file=config.cache ;;
951
952   -datadir | --datadir | --datadi | --datad)
953     ac_prev=datadir ;;
954   -datadir=* | --datadir=* | --datadi=* | --datad=*)
955     datadir=$ac_optarg ;;
956
957   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958   | --dataroo | --dataro | --datar)
959     ac_prev=datarootdir ;;
960   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962     datarootdir=$ac_optarg ;;
963
964   -disable-* | --disable-*)
965     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966     # Reject names that are not valid shell variable names.
967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968       as_fn_error $? "invalid feature name: $ac_useropt"
969     ac_useropt_orig=$ac_useropt
970     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971     case $ac_user_opts in
972       *"
973 "enable_$ac_useropt"
974 "*) ;;
975       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976          ac_unrecognized_sep=', ';;
977     esac
978     eval enable_$ac_useropt=no ;;
979
980   -docdir | --docdir | --docdi | --doc | --do)
981     ac_prev=docdir ;;
982   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983     docdir=$ac_optarg ;;
984
985   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986     ac_prev=dvidir ;;
987   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988     dvidir=$ac_optarg ;;
989
990   -enable-* | --enable-*)
991     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992     # Reject names that are not valid shell variable names.
993     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994       as_fn_error $? "invalid feature name: $ac_useropt"
995     ac_useropt_orig=$ac_useropt
996     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997     case $ac_user_opts in
998       *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002          ac_unrecognized_sep=', ';;
1003     esac
1004     eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008   | --exec | --exe | --ex)
1009     ac_prev=exec_prefix ;;
1010   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012   | --exec=* | --exe=* | --ex=*)
1013     exec_prefix=$ac_optarg ;;
1014
1015   -gas | --gas | --ga | --g)
1016     # Obsolete; use --with-gas.
1017     with_gas=yes ;;
1018
1019   -help | --help | --hel | --he | -h)
1020     ac_init_help=long ;;
1021   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022     ac_init_help=recursive ;;
1023   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024     ac_init_help=short ;;
1025
1026   -host | --host | --hos | --ho)
1027     ac_prev=host_alias ;;
1028   -host=* | --host=* | --hos=* | --ho=*)
1029     host_alias=$ac_optarg ;;
1030
1031   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032     ac_prev=htmldir ;;
1033   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034   | --ht=*)
1035     htmldir=$ac_optarg ;;
1036
1037   -includedir | --includedir | --includedi | --included | --include \
1038   | --includ | --inclu | --incl | --inc)
1039     ac_prev=includedir ;;
1040   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041   | --includ=* | --inclu=* | --incl=* | --inc=*)
1042     includedir=$ac_optarg ;;
1043
1044   -infodir | --infodir | --infodi | --infod | --info | --inf)
1045     ac_prev=infodir ;;
1046   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047     infodir=$ac_optarg ;;
1048
1049   -libdir | --libdir | --libdi | --libd)
1050     ac_prev=libdir ;;
1051   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052     libdir=$ac_optarg ;;
1053
1054   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055   | --libexe | --libex | --libe)
1056     ac_prev=libexecdir ;;
1057   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058   | --libexe=* | --libex=* | --libe=*)
1059     libexecdir=$ac_optarg ;;
1060
1061   -localedir | --localedir | --localedi | --localed | --locale)
1062     ac_prev=localedir ;;
1063   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064     localedir=$ac_optarg ;;
1065
1066   -localstatedir | --localstatedir | --localstatedi | --localstated \
1067   | --localstate | --localstat | --localsta | --localst | --locals)
1068     ac_prev=localstatedir ;;
1069   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071     localstatedir=$ac_optarg ;;
1072
1073   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074     ac_prev=mandir ;;
1075   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076     mandir=$ac_optarg ;;
1077
1078   -nfp | --nfp | --nf)
1079     # Obsolete; use --without-fp.
1080     with_fp=no ;;
1081
1082   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083   | --no-cr | --no-c | -n)
1084     no_create=yes ;;
1085
1086   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088     no_recursion=yes ;;
1089
1090   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092   | --oldin | --oldi | --old | --ol | --o)
1093     ac_prev=oldincludedir ;;
1094   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097     oldincludedir=$ac_optarg ;;
1098
1099   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100     ac_prev=prefix ;;
1101   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102     prefix=$ac_optarg ;;
1103
1104   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105   | --program-pre | --program-pr | --program-p)
1106     ac_prev=program_prefix ;;
1107   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109     program_prefix=$ac_optarg ;;
1110
1111   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112   | --program-suf | --program-su | --program-s)
1113     ac_prev=program_suffix ;;
1114   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116     program_suffix=$ac_optarg ;;
1117
1118   -program-transform-name | --program-transform-name \
1119   | --program-transform-nam | --program-transform-na \
1120   | --program-transform-n | --program-transform- \
1121   | --program-transform | --program-transfor \
1122   | --program-transfo | --program-transf \
1123   | --program-trans | --program-tran \
1124   | --progr-tra | --program-tr | --program-t)
1125     ac_prev=program_transform_name ;;
1126   -program-transform-name=* | --program-transform-name=* \
1127   | --program-transform-nam=* | --program-transform-na=* \
1128   | --program-transform-n=* | --program-transform-=* \
1129   | --program-transform=* | --program-transfor=* \
1130   | --program-transfo=* | --program-transf=* \
1131   | --program-trans=* | --program-tran=* \
1132   | --progr-tra=* | --program-tr=* | --program-t=*)
1133     program_transform_name=$ac_optarg ;;
1134
1135   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136     ac_prev=pdfdir ;;
1137   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138     pdfdir=$ac_optarg ;;
1139
1140   -psdir | --psdir | --psdi | --psd | --ps)
1141     ac_prev=psdir ;;
1142   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143     psdir=$ac_optarg ;;
1144
1145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146   | -silent | --silent | --silen | --sile | --sil)
1147     silent=yes ;;
1148
1149   -runstatedir | --runstatedir | --runstatedi | --runstated \
1150   | --runstate | --runstat | --runsta | --runst | --runs \
1151   | --run | --ru | --r)
1152     ac_prev=runstatedir ;;
1153   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1154   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1155   | --run=* | --ru=* | --r=*)
1156     runstatedir=$ac_optarg ;;
1157
1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159     ac_prev=sbindir ;;
1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161   | --sbi=* | --sb=*)
1162     sbindir=$ac_optarg ;;
1163
1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166   | --sharedst | --shareds | --shared | --share | --shar \
1167   | --sha | --sh)
1168     ac_prev=sharedstatedir ;;
1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172   | --sha=* | --sh=*)
1173     sharedstatedir=$ac_optarg ;;
1174
1175   -site | --site | --sit)
1176     ac_prev=site ;;
1177   -site=* | --site=* | --sit=*)
1178     site=$ac_optarg ;;
1179
1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181     ac_prev=srcdir ;;
1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183     srcdir=$ac_optarg ;;
1184
1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186   | --syscon | --sysco | --sysc | --sys | --sy)
1187     ac_prev=sysconfdir ;;
1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190     sysconfdir=$ac_optarg ;;
1191
1192   -target | --target | --targe | --targ | --tar | --ta | --t)
1193     ac_prev=target_alias ;;
1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195     target_alias=$ac_optarg ;;
1196
1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198     verbose=yes ;;
1199
1200   -version | --version | --versio | --versi | --vers | -V)
1201     ac_init_version=: ;;
1202
1203   -with-* | --with-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error $? "invalid package name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error $? "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=no ;;
1234
1235   --x)
1236     # Obsolete; use --with-x.
1237     with_x=yes ;;
1238
1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240   | --x-incl | --x-inc | --x-in | --x-i)
1241     ac_prev=x_includes ;;
1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244     x_includes=$ac_optarg ;;
1245
1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248     ac_prev=x_libraries ;;
1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251     x_libraries=$ac_optarg ;;
1252
1253   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     case $ac_envvar in #(
1261       '' | [0-9]* | *[!_$as_cr_alnum]* )
1262       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263     esac
1264     eval $ac_envvar=\$ac_optarg
1265     export $ac_envvar ;;
1266
1267   *)
1268     # FIXME: should be removed in autoconf 3.0.
1269     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273     ;;
1274
1275   esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280   as_fn_error $? "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir runstatedir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323   elif test "x$build_alias" != "x$host_alias"; then
1324     cross_compiling=yes
1325   fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337   as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339   as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$as_myself" : 'X\(//\)[^/]' \| \
1349          X"$as_myself" : 'X\(//\)$' \| \
1350          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 fi
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383         pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386   srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_env_${ac_var}_value=\$${ac_var}
1397   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405   # Omit some internal or obsolete options to make the list less imposing.
1406   # This message is too long to be a string in the A/UX 3.1 sh.
1407   cat <<_ACEOF
1408 \`configure' configures GNU Libtool 2.4.7 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418   -h, --help              display this help and exit
1419       --help=short        display options specific to this package
1420       --help=recursive    display the short help of all the included packages
1421   -V, --version           display version information and exit
1422   -q, --quiet, --silent   do not print \`checking ...' messages
1423       --cache-file=FILE   cache test results in FILE [disabled]
1424   -C, --config-cache      alias for \`--cache-file=config.cache'
1425   -n, --no-create         do not create output files
1426       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429   --prefix=PREFIX         install architecture-independent files in PREFIX
1430                           [$ac_default_prefix]
1431   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                           [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442   --bindir=DIR            user executables [EPREFIX/bin]
1443   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444   --libexecdir=DIR        program executables [EPREFIX/libexec]
1445   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1449   --libdir=DIR            object code libraries [EPREFIX/lib]
1450   --includedir=DIR        C header files [PREFIX/include]
1451   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454   --infodir=DIR           info documentation [DATAROOTDIR/info]
1455   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456   --mandir=DIR            man documentation [DATAROOTDIR/man]
1457   --docdir=DIR            documentation root [DATAROOTDIR/doc/libtool]
1458   --htmldir=DIR           html documentation [DOCDIR]
1459   --dvidir=DIR            dvi documentation [DOCDIR]
1460   --pdfdir=DIR            pdf documentation [DOCDIR]
1461   --psdir=DIR             ps documentation [DOCDIR]
1462 _ACEOF
1463
1464   cat <<\_ACEOF
1465
1466 Program names:
1467   --program-prefix=PREFIX            prepend PREFIX to installed program names
1468   --program-suffix=SUFFIX            append SUFFIX to installed program names
1469   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of GNU Libtool 2.4.7:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --enable-silent-rules   less verbose build output (undo: "make V=1")
1488   --disable-silent-rules  verbose build output (undo: "make V=0")
1489   --disable-ltdl-install  do not install libltdl
1490   --enable-dependency-tracking
1491                           do not reject slow dependency extractors
1492   --disable-dependency-tracking
1493                           speeds up one-time build
1494   --enable-shared[=PKGS]  build shared libraries [default=yes]
1495   --enable-static[=PKGS]  build static libraries [default=yes]
1496   --enable-fast-install[=PKGS]
1497                           optimize for fast installation [default=yes]
1498   --disable-libtool-lock  avoid locking (might break parallel builds)
1499   --enable-ltdl-install   install libltdl
1500   --enable-cross-guesses={conservative|risky}
1501                           specify policy for cross-compilation guesses
1502
1503 Optional Packages:
1504   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1507                           both]
1508   --with-aix-soname=aix|svr4|both
1509                           shared library versioning (aka "SONAME") variant to
1510                           provide on AIX, [default=aix].
1511   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1513                           compiler's sysroot if not specified).
1514
1515 Some influential environment variables:
1516   M4          Location of GNU M4 1.4.6 or later. Defaults to the first program
1517               of 'm4', 'gm4', or 'gnum4' on PATH that meets Autoconf needs.
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   LIBS        libraries to pass to the linker, e.g. -l<library>
1523   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524               you have headers in a nonstandard directory <include dir>
1525   CPP         C preprocessor
1526   LT_SYS_LIBRARY_PATH
1527               User-defined run-time library search path.
1528   CXX         C++ compiler command
1529   CXXFLAGS    C++ compiler flags
1530   CXXCPP      C++ preprocessor
1531   F77         Fortran 77 compiler command
1532   FFLAGS      Fortran 77 compiler flags
1533   FC          Fortran compiler command
1534   FCFLAGS     Fortran compiler flags
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <bug-libtool@gnu.org>.
1540 GNU Libtool home page: <http://www.gnu.org/software/libtool/>.
1541 General help using GNU software: <http://www.gnu.org/gethelp/>.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547   # If there are subdirs, report their specific --help.
1548   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549     test -d "$ac_dir" ||
1550       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551       continue
1552     ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558   # A ".." for each directory in $ac_dir_suffix.
1559   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560   case $ac_top_builddir_sub in
1561   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563   esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571   .)  # We are building in place.
1572     ac_srcdir=.
1573     ac_top_srcdir=$ac_top_builddir_sub
1574     ac_abs_top_srcdir=$ac_pwd ;;
1575   [\\/]* | ?:[\\/]* )  # Absolute name.
1576     ac_srcdir=$srcdir$ac_dir_suffix;
1577     ac_top_srcdir=$srcdir
1578     ac_abs_top_srcdir=$srcdir ;;
1579   *) # Relative name.
1580     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581     ac_top_srcdir=$ac_top_build_prefix$srcdir
1582     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586     cd "$ac_dir" || { ac_status=$?; continue; }
1587     # Check for guested configure.
1588     if test -f "$ac_srcdir/configure.gnu"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591     elif test -f "$ac_srcdir/configure"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure" --help=recursive
1594     else
1595       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596     fi || ac_status=$?
1597     cd "$ac_pwd" || { ac_status=$?; break; }
1598   done
1599 fi
1600
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603   cat <<\_ACEOF
1604 GNU Libtool configure 2.4.7
1605 generated by GNU Autoconf 2.69
1606
1607 Copyright (C) 2012 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611   exit
1612 fi
1613
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1617
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   rm -f conftest.$ac_objext
1625   if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628   *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632   (eval "$ac_compile") 2>conftest.err
1633   ac_status=$?
1634   if test -s conftest.err; then
1635     grep -v '^ *+' conftest.err >conftest.er1
1636     cat conftest.er1 >&5
1637     mv -f conftest.er1 conftest.err
1638   fi
1639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640   test $ac_status = 0; } && {
1641          test -z "$ac_c_werror_flag" ||
1642          test ! -s conftest.err
1643        } && test -s conftest.$ac_objext; then :
1644   ac_retval=0
1645 else
1646   $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649         ac_retval=1
1650 fi
1651   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652   as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_compile
1655
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } > conftest.i && {
1678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679          test ! -s conftest.err
1680        }; then :
1681   ac_retval=0
1682 else
1683   $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686     ac_retval=1
1687 fi
1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689   as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_cpp
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699   rm -f conftest.$ac_objext conftest$ac_exeext
1700   if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703   *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707   (eval "$ac_link") 2>conftest.err
1708   ac_status=$?
1709   if test -s conftest.err; then
1710     grep -v '^ *+' conftest.err >conftest.er1
1711     cat conftest.er1 >&5
1712     mv -f conftest.er1 conftest.err
1713   fi
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } && {
1716          test -z "$ac_c_werror_flag" ||
1717          test ! -s conftest.err
1718        } && test -s conftest$ac_exeext && {
1719          test "$cross_compiling" = yes ||
1720          test -x conftest$ac_exeext
1721        }; then :
1722   ac_retval=0
1723 else
1724   $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727         ac_retval=1
1728 fi
1729   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731   # interfere with the next link command; also delete a directory that is
1732   # left behind by Apple's compiler.  We do this before executing the actions.
1733   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735   as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_link
1738
1739 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists and can be compiled using the include files in
1742 # INCLUDES, setting the cache variable VAR accordingly.
1743 ac_fn_c_check_header_compile ()
1744 {
1745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749   $as_echo_n "(cached) " >&6
1750 else
1751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h.  */
1753 $4
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757   eval "$3=yes"
1758 else
1759   eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 fi
1763 eval ac_res=\$$3
1764                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767
1768 } # ac_fn_c_check_header_compile
1769
1770 # ac_fn_c_try_run LINENO
1771 # ----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773 # that executables *can* be run.
1774 ac_fn_c_try_run ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   if { { ac_try="$ac_link"
1778 case "(($ac_try" in
1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780   *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784   (eval "$ac_link") 2>&5
1785   ac_status=$?
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788   { { case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_try") 2>&5
1795   ac_status=$?
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; }; }; then :
1798   ac_retval=0
1799 else
1800   $as_echo "$as_me: program exited with status $ac_status" >&5
1801        $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804        ac_retval=$ac_status
1805 fi
1806   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808   as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_run
1811
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821   $as_echo_n "(cached) " >&6
1822 else
1823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830     which can conflict with char $2 (); below.
1831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832     <limits.h> exists even on freestanding compilers.  */
1833
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1839
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843    Use char because int might match the return type of a GCC
1844    builtin and then its argument prototype would still apply.  */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850     to always fail with ENOSYS.  Some functions are actually named
1851     something starting with __ and the normal name is an alias.  */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main ()
1858 {
1859 return $2 ();
1860   ;
1861   return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865   eval "$3=yes"
1866 else
1867   eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext \
1870     conftest$ac_exeext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_func
1878
1879 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1880 # ---------------------------------------------
1881 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1882 # accordingly.
1883 ac_fn_c_check_decl ()
1884 {
1885   ac_save_ac_compile="$ac_compile"
1886   if test -n "$ac_compile_for_check_decl"; then
1887     ac_compile="$ac_compile_for_check_decl"
1888   fi
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   as_decl_name=`echo $2|sed 's/ *(.*//'`
1891   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1893 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1894 if eval \${$3+:} false; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 $4
1900 int
1901 main ()
1902 {
1903 #ifndef $as_decl_name
1904 #ifdef __cplusplus
1905   (void) $as_decl_use;
1906 #else
1907   (void) $as_decl_name;
1908 #endif
1909 #endif
1910
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   eval "$3=yes"
1917 else
1918   eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926   ac_compile="$ac_save_ac_compile"
1927
1928 } # ac_fn_c_check_decl
1929
1930 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931 # -------------------------------------------
1932 # Tests whether TYPE exists after having included INCLUDES, setting cache
1933 # variable VAR accordingly.
1934 ac_fn_c_check_type ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940   $as_echo_n "(cached) " >&6
1941 else
1942   eval "$3=no"
1943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 $4
1946 int
1947 main ()
1948 {
1949 if (sizeof ($2))
1950          return 0;
1951   ;
1952   return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $4
1959 int
1960 main ()
1961 {
1962 if (sizeof (($2)))
1963             return 0;
1964   ;
1965   return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969
1970 else
1971   eval "$3=yes"
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_type
1983
1984 # ac_fn_cxx_try_compile LINENO
1985 # ----------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_compile ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   rm -f conftest.$ac_objext
1991   if { { ac_try="$ac_compile"
1992 case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_compile") 2>conftest.err
1999   ac_status=$?
2000   if test -s conftest.err; then
2001     grep -v '^ *+' conftest.err >conftest.er1
2002     cat conftest.er1 >&5
2003     mv -f conftest.er1 conftest.err
2004   fi
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; } && {
2007          test -z "$ac_cxx_werror_flag" ||
2008          test ! -s conftest.err
2009        } && test -s conftest.$ac_objext; then :
2010   ac_retval=0
2011 else
2012   $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015         ac_retval=1
2016 fi
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018   as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_compile
2021
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   if { { ac_try="$ac_cpp conftest.$ac_ext"
2029 case "(($ac_try" in
2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031   *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2036   ac_status=$?
2037   if test -s conftest.err; then
2038     grep -v '^ *+' conftest.err >conftest.er1
2039     cat conftest.er1 >&5
2040     mv -f conftest.er1 conftest.err
2041   fi
2042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043   test $ac_status = 0; } > conftest.i && {
2044          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045          test ! -s conftest.err
2046        }; then :
2047   ac_retval=0
2048 else
2049   $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052     ac_retval=1
2053 fi
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055   as_fn_set_status $ac_retval
2056
2057 } # ac_fn_cxx_try_cpp
2058
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   rm -f conftest.$ac_objext conftest$ac_exeext
2066   if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_link") 2>conftest.err
2074   ac_status=$?
2075   if test -s conftest.err; then
2076     grep -v '^ *+' conftest.err >conftest.er1
2077     cat conftest.er1 >&5
2078     mv -f conftest.er1 conftest.err
2079   fi
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } && {
2082          test -z "$ac_cxx_werror_flag" ||
2083          test ! -s conftest.err
2084        } && test -s conftest$ac_exeext && {
2085          test "$cross_compiling" = yes ||
2086          test -x conftest$ac_exeext
2087        }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093         ac_retval=1
2094 fi
2095   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097   # interfere with the next link command; also delete a directory that is
2098   # left behind by Apple's compiler.  We do this before executing the actions.
2099   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101   as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_link
2104
2105 # ac_fn_f77_try_compile LINENO
2106 # ----------------------------
2107 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_f77_try_compile ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   rm -f conftest.$ac_objext
2112   if { { ac_try="$ac_compile"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119   (eval "$ac_compile") 2>conftest.err
2120   ac_status=$?
2121   if test -s conftest.err; then
2122     grep -v '^ *+' conftest.err >conftest.er1
2123     cat conftest.er1 >&5
2124     mv -f conftest.er1 conftest.err
2125   fi
2126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127   test $ac_status = 0; } && {
2128          test -z "$ac_f77_werror_flag" ||
2129          test ! -s conftest.err
2130        } && test -s conftest.$ac_objext; then :
2131   ac_retval=0
2132 else
2133   $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136         ac_retval=1
2137 fi
2138   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139   as_fn_set_status $ac_retval
2140
2141 } # ac_fn_f77_try_compile
2142
2143 # ac_fn_f77_try_link LINENO
2144 # -------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_f77_try_link ()
2147 {
2148   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149   rm -f conftest.$ac_objext conftest$ac_exeext
2150   if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_link") 2>conftest.err
2158   ac_status=$?
2159   if test -s conftest.err; then
2160     grep -v '^ *+' conftest.err >conftest.er1
2161     cat conftest.er1 >&5
2162     mv -f conftest.er1 conftest.err
2163   fi
2164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165   test $ac_status = 0; } && {
2166          test -z "$ac_f77_werror_flag" ||
2167          test ! -s conftest.err
2168        } && test -s conftest$ac_exeext && {
2169          test "$cross_compiling" = yes ||
2170          test -x conftest$ac_exeext
2171        }; then :
2172   ac_retval=0
2173 else
2174   $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177         ac_retval=1
2178 fi
2179   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2180   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2181   # interfere with the next link command; also delete a directory that is
2182   # left behind by Apple's compiler.  We do this before executing the actions.
2183   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185   as_fn_set_status $ac_retval
2186
2187 } # ac_fn_f77_try_link
2188
2189 # ac_fn_fc_try_compile LINENO
2190 # ---------------------------
2191 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2192 ac_fn_fc_try_compile ()
2193 {
2194   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195   rm -f conftest.$ac_objext
2196   if { { ac_try="$ac_compile"
2197 case "(($ac_try" in
2198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199   *) ac_try_echo=$ac_try;;
2200 esac
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203   (eval "$ac_compile") 2>conftest.err
2204   ac_status=$?
2205   if test -s conftest.err; then
2206     grep -v '^ *+' conftest.err >conftest.er1
2207     cat conftest.er1 >&5
2208     mv -f conftest.er1 conftest.err
2209   fi
2210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211   test $ac_status = 0; } && {
2212          test -z "$ac_fc_werror_flag" ||
2213          test ! -s conftest.err
2214        } && test -s conftest.$ac_objext; then :
2215   ac_retval=0
2216 else
2217   $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220         ac_retval=1
2221 fi
2222   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223   as_fn_set_status $ac_retval
2224
2225 } # ac_fn_fc_try_compile
2226
2227 # ac_fn_fc_try_link LINENO
2228 # ------------------------
2229 # Try to link conftest.$ac_ext, and return whether this succeeded.
2230 ac_fn_fc_try_link ()
2231 {
2232   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233   rm -f conftest.$ac_objext conftest$ac_exeext
2234   if { { ac_try="$ac_link"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241   (eval "$ac_link") 2>conftest.err
2242   ac_status=$?
2243   if test -s conftest.err; then
2244     grep -v '^ *+' conftest.err >conftest.er1
2245     cat conftest.er1 >&5
2246     mv -f conftest.er1 conftest.err
2247   fi
2248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249   test $ac_status = 0; } && {
2250          test -z "$ac_fc_werror_flag" ||
2251          test ! -s conftest.err
2252        } && test -s conftest$ac_exeext && {
2253          test "$cross_compiling" = yes ||
2254          test -x conftest$ac_exeext
2255        }; then :
2256   ac_retval=0
2257 else
2258   $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261         ac_retval=1
2262 fi
2263   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2264   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2265   # interfere with the next link command; also delete a directory that is
2266   # left behind by Apple's compiler.  We do this before executing the actions.
2267   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2268   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269   as_fn_set_status $ac_retval
2270
2271 } # ac_fn_fc_try_link
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2275
2276 It was created by GNU Libtool $as_me 2.4.7, which was
2277 generated by GNU Autoconf 2.69.  Invocation command line was
2278
2279   $ $0 $@
2280
2281 _ACEOF
2282 exec 5>>config.log
2283 {
2284 cat <<_ASUNAME
2285 ## --------- ##
2286 ## Platform. ##
2287 ## --------- ##
2288
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2294
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2297
2298 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2299 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2302 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2303 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2304 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2305
2306 _ASUNAME
2307
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313     $as_echo "PATH: $as_dir"
2314   done
2315 IFS=$as_save_IFS
2316
2317 } >&5
2318
2319 cat >&5 <<_ACEOF
2320
2321
2322 ## ----------- ##
2323 ## Core tests. ##
2324 ## ----------- ##
2325
2326 _ACEOF
2327
2328
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_configure_args=
2335 ac_configure_args0=
2336 ac_configure_args1=
2337 ac_must_keep_next=false
2338 for ac_pass in 1 2
2339 do
2340   for ac_arg
2341   do
2342     case $ac_arg in
2343     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345     | -silent | --silent | --silen | --sile | --sil)
2346       continue ;;
2347     *\'*)
2348       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349     esac
2350     case $ac_pass in
2351     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2352     2)
2353       as_fn_append ac_configure_args1 " '$ac_arg'"
2354       if test $ac_must_keep_next = true; then
2355         ac_must_keep_next=false # Got value, back to normal.
2356       else
2357         case $ac_arg in
2358           *=* | --config-cache | -C | -disable-* | --disable-* \
2359           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361           | -with-* | --with-* | -without-* | --without-* | --x)
2362             case "$ac_configure_args0 " in
2363               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364             esac
2365             ;;
2366           -* ) ac_must_keep_next=true ;;
2367         esac
2368       fi
2369       as_fn_append ac_configure_args " '$ac_arg'"
2370       ;;
2371     esac
2372   done
2373 done
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2376
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log.  We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383   # Save into config.log some information that might help in debugging.
2384   {
2385     echo
2386
2387     $as_echo "## ---------------- ##
2388 ## Cache variables. ##
2389 ## ---------------- ##"
2390     echo
2391     # The following way of writing the cache mishandles newlines in values,
2392 (
2393   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394     eval ac_val=\$$ac_var
2395     case $ac_val in #(
2396     *${as_nl}*)
2397       case $ac_var in #(
2398       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400       esac
2401       case $ac_var in #(
2402       _ | IFS | as_nl) ;; #(
2403       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404       *) { eval $ac_var=; unset $ac_var;} ;;
2405       esac ;;
2406     esac
2407   done
2408   (set) 2>&1 |
2409     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410     *${as_nl}ac_space=\ *)
2411       sed -n \
2412         "s/'\''/'\''\\\\'\'''\''/g;
2413           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414       ;; #(
2415     *)
2416       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417       ;;
2418     esac |
2419     sort
2420 )
2421     echo
2422
2423     $as_echo "## ----------------- ##
2424 ## Output variables. ##
2425 ## ----------------- ##"
2426     echo
2427     for ac_var in $ac_subst_vars
2428     do
2429       eval ac_val=\$$ac_var
2430       case $ac_val in
2431       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432       esac
2433       $as_echo "$ac_var='\''$ac_val'\''"
2434     done | sort
2435     echo
2436
2437     if test -n "$ac_subst_files"; then
2438       $as_echo "## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##"
2441       echo
2442       for ac_var in $ac_subst_files
2443       do
2444         eval ac_val=\$$ac_var
2445         case $ac_val in
2446         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447         esac
2448         $as_echo "$ac_var='\''$ac_val'\''"
2449       done | sort
2450       echo
2451     fi
2452
2453     if test -s confdefs.h; then
2454       $as_echo "## ----------- ##
2455 ## confdefs.h. ##
2456 ## ----------- ##"
2457       echo
2458       cat confdefs.h
2459       echo
2460     fi
2461     test "$ac_signal" != 0 &&
2462       $as_echo "$as_me: caught signal $ac_signal"
2463     $as_echo "$as_me: exit $exit_status"
2464   } >&5
2465   rm -f core *.core core.conftest.* &&
2466     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467     exit $exit_status
2468 ' 0
2469 for ac_signal in 1 2 13 15; do
2470   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 done
2472 ac_signal=0
2473
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest* confdefs.h
2476
2477 $as_echo "/* confdefs.h */" > confdefs.h
2478
2479 # Predefined preprocessor variables.
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2483 _ACEOF
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2503 _ACEOF
2504
2505
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2508 ac_site_file1=NONE
2509 ac_site_file2=NONE
2510 if test -n "$CONFIG_SITE"; then
2511   # We do not want a PATH search for config.site.
2512   case $CONFIG_SITE in #((
2513     -*)  ac_site_file1=./$CONFIG_SITE;;
2514     */*) ac_site_file1=$CONFIG_SITE;;
2515     *)   ac_site_file1=./$CONFIG_SITE;;
2516   esac
2517 elif test "x$prefix" != xNONE; then
2518   ac_site_file1=$prefix/share/config.site
2519   ac_site_file2=$prefix/etc/config.site
2520 else
2521   ac_site_file1=$ac_default_prefix/share/config.site
2522   ac_site_file2=$ac_default_prefix/etc/config.site
2523 fi
2524 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2525 do
2526   test "x$ac_site_file" = xNONE && continue
2527   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2528     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530     sed 's/^/| /' "$ac_site_file" >&5
2531     . "$ac_site_file" \
2532       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $? "failed to load site script $ac_site_file
2535 See \`config.log' for more details" "$LINENO" 5; }
2536   fi
2537 done
2538
2539 if test -r "$cache_file"; then
2540   # Some versions of bash will fail to source /dev/null (special files
2541   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2542   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2543     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545     case $cache_file in
2546       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547       *)                      . "./$cache_file";;
2548     esac
2549   fi
2550 else
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553   >$cache_file
2554 fi
2555
2556 # Check that the precious variables saved in the cache have kept the same
2557 # value.
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561   eval ac_new_set=\$ac_env_${ac_var}_set
2562   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563   eval ac_new_val=\$ac_env_${ac_var}_value
2564   case $ac_old_set,$ac_new_set in
2565     set,)
2566       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568       ac_cache_corrupted=: ;;
2569     ,set)
2570       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572       ac_cache_corrupted=: ;;
2573     ,);;
2574     *)
2575       if test "x$ac_old_val" != "x$ac_new_val"; then
2576         # differences in whitespace do not lead to failure.
2577         ac_old_val_w=`echo x $ac_old_val`
2578         ac_new_val_w=`echo x $ac_new_val`
2579         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582           ac_cache_corrupted=:
2583         else
2584           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586           eval $ac_var=\$ac_old_val
2587         fi
2588         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2589 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2590         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2592       fi;;
2593   esac
2594   # Pass precious variables to config.status.
2595   if test "$ac_new_set" = set; then
2596     case $ac_new_val in
2597     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598     *) ac_arg=$ac_var=$ac_new_val ;;
2599     esac
2600     case " $ac_configure_args " in
2601       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2602       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603     esac
2604   fi
2605 done
2606 if $ac_cache_corrupted; then
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2612 fi
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623
2624
2625
2626 # Remove this when a released Autoconf is capable of bootstrapping
2627 # Libtool without it (probably after autoconf-2.70).
2628
2629
2630 # Since we already declare these directories in this file, save those
2631 # choices, and push the results into Makefile.am to avoid declaring
2632 # them in two places making renames error prone, and where copies
2633 # might get out of sync.
2634
2635
2636
2637
2638 ac_config_headers="$ac_config_headers config.h:config-h.in"
2639
2640
2641
2642
2643
2644
2645
2646
2647 ltdl_dir=libltdl
2648
2649 ac_aux_dir=
2650 for ac_dir in build-aux "$srcdir"/build-aux; do
2651   if test -f "$ac_dir/install-sh"; then
2652     ac_aux_dir=$ac_dir
2653     ac_install_sh="$ac_aux_dir/install-sh -c"
2654     break
2655   elif test -f "$ac_dir/install.sh"; then
2656     ac_aux_dir=$ac_dir
2657     ac_install_sh="$ac_aux_dir/install.sh -c"
2658     break
2659   elif test -f "$ac_dir/shtool"; then
2660     ac_aux_dir=$ac_dir
2661     ac_install_sh="$ac_aux_dir/shtool install -c"
2662     break
2663   fi
2664 done
2665 if test -z "$ac_aux_dir"; then
2666   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2667 fi
2668
2669 # These three variables are undocumented and unsupported,
2670 # and are intended to be withdrawn in a future Autoconf release.
2671 # They can cause serious problems if a builder's source tree is in a directory
2672 # whose full name contains unusual characters.
2673 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2674 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2675 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2676
2677 aux_dir=build-aux
2678
2679 macro_dir=m4
2680
2681
2682
2683 package_revision=`$SHELL $ac_aux_dir/git-version-gen .tarball-version`
2684
2685
2686 ## ------------------------ ##
2687 ## Autotest initialisation. ##
2688 ## ------------------------ ##
2689
2690 ac_config_commands="$ac_config_commands tests/atconfig"
2691
2692 AUTOM4TE=${AUTOM4TE=autom4te}
2693
2694 AUTOTEST='$(AUTOM4TE) --language=autotest'
2695
2696
2697
2698 ## ---------------------------------------- ##
2699 ## Display a configure time version banner. ##
2700 ## ---------------------------------------- ##
2701
2702 # This is a sanity check so we can see what version is used in bug reports.
2703 $as_echo "## ------------------------- ##
2704 ## Configuring libtool 2.4.7 ##
2705 ## ------------------------- ##"
2706 echo
2707
2708
2709 ## ------------ ##
2710 ## Shell tools. ##
2711 ## ------------ ##
2712
2713
2714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU M4 that supports accurate traces" >&5
2715 $as_echo_n "checking for GNU M4 that supports accurate traces... " >&6; }
2716 if ${ac_cv_path_M4+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   rm -f conftest.m4f
2720 ac_had_posixly_correct=${POSIXLY_CORRECT:+yes}
2721 { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}
2722 if test -z "$M4"; then
2723   ac_path_M4_found=false
2724   # Loop through the user's path and test for each of PROGNAME-LIST
2725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730     for ac_prog in m4 gm4 gnum4; do
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732       ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
2733       as_fn_executable_p "$ac_path_M4" || continue
2734       # Root out GNU M4 1.4.5, as well as non-GNU m4 that ignore -t, -F.
2735       # Root out GNU M4 1.4.15 with buggy false negative replacement strstr.
2736       # Root out Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 with buggy
2737       # false positive strstr.
2738       ac_snippet=change'quote(<,>)in''dir(<if''def>,mac,bug)'
2739       ac_snippet=${ac_snippet}pat'subst(a,\(b\)\|\(a\),\1)d'nl
2740       ac_snippet=$ac_snippet${as_nl}if'else(in''dex(..wi.d.,.d.),-1,bug)'
2741       ac_snippet=$ac_snippet${as_nl}if'else(in''dex(;:11-:12-:12-:12-:12-:12-:12-:12-:12.:12.:12.:12.:12.:12.:12.:12.:12-,:12-:12-:12-:12-:12-:12-:12-:12-),-1,,strstr-bug2)'
2742       test -z "`$ac_path_M4 -F conftest.m4f </dev/null 2>&1`" \
2743       && test -z "`$as_echo $ac_snippet | $ac_path_M4 --trace=mac 2>&1`" \
2744       && test -f conftest.m4f \
2745       && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
2746       rm -f conftest.m4f
2747       $ac_path_M4_found && break 3
2748     done
2749   done
2750   done
2751 IFS=$as_save_IFS
2752   if test -z "$ac_cv_path_M4"; then
2753     as_fn_error $? "no acceptable m4 could be found in \$PATH.
2754 GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.
2755 GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
2756 Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug." "$LINENO" 5
2757   fi
2758 else
2759   ac_cv_path_M4=$M4
2760 fi
2761
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
2764 $as_echo "$ac_cv_path_M4" >&6; }
2765   M4=$ac_cv_path_M4
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_cv_path_M4 accepts --gnu" >&5
2767 $as_echo_n "checking whether $ac_cv_path_M4 accepts --gnu... " >&6; }
2768 if ${ac_cv_prog_gnu_m4_gnu+:} false; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   case `$M4 --help < /dev/null 2>&1` in
2772       *--gnu*) ac_cv_prog_gnu_m4_gnu=yes ;;
2773       *) ac_cv_prog_gnu_m4_gnu=no ;;
2774     esac
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_m4_gnu" >&5
2777 $as_echo "$ac_cv_prog_gnu_m4_gnu" >&6; }
2778   if test yes = "$ac_cv_prog_gnu_m4_gnu"; then
2779     M4_GNU=--gnu
2780   else
2781     M4_GNU=
2782   fi
2783
2784   if test yes = "$ac_had_posixly_correct"; then
2785     POSIXLY_CORRECT=:
2786     if test no = $ac_cv_prog_gnu_m4_gnu; then
2787       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the version of M4 that was found does not support -g" >&5
2788 $as_echo "$as_me: WARNING: the version of M4 that was found does not support -g" >&2;}
2789       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using it with POSIXLY_CORRECT set may cause problems" >&5
2790 $as_echo "$as_me: WARNING: using it with POSIXLY_CORRECT set may cause problems" >&2;}
2791     fi
2792   fi
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how m4 supports trace files" >&5
2794 $as_echo_n "checking how m4 supports trace files... " >&6; }
2795 if ${ac_cv_prog_gnu_m4_debugfile+:} false; then :
2796   $as_echo_n "(cached) " >&6
2797 else
2798   case `$M4 --help < /dev/null 2>&1` in
2799       *debugfile*) ac_cv_prog_gnu_m4_debugfile=--debugfile ;;
2800       *) ac_cv_prog_gnu_m4_debugfile=--error-output ;;
2801     esac
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_m4_debugfile" >&5
2804 $as_echo "$ac_cv_prog_gnu_m4_debugfile" >&6; }
2805   M4_DEBUGFILE=$ac_cv_prog_gnu_m4_debugfile
2806
2807
2808
2809
2810 ## ------------------------ ##
2811 ## Automake Initialisation. ##
2812 ## ------------------------ ##
2813
2814 am__api_version='1.16'
2815
2816 # Find a good install program.  We prefer a C program (faster),
2817 # so one script is as good as another.  But avoid the broken or
2818 # incompatible versions:
2819 # SysV /etc/install, /usr/sbin/install
2820 # SunOS /usr/etc/install
2821 # IRIX /sbin/install
2822 # AIX /bin/install
2823 # AmigaOS /C/install, which installs bootblocks on floppy discs
2824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2827 # OS/2's system install, which has a completely different semantic
2828 # ./install, which can be erroneously created by make from ./install.sh.
2829 # Reject install programs that cannot install multiple files.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2831 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2832 if test -z "$INSTALL"; then
2833 if ${ac_cv_path_install+:} false; then :
2834   $as_echo_n "(cached) " >&6
2835 else
2836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839   IFS=$as_save_IFS
2840   test -z "$as_dir" && as_dir=.
2841     # Account for people who put trailing slashes in PATH elements.
2842 case $as_dir/ in #((
2843   ./ | .// | /[cC]/* | \
2844   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2845   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2846   /usr/ucb/* ) ;;
2847   *)
2848     # OSF1 and SCO ODT 3.0 have their own names for install.
2849     # Don't use installbsd from OSF since it installs stuff as root
2850     # by default.
2851     for ac_prog in ginstall scoinst install; do
2852       for ac_exec_ext in '' $ac_executable_extensions; do
2853         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2854           if test $ac_prog = install &&
2855             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856             # AIX install.  It has an incompatible calling convention.
2857             :
2858           elif test $ac_prog = install &&
2859             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2860             # program-specific install script used by HP pwplus--don't use.
2861             :
2862           else
2863             rm -rf conftest.one conftest.two conftest.dir
2864             echo one > conftest.one
2865             echo two > conftest.two
2866             mkdir conftest.dir
2867             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2868               test -s conftest.one && test -s conftest.two &&
2869               test -s conftest.dir/conftest.one &&
2870               test -s conftest.dir/conftest.two
2871             then
2872               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2873               break 3
2874             fi
2875           fi
2876         fi
2877       done
2878     done
2879     ;;
2880 esac
2881
2882   done
2883 IFS=$as_save_IFS
2884
2885 rm -rf conftest.one conftest.two conftest.dir
2886
2887 fi
2888   if test "${ac_cv_path_install+set}" = set; then
2889     INSTALL=$ac_cv_path_install
2890   else
2891     # As a last resort, use the slow shell script.  Don't cache a
2892     # value for INSTALL within a source directory, because that will
2893     # break other packages using the cache if that directory is
2894     # removed, or if the value is a relative name.
2895     INSTALL=$ac_install_sh
2896   fi
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2899 $as_echo "$INSTALL" >&6; }
2900
2901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902 # It thinks the first close brace ends the variable substitution.
2903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2904
2905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2906
2907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2910 $as_echo_n "checking whether build environment is sane... " >&6; }
2911 # Reject unsafe characters in $srcdir or the absolute working directory
2912 # name.  Accept space and tab only in the latter.
2913 am_lf='
2914 '
2915 case `pwd` in
2916   *[\\\"\#\$\&\'\`$am_lf]*)
2917     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2918 esac
2919 case $srcdir in
2920   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2921     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2922 esac
2923
2924 # Do 'set' in a subshell so we don't clobber the current shell's
2925 # arguments.  Must try -L first in case configure is actually a
2926 # symlink; some systems play weird games with the mod time of symlinks
2927 # (eg FreeBSD returns the mod time of the symlink's containing
2928 # directory).
2929 if (
2930    am_has_slept=no
2931    for am_try in 1 2; do
2932      echo "timestamp, slept: $am_has_slept" > conftest.file
2933      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2934      if test "$*" = "X"; then
2935         # -L didn't work.
2936         set X `ls -t "$srcdir/configure" conftest.file`
2937      fi
2938      if test "$*" != "X $srcdir/configure conftest.file" \
2939         && test "$*" != "X conftest.file $srcdir/configure"; then
2940
2941         # If neither matched, then we have a broken ls.  This can happen
2942         # if, for instance, CONFIG_SHELL is bash and it inherits a
2943         # broken ls alias from the environment.  This has actually
2944         # happened.  Such a system could not be considered "sane".
2945         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2946   alias in your environment" "$LINENO" 5
2947      fi
2948      if test "$2" = conftest.file || test $am_try -eq 2; then
2949        break
2950      fi
2951      # Just in case.
2952      sleep 1
2953      am_has_slept=yes
2954    done
2955    test "$2" = conftest.file
2956    )
2957 then
2958    # Ok.
2959    :
2960 else
2961    as_fn_error $? "newly created file is older than distributed files!
2962 Check your system clock" "$LINENO" 5
2963 fi
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2966 # If we didn't sleep, we still need to ensure time stamps of config.status and
2967 # generated files are strictly newer.
2968 am_sleep_pid=
2969 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2970   ( sleep 1 ) &
2971   am_sleep_pid=$!
2972 fi
2973
2974 rm -f conftest.file
2975
2976 test "$program_prefix" != NONE &&
2977   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2978 # Use a double $ so make ignores it.
2979 test "$program_suffix" != NONE &&
2980   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2981 # Double any \ or $.
2982 # By default was `s,x,x', remove it if useless.
2983 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2984 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2985
2986 # Expand $ac_aux_dir to an absolute path.
2987 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2988
2989 if test x"${MISSING+set}" != xset; then
2990   MISSING="\${SHELL} '$am_aux_dir/missing'"
2991 fi
2992 # Use eval to expand $SHELL
2993 if eval "$MISSING --is-lightweight"; then
2994   am_missing_run="$MISSING "
2995 else
2996   am_missing_run=
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2998 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2999 fi
3000
3001 if test x"${install_sh+set}" != xset; then
3002   case $am_aux_dir in
3003   *\ * | *\     *)
3004     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3005   *)
3006     install_sh="\${SHELL} $am_aux_dir/install-sh"
3007   esac
3008 fi
3009
3010 # Installed binaries are usually stripped using 'strip' when the user
3011 # run "make install-strip".  However 'strip' might not be the right
3012 # tool to use in cross-compilation environments, therefore Automake
3013 # will honor the 'STRIP' environment variable to overrule this program.
3014 if test "$cross_compiling" != no; then
3015   if test -n "$ac_tool_prefix"; then
3016   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}strip; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_STRIP+:} false; then :
3021   $as_echo_n "(cached) " >&6
3022 else
3023   if test -n "$STRIP"; then
3024   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     for ac_exec_ext in '' $ac_executable_extensions; do
3032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038   done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 STRIP=$ac_cv_prog_STRIP
3044 if test -n "$STRIP"; then
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3046 $as_echo "$STRIP" >&6; }
3047 else
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053 fi
3054 if test -z "$ac_cv_prog_STRIP"; then
3055   ac_ct_STRIP=$STRIP
3056   # Extract the first word of "strip", so it can be a program name with args.
3057 set dummy strip; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test -n "$ac_ct_STRIP"; then
3064   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071     for ac_exec_ext in '' $ac_executable_extensions; do
3072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073     ac_cv_prog_ac_ct_STRIP="strip"
3074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075     break 2
3076   fi
3077 done
3078   done
3079 IFS=$as_save_IFS
3080
3081 fi
3082 fi
3083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3084 if test -n "$ac_ct_STRIP"; then
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3086 $as_echo "$ac_ct_STRIP" >&6; }
3087 else
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 fi
3091
3092   if test "x$ac_ct_STRIP" = x; then
3093     STRIP=":"
3094   else
3095     case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101     STRIP=$ac_ct_STRIP
3102   fi
3103 else
3104   STRIP="$ac_cv_prog_STRIP"
3105 fi
3106
3107 fi
3108 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3111 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3112 if test -z "$MKDIR_P"; then
3113   if ${ac_cv_path_mkdir+:} false; then :
3114   $as_echo_n "(cached) " >&6
3115 else
3116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121     for ac_prog in mkdir gmkdir; do
3122          for ac_exec_ext in '' $ac_executable_extensions; do
3123            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3124            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3125              'mkdir (GNU coreutils) '* | \
3126              'mkdir (coreutils) '* | \
3127              'mkdir (fileutils) '4.1*)
3128                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3129                break 3;;
3130            esac
3131          done
3132        done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137
3138   test -d ./--version && rmdir ./--version
3139   if test "${ac_cv_path_mkdir+set}" = set; then
3140     MKDIR_P="$ac_cv_path_mkdir -p"
3141   else
3142     # As a last resort, use the slow shell script.  Don't cache a
3143     # value for MKDIR_P within a source directory, because that will
3144     # break other packages using the cache if that directory is
3145     # removed, or if the value is a relative name.
3146     MKDIR_P="$ac_install_sh -d"
3147   fi
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3150 $as_echo "$MKDIR_P" >&6; }
3151
3152 for ac_prog in gawk mawk nawk awk
3153 do
3154   # Extract the first word of "$ac_prog", so it can be a program name with args.
3155 set dummy $ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_AWK+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$AWK"; then
3162   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171     ac_cv_prog_AWK="$ac_prog"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 AWK=$ac_cv_prog_AWK
3182 if test -n "$AWK"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3184 $as_echo "$AWK" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191   test -n "$AWK" && break
3192 done
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3195 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3196 set x ${MAKE-make}
3197 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3198 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   cat >conftest.make <<\_ACEOF
3202 SHELL = /bin/sh
3203 all:
3204         @echo '@@@%%%=$(MAKE)=@@@%%%'
3205 _ACEOF
3206 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3207 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3208   *@@@%%%=?*=@@@%%%*)
3209     eval ac_cv_prog_make_${ac_make}_set=yes;;
3210   *)
3211     eval ac_cv_prog_make_${ac_make}_set=no;;
3212 esac
3213 rm -f conftest.make
3214 fi
3215 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3218   SET_MAKE=
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222   SET_MAKE="MAKE=${MAKE-make}"
3223 fi
3224
3225 rm -rf .tst 2>/dev/null
3226 mkdir .tst 2>/dev/null
3227 if test -d .tst; then
3228   am__leading_dot=.
3229 else
3230   am__leading_dot=_
3231 fi
3232 rmdir .tst 2>/dev/null
3233
3234 # Check whether --enable-silent-rules was given.
3235 if test "${enable_silent_rules+set}" = set; then :
3236   enableval=$enable_silent_rules;
3237 fi
3238
3239 case $enable_silent_rules in # (((
3240   yes) AM_DEFAULT_VERBOSITY=0;;
3241    no) AM_DEFAULT_VERBOSITY=1;;
3242     *) AM_DEFAULT_VERBOSITY=1;;
3243 esac
3244 am_make=${MAKE-make}
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3246 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3247 if ${am_cv_make_support_nested_variables+:} false; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if $as_echo 'TRUE=$(BAR$(V))
3251 BAR0=false
3252 BAR1=true
3253 V=1
3254 am__doit:
3255         @$(TRUE)
3256 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3257   am_cv_make_support_nested_variables=yes
3258 else
3259   am_cv_make_support_nested_variables=no
3260 fi
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3263 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3264 if test $am_cv_make_support_nested_variables = yes; then
3265     AM_V='$(V)'
3266   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3267 else
3268   AM_V=$AM_DEFAULT_VERBOSITY
3269   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3270 fi
3271 AM_BACKSLASH='\'
3272
3273 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3274   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3275   # is not polluted with repeated "-I."
3276   am__isrc=' -I$(srcdir)'
3277   # test to see if srcdir already configured
3278   if test -f $srcdir/config.status; then
3279     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3280   fi
3281 fi
3282
3283 # test whether we have cygpath
3284 if test -z "$CYGPATH_W"; then
3285   if (cygpath --version) >/dev/null 2>/dev/null; then
3286     CYGPATH_W='cygpath -w'
3287   else
3288     CYGPATH_W=echo
3289   fi
3290 fi
3291
3292
3293 # Define the identity of the package.
3294  PACKAGE='libtool'
3295  VERSION='2.4.7'
3296
3297
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE "$PACKAGE"
3300 _ACEOF
3301
3302
3303 cat >>confdefs.h <<_ACEOF
3304 #define VERSION "$VERSION"
3305 _ACEOF
3306
3307 # Some tools Automake needs.
3308
3309 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3310
3311
3312 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3313
3314
3315 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3316
3317
3318 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3319
3320
3321 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3322
3323 # For better backward compatibility.  To be removed once Automake 1.9.x
3324 # dies out for good.  For more background, see:
3325 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3326 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3327 mkdir_p='$(MKDIR_P)'
3328
3329 # We need awk for the "check" target (and possibly the TAP driver).  The
3330 # system "awk" is bad on some platforms.
3331 # Always define AMTAR for backward compatibility.  Yes, it's still used
3332 # in the wild :-(  We should find a proper way to deprecate it ...
3333 AMTAR='$${TAR-tar}'
3334
3335
3336 # We'll loop over all known methods to create a tar archive until one works.
3337 _am_tools='gnutar  pax cpio none'
3338
3339 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3340
3341
3342
3343
3344
3345
3346 # POSIX will say in a future version that running "rm -f" with no argument
3347 # is OK; and we want to be able to make that assumption in our Makefile
3348 # recipes.  So use an aggressive probe to check that the usage we want is
3349 # actually supported "in the wild" to an acceptable degree.
3350 # See automake bug#10828.
3351 # To make any issue more visible, cause the running configure to be aborted
3352 # by default if the 'rm' program in use doesn't match our expectations; the
3353 # user can still override this though.
3354 if rm -f && rm -fr && rm -rf; then : OK; else
3355   cat >&2 <<'END'
3356 Oops!
3357
3358 Your 'rm' program seems unable to run without file operands specified
3359 on the command line, even when the '-f' option is present.  This is contrary
3360 to the behaviour of most rm programs out there, and not conforming with
3361 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3362
3363 Please tell bug-automake@gnu.org about your system, including the value
3364 of your $PATH and any error possibly output before this message.  This
3365 can help us improve future automake versions.
3366
3367 END
3368   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3369     echo 'Configuration will proceed anyway, since you have set the' >&2
3370     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3371     echo >&2
3372   else
3373     cat >&2 <<'END'
3374 Aborting the configuration process, to ensure you take notice of the issue.
3375
3376 You can download and install GNU coreutils to get an 'rm' implementation
3377 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3378
3379 If you want to complete the configuration process using your problematic
3380 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3381 to "yes", and re-run configure.
3382
3383 END
3384     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3385   fi
3386 fi
3387
3388 # Check whether --enable-silent-rules was given.
3389 if test "${enable_silent_rules+set}" = set; then :
3390   enableval=$enable_silent_rules;
3391 fi
3392
3393 case $enable_silent_rules in # (((
3394   yes) AM_DEFAULT_VERBOSITY=0;;
3395    no) AM_DEFAULT_VERBOSITY=1;;
3396     *) AM_DEFAULT_VERBOSITY=0;;
3397 esac
3398 am_make=${MAKE-make}
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3400 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3401 if ${am_cv_make_support_nested_variables+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if $as_echo 'TRUE=$(BAR$(V))
3405 BAR0=false
3406 BAR1=true
3407 V=1
3408 am__doit:
3409         @$(TRUE)
3410 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3411   am_cv_make_support_nested_variables=yes
3412 else
3413   am_cv_make_support_nested_variables=no
3414 fi
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3417 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3418 if test $am_cv_make_support_nested_variables = yes; then
3419     AM_V='$(V)'
3420   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3421 else
3422   AM_V=$AM_DEFAULT_VERBOSITY
3423   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3424 fi
3425 AM_BACKSLASH='\'
3426
3427
3428
3429 ## ------------------------- ##
3430 ## Autobuild initialisation. ##
3431 ## ------------------------- ##
3432
3433 # You can set autobuild_mode at configure time to specify a "unique"
3434 # string for this build.
3435 : ${autobuild_mode=default}
3436 AB_VERSION='2.4.7'
3437 # Make sure we can run config.sub.
3438 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3439   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3440
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3442 $as_echo_n "checking build system type... " >&6; }
3443 if ${ac_cv_build+:} false; then :
3444   $as_echo_n "(cached) " >&6
3445 else
3446   ac_build_alias=$build_alias
3447 test "x$ac_build_alias" = x &&
3448   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3449 test "x$ac_build_alias" = x &&
3450   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3451 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3452   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3453
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3456 $as_echo "$ac_cv_build" >&6; }
3457 case $ac_cv_build in
3458 *-*-*) ;;
3459 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3460 esac
3461 build=$ac_cv_build
3462 ac_save_IFS=$IFS; IFS='-'
3463 set x $ac_cv_build
3464 shift
3465 build_cpu=$1
3466 build_vendor=$2
3467 shift; shift
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3470 build_os=$*
3471 IFS=$ac_save_IFS
3472 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3473
3474
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3476 $as_echo_n "checking host system type... " >&6; }
3477 if ${ac_cv_host+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   if test "x$host_alias" = x; then
3481   ac_cv_host=$ac_cv_build
3482 else
3483   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3484     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3485 fi
3486
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3489 $as_echo "$ac_cv_host" >&6; }
3490 case $ac_cv_host in
3491 *-*-*) ;;
3492 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3493 esac
3494 host=$ac_cv_host
3495 ac_save_IFS=$IFS; IFS='-'
3496 set x $ac_cv_host
3497 shift
3498 host_cpu=$1
3499 host_vendor=$2
3500 shift; shift
3501 # Remember, the first character of IFS is used to create $*,
3502 # except with old shells:
3503 host_os=$*
3504 IFS=$ac_save_IFS
3505 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3506
3507
3508
3509
3510
3511
3512   if test -z "$AB_PACKAGE"; then
3513     AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
3514   fi
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
3516 $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
3517
3518   if test -z "$AB_VERSION"; then
3519     AB_VERSION=${PACKAGE_VERSION:-$VERSION}
3520   fi
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
3522 $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
3523
3524   hostname=`hostname`
3525   if test "$hostname"; then
3526     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3527 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3528   fi
3529
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild mode... $autobuild_mode" >&5
3531 $as_echo "$as_me: autobuild mode... $autobuild_mode" >&6;}
3532
3533   date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
3534   if test "$?" != 0; then
3535     date=`date`
3536   fi
3537   if test "$date"; then
3538     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3539 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3540   fi
3541
3542
3543
3544 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/.version'
3545
3546
3547
3548 ## ------------------------------- ##
3549 ## Libtool specific configuration. ##
3550 ## ------------------------------- ##
3551
3552 aclocaldir="\$(datadir)/aclocal"
3553
3554 pkgdatadir="\$(datadir)/$PACKAGE"
3555
3556
3557 # Check whether --enable-ltdl-install was given.
3558 if test "${enable_ltdl_install+set}" = set; then :
3559   enableval=$enable_ltdl_install;
3560 fi
3561
3562 if test set != "${enable_ltdl_install+set}"; then
3563   enable_ltdl_install=yes
3564 fi
3565
3566 # The list of scripts required to build libltdl, and which need to be
3567 # installed by libtoolize --ltdl, and consequently need to be placed in
3568 # $pkgdatadir by our make install rule.
3569 pkgaux_scripts="compile config.guess config.sub depcomp install-sh missing"
3570
3571
3572
3573 ## ---------------- ##
3574 ## compiler checks. ##
3575 ## ---------------- ##
3576
3577 # Need to be sure that we have a working C compiler, otherwise even with
3578 # a good C compiler: if the following C++ tests fail, the whole libtool
3579 # build fails!
3580 ac_ext=c
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 if test -n "$ac_tool_prefix"; then
3586   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if ${ac_cv_prog_CC+:} false; then :
3591   $as_echo_n "(cached) " >&6
3592 else
3593   if test -n "$CC"; then
3594   ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601     for ac_exec_ext in '' $ac_executable_extensions; do
3602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608   done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3617 else
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623 fi
3624 if test -z "$ac_cv_prog_CC"; then
3625   ac_ct_CC=$CC
3626   # Extract the first word of "gcc", so it can be a program name with args.
3627 set dummy gcc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3631   $as_echo_n "(cached) " >&6
3632 else
3633   if test -n "$ac_ct_CC"; then
3634   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641     for ac_exec_ext in '' $ac_executable_extensions; do
3642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643     ac_cv_prog_ac_ct_CC="gcc"
3644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648   done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654 if test -n "$ac_ct_CC"; then
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656 $as_echo "$ac_ct_CC" >&6; }
3657 else
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662   if test "x$ac_ct_CC" = x; then
3663     CC=""
3664   else
3665     case $cross_compiling:$ac_tool_warned in
3666 yes:)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3670 esac
3671     CC=$ac_ct_CC
3672   fi
3673 else
3674   CC="$ac_cv_prog_CC"
3675 fi
3676
3677 if test -z "$CC"; then
3678           if test -n "$ac_tool_prefix"; then
3679     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}cc; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if ${ac_cv_prog_CC+:} false; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   if test -n "$CC"; then
3687   ac_cv_prog_CC="$CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_exec_ext in '' $ac_executable_extensions; do
3695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696     ac_cv_prog_CC="${ac_tool_prefix}cc"
3697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701   done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 $as_echo "$CC" >&6; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715
3716   fi
3717 fi
3718 if test -z "$CC"; then
3719   # Extract the first word of "cc", so it can be a program name with args.
3720 set dummy cc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_prog_CC+:} false; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   if test -n "$CC"; then
3727   ac_cv_prog_CC="$CC" # Let the user override the test.
3728 else
3729   ac_prog_rejected=no
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733   IFS=$as_save_IFS
3734   test -z "$as_dir" && as_dir=.
3735     for ac_exec_ext in '' $ac_executable_extensions; do
3736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3737     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3738        ac_prog_rejected=yes
3739        continue
3740      fi
3741     ac_cv_prog_CC="cc"
3742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746   done
3747 IFS=$as_save_IFS
3748
3749 if test $ac_prog_rejected = yes; then
3750   # We found a bogon in the path, so make sure we never use it.
3751   set dummy $ac_cv_prog_CC
3752   shift
3753   if test $# != 0; then
3754     # We chose a different compiler from the bogus one.
3755     # However, it has the same basename, so the bogon will be chosen
3756     # first if we set CC to just the basename; use the full file name.
3757     shift
3758     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3759   fi
3760 fi
3761 fi
3762 fi
3763 CC=$ac_cv_prog_CC
3764 if test -n "$CC"; then
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 $as_echo "$CC" >&6; }
3767 else
3768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3770 fi
3771
3772
3773 fi
3774 if test -z "$CC"; then
3775   if test -n "$ac_tool_prefix"; then
3776   for ac_prog in cl.exe
3777   do
3778     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_CC+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   if test -n "$CC"; then
3786   ac_cv_prog_CC="$CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793     for ac_exec_ext in '' $ac_executable_extensions; do
3794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800   done
3801 IFS=$as_save_IFS
3802
3803 fi
3804 fi
3805 CC=$ac_cv_prog_CC
3806 if test -n "$CC"; then
3807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3809 else
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3813
3814
3815     test -n "$CC" && break
3816   done
3817 fi
3818 if test -z "$CC"; then
3819   ac_ct_CC=$CC
3820   for ac_prog in cl.exe
3821 do
3822   # Extract the first word of "$ac_prog", so it can be a program name with args.
3823 set dummy $ac_prog; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   if test -n "$ac_ct_CC"; then
3830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837     for ac_exec_ext in '' $ac_executable_extensions; do
3838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839     ac_cv_prog_ac_ct_CC="$ac_prog"
3840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844   done
3845 IFS=$as_save_IFS
3846
3847 fi
3848 fi
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 $as_echo "$ac_ct_CC" >&6; }
3853 else
3854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3856 fi
3857
3858
3859   test -n "$ac_ct_CC" && break
3860 done
3861
3862   if test "x$ac_ct_CC" = x; then
3863     CC=""
3864   else
3865     case $cross_compiling:$ac_tool_warned in
3866 yes:)
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869 ac_tool_warned=yes ;;
3870 esac
3871     CC=$ac_ct_CC
3872   fi
3873 fi
3874
3875 fi
3876
3877
3878 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error $? "no acceptable C compiler found in \$PATH
3881 See \`config.log' for more details" "$LINENO" 5; }
3882
3883 # Provide some information about the compiler.
3884 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3885 set X $ac_compile
3886 ac_compiler=$2
3887 for ac_option in --version -v -V -qversion; do
3888   { { ac_try="$ac_compiler $ac_option >&5"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3896   ac_status=$?
3897   if test -s conftest.err; then
3898     sed '10a\
3899 ... rest of stderr output deleted ...
3900          10q' conftest.err >conftest.er1
3901     cat conftest.er1 >&5
3902   fi
3903   rm -f conftest.er1 conftest.err
3904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905   test $ac_status = 0; }
3906 done
3907
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 ac_clean_files_save=$ac_clean_files
3920 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3921 # Try to create an executable without -o first, disregard a.out.
3922 # It will help us diagnose broken compilers, and finding out an intuition
3923 # of exeext.
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3925 $as_echo_n "checking whether the C compiler works... " >&6; }
3926 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3927
3928 # The possible output files:
3929 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3930
3931 ac_rmfiles=
3932 for ac_file in $ac_files
3933 do
3934   case $ac_file in
3935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3937   esac
3938 done
3939 rm -f $ac_rmfiles
3940
3941 if { { ac_try="$ac_link_default"
3942 case "(($ac_try" in
3943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944   *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948   (eval "$ac_link_default") 2>&5
3949   ac_status=$?
3950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951   test $ac_status = 0; }; then :
3952   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3953 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3954 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3955 # so that the user can short-circuit this test for compilers unknown to
3956 # Autoconf.
3957 for ac_file in $ac_files ''
3958 do
3959   test -f "$ac_file" || continue
3960   case $ac_file in
3961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3962         ;;
3963     [ab].out )
3964         # We found the default executable, but exeext='' is most
3965         # certainly right.
3966         break;;
3967     *.* )
3968         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3969         then :; else
3970            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971         fi
3972         # We set ac_cv_exeext here because the later test for it is not
3973         # safe: cross compilers may not add the suffix if given an `-o'
3974         # argument, so we may need to know it at that point already.
3975         # Even if this section looks crufty: it has the advantage of
3976         # actually working.
3977         break;;
3978     * )
3979         break;;
3980   esac
3981 done
3982 test "$ac_cv_exeext" = no && ac_cv_exeext=
3983
3984 else
3985   ac_file=''
3986 fi
3987 if test -z "$ac_file"; then :
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error 77 "C compiler cannot create executables
3996 See \`config.log' for more details" "$LINENO" 5; }
3997 else
3998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3999 $as_echo "yes" >&6; }
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4002 $as_echo_n "checking for C compiler default output file name... " >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4004 $as_echo "$ac_file" >&6; }
4005 ac_exeext=$ac_cv_exeext
4006
4007 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4008 ac_clean_files=$ac_clean_files_save
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4010 $as_echo_n "checking for suffix of executables... " >&6; }
4011 if { { ac_try="$ac_link"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018   (eval "$ac_link") 2>&5
4019   ac_status=$?
4020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021   test $ac_status = 0; }; then :
4022   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4023 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4024 # work properly (i.e., refer to `conftest.exe'), while it won't with
4025 # `rm'.
4026 for ac_file in conftest.exe conftest conftest.*; do
4027   test -f "$ac_file" || continue
4028   case $ac_file in
4029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4030     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4031           break;;
4032     * ) break;;
4033   esac
4034 done
4035 else
4036   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4039 See \`config.log' for more details" "$LINENO" 5; }
4040 fi
4041 rm -f conftest conftest$ac_cv_exeext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4043 $as_echo "$ac_cv_exeext" >&6; }
4044
4045 rm -f conftest.$ac_ext
4046 EXEEXT=$ac_cv_exeext
4047 ac_exeext=$EXEEXT
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h.  */
4050 #include <stdio.h>
4051 int
4052 main ()
4053 {
4054 FILE *f = fopen ("conftest.out", "w");
4055  return ferror (f) || fclose (f) != 0;
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 ac_clean_files="$ac_clean_files conftest.out"
4062 # Check that the compiler produces executables we can run.  If not, either
4063 # the compiler is broken, or we cross compile.
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4065 $as_echo_n "checking whether we are cross compiling... " >&6; }
4066 if test "$cross_compiling" != yes; then
4067   { { ac_try="$ac_link"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074   (eval "$ac_link") 2>&5
4075   ac_status=$?
4076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077   test $ac_status = 0; }
4078   if { ac_try='./conftest$ac_cv_exeext'
4079   { { case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085   (eval "$ac_try") 2>&5
4086   ac_status=$?
4087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088   test $ac_status = 0; }; }; then
4089     cross_compiling=no
4090   else
4091     if test "$cross_compiling" = maybe; then
4092         cross_compiling=yes
4093     else
4094         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4096 as_fn_error $? "cannot run C compiled programs.
4097 If you meant to cross compile, use \`--host'.
4098 See \`config.log' for more details" "$LINENO" 5; }
4099     fi
4100   fi
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4103 $as_echo "$cross_compiling" >&6; }
4104
4105 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4106 ac_clean_files=$ac_clean_files_save
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4108 $as_echo_n "checking for suffix of object files... " >&6; }
4109 if ${ac_cv_objext+:} false; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114
4115 int
4116 main ()
4117 {
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.o conftest.obj
4124 if { { ac_try="$ac_compile"
4125 case "(($ac_try" in
4126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127   *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4130 $as_echo "$ac_try_echo"; } >&5
4131   (eval "$ac_compile") 2>&5
4132   ac_status=$?
4133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4134   test $ac_status = 0; }; then :
4135   for ac_file in conftest.o conftest.obj conftest.*; do
4136   test -f "$ac_file" || continue;
4137   case $ac_file in
4138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4139     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4140        break;;
4141   esac
4142 done
4143 else
4144   $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error $? "cannot compute suffix of object files: cannot compile
4150 See \`config.log' for more details" "$LINENO" 5; }
4151 fi
4152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4155 $as_echo "$ac_cv_objext" >&6; }
4156 OBJEXT=$ac_cv_objext
4157 ac_objext=$OBJEXT
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4159 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4160 if ${ac_cv_c_compiler_gnu+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165
4166 int
4167 main ()
4168 {
4169 #ifndef __GNUC__
4170        choke me
4171 #endif
4172
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178   ac_compiler_gnu=yes
4179 else
4180   ac_compiler_gnu=no
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4184
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4187 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4188 if test $ac_compiler_gnu = yes; then
4189   GCC=yes
4190 else
4191   GCC=
4192 fi
4193 ac_test_CFLAGS=${CFLAGS+set}
4194 ac_save_CFLAGS=$CFLAGS
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4196 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4197 if ${ac_cv_prog_cc_g+:} false; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   ac_save_c_werror_flag=$ac_c_werror_flag
4201    ac_c_werror_flag=yes
4202    ac_cv_prog_cc_g=no
4203    CFLAGS="-g"
4204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h.  */
4206
4207 int
4208 main ()
4209 {
4210
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216   ac_cv_prog_cc_g=yes
4217 else
4218   CFLAGS=""
4219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h.  */
4221
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"; then :
4231
4232 else
4233   ac_c_werror_flag=$ac_save_c_werror_flag
4234          CFLAGS="-g"
4235          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247   ac_cv_prog_cc_g=yes
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 fi
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254    ac_c_werror_flag=$ac_save_c_werror_flag
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4257 $as_echo "$ac_cv_prog_cc_g" >&6; }
4258 if test "$ac_test_CFLAGS" = set; then
4259   CFLAGS=$ac_save_CFLAGS
4260 elif test $ac_cv_prog_cc_g = yes; then
4261   if test "$GCC" = yes; then
4262     CFLAGS="-g -O2"
4263   else
4264     CFLAGS="-g"
4265   fi
4266 else
4267   if test "$GCC" = yes; then
4268     CFLAGS="-O2"
4269   else
4270     CFLAGS=
4271   fi
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4274 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4275 if ${ac_cv_prog_cc_c89+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   ac_cv_prog_cc_c89=no
4279 ac_save_CC=$CC
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282 #include <stdarg.h>
4283 #include <stdio.h>
4284 struct stat;
4285 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4286 struct buf { int x; };
4287 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4288 static char *e (p, i)
4289      char **p;
4290      int i;
4291 {
4292   return p[i];
4293 }
4294 static char *f (char * (*g) (char **, int), char **p, ...)
4295 {
4296   char *s;
4297   va_list v;
4298   va_start (v,p);
4299   s = g (p, va_arg (v,int));
4300   va_end (v);
4301   return s;
4302 }
4303
4304 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4305    function prototypes and stuff, but not '\xHH' hex character constants.
4306    These don't provoke an error unfortunately, instead are silently treated
4307    as 'x'.  The following induces an error, until -std is added to get
4308    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4309    array size at least.  It's necessary to write '\x00'==0 to get something
4310    that's true only with -std.  */
4311 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4312
4313 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4314    inside strings and character constants.  */
4315 #define FOO(x) 'x'
4316 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4317
4318 int test (int i, double x);
4319 struct s1 {int (*f) (int a);};
4320 struct s2 {int (*f) (double a);};
4321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4322 int argc;
4323 char **argv;
4324 int
4325 main ()
4326 {
4327 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4333         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4334 do
4335   CC="$ac_save_CC $ac_arg"
4336   if ac_fn_c_try_compile "$LINENO"; then :
4337   ac_cv_prog_cc_c89=$ac_arg
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext
4340   test "x$ac_cv_prog_cc_c89" != "xno" && break
4341 done
4342 rm -f conftest.$ac_ext
4343 CC=$ac_save_CC
4344
4345 fi
4346 # AC_CACHE_VAL
4347 case "x$ac_cv_prog_cc_c89" in
4348   x)
4349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4350 $as_echo "none needed" >&6; } ;;
4351   xno)
4352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4353 $as_echo "unsupported" >&6; } ;;
4354   *)
4355     CC="$CC $ac_cv_prog_cc_c89"
4356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4357 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4358 esac
4359 if test "x$ac_cv_prog_cc_c89" != xno; then :
4360
4361 fi
4362
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4375 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4376 if ${am_cv_prog_cc_c_o+:} false; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381
4382 int
4383 main ()
4384 {
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390   # Make sure it works both with $CC and with simple cc.
4391   # Following AC_PROG_CC_C_O, we do the test twice because some
4392   # compilers refuse to overwrite an existing .o file with -o,
4393   # though they will create one.
4394   am_cv_prog_cc_c_o=yes
4395   for am_i in 1 2; do
4396     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4397    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4398    ac_status=$?
4399    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400    (exit $ac_status); } \
4401          && test -f conftest2.$ac_objext; then
4402       : OK
4403     else
4404       am_cv_prog_cc_c_o=no
4405       break
4406     fi
4407   done
4408   rm -f core conftest*
4409   unset am_i
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4412 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4413 if test "$am_cv_prog_cc_c_o" != yes; then
4414    # Losing compiler, so override with the script.
4415    # FIXME: It is wrong to rewrite CC.
4416    # But if we don't then we get into trouble of one sort or another.
4417    # A longer-term fix would be to have automake use am__CC in this case,
4418    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4419    CC="$am_aux_dir/compile $CC"
4420 fi
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427
4428
4429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
4430 $as_echo_n "checking whether the compiler is clang... " >&6; }
4431 if ${gl_cv_compiler_clang+:} false; then :
4432   $as_echo_n "(cached) " >&6
4433 else
4434                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h.  */
4436
4437            #ifdef __clang__
4438            barfbarf
4439            #endif
4440
4441 int
4442 main ()
4443 {
4444
4445   ;
4446   return 0;
4447 }
4448
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451   gl_cv_compiler_clang=no
4452 else
4453   gl_cv_compiler_clang=yes
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
4459 $as_echo "$gl_cv_compiler_clang" >&6; }
4460
4461
4462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
4463 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
4464 if ${gl_cv_compiler_check_decl_option+:} false; then :
4465   $as_echo_n "(cached) " >&6
4466 else
4467   if test $gl_cv_compiler_clang = yes; then
4468                      save_ac_compile="$ac_compile"
4469        ac_compile="$ac_compile -Werror=implicit-function-declaration"
4470                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h.  */
4472
4473 int
4474 main ()
4475 {
4476
4477   ;
4478   return 0;
4479 }
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482   gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
4483 else
4484   gl_cv_compiler_check_decl_option=none
4485 fi
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487        ac_compile="$save_ac_compile"
4488      else
4489        gl_cv_compiler_check_decl_option=none
4490      fi
4491
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
4494 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
4495   if test "x$gl_cv_compiler_check_decl_option" != xnone; then
4496     ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
4497   else
4498     ac_compile_for_check_decl="$ac_compile"
4499   fi
4500
4501 DEPDIR="${am__leading_dot}deps"
4502
4503 ac_config_commands="$ac_config_commands depfiles"
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4506 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4507 cat > confinc.mk << 'END'
4508 am__doit:
4509         @echo this is the am__doit target >confinc.out
4510 .PHONY: am__doit
4511 END
4512 am__include="#"
4513 am__quote=
4514 # BSD make does it like this.
4515 echo '.include "confinc.mk" # ignored' > confmf.BSD
4516 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4517 echo 'include confinc.mk # ignored' > confmf.GNU
4518 _am_result=no
4519 for s in GNU BSD; do
4520   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4521    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4522    ac_status=$?
4523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524    (exit $ac_status); }
4525   case $?:`cat confinc.out 2>/dev/null` in #(
4526   '0:this is the am__doit target') :
4527     case $s in #(
4528   BSD) :
4529     am__include='.include' am__quote='"' ;; #(
4530   *) :
4531     am__include='include' am__quote='' ;;
4532 esac ;; #(
4533   *) :
4534      ;;
4535 esac
4536   if test "$am__include" != "#"; then
4537     _am_result="yes ($s style)"
4538     break
4539   fi
4540 done
4541 rm -f confinc.* confmf.*
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4543 $as_echo "${_am_result}" >&6; }
4544
4545 # Check whether --enable-dependency-tracking was given.
4546 if test "${enable_dependency_tracking+set}" = set; then :
4547   enableval=$enable_dependency_tracking;
4548 fi
4549
4550 if test "x$enable_dependency_tracking" != xno; then
4551   am_depcomp="$ac_aux_dir/depcomp"
4552   AMDEPBACKSLASH='\'
4553   am__nodep='_no'
4554 fi
4555  if test "x$enable_dependency_tracking" != xno; then
4556   AMDEP_TRUE=
4557   AMDEP_FALSE='#'
4558 else
4559   AMDEP_TRUE='#'
4560   AMDEP_FALSE=
4561 fi
4562
4563
4564
4565 depcc="$CC"   am_compiler_list=
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4568 $as_echo_n "checking dependency style of $depcc... " >&6; }
4569 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4573   # We make a subdir and do the tests there.  Otherwise we can end up
4574   # making bogus files that we don't know about and never remove.  For
4575   # instance it was reported that on HP-UX the gcc test will end up
4576   # making a dummy file named 'D' -- because '-MD' means "put the output
4577   # in D".
4578   rm -rf conftest.dir
4579   mkdir conftest.dir
4580   # Copy depcomp to subdir because otherwise we won't find it if we're
4581   # using a relative directory.
4582   cp "$am_depcomp" conftest.dir
4583   cd conftest.dir
4584   # We will build objects and dependencies in a subdirectory because
4585   # it helps to detect inapplicable dependency modes.  For instance
4586   # both Tru64's cc and ICC support -MD to output dependencies as a
4587   # side effect of compilation, but ICC will put the dependencies in
4588   # the current directory while Tru64 will put them in the object
4589   # directory.
4590   mkdir sub
4591
4592   am_cv_CC_dependencies_compiler_type=none
4593   if test "$am_compiler_list" = ""; then
4594      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4595   fi
4596   am__universal=false
4597   case " $depcc " in #(
4598      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4599      esac
4600
4601   for depmode in $am_compiler_list; do
4602     # Setup a source with many dependencies, because some compilers
4603     # like to wrap large dependency lists on column 80 (with \), and
4604     # we should not choose a depcomp mode which is confused by this.
4605     #
4606     # We need to recreate these files for each test, as the compiler may
4607     # overwrite some of them when testing with obscure command lines.
4608     # This happens at least with the AIX C compiler.
4609     : > sub/conftest.c
4610     for i in 1 2 3 4 5 6; do
4611       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4612       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4613       # Solaris 10 /bin/sh.
4614       echo '/* dummy */' > sub/conftst$i.h
4615     done
4616     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4617
4618     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4619     # mode.  It turns out that the SunPro C++ compiler does not properly
4620     # handle '-M -o', and we need to detect this.  Also, some Intel
4621     # versions had trouble with output in subdirs.
4622     am__obj=sub/conftest.${OBJEXT-o}
4623     am__minus_obj="-o $am__obj"
4624     case $depmode in
4625     gcc)
4626       # This depmode causes a compiler race in universal mode.
4627       test "$am__universal" = false || continue
4628       ;;
4629     nosideeffect)
4630       # After this tag, mechanisms are not by side-effect, so they'll
4631       # only be used when explicitly requested.
4632       if test "x$enable_dependency_tracking" = xyes; then
4633         continue
4634       else
4635         break
4636       fi
4637       ;;
4638     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4639       # This compiler won't grok '-c -o', but also, the minuso test has
4640       # not run yet.  These depmodes are late enough in the game, and
4641       # so weak that their functioning should not be impacted.
4642       am__obj=conftest.${OBJEXT-o}
4643       am__minus_obj=
4644       ;;
4645     none) break ;;
4646     esac
4647     if depmode=$depmode \
4648        source=sub/conftest.c object=$am__obj \
4649        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4650        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4651          >/dev/null 2>conftest.err &&
4652        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4653        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4654        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4655        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4656       # icc doesn't choke on unknown options, it will just issue warnings
4657       # or remarks (even with -Werror).  So we grep stderr for any message
4658       # that says an option was ignored or not supported.
4659       # When given -MP, icc 7.0 and 7.1 complain thusly:
4660       #   icc: Command line warning: ignoring option '-M'; no argument required
4661       # The diagnosis changed in icc 8.0:
4662       #   icc: Command line remark: option '-MP' not supported
4663       if (grep 'ignoring option' conftest.err ||
4664           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4665         am_cv_CC_dependencies_compiler_type=$depmode
4666         break
4667       fi
4668     fi
4669   done
4670
4671   cd ..
4672   rm -rf conftest.dir
4673 else
4674   am_cv_CC_dependencies_compiler_type=none
4675 fi
4676
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4679 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4680 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4681
4682  if
4683   test "x$enable_dependency_tracking" != xno \
4684   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4685   am__fastdepCC_TRUE=
4686   am__fastdepCC_FALSE='#'
4687 else
4688   am__fastdepCC_TRUE='#'
4689   am__fastdepCC_FALSE=
4690 fi
4691
4692
4693
4694 ac_ext=c
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4700 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4701 # On Suns, sometimes $CPP names a directory.
4702 if test -n "$CPP" && test -d "$CPP"; then
4703   CPP=
4704 fi
4705 if test -z "$CPP"; then
4706   if ${ac_cv_prog_CPP+:} false; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709       # Double quotes because CPP needs to be expanded
4710     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4711     do
4712       ac_preproc_ok=false
4713 for ac_c_preproc_warn_flag in '' yes
4714 do
4715   # Use a header file that comes with gcc, so configuring glibc
4716   # with a fresh cross-compiler works.
4717   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718   # <limits.h> exists even on freestanding compilers.
4719   # On the NeXT, cc -E runs the code through the compiler's parser,
4720   # not just through cpp. "Syntax error" is here to catch this case.
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723 #ifdef __STDC__
4724 # include <limits.h>
4725 #else
4726 # include <assert.h>
4727 #endif
4728                      Syntax error
4729 _ACEOF
4730 if ac_fn_c_try_cpp "$LINENO"; then :
4731
4732 else
4733   # Broken: fails on valid input.
4734 continue
4735 fi
4736 rm -f conftest.err conftest.i conftest.$ac_ext
4737
4738   # OK, works on sane cases.  Now check whether nonexistent headers
4739   # can be detected and how.
4740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 #include <ac_nonexistent.h>
4743 _ACEOF
4744 if ac_fn_c_try_cpp "$LINENO"; then :
4745   # Broken: success on invalid input.
4746 continue
4747 else
4748   # Passes both tests.
4749 ac_preproc_ok=:
4750 break
4751 fi
4752 rm -f conftest.err conftest.i conftest.$ac_ext
4753
4754 done
4755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4756 rm -f conftest.i conftest.err conftest.$ac_ext
4757 if $ac_preproc_ok; then :
4758   break
4759 fi
4760
4761     done
4762     ac_cv_prog_CPP=$CPP
4763
4764 fi
4765   CPP=$ac_cv_prog_CPP
4766 else
4767   ac_cv_prog_CPP=$CPP
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4770 $as_echo "$CPP" >&6; }
4771 ac_preproc_ok=false
4772 for ac_c_preproc_warn_flag in '' yes
4773 do
4774   # Use a header file that comes with gcc, so configuring glibc
4775   # with a fresh cross-compiler works.
4776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777   # <limits.h> exists even on freestanding compilers.
4778   # On the NeXT, cc -E runs the code through the compiler's parser,
4779   # not just through cpp. "Syntax error" is here to catch this case.
4780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h.  */
4782 #ifdef __STDC__
4783 # include <limits.h>
4784 #else
4785 # include <assert.h>
4786 #endif
4787                      Syntax error
4788 _ACEOF
4789 if ac_fn_c_try_cpp "$LINENO"; then :
4790
4791 else
4792   # Broken: fails on valid input.
4793 continue
4794 fi
4795 rm -f conftest.err conftest.i conftest.$ac_ext
4796
4797   # OK, works on sane cases.  Now check whether nonexistent headers
4798   # can be detected and how.
4799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h.  */
4801 #include <ac_nonexistent.h>
4802 _ACEOF
4803 if ac_fn_c_try_cpp "$LINENO"; then :
4804   # Broken: success on invalid input.
4805 continue
4806 else
4807   # Passes both tests.
4808 ac_preproc_ok=:
4809 break
4810 fi
4811 rm -f conftest.err conftest.i conftest.$ac_ext
4812
4813 done
4814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4815 rm -f conftest.i conftest.err conftest.$ac_ext
4816 if $ac_preproc_ok; then :
4817
4818 else
4819   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4821 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4822 See \`config.log' for more details" "$LINENO" 5; }
4823 fi
4824
4825 ac_ext=c
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4833 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4834 if ${ac_cv_path_GREP+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   if test -z "$GREP"; then
4838   ac_path_GREP_found=false
4839   # Loop through the user's path and test for each of PROGNAME-LIST
4840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845     for ac_prog in grep ggrep; do
4846     for ac_exec_ext in '' $ac_executable_extensions; do
4847       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4848       as_fn_executable_p "$ac_path_GREP" || continue
4849 # Check for GNU ac_path_GREP and select it if it is found.
4850   # Check for GNU $ac_path_GREP
4851 case `"$ac_path_GREP" --version 2>&1` in
4852 *GNU*)
4853   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4854 *)
4855   ac_count=0
4856   $as_echo_n 0123456789 >"conftest.in"
4857   while :
4858   do
4859     cat "conftest.in" "conftest.in" >"conftest.tmp"
4860     mv "conftest.tmp" "conftest.in"
4861     cp "conftest.in" "conftest.nl"
4862     $as_echo 'GREP' >> "conftest.nl"
4863     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4864     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4865     as_fn_arith $ac_count + 1 && ac_count=$as_val
4866     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4867       # Best one so far, save it but keep looking for a better one
4868       ac_cv_path_GREP="$ac_path_GREP"
4869       ac_path_GREP_max=$ac_count
4870     fi
4871     # 10*(2^10) chars as input seems more than enough
4872     test $ac_count -gt 10 && break
4873   done
4874   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4875 esac
4876
4877       $ac_path_GREP_found && break 3
4878     done
4879   done
4880   done
4881 IFS=$as_save_IFS
4882   if test -z "$ac_cv_path_GREP"; then
4883     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4884   fi
4885 else
4886   ac_cv_path_GREP=$GREP
4887 fi
4888
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4891 $as_echo "$ac_cv_path_GREP" >&6; }
4892  GREP="$ac_cv_path_GREP"
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4896 $as_echo_n "checking for egrep... " >&6; }
4897 if ${ac_cv_path_EGREP+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4901    then ac_cv_path_EGREP="$GREP -E"
4902    else
4903      if test -z "$EGREP"; then
4904   ac_path_EGREP_found=false
4905   # Loop through the user's path and test for each of PROGNAME-LIST
4906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911     for ac_prog in egrep; do
4912     for ac_exec_ext in '' $ac_executable_extensions; do
4913       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4914       as_fn_executable_p "$ac_path_EGREP" || continue
4915 # Check for GNU ac_path_EGREP and select it if it is found.
4916   # Check for GNU $ac_path_EGREP
4917 case `"$ac_path_EGREP" --version 2>&1` in
4918 *GNU*)
4919   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4920 *)
4921   ac_count=0
4922   $as_echo_n 0123456789 >"conftest.in"
4923   while :
4924   do
4925     cat "conftest.in" "conftest.in" >"conftest.tmp"
4926     mv "conftest.tmp" "conftest.in"
4927     cp "conftest.in" "conftest.nl"
4928     $as_echo 'EGREP' >> "conftest.nl"
4929     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4930     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4931     as_fn_arith $ac_count + 1 && ac_count=$as_val
4932     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4933       # Best one so far, save it but keep looking for a better one
4934       ac_cv_path_EGREP="$ac_path_EGREP"
4935       ac_path_EGREP_max=$ac_count
4936     fi
4937     # 10*(2^10) chars as input seems more than enough
4938     test $ac_count -gt 10 && break
4939   done
4940   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4941 esac
4942
4943       $ac_path_EGREP_found && break 3
4944     done
4945   done
4946   done
4947 IFS=$as_save_IFS
4948   if test -z "$ac_cv_path_EGREP"; then
4949     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950   fi
4951 else
4952   ac_cv_path_EGREP=$EGREP
4953 fi
4954
4955    fi
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4958 $as_echo "$ac_cv_path_EGREP" >&6; }
4959  EGREP="$ac_cv_path_EGREP"
4960
4961
4962
4963
4964
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4966 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4967 if ${gl_cv_c_amsterdam_compiler+:} false; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970
4971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h.  */
4973
4974 #ifdef __ACK__
4975 Amsterdam
4976 #endif
4977
4978 _ACEOF
4979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980   $EGREP "Amsterdam" >/dev/null 2>&1; then :
4981   gl_cv_c_amsterdam_compiler=yes
4982 else
4983   gl_cv_c_amsterdam_compiler=no
4984 fi
4985 rm -f conftest*
4986
4987
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4990 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4991
4992       if test $gl_cv_c_amsterdam_compiler = yes; then
4993     if test -z "$AR"; then
4994       AR='cc -c.a'
4995     fi
4996     if test -z "$ARFLAGS"; then
4997       ARFLAGS='-o'
4998     fi
4999   else
5000                                                 :
5001   fi
5002
5003         if test -n "$ac_tool_prefix"; then
5004   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ar; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_AR+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   if test -n "$AR"; then
5012   ac_cv_prog_AR="$AR" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019     for ac_exec_ext in '' $ac_executable_extensions; do
5020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021     ac_cv_prog_AR="${ac_tool_prefix}ar"
5022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026   done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 AR=$ac_cv_prog_AR
5032 if test -n "$AR"; then
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5034 $as_echo "$AR" >&6; }
5035 else
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040
5041 fi
5042 if test -z "$ac_cv_prog_AR"; then
5043   ac_ct_AR=$AR
5044   # Extract the first word of "ar", so it can be a program name with args.
5045 set dummy ar; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if test -n "$ac_ct_AR"; then
5052   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061     ac_cv_prog_ac_ct_AR="ar"
5062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066   done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5072 if test -n "$ac_ct_AR"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5074 $as_echo "$ac_ct_AR" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080   if test "x$ac_ct_AR" = x; then
5081     AR="ar"
5082   else
5083     case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089     AR=$ac_ct_AR
5090   fi
5091 else
5092   AR="$ac_cv_prog_AR"
5093 fi
5094
5095   if test -z "$ARFLAGS"; then
5096     ARFLAGS='cr'
5097   fi
5098
5099
5100
5101   if test -z "$RANLIB"; then
5102     if test $gl_cv_c_amsterdam_compiler = yes; then
5103       RANLIB=':'
5104     else
5105             if test -n "$ac_tool_prefix"; then
5106   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_RANLIB+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -n "$RANLIB"; then
5114   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128   done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 RANLIB=$ac_cv_prog_RANLIB
5134 if test -n "$RANLIB"; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5136 $as_echo "$RANLIB" >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143 fi
5144 if test -z "$ac_cv_prog_RANLIB"; then
5145   ac_ct_RANLIB=$RANLIB
5146   # Extract the first word of "ranlib", so it can be a program name with args.
5147 set dummy ranlib; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   if test -n "$ac_ct_RANLIB"; then
5154   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_prog_ac_ct_RANLIB="ranlib"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5174 if test -n "$ac_ct_RANLIB"; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5176 $as_echo "$ac_ct_RANLIB" >&6; }
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182   if test "x$ac_ct_RANLIB" = x; then
5183     RANLIB=":"
5184   else
5185     case $cross_compiling:$ac_tool_warned in
5186 yes:)
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5189 ac_tool_warned=yes ;;
5190 esac
5191     RANLIB=$ac_ct_RANLIB
5192   fi
5193 else
5194   RANLIB="$ac_cv_prog_RANLIB"
5195 fi
5196
5197     fi
5198   fi
5199
5200
5201
5202
5203   # Pre-early section.
5204
5205
5206   # Code from module all-shells-tests:
5207   # Code from module announce-gen:
5208   # Code from module bootstrap:
5209   # Code from module do-release-commit-and-tag:
5210   # Code from module extract-trace:
5211   # Code from module funclib.sh:
5212   # Code from module funclib.sh-tests:
5213   # Code from module gendocs:
5214   # Code from module git-version-gen:
5215   # Code from module gitlog-to-changelog:
5216   # Code from module gnu-web-doc-update:
5217   # Code from module gnumakefile:
5218   # Code from module gnupload:
5219   # Code from module inline-source:
5220   # Code from module maintainer-makefile:
5221   # Code from module options-parser:
5222   # Code from module options-parser-tests:
5223   # Code from module readme-release:
5224   # Code from module test-framework-sh:
5225   # Code from module test-framework-sh-tests:
5226   # Code from module update-copyright:
5227   # Code from module update-copyright-tests:
5228   # Code from module useless-if-before-free:
5229   # Code from module vc-list-files:
5230   # Code from module vc-list-files-tests:
5231
5232
5233 ac_ext=c
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5239 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5240 # On Suns, sometimes $CPP names a directory.
5241 if test -n "$CPP" && test -d "$CPP"; then
5242   CPP=
5243 fi
5244 if test -z "$CPP"; then
5245   if ${ac_cv_prog_CPP+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248       # Double quotes because CPP needs to be expanded
5249     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5250     do
5251       ac_preproc_ok=false
5252 for ac_c_preproc_warn_flag in '' yes
5253 do
5254   # Use a header file that comes with gcc, so configuring glibc
5255   # with a fresh cross-compiler works.
5256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5257   # <limits.h> exists even on freestanding compilers.
5258   # On the NeXT, cc -E runs the code through the compiler's parser,
5259   # not just through cpp. "Syntax error" is here to catch this case.
5260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h.  */
5262 #ifdef __STDC__
5263 # include <limits.h>
5264 #else
5265 # include <assert.h>
5266 #endif
5267                      Syntax error
5268 _ACEOF
5269 if ac_fn_c_try_cpp "$LINENO"; then :
5270
5271 else
5272   # Broken: fails on valid input.
5273 continue
5274 fi
5275 rm -f conftest.err conftest.i conftest.$ac_ext
5276
5277   # OK, works on sane cases.  Now check whether nonexistent headers
5278   # can be detected and how.
5279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h.  */
5281 #include <ac_nonexistent.h>
5282 _ACEOF
5283 if ac_fn_c_try_cpp "$LINENO"; then :
5284   # Broken: success on invalid input.
5285 continue
5286 else
5287   # Passes both tests.
5288 ac_preproc_ok=:
5289 break
5290 fi
5291 rm -f conftest.err conftest.i conftest.$ac_ext
5292
5293 done
5294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295 rm -f conftest.i conftest.err conftest.$ac_ext
5296 if $ac_preproc_ok; then :
5297   break
5298 fi
5299
5300     done
5301     ac_cv_prog_CPP=$CPP
5302
5303 fi
5304   CPP=$ac_cv_prog_CPP
5305 else
5306   ac_cv_prog_CPP=$CPP
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5309 $as_echo "$CPP" >&6; }
5310 ac_preproc_ok=false
5311 for ac_c_preproc_warn_flag in '' yes
5312 do
5313   # Use a header file that comes with gcc, so configuring glibc
5314   # with a fresh cross-compiler works.
5315   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316   # <limits.h> exists even on freestanding compilers.
5317   # On the NeXT, cc -E runs the code through the compiler's parser,
5318   # not just through cpp. "Syntax error" is here to catch this case.
5319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h.  */
5321 #ifdef __STDC__
5322 # include <limits.h>
5323 #else
5324 # include <assert.h>
5325 #endif
5326                      Syntax error
5327 _ACEOF
5328 if ac_fn_c_try_cpp "$LINENO"; then :
5329
5330 else
5331   # Broken: fails on valid input.
5332 continue
5333 fi
5334 rm -f conftest.err conftest.i conftest.$ac_ext
5335
5336   # OK, works on sane cases.  Now check whether nonexistent headers
5337   # can be detected and how.
5338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h.  */
5340 #include <ac_nonexistent.h>
5341 _ACEOF
5342 if ac_fn_c_try_cpp "$LINENO"; then :
5343   # Broken: success on invalid input.
5344 continue
5345 else
5346   # Passes both tests.
5347 ac_preproc_ok=:
5348 break
5349 fi
5350 rm -f conftest.err conftest.i conftest.$ac_ext
5351
5352 done
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.i conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then :
5356
5357 else
5358   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5360 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5361 See \`config.log' for more details" "$LINENO" 5; }
5362 fi
5363
5364 ac_ext=c
5365 ac_cpp='$CPP $CPPFLAGS'
5366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369
5370
5371 ## ----------------------- ##
5372 ## Libtool initialisation. ##
5373 ## ----------------------- ##
5374 case `pwd` in
5375   *\ * | *\     *)
5376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5377 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5378 esac
5379
5380
5381
5382 macro_version='2.4.7'
5383 macro_revision='2.4.7'
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397 ltmain=$ac_aux_dir/ltmain.sh
5398
5399 # Backslashify metacharacters that are still active within
5400 # double-quoted strings.
5401 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5402
5403 # Same as above, but do not quote variable references.
5404 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5405
5406 # Sed substitution to delay expansion of an escaped shell variable in a
5407 # double_quote_subst'ed string.
5408 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5409
5410 # Sed substitution to delay expansion of an escaped single quote.
5411 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5412
5413 # Sed substitution to avoid accidental globbing in evaled expressions
5414 no_glob_subst='s/\*/\\\*/g'
5415
5416 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5417 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5418 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5421 $as_echo_n "checking how to print strings... " >&6; }
5422 # Test print first, because it will be a builtin if present.
5423 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5424    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5425   ECHO='print -r --'
5426 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5427   ECHO='printf %s\n'
5428 else
5429   # Use this function as a fallback that always works.
5430   func_fallback_echo ()
5431   {
5432     eval 'cat <<_LTECHO_EOF
5433 $1
5434 _LTECHO_EOF'
5435   }
5436   ECHO='func_fallback_echo'
5437 fi
5438
5439 # func_echo_all arg...
5440 # Invoke $ECHO with all args, space-separated.
5441 func_echo_all ()
5442 {
5443     $ECHO ""
5444 }
5445
5446 case $ECHO in
5447   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5448 $as_echo "printf" >&6; } ;;
5449   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5450 $as_echo "print -r" >&6; } ;;
5451   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5452 $as_echo "cat" >&6; } ;;
5453 esac
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5469 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5470 if ${ac_cv_path_SED+:} false; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5474      for ac_i in 1 2 3 4 5 6 7; do
5475        ac_script="$ac_script$as_nl$ac_script"
5476      done
5477      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5478      { ac_script=; unset ac_script;}
5479      if test -z "$SED"; then
5480   ac_path_SED_found=false
5481   # Loop through the user's path and test for each of PROGNAME-LIST
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487     for ac_prog in sed gsed; do
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5490       as_fn_executable_p "$ac_path_SED" || continue
5491 # Check for GNU ac_path_SED and select it if it is found.
5492   # Check for GNU $ac_path_SED
5493 case `"$ac_path_SED" --version 2>&1` in
5494 *GNU*)
5495   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5496 *)
5497   ac_count=0
5498   $as_echo_n 0123456789 >"conftest.in"
5499   while :
5500   do
5501     cat "conftest.in" "conftest.in" >"conftest.tmp"
5502     mv "conftest.tmp" "conftest.in"
5503     cp "conftest.in" "conftest.nl"
5504     $as_echo '' >> "conftest.nl"
5505     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5506     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5507     as_fn_arith $ac_count + 1 && ac_count=$as_val
5508     if test $ac_count -gt ${ac_path_SED_max-0}; then
5509       # Best one so far, save it but keep looking for a better one
5510       ac_cv_path_SED="$ac_path_SED"
5511       ac_path_SED_max=$ac_count
5512     fi
5513     # 10*(2^10) chars as input seems more than enough
5514     test $ac_count -gt 10 && break
5515   done
5516   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5517 esac
5518
5519       $ac_path_SED_found && break 3
5520     done
5521   done
5522   done
5523 IFS=$as_save_IFS
5524   if test -z "$ac_cv_path_SED"; then
5525     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5526   fi
5527 else
5528   ac_cv_path_SED=$SED
5529 fi
5530
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5533 $as_echo "$ac_cv_path_SED" >&6; }
5534  SED="$ac_cv_path_SED"
5535   rm -f conftest.sed
5536
5537 test -z "$SED" && SED=sed
5538 Xsed="$SED -e 1s/^X//"
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5551 $as_echo_n "checking for fgrep... " >&6; }
5552 if ${ac_cv_path_FGREP+:} false; then :
5553   $as_echo_n "(cached) " >&6
5554 else
5555   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5556    then ac_cv_path_FGREP="$GREP -F"
5557    else
5558      if test -z "$FGREP"; then
5559   ac_path_FGREP_found=false
5560   # Loop through the user's path and test for each of PROGNAME-LIST
5561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566     for ac_prog in fgrep; do
5567     for ac_exec_ext in '' $ac_executable_extensions; do
5568       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5569       as_fn_executable_p "$ac_path_FGREP" || continue
5570 # Check for GNU ac_path_FGREP and select it if it is found.
5571   # Check for GNU $ac_path_FGREP
5572 case `"$ac_path_FGREP" --version 2>&1` in
5573 *GNU*)
5574   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5575 *)
5576   ac_count=0
5577   $as_echo_n 0123456789 >"conftest.in"
5578   while :
5579   do
5580     cat "conftest.in" "conftest.in" >"conftest.tmp"
5581     mv "conftest.tmp" "conftest.in"
5582     cp "conftest.in" "conftest.nl"
5583     $as_echo 'FGREP' >> "conftest.nl"
5584     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586     as_fn_arith $ac_count + 1 && ac_count=$as_val
5587     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5588       # Best one so far, save it but keep looking for a better one
5589       ac_cv_path_FGREP="$ac_path_FGREP"
5590       ac_path_FGREP_max=$ac_count
5591     fi
5592     # 10*(2^10) chars as input seems more than enough
5593     test $ac_count -gt 10 && break
5594   done
5595   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596 esac
5597
5598       $ac_path_FGREP_found && break 3
5599     done
5600   done
5601   done
5602 IFS=$as_save_IFS
5603   if test -z "$ac_cv_path_FGREP"; then
5604     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5605   fi
5606 else
5607   ac_cv_path_FGREP=$FGREP
5608 fi
5609
5610    fi
5611 fi
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5613 $as_echo "$ac_cv_path_FGREP" >&6; }
5614  FGREP="$ac_cv_path_FGREP"
5615
5616
5617 test -z "$GREP" && GREP=grep
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 # Check whether --with-gnu-ld was given.
5638 if test "${with_gnu_ld+set}" = set; then :
5639   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5640 else
5641   with_gnu_ld=no
5642 fi
5643
5644 ac_prog=ld
5645 if test yes = "$GCC"; then
5646   # Check if gcc -print-prog-name=ld gives a path.
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5648 $as_echo_n "checking for ld used by $CC... " >&6; }
5649   case $host in
5650   *-*-mingw*)
5651     # gcc leaves a trailing carriage return, which upsets mingw
5652     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5653   *)
5654     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5655   esac
5656   case $ac_prog in
5657     # Accept absolute paths.
5658     [\\/]* | ?:[\\/]*)
5659       re_direlt='/[^/][^/]*/\.\./'
5660       # Canonicalize the pathname of ld
5661       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5662       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5663         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5664       done
5665       test -z "$LD" && LD=$ac_prog
5666       ;;
5667   "")
5668     # If it fails, then pretend we aren't using GCC.
5669     ac_prog=ld
5670     ;;
5671   *)
5672     # If it is relative, then search for the first ld in PATH.
5673     with_gnu_ld=unknown
5674     ;;
5675   esac
5676 elif test yes = "$with_gnu_ld"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5678 $as_echo_n "checking for GNU ld... " >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5681 $as_echo_n "checking for non-GNU ld... " >&6; }
5682 fi
5683 if ${lt_cv_path_LD+:} false; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   if test -z "$LD"; then
5687   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5688   for ac_dir in $PATH; do
5689     IFS=$lt_save_ifs
5690     test -z "$ac_dir" && ac_dir=.
5691     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5692       lt_cv_path_LD=$ac_dir/$ac_prog
5693       # Check to see if the program is GNU ld.  I'd rather use --version,
5694       # but apparently some variants of GNU ld only accept -v.
5695       # Break only if it was the GNU/non-GNU ld that we prefer.
5696       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5697       *GNU* | *'with BFD'*)
5698         test no != "$with_gnu_ld" && break
5699         ;;
5700       *)
5701         test yes != "$with_gnu_ld" && break
5702         ;;
5703       esac
5704     fi
5705   done
5706   IFS=$lt_save_ifs
5707 else
5708   lt_cv_path_LD=$LD # Let the user override the test with a path.
5709 fi
5710 fi
5711
5712 LD=$lt_cv_path_LD
5713 if test -n "$LD"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5715 $as_echo "$LD" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5723 if ${lt_cv_prog_gnu_ld+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5727 case `$LD -v 2>&1 </dev/null` in
5728 *GNU* | *'with BFD'*)
5729   lt_cv_prog_gnu_ld=yes
5730   ;;
5731 *)
5732   lt_cv_prog_gnu_ld=no
5733   ;;
5734 esac
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5738 with_gnu_ld=$lt_cv_prog_gnu_ld
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5749 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5750 if ${lt_cv_path_NM+:} false; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   if test -n "$NM"; then
5754   # Let the user override the test.
5755   lt_cv_path_NM=$NM
5756 else
5757   lt_nm_to_check=${ac_tool_prefix}nm
5758   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5759     lt_nm_to_check="$lt_nm_to_check nm"
5760   fi
5761   for lt_tmp_nm in $lt_nm_to_check; do
5762     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5763     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5764       IFS=$lt_save_ifs
5765       test -z "$ac_dir" && ac_dir=.
5766       tmp_nm=$ac_dir/$lt_tmp_nm
5767       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5768         # Check to see if the nm accepts a BSD-compat flag.
5769         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5770         #   nm: unknown option "B" ignored
5771         # Tru64's nm complains that /dev/null is an invalid object file
5772         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5773         case $build_os in
5774         mingw*) lt_bad_file=conftest.nm/nofile ;;
5775         *) lt_bad_file=/dev/null ;;
5776         esac
5777         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5778         *$lt_bad_file* | *'Invalid file or object type'*)
5779           lt_cv_path_NM="$tmp_nm -B"
5780           break 2
5781           ;;
5782         *)
5783           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5784           */dev/null*)
5785             lt_cv_path_NM="$tmp_nm -p"
5786             break 2
5787             ;;
5788           *)
5789             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5790             continue # so that we can try to find one that supports BSD flags
5791             ;;
5792           esac
5793           ;;
5794         esac
5795       fi
5796     done
5797     IFS=$lt_save_ifs
5798   done
5799   : ${lt_cv_path_NM=no}
5800 fi
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5803 $as_echo "$lt_cv_path_NM" >&6; }
5804 if test no != "$lt_cv_path_NM"; then
5805   NM=$lt_cv_path_NM
5806 else
5807   # Didn't find any BSD compatible name lister, look for dumpbin.
5808   if test -n "$DUMPBIN"; then :
5809     # Let the user override the test.
5810   else
5811     if test -n "$ac_tool_prefix"; then
5812   for ac_prog in dumpbin "link -dump"
5813   do
5814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_DUMPBIN+:} false; then :
5819   $as_echo_n "(cached) " >&6
5820 else
5821   if test -n "$DUMPBIN"; then
5822   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829     for ac_exec_ext in '' $ac_executable_extensions; do
5830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836   done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5844 $as_echo "$DUMPBIN" >&6; }
5845 else
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5848 fi
5849
5850
5851     test -n "$DUMPBIN" && break
5852   done
5853 fi
5854 if test -z "$DUMPBIN"; then
5855   ac_ct_DUMPBIN=$DUMPBIN
5856   for ac_prog in dumpbin "link -dump"
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if test -n "$ac_ct_DUMPBIN"; then
5866   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880   done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5888 $as_echo "$ac_ct_DUMPBIN" >&6; }
5889 else
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894
5895   test -n "$ac_ct_DUMPBIN" && break
5896 done
5897
5898   if test "x$ac_ct_DUMPBIN" = x; then
5899     DUMPBIN=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907     DUMPBIN=$ac_ct_DUMPBIN
5908   fi
5909 fi
5910
5911     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5912     *COFF*)
5913       DUMPBIN="$DUMPBIN -symbols -headers"
5914       ;;
5915     *)
5916       DUMPBIN=:
5917       ;;
5918     esac
5919   fi
5920
5921   if test : != "$DUMPBIN"; then
5922     NM=$DUMPBIN
5923   fi
5924 fi
5925 test -z "$NM" && NM=nm
5926
5927
5928
5929
5930
5931
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5933 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5934 if ${lt_cv_nm_interface+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   lt_cv_nm_interface="BSD nm"
5938   echo "int some_variable = 0;" > conftest.$ac_ext
5939   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5940   (eval "$ac_compile" 2>conftest.err)
5941   cat conftest.err >&5
5942   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5943   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5944   cat conftest.err >&5
5945   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5946   cat conftest.out >&5
5947   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5948     lt_cv_nm_interface="MS dumpbin"
5949   fi
5950   rm -f conftest*
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5953 $as_echo "$lt_cv_nm_interface" >&6; }
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5956 $as_echo_n "checking whether ln -s works... " >&6; }
5957 LN_S=$as_ln_s
5958 if test "$LN_S" = "ln -s"; then
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5960 $as_echo "yes" >&6; }
5961 else
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5963 $as_echo "no, using $LN_S" >&6; }
5964 fi
5965
5966 # find the maximum length of command line arguments
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5968 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5969 if ${lt_cv_sys_max_cmd_len+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972     i=0
5973   teststring=ABCD
5974
5975   case $build_os in
5976   msdosdjgpp*)
5977     # On DJGPP, this test can blow up pretty badly due to problems in libc
5978     # (any single argument exceeding 2000 bytes causes a buffer overrun
5979     # during glob expansion).  Even if it were fixed, the result of this
5980     # check would be larger than it should be.
5981     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5982     ;;
5983
5984   gnu*)
5985     # Under GNU Hurd, this test is not required because there is
5986     # no limit to the length of command line arguments.
5987     # Libtool will interpret -1 as no limit whatsoever
5988     lt_cv_sys_max_cmd_len=-1;
5989     ;;
5990
5991   cygwin* | mingw* | cegcc*)
5992     # On Win9x/ME, this test blows up -- it succeeds, but takes
5993     # about 5 minutes as the teststring grows exponentially.
5994     # Worse, since 9x/ME are not pre-emptively multitasking,
5995     # you end up with a "frozen" computer, even though with patience
5996     # the test eventually succeeds (with a max line length of 256k).
5997     # Instead, let's just punt: use the minimum linelength reported by
5998     # all of the supported platforms: 8192 (on NT/2K/XP).
5999     lt_cv_sys_max_cmd_len=8192;
6000     ;;
6001
6002   mint*)
6003     # On MiNT this can take a long time and run out of memory.
6004     lt_cv_sys_max_cmd_len=8192;
6005     ;;
6006
6007   amigaos*)
6008     # On AmigaOS with pdksh, this test takes hours, literally.
6009     # So we just punt and use a minimum line length of 8192.
6010     lt_cv_sys_max_cmd_len=8192;
6011     ;;
6012
6013   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6014     # This has been around since 386BSD, at least.  Likely further.
6015     if test -x /sbin/sysctl; then
6016       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6017     elif test -x /usr/sbin/sysctl; then
6018       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6019     else
6020       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6021     fi
6022     # And add a safety zone
6023     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6024     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6025     ;;
6026
6027   interix*)
6028     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6029     lt_cv_sys_max_cmd_len=196608
6030     ;;
6031
6032   os2*)
6033     # The test takes a long time on OS/2.
6034     lt_cv_sys_max_cmd_len=8192
6035     ;;
6036
6037   osf*)
6038     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6039     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6040     # nice to cause kernel panics so lets avoid the loop below.
6041     # First set a reasonable default.
6042     lt_cv_sys_max_cmd_len=16384
6043     #
6044     if test -x /sbin/sysconfig; then
6045       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6046         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6047       esac
6048     fi
6049     ;;
6050   sco3.2v5*)
6051     lt_cv_sys_max_cmd_len=102400
6052     ;;
6053   sysv5* | sco5v6* | sysv4.2uw2*)
6054     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6055     if test -n "$kargmax"; then
6056       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
6057     else
6058       lt_cv_sys_max_cmd_len=32768
6059     fi
6060     ;;
6061   *)
6062     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6063     if test -n "$lt_cv_sys_max_cmd_len" && \
6064        test undefined != "$lt_cv_sys_max_cmd_len"; then
6065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067     else
6068       # Make teststring a little bigger before we do anything with it.
6069       # a 1K string should be a reasonable start.
6070       for i in 1 2 3 4 5 6 7 8; do
6071         teststring=$teststring$teststring
6072       done
6073       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074       # If test is not a shell built-in, we'll probably end up computing a
6075       # maximum length that is only half of the actual maximum length, but
6076       # we can't tell.
6077       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6078                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6079               test 17 != "$i" # 1/2 MB should be enough
6080       do
6081         i=`expr $i + 1`
6082         teststring=$teststring$teststring
6083       done
6084       # Only check the string length outside the loop.
6085       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6086       teststring=
6087       # Add a significant safety factor because C++ compilers can tack on
6088       # massive amounts of additional arguments before passing them to the
6089       # linker.  It appears as though 1/2 is a usable value.
6090       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6091     fi
6092     ;;
6093   esac
6094
6095 fi
6096
6097 if test -n "$lt_cv_sys_max_cmd_len"; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6102 $as_echo "none" >&6; }
6103 fi
6104 max_cmd_len=$lt_cv_sys_max_cmd_len
6105
6106
6107
6108
6109
6110
6111 : ${CP="cp -f"}
6112 : ${MV="mv -f"}
6113 : ${RM="rm -f"}
6114
6115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6116   lt_unset=unset
6117 else
6118   lt_unset=false
6119 fi
6120
6121
6122
6123
6124
6125 # test EBCDIC or ASCII
6126 case `echo X|tr X '\101'` in
6127  A) # ASCII based system
6128     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6129   lt_SP2NL='tr \040 \012'
6130   lt_NL2SP='tr \015\012 \040\040'
6131   ;;
6132  *) # EBCDIC based system
6133   lt_SP2NL='tr \100 \n'
6134   lt_NL2SP='tr \r\n \100\100'
6135   ;;
6136 esac
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6147 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6148 if ${lt_cv_to_host_file_cmd+:} false; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   case $host in
6152   *-*-mingw* )
6153     case $build in
6154       *-*-mingw* ) # actually msys
6155         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6156         ;;
6157       *-*-cygwin* )
6158         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6159         ;;
6160       * ) # otherwise, assume *nix
6161         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6162         ;;
6163     esac
6164     ;;
6165   *-*-cygwin* )
6166     case $build in
6167       *-*-mingw* ) # actually msys
6168         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6169         ;;
6170       *-*-cygwin* )
6171         lt_cv_to_host_file_cmd=func_convert_file_noop
6172         ;;
6173       * ) # otherwise, assume *nix
6174         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6175         ;;
6176     esac
6177     ;;
6178   * ) # unhandled hosts (and "normal" native builds)
6179     lt_cv_to_host_file_cmd=func_convert_file_noop
6180     ;;
6181 esac
6182
6183 fi
6184
6185 to_host_file_cmd=$lt_cv_to_host_file_cmd
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6187 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6188
6189
6190
6191
6192
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6194 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6195 if ${lt_cv_to_tool_file_cmd+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   #assume ordinary cross tools, or native build.
6199 lt_cv_to_tool_file_cmd=func_convert_file_noop
6200 case $host in
6201   *-*-mingw* )
6202     case $build in
6203       *-*-mingw* ) # actually msys
6204         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6205         ;;
6206     esac
6207     ;;
6208 esac
6209
6210 fi
6211
6212 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6214 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6215
6216
6217
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6221 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6222 if ${lt_cv_ld_reload_flag+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   lt_cv_ld_reload_flag='-r'
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6228 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6229 reload_flag=$lt_cv_ld_reload_flag
6230 case $reload_flag in
6231 "" | " "*) ;;
6232 *) reload_flag=" $reload_flag" ;;
6233 esac
6234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235 case $host_os in
6236   cygwin* | mingw* | pw32* | cegcc*)
6237     if test yes != "$GCC"; then
6238       reload_cmds=false
6239     fi
6240     ;;
6241   darwin*)
6242     if test yes = "$GCC"; then
6243       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6244     else
6245       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6246     fi
6247     ;;
6248 esac
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 if test -n "$ac_tool_prefix"; then
6259   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}file; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_FILECMD+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   if test -n "$FILECMD"; then
6267   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_exec_ext in '' $ac_executable_extensions; do
6275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281   done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 FILECMD=$ac_cv_prog_FILECMD
6287 if test -n "$FILECMD"; then
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6289 $as_echo "$FILECMD" >&6; }
6290 else
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295
6296 fi
6297 if test -z "$ac_cv_prog_FILECMD"; then
6298   ac_ct_FILECMD=$FILECMD
6299   # Extract the first word of "file", so it can be a program name with args.
6300 set dummy file; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_ac_ct_FILECMD+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$ac_ct_FILECMD"; then
6307   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_exec_ext in '' $ac_executable_extensions; do
6315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316     ac_cv_prog_ac_ct_FILECMD="file"
6317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321   done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6327 if test -n "$ac_ct_FILECMD"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6329 $as_echo "$ac_ct_FILECMD" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335   if test "x$ac_ct_FILECMD" = x; then
6336     FILECMD=":"
6337   else
6338     case $cross_compiling:$ac_tool_warned in
6339 yes:)
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342 ac_tool_warned=yes ;;
6343 esac
6344     FILECMD=$ac_ct_FILECMD
6345   fi
6346 else
6347   FILECMD="$ac_cv_prog_FILECMD"
6348 fi
6349
6350
6351
6352
6353
6354
6355
6356 if test -n "$ac_tool_prefix"; then
6357   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_OBJDUMP+:} false; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364   if test -n "$OBJDUMP"; then
6365   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372     for ac_exec_ext in '' $ac_executable_extensions; do
6373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379   done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 OBJDUMP=$ac_cv_prog_OBJDUMP
6385 if test -n "$OBJDUMP"; then
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6387 $as_echo "$OBJDUMP" >&6; }
6388 else
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393
6394 fi
6395 if test -z "$ac_cv_prog_OBJDUMP"; then
6396   ac_ct_OBJDUMP=$OBJDUMP
6397   # Extract the first word of "objdump", so it can be a program name with args.
6398 set dummy objdump; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_OBJDUMP"; then
6405   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6425 if test -n "$ac_ct_OBJDUMP"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6427 $as_echo "$ac_ct_OBJDUMP" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433   if test "x$ac_ct_OBJDUMP" = x; then
6434     OBJDUMP="false"
6435   else
6436     case $cross_compiling:$ac_tool_warned in
6437 yes:)
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442     OBJDUMP=$ac_ct_OBJDUMP
6443   fi
6444 else
6445   OBJDUMP="$ac_cv_prog_OBJDUMP"
6446 fi
6447
6448 test -z "$OBJDUMP" && OBJDUMP=objdump
6449
6450
6451
6452
6453
6454
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6456 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6457 if ${lt_cv_deplibs_check_method+:} false; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   lt_cv_file_magic_cmd='$MAGIC_CMD'
6461 lt_cv_file_magic_test_file=
6462 lt_cv_deplibs_check_method='unknown'
6463 # Need to set the preceding variable on all platforms that support
6464 # interlibrary dependencies.
6465 # 'none' -- dependencies not supported.
6466 # 'unknown' -- same as none, but documents that we really don't know.
6467 # 'pass_all' -- all dependencies passed with no checks.
6468 # 'test_compile' -- check by making test program.
6469 # 'file_magic [[regex]]' -- check by looking for files in library path
6470 # that responds to the $file_magic_cmd with a given extended regex.
6471 # If you have 'file' or equivalent on your system and you're not sure
6472 # whether 'pass_all' will *always* work, you probably want this one.
6473
6474 case $host_os in
6475 aix[4-9]*)
6476   lt_cv_deplibs_check_method=pass_all
6477   ;;
6478
6479 beos*)
6480   lt_cv_deplibs_check_method=pass_all
6481   ;;
6482
6483 bsdi[45]*)
6484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6485   lt_cv_file_magic_cmd='$FILECMD -L'
6486   lt_cv_file_magic_test_file=/shlib/libc.so
6487   ;;
6488
6489 cygwin*)
6490   # func_win32_libid is a shell function defined in ltmain.sh
6491   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6492   lt_cv_file_magic_cmd='func_win32_libid'
6493   ;;
6494
6495 mingw* | pw32*)
6496   # Base MSYS/MinGW do not provide the 'file' command needed by
6497   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6498   # unless we find 'file', for example because we are cross-compiling.
6499   if ( file / ) >/dev/null 2>&1; then
6500     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6501     lt_cv_file_magic_cmd='func_win32_libid'
6502   else
6503     # Keep this pattern in sync with the one in func_win32_libid.
6504     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6505     lt_cv_file_magic_cmd='$OBJDUMP -f'
6506   fi
6507   ;;
6508
6509 cegcc*)
6510   # use the weaker test based on 'objdump'. See mingw*.
6511   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6512   lt_cv_file_magic_cmd='$OBJDUMP -f'
6513   ;;
6514
6515 darwin* | rhapsody*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 freebsd* | dragonfly* | midnightbsd*)
6520   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6521     case $host_cpu in
6522     i*86 )
6523       # Not sure whether the presence of OpenBSD here was a mistake.
6524       # Let's accept both of them until this is cleared up.
6525       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6526       lt_cv_file_magic_cmd=$FILECMD
6527       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6528       ;;
6529     esac
6530   else
6531     lt_cv_deplibs_check_method=pass_all
6532   fi
6533   ;;
6534
6535 haiku*)
6536   lt_cv_deplibs_check_method=pass_all
6537   ;;
6538
6539 hpux10.20* | hpux11*)
6540   lt_cv_file_magic_cmd=$FILECMD
6541   case $host_cpu in
6542   ia64*)
6543     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6544     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6545     ;;
6546   hppa*64*)
6547     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]'
6548     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6549     ;;
6550   *)
6551     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6552     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6553     ;;
6554   esac
6555   ;;
6556
6557 interix[3-9]*)
6558   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6559   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6560   ;;
6561
6562 irix5* | irix6* | nonstopux*)
6563   case $LD in
6564   *-32|*"-32 ") libmagic=32-bit;;
6565   *-n32|*"-n32 ") libmagic=N32;;
6566   *-64|*"-64 ") libmagic=64-bit;;
6567   *) libmagic=never-match;;
6568   esac
6569   lt_cv_deplibs_check_method=pass_all
6570   ;;
6571
6572 # This must be glibc/ELF.
6573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6574   lt_cv_deplibs_check_method=pass_all
6575   ;;
6576
6577 netbsd*)
6578   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6580   else
6581     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6582   fi
6583   ;;
6584
6585 newos6*)
6586   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6587   lt_cv_file_magic_cmd=$FILECMD
6588   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6589   ;;
6590
6591 *nto* | *qnx*)
6592   lt_cv_deplibs_check_method=pass_all
6593   ;;
6594
6595 openbsd* | bitrig*)
6596   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6598   else
6599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6600   fi
6601   ;;
6602
6603 osf3* | osf4* | osf5*)
6604   lt_cv_deplibs_check_method=pass_all
6605   ;;
6606
6607 rdos*)
6608   lt_cv_deplibs_check_method=pass_all
6609   ;;
6610
6611 solaris*)
6612   lt_cv_deplibs_check_method=pass_all
6613   ;;
6614
6615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6616   lt_cv_deplibs_check_method=pass_all
6617   ;;
6618
6619 sysv4 | sysv4.3*)
6620   case $host_vendor in
6621   motorola)
6622     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]'
6623     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6624     ;;
6625   ncr)
6626     lt_cv_deplibs_check_method=pass_all
6627     ;;
6628   sequent)
6629     lt_cv_file_magic_cmd='/bin/file'
6630     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6631     ;;
6632   sni)
6633     lt_cv_file_magic_cmd='/bin/file'
6634     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6635     lt_cv_file_magic_test_file=/lib/libc.so
6636     ;;
6637   siemens)
6638     lt_cv_deplibs_check_method=pass_all
6639     ;;
6640   pc)
6641     lt_cv_deplibs_check_method=pass_all
6642     ;;
6643   esac
6644   ;;
6645
6646 tpf*)
6647   lt_cv_deplibs_check_method=pass_all
6648   ;;
6649 os2*)
6650   lt_cv_deplibs_check_method=pass_all
6651   ;;
6652 esac
6653
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6656 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6657
6658 file_magic_glob=
6659 want_nocaseglob=no
6660 if test "$build" = "$host"; then
6661   case $host_os in
6662   mingw* | pw32*)
6663     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6664       want_nocaseglob=yes
6665     else
6666       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6667     fi
6668     ;;
6669   esac
6670 fi
6671
6672 file_magic_cmd=$lt_cv_file_magic_cmd
6673 deplibs_check_method=$lt_cv_deplibs_check_method
6674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697 if test -n "$ac_tool_prefix"; then
6698   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_DLLTOOL+:} false; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   if test -n "$DLLTOOL"; then
6706   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713     for ac_exec_ext in '' $ac_executable_extensions; do
6714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720   done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 DLLTOOL=$ac_cv_prog_DLLTOOL
6726 if test -n "$DLLTOOL"; then
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6728 $as_echo "$DLLTOOL" >&6; }
6729 else
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734
6735 fi
6736 if test -z "$ac_cv_prog_DLLTOOL"; then
6737   ac_ct_DLLTOOL=$DLLTOOL
6738   # Extract the first word of "dlltool", so it can be a program name with args.
6739 set dummy dlltool; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6743   $as_echo_n "(cached) " >&6
6744 else
6745   if test -n "$ac_ct_DLLTOOL"; then
6746   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751   IFS=$as_save_IFS
6752   test -z "$as_dir" && as_dir=.
6753     for ac_exec_ext in '' $ac_executable_extensions; do
6754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757     break 2
6758   fi
6759 done
6760   done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6766 if test -n "$ac_ct_DLLTOOL"; then
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6768 $as_echo "$ac_ct_DLLTOOL" >&6; }
6769 else
6770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774   if test "x$ac_ct_DLLTOOL" = x; then
6775     DLLTOOL="false"
6776   else
6777     case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783     DLLTOOL=$ac_ct_DLLTOOL
6784   fi
6785 else
6786   DLLTOOL="$ac_cv_prog_DLLTOOL"
6787 fi
6788
6789 test -z "$DLLTOOL" && DLLTOOL=dlltool
6790
6791
6792
6793
6794
6795
6796
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6798 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6799 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   lt_cv_sharedlib_from_linklib_cmd='unknown'
6803
6804 case $host_os in
6805 cygwin* | mingw* | pw32* | cegcc*)
6806   # two different shell functions defined in ltmain.sh;
6807   # decide which one to use based on capabilities of $DLLTOOL
6808   case `$DLLTOOL --help 2>&1` in
6809   *--identify-strict*)
6810     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6811     ;;
6812   *)
6813     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6814     ;;
6815   esac
6816   ;;
6817 *)
6818   # fallback: assume linklib IS sharedlib
6819   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6820   ;;
6821 esac
6822
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6825 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6826 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6827 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6828
6829
6830
6831
6832
6833
6834
6835 if test -n "$ac_tool_prefix"; then
6836   for ac_prog in ar
6837   do
6838     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_AR+:} false; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$AR"; then
6846   ac_cv_prog_AR="$AR" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853     for ac_exec_ext in '' $ac_executable_extensions; do
6854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860   done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 AR=$ac_cv_prog_AR
6866 if test -n "$AR"; then
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6868 $as_echo "$AR" >&6; }
6869 else
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874
6875     test -n "$AR" && break
6876   done
6877 fi
6878 if test -z "$AR"; then
6879   ac_ct_AR=$AR
6880   for ac_prog in ar
6881 do
6882   # Extract the first word of "$ac_prog", so it can be a program name with args.
6883 set dummy $ac_prog; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   if test -n "$ac_ct_AR"; then
6890   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897     for ac_exec_ext in '' $ac_executable_extensions; do
6898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899     ac_cv_prog_ac_ct_AR="$ac_prog"
6900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904   done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6910 if test -n "$ac_ct_AR"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6912 $as_echo "$ac_ct_AR" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918
6919   test -n "$ac_ct_AR" && break
6920 done
6921
6922   if test "x$ac_ct_AR" = x; then
6923     AR="false"
6924   else
6925     case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931     AR=$ac_ct_AR
6932   fi
6933 fi
6934
6935 : ${AR=ar}
6936
6937
6938
6939
6940
6941
6942 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6943 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6944 # higher priority because thats what people were doing historically (setting
6945 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6946 # variable obsoleted/removed.
6947
6948 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6949 lt_ar_flags=$AR_FLAGS
6950
6951
6952
6953
6954
6955
6956 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6957 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6958
6959
6960
6961
6962
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6965 $as_echo_n "checking for archiver @FILE support... " >&6; }
6966 if ${lt_cv_ar_at_file+:} false; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   lt_cv_ar_at_file=no
6970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h.  */
6972
6973 int
6974 main ()
6975 {
6976
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 if ac_fn_c_try_compile "$LINENO"; then :
6982   echo conftest.$ac_objext > conftest.lst
6983       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6984       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6985   (eval $lt_ar_try) 2>&5
6986   ac_status=$?
6987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6988   test $ac_status = 0; }
6989       if test 0 -eq "$ac_status"; then
6990         # Ensure the archiver fails upon bogus file names.
6991         rm -f conftest.$ac_objext libconftest.a
6992         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6993   (eval $lt_ar_try) 2>&5
6994   ac_status=$?
6995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996   test $ac_status = 0; }
6997         if test 0 -ne "$ac_status"; then
6998           lt_cv_ar_at_file=@
6999         fi
7000       fi
7001       rm -f conftest.* libconftest.a
7002
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005
7006 fi
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7008 $as_echo "$lt_cv_ar_at_file" >&6; }
7009
7010 if test no = "$lt_cv_ar_at_file"; then
7011   archiver_list_spec=
7012 else
7013   archiver_list_spec=$lt_cv_ar_at_file
7014 fi
7015
7016
7017
7018
7019
7020
7021
7022 if test -n "$ac_tool_prefix"; then
7023   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}strip; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_STRIP+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   if test -n "$STRIP"; then
7031   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038     for ac_exec_ext in '' $ac_executable_extensions; do
7039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045   done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 STRIP=$ac_cv_prog_STRIP
7051 if test -n "$STRIP"; then
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7053 $as_echo "$STRIP" >&6; }
7054 else
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059
7060 fi
7061 if test -z "$ac_cv_prog_STRIP"; then
7062   ac_ct_STRIP=$STRIP
7063   # Extract the first word of "strip", so it can be a program name with args.
7064 set dummy strip; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -n "$ac_ct_STRIP"; then
7071   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080     ac_cv_prog_ac_ct_STRIP="strip"
7081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7091 if test -n "$ac_ct_STRIP"; then
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7093 $as_echo "$ac_ct_STRIP" >&6; }
7094 else
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099   if test "x$ac_ct_STRIP" = x; then
7100     STRIP=":"
7101   else
7102     case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106 ac_tool_warned=yes ;;
7107 esac
7108     STRIP=$ac_ct_STRIP
7109   fi
7110 else
7111   STRIP="$ac_cv_prog_STRIP"
7112 fi
7113
7114 test -z "$STRIP" && STRIP=:
7115
7116
7117
7118
7119
7120
7121 if test -n "$ac_tool_prefix"; then
7122   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_RANLIB+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$RANLIB"; then
7130   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 RANLIB=$ac_cv_prog_RANLIB
7150 if test -n "$RANLIB"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7152 $as_echo "$RANLIB" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158
7159 fi
7160 if test -z "$ac_cv_prog_RANLIB"; then
7161   ac_ct_RANLIB=$RANLIB
7162   # Extract the first word of "ranlib", so it can be a program name with args.
7163 set dummy ranlib; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$ac_ct_RANLIB"; then
7170   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179     ac_cv_prog_ac_ct_RANLIB="ranlib"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7190 if test -n "$ac_ct_RANLIB"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7192 $as_echo "$ac_ct_RANLIB" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198   if test "x$ac_ct_RANLIB" = x; then
7199     RANLIB=":"
7200   else
7201     case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207     RANLIB=$ac_ct_RANLIB
7208   fi
7209 else
7210   RANLIB="$ac_cv_prog_RANLIB"
7211 fi
7212
7213 test -z "$RANLIB" && RANLIB=:
7214
7215
7216
7217
7218
7219
7220 # Determine commands to create old-style static archives.
7221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7222 old_postinstall_cmds='chmod 644 $oldlib'
7223 old_postuninstall_cmds=
7224
7225 if test -n "$RANLIB"; then
7226   case $host_os in
7227   bitrig* | openbsd*)
7228     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7229     ;;
7230   *)
7231     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7232     ;;
7233   esac
7234   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7235 fi
7236
7237 case $host_os in
7238   darwin*)
7239     lock_old_archive_extraction=yes ;;
7240   *)
7241     lock_old_archive_extraction=no ;;
7242 esac
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282 # If no C compiler was specified, use CC.
7283 LTCC=${LTCC-"$CC"}
7284
7285 # If no C compiler flags were specified, use CFLAGS.
7286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7287
7288 # Allow CC to be a program name with arguments.
7289 compiler=$CC
7290
7291
7292 # Check for command to grab the raw symbol name followed by C symbol from nm.
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7294 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7295 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298
7299 # These are sane defaults that work on at least a few old systems.
7300 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7301
7302 # Character class describing NM global symbol codes.
7303 symcode='[BCDEGRST]'
7304
7305 # Regexp to match symbols that can be accessed directly from C.
7306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7307
7308 # Define system-specific variables.
7309 case $host_os in
7310 aix*)
7311   symcode='[BCDT]'
7312   ;;
7313 cygwin* | mingw* | pw32* | cegcc*)
7314   symcode='[ABCDGISTW]'
7315   ;;
7316 hpux*)
7317   if test ia64 = "$host_cpu"; then
7318     symcode='[ABCDEGRST]'
7319   fi
7320   ;;
7321 irix* | nonstopux*)
7322   symcode='[BCDEGRST]'
7323   ;;
7324 osf*)
7325   symcode='[BCDEGQRST]'
7326   ;;
7327 solaris*)
7328   symcode='[BDRT]'
7329   ;;
7330 sco3.2v5*)
7331   symcode='[DT]'
7332   ;;
7333 sysv4.2uw2*)
7334   symcode='[DT]'
7335   ;;
7336 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7337   symcode='[ABDT]'
7338   ;;
7339 sysv4)
7340   symcode='[DFNSTU]'
7341   ;;
7342 esac
7343
7344 # If we're using GNU nm, then use its standard symbol codes.
7345 case `$NM -V 2>&1` in
7346 *GNU* | *'with BFD'*)
7347   symcode='[ABCDGIRSTW]' ;;
7348 esac
7349
7350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7351   # Gets list of data symbols to import.
7352   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7353   # Adjust the below global symbol transforms to fixup imported variables.
7354   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7355   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7356   lt_c_name_lib_hook="\
7357   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7358   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7359 else
7360   # Disable hooks by default.
7361   lt_cv_sys_global_symbol_to_import=
7362   lt_cdecl_hook=
7363   lt_c_name_hook=
7364   lt_c_name_lib_hook=
7365 fi
7366
7367 # Transform an extracted symbol line into a proper C declaration.
7368 # Some systems (esp. on ia64) link data and code symbols differently,
7369 # so use this general approach.
7370 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7371 $lt_cdecl_hook\
7372 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7373 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7374
7375 # Transform an extracted symbol line into symbol name and symbol address
7376 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7377 $lt_c_name_hook\
7378 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7379 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7380
7381 # Transform an extracted symbol line into symbol name with lib prefix and
7382 # symbol address.
7383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7384 $lt_c_name_lib_hook\
7385 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7386 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7387 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7388
7389 # Handle CRLF in mingw tool chain
7390 opt_cr=
7391 case $build_os in
7392 mingw*)
7393   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7394   ;;
7395 esac
7396
7397 # Try without a prefix underscore, then with it.
7398 for ac_symprfx in "" "_"; do
7399
7400   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7401   symxfrm="\\1 $ac_symprfx\\2 \\2"
7402
7403   # Write the raw and C identifiers.
7404   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7405     # Fake it for dumpbin and say T for any non-static function,
7406     # D for any global variable and I for any imported variable.
7407     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7408     # which start with @ or ?.
7409     lt_cv_sys_global_symbol_pipe="$AWK '"\
7410 "     {last_section=section; section=\$ 3};"\
7411 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7412 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7413 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7414 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7415 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7416 "     \$ 0!~/External *\|/{next};"\
7417 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7418 "     {if(hide[section]) next};"\
7419 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7420 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7421 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7422 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7423 "     ' prfx=^$ac_symprfx"
7424   else
7425     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7426   fi
7427   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7428
7429   # Check to see that the pipe works correctly.
7430   pipe_works=no
7431
7432   rm -f conftest*
7433   cat > conftest.$ac_ext <<_LT_EOF
7434 #ifdef __cplusplus
7435 extern "C" {
7436 #endif
7437 char nm_test_var;
7438 void nm_test_func(void);
7439 void nm_test_func(void){}
7440 #ifdef __cplusplus
7441 }
7442 #endif
7443 int main(){nm_test_var='a';nm_test_func();return(0);}
7444 _LT_EOF
7445
7446   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7447   (eval $ac_compile) 2>&5
7448   ac_status=$?
7449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450   test $ac_status = 0; }; then
7451     # Now try to grab the symbols.
7452     nlist=conftest.nm
7453     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7454   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7455   ac_status=$?
7456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457   test $ac_status = 0; } && test -s "$nlist"; then
7458       # Try sorting and uniquifying the output.
7459       if sort "$nlist" | uniq > "$nlist"T; then
7460         mv -f "$nlist"T "$nlist"
7461       else
7462         rm -f "$nlist"T
7463       fi
7464
7465       # Make sure that we snagged all the symbols we need.
7466       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7467         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7468           cat <<_LT_EOF > conftest.$ac_ext
7469 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7470 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7471 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7472    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7473 # define LT_DLSYM_CONST
7474 #elif defined __osf__
7475 /* This system does not cope well with relocations in const data.  */
7476 # define LT_DLSYM_CONST
7477 #else
7478 # define LT_DLSYM_CONST const
7479 #endif
7480
7481 #ifdef __cplusplus
7482 extern "C" {
7483 #endif
7484
7485 _LT_EOF
7486           # Now generate the symbol file.
7487           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7488
7489           cat <<_LT_EOF >> conftest.$ac_ext
7490
7491 /* The mapping between symbol names and symbols.  */
7492 LT_DLSYM_CONST struct {
7493   const char *name;
7494   void       *address;
7495 }
7496 lt__PROGRAM__LTX_preloaded_symbols[] =
7497 {
7498   { "@PROGRAM@", (void *) 0 },
7499 _LT_EOF
7500           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7501           cat <<\_LT_EOF >> conftest.$ac_ext
7502   {0, (void *) 0}
7503 };
7504
7505 /* This works around a problem in FreeBSD linker */
7506 #ifdef FREEBSD_WORKAROUND
7507 static const void *lt_preloaded_setup() {
7508   return lt__PROGRAM__LTX_preloaded_symbols;
7509 }
7510 #endif
7511
7512 #ifdef __cplusplus
7513 }
7514 #endif
7515 _LT_EOF
7516           # Now try linking the two files.
7517           mv conftest.$ac_objext conftstm.$ac_objext
7518           lt_globsym_save_LIBS=$LIBS
7519           lt_globsym_save_CFLAGS=$CFLAGS
7520           LIBS=conftstm.$ac_objext
7521           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7522           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7523   (eval $ac_link) 2>&5
7524   ac_status=$?
7525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7527             pipe_works=yes
7528           fi
7529           LIBS=$lt_globsym_save_LIBS
7530           CFLAGS=$lt_globsym_save_CFLAGS
7531         else
7532           echo "cannot find nm_test_func in $nlist" >&5
7533         fi
7534       else
7535         echo "cannot find nm_test_var in $nlist" >&5
7536       fi
7537     else
7538       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7539     fi
7540   else
7541     echo "$progname: failed program was:" >&5
7542     cat conftest.$ac_ext >&5
7543   fi
7544   rm -rf conftest* conftst*
7545
7546   # Do not use the global_symbol_pipe unless it works.
7547   if test yes = "$pipe_works"; then
7548     break
7549   else
7550     lt_cv_sys_global_symbol_pipe=
7551   fi
7552 done
7553
7554 fi
7555
7556 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7557   lt_cv_sys_global_symbol_to_cdecl=
7558 fi
7559 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7561 $as_echo "failed" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7564 $as_echo "ok" >&6; }
7565 fi
7566
7567 # Response file support.
7568 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7569   nm_file_list_spec='@'
7570 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7571   nm_file_list_spec='@'
7572 fi
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7611 $as_echo_n "checking for sysroot... " >&6; }
7612
7613 # Check whether --with-sysroot was given.
7614 if test "${with_sysroot+set}" = set; then :
7615   withval=$with_sysroot;
7616 else
7617   with_sysroot=no
7618 fi
7619
7620
7621 lt_sysroot=
7622 case $with_sysroot in #(
7623  yes)
7624    if test yes = "$GCC"; then
7625      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7626    fi
7627    ;; #(
7628  /*)
7629    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7630    ;; #(
7631  no|'')
7632    ;; #(
7633  *)
7634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7635 $as_echo "$with_sysroot" >&6; }
7636    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7637    ;;
7638 esac
7639
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7641 $as_echo "${lt_sysroot:-no}" >&6; }
7642
7643
7644
7645
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7648 $as_echo_n "checking for a working dd... " >&6; }
7649 if ${ac_cv_path_lt_DD+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   printf 0123456789abcdef0123456789abcdef >conftest.i
7653 cat conftest.i conftest.i >conftest2.i
7654 : ${lt_DD:=$DD}
7655 if test -z "$lt_DD"; then
7656   ac_path_lt_DD_found=false
7657   # Loop through the user's path and test for each of PROGNAME-LIST
7658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663     for ac_prog in dd; do
7664     for ac_exec_ext in '' $ac_executable_extensions; do
7665       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7666       as_fn_executable_p "$ac_path_lt_DD" || continue
7667 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7668   cmp -s conftest.i conftest.out \
7669   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7670 fi
7671       $ac_path_lt_DD_found && break 3
7672     done
7673   done
7674   done
7675 IFS=$as_save_IFS
7676   if test -z "$ac_cv_path_lt_DD"; then
7677     :
7678   fi
7679 else
7680   ac_cv_path_lt_DD=$lt_DD
7681 fi
7682
7683 rm -f conftest.i conftest2.i conftest.out
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7686 $as_echo "$ac_cv_path_lt_DD" >&6; }
7687
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7690 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7691 if ${lt_cv_truncate_bin+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   printf 0123456789abcdef0123456789abcdef >conftest.i
7695 cat conftest.i conftest.i >conftest2.i
7696 lt_cv_truncate_bin=
7697 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7698   cmp -s conftest.i conftest.out \
7699   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7700 fi
7701 rm -f conftest.i conftest2.i conftest.out
7702 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7705 $as_echo "$lt_cv_truncate_bin" >&6; }
7706
7707
7708
7709
7710
7711
7712
7713 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7714 func_cc_basename ()
7715 {
7716     for cc_temp in $*""; do
7717       case $cc_temp in
7718         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7719         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7720         \-*) ;;
7721         *) break;;
7722       esac
7723     done
7724     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7725 }
7726
7727 # Check whether --enable-libtool-lock was given.
7728 if test "${enable_libtool_lock+set}" = set; then :
7729   enableval=$enable_libtool_lock;
7730 fi
7731
7732 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7733
7734 # Some flags need to be propagated to the compiler or linker for good
7735 # libtool support.
7736 case $host in
7737 ia64-*-hpux*)
7738   # Find out what ABI is being produced by ac_compile, and set mode
7739   # options accordingly.
7740   echo 'int i;' > conftest.$ac_ext
7741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742   (eval $ac_compile) 2>&5
7743   ac_status=$?
7744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745   test $ac_status = 0; }; then
7746     case `$FILECMD conftest.$ac_objext` in
7747       *ELF-32*)
7748         HPUX_IA64_MODE=32
7749         ;;
7750       *ELF-64*)
7751         HPUX_IA64_MODE=64
7752         ;;
7753     esac
7754   fi
7755   rm -rf conftest*
7756   ;;
7757 *-*-irix6*)
7758   # Find out what ABI is being produced by ac_compile, and set linker
7759   # options accordingly.
7760   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7761   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762   (eval $ac_compile) 2>&5
7763   ac_status=$?
7764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765   test $ac_status = 0; }; then
7766     if test yes = "$lt_cv_prog_gnu_ld"; then
7767       case `$FILECMD conftest.$ac_objext` in
7768         *32-bit*)
7769           LD="${LD-ld} -melf32bsmip"
7770           ;;
7771         *N32*)
7772           LD="${LD-ld} -melf32bmipn32"
7773           ;;
7774         *64-bit*)
7775           LD="${LD-ld} -melf64bmip"
7776         ;;
7777       esac
7778     else
7779       case `$FILECMD conftest.$ac_objext` in
7780         *32-bit*)
7781           LD="${LD-ld} -32"
7782           ;;
7783         *N32*)
7784           LD="${LD-ld} -n32"
7785           ;;
7786         *64-bit*)
7787           LD="${LD-ld} -64"
7788           ;;
7789       esac
7790     fi
7791   fi
7792   rm -rf conftest*
7793   ;;
7794
7795 mips64*-*linux*)
7796   # Find out what ABI is being produced by ac_compile, and set linker
7797   # options accordingly.
7798   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800   (eval $ac_compile) 2>&5
7801   ac_status=$?
7802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803   test $ac_status = 0; }; then
7804     emul=elf
7805     case `$FILECMD conftest.$ac_objext` in
7806       *32-bit*)
7807         emul="${emul}32"
7808         ;;
7809       *64-bit*)
7810         emul="${emul}64"
7811         ;;
7812     esac
7813     case `$FILECMD conftest.$ac_objext` in
7814       *MSB*)
7815         emul="${emul}btsmip"
7816         ;;
7817       *LSB*)
7818         emul="${emul}ltsmip"
7819         ;;
7820     esac
7821     case `$FILECMD conftest.$ac_objext` in
7822       *N32*)
7823         emul="${emul}n32"
7824         ;;
7825     esac
7826     LD="${LD-ld} -m $emul"
7827   fi
7828   rm -rf conftest*
7829   ;;
7830
7831 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7832 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7833   # Find out what ABI is being produced by ac_compile, and set linker
7834   # options accordingly.  Note that the listed cases only cover the
7835   # situations where additional linker options are needed (such as when
7836   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7837   # vice versa); the common cases where no linker options are needed do
7838   # not appear in the list.
7839   echo 'int i;' > conftest.$ac_ext
7840   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7841   (eval $ac_compile) 2>&5
7842   ac_status=$?
7843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844   test $ac_status = 0; }; then
7845     case `$FILECMD conftest.o` in
7846       *32-bit*)
7847         case $host in
7848           x86_64-*kfreebsd*-gnu)
7849             LD="${LD-ld} -m elf_i386_fbsd"
7850             ;;
7851           x86_64-*linux*)
7852             case `$FILECMD conftest.o` in
7853               *x86-64*)
7854                 LD="${LD-ld} -m elf32_x86_64"
7855                 ;;
7856               *)
7857                 LD="${LD-ld} -m elf_i386"
7858                 ;;
7859             esac
7860             ;;
7861           powerpc64le-*linux*)
7862             LD="${LD-ld} -m elf32lppclinux"
7863             ;;
7864           powerpc64-*linux*)
7865             LD="${LD-ld} -m elf32ppclinux"
7866             ;;
7867           s390x-*linux*)
7868             LD="${LD-ld} -m elf_s390"
7869             ;;
7870           sparc64-*linux*)
7871             LD="${LD-ld} -m elf32_sparc"
7872             ;;
7873         esac
7874         ;;
7875       *64-bit*)
7876         case $host in
7877           x86_64-*kfreebsd*-gnu)
7878             LD="${LD-ld} -m elf_x86_64_fbsd"
7879             ;;
7880           x86_64-*linux*)
7881             LD="${LD-ld} -m elf_x86_64"
7882             ;;
7883           powerpcle-*linux*)
7884             LD="${LD-ld} -m elf64lppc"
7885             ;;
7886           powerpc-*linux*)
7887             LD="${LD-ld} -m elf64ppc"
7888             ;;
7889           s390*-*linux*|s390*-*tpf*)
7890             LD="${LD-ld} -m elf64_s390"
7891             ;;
7892           sparc*-*linux*)
7893             LD="${LD-ld} -m elf64_sparc"
7894             ;;
7895         esac
7896         ;;
7897     esac
7898   fi
7899   rm -rf conftest*
7900   ;;
7901
7902 *-*-sco3.2v5*)
7903   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7904   SAVE_CFLAGS=$CFLAGS
7905   CFLAGS="$CFLAGS -belf"
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7907 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7908 if ${lt_cv_cc_needs_belf+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   ac_ext=c
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916
7917      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h.  */
7919
7920 int
7921 main ()
7922 {
7923
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 if ac_fn_c_try_link "$LINENO"; then :
7929   lt_cv_cc_needs_belf=yes
7930 else
7931   lt_cv_cc_needs_belf=no
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext \
7934     conftest$ac_exeext conftest.$ac_ext
7935      ac_ext=c
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7943 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7944   if test yes != "$lt_cv_cc_needs_belf"; then
7945     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7946     CFLAGS=$SAVE_CFLAGS
7947   fi
7948   ;;
7949 *-*solaris*)
7950   # Find out what ABI is being produced by ac_compile, and set linker
7951   # options accordingly.
7952   echo 'int i;' > conftest.$ac_ext
7953   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7954   (eval $ac_compile) 2>&5
7955   ac_status=$?
7956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957   test $ac_status = 0; }; then
7958     case `$FILECMD conftest.o` in
7959     *64-bit*)
7960       case $lt_cv_prog_gnu_ld in
7961       yes*)
7962         case $host in
7963         i?86-*-solaris*|x86_64-*-solaris*)
7964           LD="${LD-ld} -m elf_x86_64"
7965           ;;
7966         sparc*-*-solaris*)
7967           LD="${LD-ld} -m elf64_sparc"
7968           ;;
7969         esac
7970         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7971         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7972           LD=${LD-ld}_sol2
7973         fi
7974         ;;
7975       *)
7976         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7977           LD="${LD-ld} -64"
7978         fi
7979         ;;
7980       esac
7981       ;;
7982     esac
7983   fi
7984   rm -rf conftest*
7985   ;;
7986 esac
7987
7988 need_locks=$enable_libtool_lock
7989
7990 if test -n "$ac_tool_prefix"; then
7991   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}mt; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   if test -n "$MANIFEST_TOOL"; then
7999   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   test -z "$as_dir" && as_dir=.
8006     for ac_exec_ext in '' $ac_executable_extensions; do
8007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010     break 2
8011   fi
8012 done
8013   done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8019 if test -n "$MANIFEST_TOOL"; then
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8021 $as_echo "$MANIFEST_TOOL" >&6; }
8022 else
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8030   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8031   # Extract the first word of "mt", so it can be a program name with args.
8032 set dummy mt; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   if test -n "$ac_ct_MANIFEST_TOOL"; then
8039   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8059 if test -n "$ac_ct_MANIFEST_TOOL"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8061 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8068     MANIFEST_TOOL=":"
8069   else
8070     case $cross_compiling:$ac_tool_warned in
8071 yes:)
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8077   fi
8078 else
8079   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8080 fi
8081
8082 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8084 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8085 if ${lt_cv_path_mainfest_tool+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   lt_cv_path_mainfest_tool=no
8089   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8090   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8091   cat conftest.err >&5
8092   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8093     lt_cv_path_mainfest_tool=yes
8094   fi
8095   rm -f conftest*
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8098 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8099 if test yes != "$lt_cv_path_mainfest_tool"; then
8100   MANIFEST_TOOL=:
8101 fi
8102
8103
8104
8105
8106
8107
8108   case $host_os in
8109     rhapsody* | darwin*)
8110     if test -n "$ac_tool_prefix"; then
8111   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   if test -n "$DSYMUTIL"; then
8119   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126     for ac_exec_ext in '' $ac_executable_extensions; do
8127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133   done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8139 if test -n "$DSYMUTIL"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8141 $as_echo "$DSYMUTIL" >&6; }
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_DSYMUTIL"; then
8150   ac_ct_DSYMUTIL=$DSYMUTIL
8151   # Extract the first word of "dsymutil", so it can be a program name with args.
8152 set dummy dsymutil; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   if test -n "$ac_ct_DSYMUTIL"; then
8159   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166     for ac_exec_ext in '' $ac_executable_extensions; do
8167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173   done
8174 IFS=$as_save_IFS
8175
8176 fi
8177 fi
8178 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8179 if test -n "$ac_ct_DSYMUTIL"; then
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8181 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8182 else
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8185 fi
8186
8187   if test "x$ac_ct_DSYMUTIL" = x; then
8188     DSYMUTIL=":"
8189   else
8190     case $cross_compiling:$ac_tool_warned in
8191 yes:)
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8195 esac
8196     DSYMUTIL=$ac_ct_DSYMUTIL
8197   fi
8198 else
8199   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8200 fi
8201
8202     if test -n "$ac_tool_prefix"; then
8203   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8204 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_NMEDIT+:} false; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   if test -n "$NMEDIT"; then
8211   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216   IFS=$as_save_IFS
8217   test -z "$as_dir" && as_dir=.
8218     for ac_exec_ext in '' $ac_executable_extensions; do
8219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222     break 2
8223   fi
8224 done
8225   done
8226 IFS=$as_save_IFS
8227
8228 fi
8229 fi
8230 NMEDIT=$ac_cv_prog_NMEDIT
8231 if test -n "$NMEDIT"; then
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8233 $as_echo "$NMEDIT" >&6; }
8234 else
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239
8240 fi
8241 if test -z "$ac_cv_prog_NMEDIT"; then
8242   ac_ct_NMEDIT=$NMEDIT
8243   # Extract the first word of "nmedit", so it can be a program name with args.
8244 set dummy nmedit; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   if test -n "$ac_ct_NMEDIT"; then
8251   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256   IFS=$as_save_IFS
8257   test -z "$as_dir" && as_dir=.
8258     for ac_exec_ext in '' $ac_executable_extensions; do
8259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262     break 2
8263   fi
8264 done
8265   done
8266 IFS=$as_save_IFS
8267
8268 fi
8269 fi
8270 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8271 if test -n "$ac_ct_NMEDIT"; then
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8273 $as_echo "$ac_ct_NMEDIT" >&6; }
8274 else
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8277 fi
8278
8279   if test "x$ac_ct_NMEDIT" = x; then
8280     NMEDIT=":"
8281   else
8282     case $cross_compiling:$ac_tool_warned in
8283 yes:)
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8286 ac_tool_warned=yes ;;
8287 esac
8288     NMEDIT=$ac_ct_NMEDIT
8289   fi
8290 else
8291   NMEDIT="$ac_cv_prog_NMEDIT"
8292 fi
8293
8294     if test -n "$ac_tool_prefix"; then
8295   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8296 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_prog_LIPO+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   if test -n "$LIPO"; then
8303   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308   IFS=$as_save_IFS
8309   test -z "$as_dir" && as_dir=.
8310     for ac_exec_ext in '' $ac_executable_extensions; do
8311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314     break 2
8315   fi
8316 done
8317   done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 LIPO=$ac_cv_prog_LIPO
8323 if test -n "$LIPO"; then
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8325 $as_echo "$LIPO" >&6; }
8326 else
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332 fi
8333 if test -z "$ac_cv_prog_LIPO"; then
8334   ac_ct_LIPO=$LIPO
8335   # Extract the first word of "lipo", so it can be a program name with args.
8336 set dummy lipo; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   if test -n "$ac_ct_LIPO"; then
8343   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8347 do
8348   IFS=$as_save_IFS
8349   test -z "$as_dir" && as_dir=.
8350     for ac_exec_ext in '' $ac_executable_extensions; do
8351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352     ac_cv_prog_ac_ct_LIPO="lipo"
8353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354     break 2
8355   fi
8356 done
8357   done
8358 IFS=$as_save_IFS
8359
8360 fi
8361 fi
8362 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8363 if test -n "$ac_ct_LIPO"; then
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8365 $as_echo "$ac_ct_LIPO" >&6; }
8366 else
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 fi
8370
8371   if test "x$ac_ct_LIPO" = x; then
8372     LIPO=":"
8373   else
8374     case $cross_compiling:$ac_tool_warned in
8375 yes:)
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8378 ac_tool_warned=yes ;;
8379 esac
8380     LIPO=$ac_ct_LIPO
8381   fi
8382 else
8383   LIPO="$ac_cv_prog_LIPO"
8384 fi
8385
8386     if test -n "$ac_tool_prefix"; then
8387   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8388 set dummy ${ac_tool_prefix}otool; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_prog_OTOOL+:} false; then :
8392   $as_echo_n "(cached) " >&6
8393 else
8394   if test -n "$OTOOL"; then
8395   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8399 do
8400   IFS=$as_save_IFS
8401   test -z "$as_dir" && as_dir=.
8402     for ac_exec_ext in '' $ac_executable_extensions; do
8403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406     break 2
8407   fi
8408 done
8409   done
8410 IFS=$as_save_IFS
8411
8412 fi
8413 fi
8414 OTOOL=$ac_cv_prog_OTOOL
8415 if test -n "$OTOOL"; then
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8417 $as_echo "$OTOOL" >&6; }
8418 else
8419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 fi
8422
8423
8424 fi
8425 if test -z "$ac_cv_prog_OTOOL"; then
8426   ac_ct_OTOOL=$OTOOL
8427   # Extract the first word of "otool", so it can be a program name with args.
8428 set dummy otool; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   if test -n "$ac_ct_OTOOL"; then
8435   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444     ac_cv_prog_ac_ct_OTOOL="otool"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8455 if test -n "$ac_ct_OTOOL"; then
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8457 $as_echo "$ac_ct_OTOOL" >&6; }
8458 else
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463   if test "x$ac_ct_OTOOL" = x; then
8464     OTOOL=":"
8465   else
8466     case $cross_compiling:$ac_tool_warned in
8467 yes:)
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470 ac_tool_warned=yes ;;
8471 esac
8472     OTOOL=$ac_ct_OTOOL
8473   fi
8474 else
8475   OTOOL="$ac_cv_prog_OTOOL"
8476 fi
8477
8478     if test -n "$ac_tool_prefix"; then
8479   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8480 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if ${ac_cv_prog_OTOOL64+:} false; then :
8484   $as_echo_n "(cached) " >&6
8485 else
8486   if test -n "$OTOOL64"; then
8487   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492   IFS=$as_save_IFS
8493   test -z "$as_dir" && as_dir=.
8494     for ac_exec_ext in '' $ac_executable_extensions; do
8495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498     break 2
8499   fi
8500 done
8501   done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 OTOOL64=$ac_cv_prog_OTOOL64
8507 if test -n "$OTOOL64"; then
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8509 $as_echo "$OTOOL64" >&6; }
8510 else
8511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514
8515
8516 fi
8517 if test -z "$ac_cv_prog_OTOOL64"; then
8518   ac_ct_OTOOL64=$OTOOL64
8519   # Extract the first word of "otool64", so it can be a program name with args.
8520 set dummy otool64; ac_word=$2
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 $as_echo_n "checking for $ac_word... " >&6; }
8523 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8524   $as_echo_n "(cached) " >&6
8525 else
8526   if test -n "$ac_ct_OTOOL64"; then
8527   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8528 else
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8531 do
8532   IFS=$as_save_IFS
8533   test -z "$as_dir" && as_dir=.
8534     for ac_exec_ext in '' $ac_executable_extensions; do
8535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536     ac_cv_prog_ac_ct_OTOOL64="otool64"
8537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538     break 2
8539   fi
8540 done
8541   done
8542 IFS=$as_save_IFS
8543
8544 fi
8545 fi
8546 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8547 if test -n "$ac_ct_OTOOL64"; then
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8549 $as_echo "$ac_ct_OTOOL64" >&6; }
8550 else
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8553 fi
8554
8555   if test "x$ac_ct_OTOOL64" = x; then
8556     OTOOL64=":"
8557   else
8558     case $cross_compiling:$ac_tool_warned in
8559 yes:)
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8562 ac_tool_warned=yes ;;
8563 esac
8564     OTOOL64=$ac_ct_OTOOL64
8565   fi
8566 else
8567   OTOOL64="$ac_cv_prog_OTOOL64"
8568 fi
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8597 $as_echo_n "checking for -single_module linker flag... " >&6; }
8598 if ${lt_cv_apple_cc_single_mod+:} false; then :
8599   $as_echo_n "(cached) " >&6
8600 else
8601   lt_cv_apple_cc_single_mod=no
8602       if test -z "$LT_MULTI_MODULE"; then
8603         # By default we will add the -single_module flag. You can override
8604         # by either setting the environment variable LT_MULTI_MODULE
8605         # non-empty at configure time, or by adding -multi_module to the
8606         # link flags.
8607         rm -rf libconftest.dylib*
8608         echo "int foo(void){return 1;}" > conftest.c
8609         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8610 -dynamiclib -Wl,-single_module conftest.c" >&5
8611         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8612           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8613         _lt_result=$?
8614         # If there is a non-empty error log, and "single_module"
8615         # appears in it, assume the flag caused a linker warning
8616         if test -s conftest.err && $GREP single_module conftest.err; then
8617           cat conftest.err >&5
8618         # Otherwise, if the output was created with a 0 exit code from
8619         # the compiler, it worked.
8620         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8621           lt_cv_apple_cc_single_mod=yes
8622         else
8623           cat conftest.err >&5
8624         fi
8625         rm -rf libconftest.dylib*
8626         rm -f conftest.*
8627       fi
8628 fi
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8630 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8631
8632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8633 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8634 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8635   $as_echo_n "(cached) " >&6
8636 else
8637   lt_cv_ld_exported_symbols_list=no
8638       save_LDFLAGS=$LDFLAGS
8639       echo "_main" > conftest.sym
8640       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h.  */
8643
8644 int
8645 main ()
8646 {
8647
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"; then :
8653   lt_cv_ld_exported_symbols_list=yes
8654 else
8655   lt_cv_ld_exported_symbols_list=no
8656 fi
8657 rm -f core conftest.err conftest.$ac_objext \
8658     conftest$ac_exeext conftest.$ac_ext
8659         LDFLAGS=$save_LDFLAGS
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8663 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8664
8665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8666 $as_echo_n "checking for -force_load linker flag... " >&6; }
8667 if ${lt_cv_ld_force_load+:} false; then :
8668   $as_echo_n "(cached) " >&6
8669 else
8670   lt_cv_ld_force_load=no
8671       cat > conftest.c << _LT_EOF
8672 int forced_loaded() { return 2;}
8673 _LT_EOF
8674       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8675       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8676       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8677       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8678       echo "$RANLIB libconftest.a" >&5
8679       $RANLIB libconftest.a 2>&5
8680       cat > conftest.c << _LT_EOF
8681 int main() { return 0;}
8682 _LT_EOF
8683       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8684       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8685       _lt_result=$?
8686       if test -s conftest.err && $GREP force_load conftest.err; then
8687         cat conftest.err >&5
8688       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8689         lt_cv_ld_force_load=yes
8690       else
8691         cat conftest.err >&5
8692       fi
8693         rm -f conftest.err libconftest.a conftest conftest.c
8694         rm -rf conftest.dSYM
8695
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8698 $as_echo "$lt_cv_ld_force_load" >&6; }
8699     case $host_os in
8700     rhapsody* | darwin1.[012])
8701       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8702     darwin1.*)
8703       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8704     darwin*)
8705       case $MACOSX_DEPLOYMENT_TARGET,$host in
8706         10.[012],*|,*powerpc*-darwin[5-8]*)
8707           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8708         *)
8709           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8710       esac
8711     ;;
8712   esac
8713     if test yes = "$lt_cv_apple_cc_single_mod"; then
8714       _lt_dar_single_mod='$single_module'
8715     fi
8716     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8717       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8718     else
8719       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8720     fi
8721     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8722       _lt_dsymutil='~$DSYMUTIL $lib || :'
8723     else
8724       _lt_dsymutil=
8725     fi
8726     ;;
8727   esac
8728
8729 # func_munge_path_list VARIABLE PATH
8730 # -----------------------------------
8731 # VARIABLE is name of variable containing _space_ separated list of
8732 # directories to be munged by the contents of PATH, which is string
8733 # having a format:
8734 # "DIR[:DIR]:"
8735 #       string "DIR[ DIR]" will be prepended to VARIABLE
8736 # ":DIR[:DIR]"
8737 #       string "DIR[ DIR]" will be appended to VARIABLE
8738 # "DIRP[:DIRP]::[DIRA:]DIRA"
8739 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8740 #       "DIRA[ DIRA]" will be appended to VARIABLE
8741 # "DIR[:DIR]"
8742 #       VARIABLE will be replaced by "DIR[ DIR]"
8743 func_munge_path_list ()
8744 {
8745     case x$2 in
8746     x)
8747         ;;
8748     *:)
8749         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8750         ;;
8751     x:*)
8752         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8753         ;;
8754     *::*)
8755         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8756         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8757         ;;
8758     *)
8759         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8760         ;;
8761     esac
8762 }
8763
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8765 $as_echo_n "checking for ANSI C header files... " >&6; }
8766 if ${ac_cv_header_stdc+:} false; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h.  */
8771 #include <stdlib.h>
8772 #include <stdarg.h>
8773 #include <string.h>
8774 #include <float.h>
8775
8776 int
8777 main ()
8778 {
8779
8780   ;
8781   return 0;
8782 }
8783 _ACEOF
8784 if ac_fn_c_try_compile "$LINENO"; then :
8785   ac_cv_header_stdc=yes
8786 else
8787   ac_cv_header_stdc=no
8788 fi
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790
8791 if test $ac_cv_header_stdc = yes; then
8792   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h.  */
8795 #include <string.h>
8796
8797 _ACEOF
8798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799   $EGREP "memchr" >/dev/null 2>&1; then :
8800
8801 else
8802   ac_cv_header_stdc=no
8803 fi
8804 rm -f conftest*
8805
8806 fi
8807
8808 if test $ac_cv_header_stdc = yes; then
8809   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h.  */
8812 #include <stdlib.h>
8813
8814 _ACEOF
8815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816   $EGREP "free" >/dev/null 2>&1; then :
8817
8818 else
8819   ac_cv_header_stdc=no
8820 fi
8821 rm -f conftest*
8822
8823 fi
8824
8825 if test $ac_cv_header_stdc = yes; then
8826   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8827   if test "$cross_compiling" = yes; then :
8828   :
8829 else
8830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h.  */
8832 #include <ctype.h>
8833 #include <stdlib.h>
8834 #if ((' ' & 0x0FF) == 0x020)
8835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8837 #else
8838 # define ISLOWER(c) \
8839                    (('a' <= (c) && (c) <= 'i') \
8840                      || ('j' <= (c) && (c) <= 'r') \
8841                      || ('s' <= (c) && (c) <= 'z'))
8842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8843 #endif
8844
8845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8846 int
8847 main ()
8848 {
8849   int i;
8850   for (i = 0; i < 256; i++)
8851     if (XOR (islower (i), ISLOWER (i))
8852         || toupper (i) != TOUPPER (i))
8853       return 2;
8854   return 0;
8855 }
8856 _ACEOF
8857 if ac_fn_c_try_run "$LINENO"; then :
8858
8859 else
8860   ac_cv_header_stdc=no
8861 fi
8862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8863   conftest.$ac_objext conftest.beam conftest.$ac_ext
8864 fi
8865
8866 fi
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8869 $as_echo "$ac_cv_header_stdc" >&6; }
8870 if test $ac_cv_header_stdc = yes; then
8871
8872 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8873
8874 fi
8875
8876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8877 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8878                   inttypes.h stdint.h unistd.h
8879 do :
8880   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8881 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8882 "
8883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8884   cat >>confdefs.h <<_ACEOF
8885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8886 _ACEOF
8887
8888 fi
8889
8890 done
8891
8892
8893 for ac_header in dlfcn.h
8894 do :
8895   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8896 "
8897 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8898   cat >>confdefs.h <<_ACEOF
8899 #define HAVE_DLFCN_H 1
8900 _ACEOF
8901
8902 fi
8903
8904 done
8905
8906
8907
8908
8909
8910 # Set options
8911 enable_dlopen=yes
8912 enable_win32_dll=yes
8913
8914 case $host in
8915 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8916   if test -n "$ac_tool_prefix"; then
8917   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8918 set dummy ${ac_tool_prefix}as; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_prog_AS+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924   if test -n "$AS"; then
8925   ac_cv_prog_AS="$AS" # Let the user override the test.
8926 else
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8929 do
8930   IFS=$as_save_IFS
8931   test -z "$as_dir" && as_dir=.
8932     for ac_exec_ext in '' $ac_executable_extensions; do
8933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934     ac_cv_prog_AS="${ac_tool_prefix}as"
8935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936     break 2
8937   fi
8938 done
8939   done
8940 IFS=$as_save_IFS
8941
8942 fi
8943 fi
8944 AS=$ac_cv_prog_AS
8945 if test -n "$AS"; then
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8947 $as_echo "$AS" >&6; }
8948 else
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953
8954 fi
8955 if test -z "$ac_cv_prog_AS"; then
8956   ac_ct_AS=$AS
8957   # Extract the first word of "as", so it can be a program name with args.
8958 set dummy as; ac_word=$2
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8960 $as_echo_n "checking for $ac_word... " >&6; }
8961 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8962   $as_echo_n "(cached) " >&6
8963 else
8964   if test -n "$ac_ct_AS"; then
8965   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8966 else
8967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968 for as_dir in $PATH
8969 do
8970   IFS=$as_save_IFS
8971   test -z "$as_dir" && as_dir=.
8972     for ac_exec_ext in '' $ac_executable_extensions; do
8973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8974     ac_cv_prog_ac_ct_AS="as"
8975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8976     break 2
8977   fi
8978 done
8979   done
8980 IFS=$as_save_IFS
8981
8982 fi
8983 fi
8984 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8985 if test -n "$ac_ct_AS"; then
8986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8987 $as_echo "$ac_ct_AS" >&6; }
8988 else
8989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8991 fi
8992
8993   if test "x$ac_ct_AS" = x; then
8994     AS="false"
8995   else
8996     case $cross_compiling:$ac_tool_warned in
8997 yes:)
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9000 ac_tool_warned=yes ;;
9001 esac
9002     AS=$ac_ct_AS
9003   fi
9004 else
9005   AS="$ac_cv_prog_AS"
9006 fi
9007
9008   if test -n "$ac_tool_prefix"; then
9009   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9010 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if ${ac_cv_prog_DLLTOOL+:} false; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016   if test -n "$DLLTOOL"; then
9017   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022   IFS=$as_save_IFS
9023   test -z "$as_dir" && as_dir=.
9024     for ac_exec_ext in '' $ac_executable_extensions; do
9025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9026     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028     break 2
9029   fi
9030 done
9031   done
9032 IFS=$as_save_IFS
9033
9034 fi
9035 fi
9036 DLLTOOL=$ac_cv_prog_DLLTOOL
9037 if test -n "$DLLTOOL"; then
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9039 $as_echo "$DLLTOOL" >&6; }
9040 else
9041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046 fi
9047 if test -z "$ac_cv_prog_DLLTOOL"; then
9048   ac_ct_DLLTOOL=$DLLTOOL
9049   # Extract the first word of "dlltool", so it can be a program name with args.
9050 set dummy dlltool; ac_word=$2
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052 $as_echo_n "checking for $ac_word... " >&6; }
9053 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9054   $as_echo_n "(cached) " >&6
9055 else
9056   if test -n "$ac_ct_DLLTOOL"; then
9057   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9058 else
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 for as_dir in $PATH
9061 do
9062   IFS=$as_save_IFS
9063   test -z "$as_dir" && as_dir=.
9064     for ac_exec_ext in '' $ac_executable_extensions; do
9065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9066     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9068     break 2
9069   fi
9070 done
9071   done
9072 IFS=$as_save_IFS
9073
9074 fi
9075 fi
9076 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9077 if test -n "$ac_ct_DLLTOOL"; then
9078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9079 $as_echo "$ac_ct_DLLTOOL" >&6; }
9080 else
9081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9083 fi
9084
9085   if test "x$ac_ct_DLLTOOL" = x; then
9086     DLLTOOL="false"
9087   else
9088     case $cross_compiling:$ac_tool_warned in
9089 yes:)
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9092 ac_tool_warned=yes ;;
9093 esac
9094     DLLTOOL=$ac_ct_DLLTOOL
9095   fi
9096 else
9097   DLLTOOL="$ac_cv_prog_DLLTOOL"
9098 fi
9099
9100   if test -n "$ac_tool_prefix"; then
9101   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9102 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if ${ac_cv_prog_OBJDUMP+:} false; then :
9106   $as_echo_n "(cached) " >&6
9107 else
9108   if test -n "$OBJDUMP"; then
9109   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9110 else
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 for as_dir in $PATH
9113 do
9114   IFS=$as_save_IFS
9115   test -z "$as_dir" && as_dir=.
9116     for ac_exec_ext in '' $ac_executable_extensions; do
9117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9118     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120     break 2
9121   fi
9122 done
9123   done
9124 IFS=$as_save_IFS
9125
9126 fi
9127 fi
9128 OBJDUMP=$ac_cv_prog_OBJDUMP
9129 if test -n "$OBJDUMP"; then
9130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9131 $as_echo "$OBJDUMP" >&6; }
9132 else
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9135 fi
9136
9137
9138 fi
9139 if test -z "$ac_cv_prog_OBJDUMP"; then
9140   ac_ct_OBJDUMP=$OBJDUMP
9141   # Extract the first word of "objdump", so it can be a program name with args.
9142 set dummy objdump; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   if test -n "$ac_ct_OBJDUMP"; then
9149   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154   IFS=$as_save_IFS
9155   test -z "$as_dir" && as_dir=.
9156     for ac_exec_ext in '' $ac_executable_extensions; do
9157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160     break 2
9161   fi
9162 done
9163   done
9164 IFS=$as_save_IFS
9165
9166 fi
9167 fi
9168 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9169 if test -n "$ac_ct_OBJDUMP"; then
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9171 $as_echo "$ac_ct_OBJDUMP" >&6; }
9172 else
9173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9175 fi
9176
9177   if test "x$ac_ct_OBJDUMP" = x; then
9178     OBJDUMP="false"
9179   else
9180     case $cross_compiling:$ac_tool_warned in
9181 yes:)
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9184 ac_tool_warned=yes ;;
9185 esac
9186     OBJDUMP=$ac_ct_OBJDUMP
9187   fi
9188 else
9189   OBJDUMP="$ac_cv_prog_OBJDUMP"
9190 fi
9191
9192   ;;
9193 esac
9194
9195 test -z "$AS" && AS=as
9196
9197
9198
9199
9200
9201 test -z "$DLLTOOL" && DLLTOOL=dlltool
9202
9203
9204
9205
9206
9207 test -z "$OBJDUMP" && OBJDUMP=objdump
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217             # Check whether --enable-shared was given.
9218 if test "${enable_shared+set}" = set; then :
9219   enableval=$enable_shared; p=${PACKAGE-default}
9220     case $enableval in
9221     yes) enable_shared=yes ;;
9222     no) enable_shared=no ;;
9223     *)
9224       enable_shared=no
9225       # Look at the argument we got.  We use all the common list separators.
9226       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9227       for pkg in $enableval; do
9228         IFS=$lt_save_ifs
9229         if test "X$pkg" = "X$p"; then
9230           enable_shared=yes
9231         fi
9232       done
9233       IFS=$lt_save_ifs
9234       ;;
9235     esac
9236 else
9237   enable_shared=yes
9238 fi
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248   # Check whether --enable-static was given.
9249 if test "${enable_static+set}" = set; then :
9250   enableval=$enable_static; p=${PACKAGE-default}
9251     case $enableval in
9252     yes) enable_static=yes ;;
9253     no) enable_static=no ;;
9254     *)
9255      enable_static=no
9256       # Look at the argument we got.  We use all the common list separators.
9257       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9258       for pkg in $enableval; do
9259         IFS=$lt_save_ifs
9260         if test "X$pkg" = "X$p"; then
9261           enable_static=yes
9262         fi
9263       done
9264       IFS=$lt_save_ifs
9265       ;;
9266     esac
9267 else
9268   enable_static=yes
9269 fi
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280 # Check whether --with-pic was given.
9281 if test "${with_pic+set}" = set; then :
9282   withval=$with_pic; lt_p=${PACKAGE-default}
9283     case $withval in
9284     yes|no) pic_mode=$withval ;;
9285     *)
9286       pic_mode=default
9287       # Look at the argument we got.  We use all the common list separators.
9288       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9289       for lt_pkg in $withval; do
9290         IFS=$lt_save_ifs
9291         if test "X$lt_pkg" = "X$lt_p"; then
9292           pic_mode=yes
9293         fi
9294       done
9295       IFS=$lt_save_ifs
9296       ;;
9297     esac
9298 else
9299   pic_mode=default
9300 fi
9301
9302
9303
9304
9305
9306
9307
9308
9309   # Check whether --enable-fast-install was given.
9310 if test "${enable_fast_install+set}" = set; then :
9311   enableval=$enable_fast_install; p=${PACKAGE-default}
9312     case $enableval in
9313     yes) enable_fast_install=yes ;;
9314     no) enable_fast_install=no ;;
9315     *)
9316       enable_fast_install=no
9317       # Look at the argument we got.  We use all the common list separators.
9318       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9319       for pkg in $enableval; do
9320         IFS=$lt_save_ifs
9321         if test "X$pkg" = "X$p"; then
9322           enable_fast_install=yes
9323         fi
9324       done
9325       IFS=$lt_save_ifs
9326       ;;
9327     esac
9328 else
9329   enable_fast_install=yes
9330 fi
9331
9332
9333
9334
9335
9336
9337
9338
9339   shared_archive_member_spec=
9340 case $host,$enable_shared in
9341 power*-*-aix[5-9]*,yes)
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9343 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9344
9345 # Check whether --with-aix-soname was given.
9346 if test "${with_aix_soname+set}" = set; then :
9347   withval=$with_aix_soname; case $withval in
9348     aix|svr4|both)
9349       ;;
9350     *)
9351       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9352       ;;
9353     esac
9354     lt_cv_with_aix_soname=$with_aix_soname
9355 else
9356   if ${lt_cv_with_aix_soname+:} false; then :
9357   $as_echo_n "(cached) " >&6
9358 else
9359   lt_cv_with_aix_soname=aix
9360 fi
9361
9362     with_aix_soname=$lt_cv_with_aix_soname
9363 fi
9364
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9366 $as_echo "$with_aix_soname" >&6; }
9367   if test aix != "$with_aix_soname"; then
9368     # For the AIX way of multilib, we name the shared archive member
9369     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9370     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9371     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9372     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9373     if test 64 = "${OBJECT_MODE-32}"; then
9374       shared_archive_member_spec=shr_64
9375     else
9376       shared_archive_member_spec=shr
9377     fi
9378   fi
9379   ;;
9380 *)
9381   with_aix_soname=aix
9382   ;;
9383 esac
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394 # This can be used to rebuild libtool when needed
9395 LIBTOOL_DEPS=$ltmain
9396
9397 # Always use our own libtool.
9398 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429 test -z "$LN_S" && LN_S="ln -s"
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444 if test -n "${ZSH_VERSION+set}"; then
9445    setopt NO_GLOB_SUBST
9446 fi
9447
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9449 $as_echo_n "checking for objdir... " >&6; }
9450 if ${lt_cv_objdir+:} false; then :
9451   $as_echo_n "(cached) " >&6
9452 else
9453   rm -f .libs 2>/dev/null
9454 mkdir .libs 2>/dev/null
9455 if test -d .libs; then
9456   lt_cv_objdir=.libs
9457 else
9458   # MS-DOS does not allow filenames that begin with a dot.
9459   lt_cv_objdir=_libs
9460 fi
9461 rmdir .libs 2>/dev/null
9462 fi
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9464 $as_echo "$lt_cv_objdir" >&6; }
9465 objdir=$lt_cv_objdir
9466
9467
9468
9469
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define LT_OBJDIR "$lt_cv_objdir/"
9473 _ACEOF
9474
9475
9476
9477
9478 case $host_os in
9479 aix3*)
9480   # AIX sometimes has problems with the GCC collect2 program.  For some
9481   # reason, if we set the COLLECT_NAMES environment variable, the problems
9482   # vanish in a puff of smoke.
9483   if test set != "${COLLECT_NAMES+set}"; then
9484     COLLECT_NAMES=
9485     export COLLECT_NAMES
9486   fi
9487   ;;
9488 esac
9489
9490 # Global variables:
9491 ofile=libtool
9492 can_build_shared=yes
9493
9494 # All known linkers require a '.a' archive for static linking (except MSVC and
9495 # ICC, which need '.lib').
9496 libext=a
9497
9498 with_gnu_ld=$lt_cv_prog_gnu_ld
9499
9500 old_CC=$CC
9501 old_CFLAGS=$CFLAGS
9502
9503 # Set sane defaults for various variables
9504 test -z "$CC" && CC=cc
9505 test -z "$LTCC" && LTCC=$CC
9506 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9507 test -z "$LD" && LD=ld
9508 test -z "$ac_objext" && ac_objext=o
9509
9510 func_cc_basename $compiler
9511 cc_basename=$func_cc_basename_result
9512
9513
9514 # Only perform the check for file, if the check method requires it
9515 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9516 case $deplibs_check_method in
9517 file_magic*)
9518   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9520 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9521 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9522   $as_echo_n "(cached) " >&6
9523 else
9524   case $MAGIC_CMD in
9525 [\\/*] |  ?:[\\/]*)
9526   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9527   ;;
9528 *)
9529   lt_save_MAGIC_CMD=$MAGIC_CMD
9530   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9531   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9532   for ac_dir in $ac_dummy; do
9533     IFS=$lt_save_ifs
9534     test -z "$ac_dir" && ac_dir=.
9535     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9536       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9537       if test -n "$file_magic_test_file"; then
9538         case $deplibs_check_method in
9539         "file_magic "*)
9540           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9541           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9542           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9543             $EGREP "$file_magic_regex" > /dev/null; then
9544             :
9545           else
9546             cat <<_LT_EOF 1>&2
9547
9548 *** Warning: the command libtool uses to detect shared libraries,
9549 *** $file_magic_cmd, produces output that libtool cannot recognize.
9550 *** The result is that libtool may fail to recognize shared libraries
9551 *** as such.  This will affect the creation of libtool libraries that
9552 *** depend on shared libraries, but programs linked with such libtool
9553 *** libraries will work regardless of this problem.  Nevertheless, you
9554 *** may want to report the problem to your system manager and/or to
9555 *** bug-libtool@gnu.org
9556
9557 _LT_EOF
9558           fi ;;
9559         esac
9560       fi
9561       break
9562     fi
9563   done
9564   IFS=$lt_save_ifs
9565   MAGIC_CMD=$lt_save_MAGIC_CMD
9566   ;;
9567 esac
9568 fi
9569
9570 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9571 if test -n "$MAGIC_CMD"; then
9572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9573 $as_echo "$MAGIC_CMD" >&6; }
9574 else
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9577 fi
9578
9579
9580
9581
9582
9583 if test -z "$lt_cv_path_MAGIC_CMD"; then
9584   if test -n "$ac_tool_prefix"; then
9585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9586 $as_echo_n "checking for file... " >&6; }
9587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   case $MAGIC_CMD in
9591 [\\/*] |  ?:[\\/]*)
9592   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9593   ;;
9594 *)
9595   lt_save_MAGIC_CMD=$MAGIC_CMD
9596   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9597   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9598   for ac_dir in $ac_dummy; do
9599     IFS=$lt_save_ifs
9600     test -z "$ac_dir" && ac_dir=.
9601     if test -f "$ac_dir/file"; then
9602       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9603       if test -n "$file_magic_test_file"; then
9604         case $deplibs_check_method in
9605         "file_magic "*)
9606           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9607           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9608           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9609             $EGREP "$file_magic_regex" > /dev/null; then
9610             :
9611           else
9612             cat <<_LT_EOF 1>&2
9613
9614 *** Warning: the command libtool uses to detect shared libraries,
9615 *** $file_magic_cmd, produces output that libtool cannot recognize.
9616 *** The result is that libtool may fail to recognize shared libraries
9617 *** as such.  This will affect the creation of libtool libraries that
9618 *** depend on shared libraries, but programs linked with such libtool
9619 *** libraries will work regardless of this problem.  Nevertheless, you
9620 *** may want to report the problem to your system manager and/or to
9621 *** bug-libtool@gnu.org
9622
9623 _LT_EOF
9624           fi ;;
9625         esac
9626       fi
9627       break
9628     fi
9629   done
9630   IFS=$lt_save_ifs
9631   MAGIC_CMD=$lt_save_MAGIC_CMD
9632   ;;
9633 esac
9634 fi
9635
9636 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9637 if test -n "$MAGIC_CMD"; then
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9639 $as_echo "$MAGIC_CMD" >&6; }
9640 else
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9643 fi
9644
9645
9646   else
9647     MAGIC_CMD=:
9648   fi
9649 fi
9650
9651   fi
9652   ;;
9653 esac
9654
9655 # Use C for the default configuration in the libtool script
9656
9657 lt_save_CC=$CC
9658 ac_ext=c
9659 ac_cpp='$CPP $CPPFLAGS'
9660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9663
9664
9665 # Source file extension for C test sources.
9666 ac_ext=c
9667
9668 # Object file extension for compiled C test sources.
9669 objext=o
9670 objext=$objext
9671
9672 # Code to be used in simple compile tests
9673 lt_simple_compile_test_code="int some_variable = 0;"
9674
9675 # Code to be used in simple link tests
9676 lt_simple_link_test_code='int main(){return(0);}'
9677
9678
9679
9680
9681
9682
9683
9684 # If no C compiler was specified, use CC.
9685 LTCC=${LTCC-"$CC"}
9686
9687 # If no C compiler flags were specified, use CFLAGS.
9688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9689
9690 # Allow CC to be a program name with arguments.
9691 compiler=$CC
9692
9693 # Save the default compiler, since it gets overwritten when the other
9694 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9695 compiler_DEFAULT=$CC
9696
9697 # save warnings/boilerplate of simple test code
9698 ac_outfile=conftest.$ac_objext
9699 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9700 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9701 _lt_compiler_boilerplate=`cat conftest.err`
9702 $RM conftest*
9703
9704 ac_outfile=conftest.$ac_objext
9705 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9706 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9707 _lt_linker_boilerplate=`cat conftest.err`
9708 $RM -r conftest*
9709
9710
9711 ## CAVEAT EMPTOR:
9712 ## There is no encapsulation within the following macros, do not change
9713 ## the running order or otherwise move them around unless you know exactly
9714 ## what you are doing...
9715 if test -n "$compiler"; then
9716
9717 lt_prog_compiler_no_builtin_flag=
9718
9719 if test yes = "$GCC"; then
9720   case $cc_basename in
9721   nvcc*)
9722     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9723   *)
9724     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9725   esac
9726
9727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9728 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9729 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9730   $as_echo_n "(cached) " >&6
9731 else
9732   lt_cv_prog_compiler_rtti_exceptions=no
9733    ac_outfile=conftest.$ac_objext
9734    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9735    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9736    # Insert the option either (1) after the last *FLAGS variable, or
9737    # (2) before a word containing "conftest.", or (3) at the end.
9738    # Note that $ac_compile itself does not contain backslashes and begins
9739    # with a dollar sign (not a hyphen), so the echo should work correctly.
9740    # The option is referenced via a variable to avoid confusing sed.
9741    lt_compile=`echo "$ac_compile" | $SED \
9742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9744    -e 's:$: $lt_compiler_flag:'`
9745    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9746    (eval "$lt_compile" 2>conftest.err)
9747    ac_status=$?
9748    cat conftest.err >&5
9749    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750    if (exit $ac_status) && test -s "$ac_outfile"; then
9751      # The compiler can only warn and ignore the option if not recognized
9752      # So say no if there are warnings other than the usual output.
9753      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9754      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9755      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9756        lt_cv_prog_compiler_rtti_exceptions=yes
9757      fi
9758    fi
9759    $RM conftest*
9760
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9763 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9764
9765 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9766     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9767 else
9768     :
9769 fi
9770
9771 fi
9772
9773
9774
9775
9776
9777
9778   lt_prog_compiler_wl=
9779 lt_prog_compiler_pic=
9780 lt_prog_compiler_static=
9781
9782
9783   if test yes = "$GCC"; then
9784     lt_prog_compiler_wl='-Wl,'
9785     lt_prog_compiler_static='-static'
9786
9787     case $host_os in
9788       aix*)
9789       # All AIX code is PIC.
9790       if test ia64 = "$host_cpu"; then
9791         # AIX 5 now supports IA64 processor
9792         lt_prog_compiler_static='-Bstatic'
9793       fi
9794       lt_prog_compiler_pic='-fPIC'
9795       ;;
9796
9797     amigaos*)
9798       case $host_cpu in
9799       powerpc)
9800             # see comment about AmigaOS4 .so support
9801             lt_prog_compiler_pic='-fPIC'
9802         ;;
9803       m68k)
9804             # FIXME: we need at least 68020 code to build shared libraries, but
9805             # adding the '-m68020' flag to GCC prevents building anything better,
9806             # like '-m68040'.
9807             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9808         ;;
9809       esac
9810       ;;
9811
9812     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9813       # PIC is the default for these OSes.
9814       ;;
9815
9816     mingw* | cygwin* | pw32* | os2* | cegcc*)
9817       # This hack is so that the source file can tell whether it is being
9818       # built for inclusion in a dll (and should export symbols for example).
9819       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9820       # (--disable-auto-import) libraries
9821       lt_prog_compiler_pic='-DDLL_EXPORT'
9822       case $host_os in
9823       os2*)
9824         lt_prog_compiler_static='$wl-static'
9825         ;;
9826       esac
9827       ;;
9828
9829     darwin* | rhapsody*)
9830       # PIC is the default on this platform
9831       # Common symbols not allowed in MH_DYLIB files
9832       lt_prog_compiler_pic='-fno-common'
9833       ;;
9834
9835     haiku*)
9836       # PIC is the default for Haiku.
9837       # The "-static" flag exists, but is broken.
9838       lt_prog_compiler_static=
9839       ;;
9840
9841     hpux*)
9842       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9843       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9844       # sets the default TLS model and affects inlining.
9845       case $host_cpu in
9846       hppa*64*)
9847         # +Z the default
9848         ;;
9849       *)
9850         lt_prog_compiler_pic='-fPIC'
9851         ;;
9852       esac
9853       ;;
9854
9855     interix[3-9]*)
9856       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9857       # Instead, we relocate shared libraries at runtime.
9858       ;;
9859
9860     msdosdjgpp*)
9861       # Just because we use GCC doesn't mean we suddenly get shared libraries
9862       # on systems that don't support them.
9863       lt_prog_compiler_can_build_shared=no
9864       enable_shared=no
9865       ;;
9866
9867     *nto* | *qnx*)
9868       # QNX uses GNU C++, but need to define -shared option too, otherwise
9869       # it will coredump.
9870       lt_prog_compiler_pic='-fPIC -shared'
9871       ;;
9872
9873     sysv4*MP*)
9874       if test -d /usr/nec; then
9875         lt_prog_compiler_pic=-Kconform_pic
9876       fi
9877       ;;
9878
9879     *)
9880       lt_prog_compiler_pic='-fPIC'
9881       ;;
9882     esac
9883
9884     case $cc_basename in
9885     nvcc*) # Cuda Compiler Driver 2.2
9886       lt_prog_compiler_wl='-Xlinker '
9887       if test -n "$lt_prog_compiler_pic"; then
9888         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9889       fi
9890       ;;
9891     esac
9892   else
9893     # PORTME Check for flag to pass linker flags through the system compiler.
9894     case $host_os in
9895     aix*)
9896       lt_prog_compiler_wl='-Wl,'
9897       if test ia64 = "$host_cpu"; then
9898         # AIX 5 now supports IA64 processor
9899         lt_prog_compiler_static='-Bstatic'
9900       else
9901         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9902       fi
9903       ;;
9904
9905     darwin* | rhapsody*)
9906       # PIC is the default on this platform
9907       # Common symbols not allowed in MH_DYLIB files
9908       lt_prog_compiler_pic='-fno-common'
9909       case $cc_basename in
9910       nagfor*)
9911         # NAG Fortran compiler
9912         lt_prog_compiler_wl='-Wl,-Wl,,'
9913         lt_prog_compiler_pic='-PIC'
9914         lt_prog_compiler_static='-Bstatic'
9915         ;;
9916       esac
9917       ;;
9918
9919     mingw* | cygwin* | pw32* | os2* | cegcc*)
9920       # This hack is so that the source file can tell whether it is being
9921       # built for inclusion in a dll (and should export symbols for example).
9922       lt_prog_compiler_pic='-DDLL_EXPORT'
9923       case $host_os in
9924       os2*)
9925         lt_prog_compiler_static='$wl-static'
9926         ;;
9927       esac
9928       ;;
9929
9930     hpux9* | hpux10* | hpux11*)
9931       lt_prog_compiler_wl='-Wl,'
9932       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9933       # not for PA HP-UX.
9934       case $host_cpu in
9935       hppa*64*|ia64*)
9936         # +Z the default
9937         ;;
9938       *)
9939         lt_prog_compiler_pic='+Z'
9940         ;;
9941       esac
9942       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9943       lt_prog_compiler_static='$wl-a ${wl}archive'
9944       ;;
9945
9946     irix5* | irix6* | nonstopux*)
9947       lt_prog_compiler_wl='-Wl,'
9948       # PIC (with -KPIC) is the default.
9949       lt_prog_compiler_static='-non_shared'
9950       ;;
9951
9952     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9953       case $cc_basename in
9954       # old Intel for x86_64, which still supported -KPIC.
9955       ecc*)
9956         lt_prog_compiler_wl='-Wl,'
9957         lt_prog_compiler_pic='-KPIC'
9958         lt_prog_compiler_static='-static'
9959         ;;
9960       # icc used to be incompatible with GCC.
9961       # ICC 10 doesn't accept -KPIC any more.
9962       icc* | ifort*)
9963         lt_prog_compiler_wl='-Wl,'
9964         lt_prog_compiler_pic='-fPIC'
9965         lt_prog_compiler_static='-static'
9966         ;;
9967       # Lahey Fortran 8.1.
9968       lf95*)
9969         lt_prog_compiler_wl='-Wl,'
9970         lt_prog_compiler_pic='--shared'
9971         lt_prog_compiler_static='--static'
9972         ;;
9973       nagfor*)
9974         # NAG Fortran compiler
9975         lt_prog_compiler_wl='-Wl,-Wl,,'
9976         lt_prog_compiler_pic='-PIC'
9977         lt_prog_compiler_static='-Bstatic'
9978         ;;
9979       tcc*)
9980         # Fabrice Bellard et al's Tiny C Compiler
9981         lt_prog_compiler_wl='-Wl,'
9982         lt_prog_compiler_pic='-fPIC'
9983         lt_prog_compiler_static='-static'
9984         ;;
9985       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9986         # Portland Group compilers (*not* the Pentium gcc compiler,
9987         # which looks to be a dead project)
9988         lt_prog_compiler_wl='-Wl,'
9989         lt_prog_compiler_pic='-fpic'
9990         lt_prog_compiler_static='-Bstatic'
9991         ;;
9992       ccc*)
9993         lt_prog_compiler_wl='-Wl,'
9994         # All Alpha code is PIC.
9995         lt_prog_compiler_static='-non_shared'
9996         ;;
9997       xl* | bgxl* | bgf* | mpixl*)
9998         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9999         lt_prog_compiler_wl='-Wl,'
10000         lt_prog_compiler_pic='-qpic'
10001         lt_prog_compiler_static='-qstaticlink'
10002         ;;
10003       *)
10004         case `$CC -V 2>&1 | $SED 5q` in
10005         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10006           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10007           lt_prog_compiler_pic='-KPIC'
10008           lt_prog_compiler_static='-Bstatic'
10009           lt_prog_compiler_wl=''
10010           ;;
10011         *Sun\ F* | *Sun*Fortran*)
10012           lt_prog_compiler_pic='-KPIC'
10013           lt_prog_compiler_static='-Bstatic'
10014           lt_prog_compiler_wl='-Qoption ld '
10015           ;;
10016         *Sun\ C*)
10017           # Sun C 5.9
10018           lt_prog_compiler_pic='-KPIC'
10019           lt_prog_compiler_static='-Bstatic'
10020           lt_prog_compiler_wl='-Wl,'
10021           ;;
10022         *Intel*\ [CF]*Compiler*)
10023           lt_prog_compiler_wl='-Wl,'
10024           lt_prog_compiler_pic='-fPIC'
10025           lt_prog_compiler_static='-static'
10026           ;;
10027         *Portland\ Group*)
10028           lt_prog_compiler_wl='-Wl,'
10029           lt_prog_compiler_pic='-fpic'
10030           lt_prog_compiler_static='-Bstatic'
10031           ;;
10032         esac
10033         ;;
10034       esac
10035       ;;
10036
10037     newsos6)
10038       lt_prog_compiler_pic='-KPIC'
10039       lt_prog_compiler_static='-Bstatic'
10040       ;;
10041
10042     *nto* | *qnx*)
10043       # QNX uses GNU C++, but need to define -shared option too, otherwise
10044       # it will coredump.
10045       lt_prog_compiler_pic='-fPIC -shared'
10046       ;;
10047
10048     osf3* | osf4* | osf5*)
10049       lt_prog_compiler_wl='-Wl,'
10050       # All OSF/1 code is PIC.
10051       lt_prog_compiler_static='-non_shared'
10052       ;;
10053
10054     rdos*)
10055       lt_prog_compiler_static='-non_shared'
10056       ;;
10057
10058     solaris*)
10059       lt_prog_compiler_pic='-KPIC'
10060       lt_prog_compiler_static='-Bstatic'
10061       case $cc_basename in
10062       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10063         lt_prog_compiler_wl='-Qoption ld ';;
10064       *)
10065         lt_prog_compiler_wl='-Wl,';;
10066       esac
10067       ;;
10068
10069     sunos4*)
10070       lt_prog_compiler_wl='-Qoption ld '
10071       lt_prog_compiler_pic='-PIC'
10072       lt_prog_compiler_static='-Bstatic'
10073       ;;
10074
10075     sysv4 | sysv4.2uw2* | sysv4.3*)
10076       lt_prog_compiler_wl='-Wl,'
10077       lt_prog_compiler_pic='-KPIC'
10078       lt_prog_compiler_static='-Bstatic'
10079       ;;
10080
10081     sysv4*MP*)
10082       if test -d /usr/nec; then
10083         lt_prog_compiler_pic='-Kconform_pic'
10084         lt_prog_compiler_static='-Bstatic'
10085       fi
10086       ;;
10087
10088     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10089       lt_prog_compiler_wl='-Wl,'
10090       lt_prog_compiler_pic='-KPIC'
10091       lt_prog_compiler_static='-Bstatic'
10092       ;;
10093
10094     unicos*)
10095       lt_prog_compiler_wl='-Wl,'
10096       lt_prog_compiler_can_build_shared=no
10097       ;;
10098
10099     uts4*)
10100       lt_prog_compiler_pic='-pic'
10101       lt_prog_compiler_static='-Bstatic'
10102       ;;
10103
10104     *)
10105       lt_prog_compiler_can_build_shared=no
10106       ;;
10107     esac
10108   fi
10109
10110 case $host_os in
10111   # For platforms that do not support PIC, -DPIC is meaningless:
10112   *djgpp*)
10113     lt_prog_compiler_pic=
10114     ;;
10115   *)
10116     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10117     ;;
10118 esac
10119
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10121 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10122 if ${lt_cv_prog_compiler_pic+:} false; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10128 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10129 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10130
10131 #
10132 # Check to make sure the PIC flag actually works.
10133 #
10134 if test -n "$lt_prog_compiler_pic"; then
10135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10136 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10137 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10138   $as_echo_n "(cached) " >&6
10139 else
10140   lt_cv_prog_compiler_pic_works=no
10141    ac_outfile=conftest.$ac_objext
10142    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10144    # Insert the option either (1) after the last *FLAGS variable, or
10145    # (2) before a word containing "conftest.", or (3) at the end.
10146    # Note that $ac_compile itself does not contain backslashes and begins
10147    # with a dollar sign (not a hyphen), so the echo should work correctly.
10148    # The option is referenced via a variable to avoid confusing sed.
10149    lt_compile=`echo "$ac_compile" | $SED \
10150    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10151    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10152    -e 's:$: $lt_compiler_flag:'`
10153    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10154    (eval "$lt_compile" 2>conftest.err)
10155    ac_status=$?
10156    cat conftest.err >&5
10157    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158    if (exit $ac_status) && test -s "$ac_outfile"; then
10159      # The compiler can only warn and ignore the option if not recognized
10160      # So say no if there are warnings other than the usual output.
10161      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10162      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10163      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10164        lt_cv_prog_compiler_pic_works=yes
10165      fi
10166    fi
10167    $RM conftest*
10168
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10171 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10172
10173 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10174     case $lt_prog_compiler_pic in
10175      "" | " "*) ;;
10176      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10177      esac
10178 else
10179     lt_prog_compiler_pic=
10180      lt_prog_compiler_can_build_shared=no
10181 fi
10182
10183 fi
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195 #
10196 # Check to make sure the static flag actually works.
10197 #
10198 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10200 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10201 if ${lt_cv_prog_compiler_static_works+:} false; then :
10202   $as_echo_n "(cached) " >&6
10203 else
10204   lt_cv_prog_compiler_static_works=no
10205    save_LDFLAGS=$LDFLAGS
10206    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10207    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10208    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10209      # The linker can only warn and ignore the option if not recognized
10210      # So say no if there are warnings
10211      if test -s conftest.err; then
10212        # Append any errors to the config.log.
10213        cat conftest.err 1>&5
10214        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10215        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10216        if diff conftest.exp conftest.er2 >/dev/null; then
10217          lt_cv_prog_compiler_static_works=yes
10218        fi
10219      else
10220        lt_cv_prog_compiler_static_works=yes
10221      fi
10222    fi
10223    $RM -r conftest*
10224    LDFLAGS=$save_LDFLAGS
10225
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10228 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10229
10230 if test yes = "$lt_cv_prog_compiler_static_works"; then
10231     :
10232 else
10233     lt_prog_compiler_static=
10234 fi
10235
10236
10237
10238
10239
10240
10241
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10244 if ${lt_cv_prog_compiler_c_o+:} false; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   lt_cv_prog_compiler_c_o=no
10248    $RM -r conftest 2>/dev/null
10249    mkdir conftest
10250    cd conftest
10251    mkdir out
10252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10253
10254    lt_compiler_flag="-o out/conftest2.$ac_objext"
10255    # Insert the option either (1) after the last *FLAGS variable, or
10256    # (2) before a word containing "conftest.", or (3) at the end.
10257    # Note that $ac_compile itself does not contain backslashes and begins
10258    # with a dollar sign (not a hyphen), so the echo should work correctly.
10259    lt_compile=`echo "$ac_compile" | $SED \
10260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10262    -e 's:$: $lt_compiler_flag:'`
10263    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10264    (eval "$lt_compile" 2>out/conftest.err)
10265    ac_status=$?
10266    cat out/conftest.err >&5
10267    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10269    then
10270      # The compiler can only warn and ignore the option if not recognized
10271      # So say no if there are warnings
10272      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10273      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10274      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10275        lt_cv_prog_compiler_c_o=yes
10276      fi
10277    fi
10278    chmod u+w . 2>&5
10279    $RM conftest*
10280    # SGI C++ compiler will create directory out/ii_files/ for
10281    # template instantiation
10282    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10283    $RM out/* && rmdir out
10284    cd ..
10285    $RM -r conftest
10286    $RM conftest*
10287
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10290 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10291
10292
10293
10294
10295
10296
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10299 if ${lt_cv_prog_compiler_c_o+:} false; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   lt_cv_prog_compiler_c_o=no
10303    $RM -r conftest 2>/dev/null
10304    mkdir conftest
10305    cd conftest
10306    mkdir out
10307    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10308
10309    lt_compiler_flag="-o out/conftest2.$ac_objext"
10310    # Insert the option either (1) after the last *FLAGS variable, or
10311    # (2) before a word containing "conftest.", or (3) at the end.
10312    # Note that $ac_compile itself does not contain backslashes and begins
10313    # with a dollar sign (not a hyphen), so the echo should work correctly.
10314    lt_compile=`echo "$ac_compile" | $SED \
10315    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10316    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10317    -e 's:$: $lt_compiler_flag:'`
10318    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10319    (eval "$lt_compile" 2>out/conftest.err)
10320    ac_status=$?
10321    cat out/conftest.err >&5
10322    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10324    then
10325      # The compiler can only warn and ignore the option if not recognized
10326      # So say no if there are warnings
10327      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10328      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10329      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10330        lt_cv_prog_compiler_c_o=yes
10331      fi
10332    fi
10333    chmod u+w . 2>&5
10334    $RM conftest*
10335    # SGI C++ compiler will create directory out/ii_files/ for
10336    # template instantiation
10337    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10338    $RM out/* && rmdir out
10339    cd ..
10340    $RM -r conftest
10341    $RM conftest*
10342
10343 fi
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10345 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10346
10347
10348
10349
10350 hard_links=nottested
10351 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10352   # do not overwrite the value of need_locks provided by the user
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10354 $as_echo_n "checking if we can lock with hard links... " >&6; }
10355   hard_links=yes
10356   $RM conftest*
10357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10358   touch conftest.a
10359   ln conftest.a conftest.b 2>&5 || hard_links=no
10360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10362 $as_echo "$hard_links" >&6; }
10363   if test no = "$hard_links"; then
10364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10365 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10366     need_locks=warn
10367   fi
10368 else
10369   need_locks=no
10370 fi
10371
10372
10373
10374
10375
10376
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10378 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10379
10380   runpath_var=
10381   allow_undefined_flag=
10382   always_export_symbols=no
10383   archive_cmds=
10384   archive_expsym_cmds=
10385   compiler_needs_object=no
10386   enable_shared_with_static_runtimes=no
10387   export_dynamic_flag_spec=
10388   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10389   hardcode_automatic=no
10390   hardcode_direct=no
10391   hardcode_direct_absolute=no
10392   hardcode_libdir_flag_spec=
10393   hardcode_libdir_separator=
10394   hardcode_minus_L=no
10395   hardcode_shlibpath_var=unsupported
10396   inherit_rpath=no
10397   link_all_deplibs=unknown
10398   module_cmds=
10399   module_expsym_cmds=
10400   old_archive_from_new_cmds=
10401   old_archive_from_expsyms_cmds=
10402   thread_safe_flag_spec=
10403   whole_archive_flag_spec=
10404   # include_expsyms should be a list of space-separated symbols to be *always*
10405   # included in the symbol list
10406   include_expsyms=
10407   # exclude_expsyms can be an extended regexp of symbols to exclude
10408   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10409   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10410   # as well as any symbol that contains 'd'.
10411   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10412   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10413   # platforms (ab)use it in PIC code, but their linkers get confused if
10414   # the symbol is explicitly referenced.  Since portable code cannot
10415   # rely on this symbol name, it's probably fine to never include it in
10416   # preloaded symbol tables.
10417   # Exclude shared library initialization/finalization symbols.
10418   extract_expsyms_cmds=
10419
10420   case $host_os in
10421   cygwin* | mingw* | pw32* | cegcc*)
10422     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10423     # When not using gcc, we currently assume that we are using
10424     # Microsoft Visual C++ or Intel C++ Compiler.
10425     if test yes != "$GCC"; then
10426       with_gnu_ld=no
10427     fi
10428     ;;
10429   interix*)
10430     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10431     with_gnu_ld=yes
10432     ;;
10433   openbsd* | bitrig*)
10434     with_gnu_ld=no
10435     ;;
10436   esac
10437
10438   ld_shlibs=yes
10439
10440   # On some targets, GNU ld is compatible enough with the native linker
10441   # that we're better off using the native interface for both.
10442   lt_use_gnu_ld_interface=no
10443   if test yes = "$with_gnu_ld"; then
10444     case $host_os in
10445       aix*)
10446         # The AIX port of GNU ld has always aspired to compatibility
10447         # with the native linker.  However, as the warning in the GNU ld
10448         # block says, versions before 2.19.5* couldn't really create working
10449         # shared libraries, regardless of the interface used.
10450         case `$LD -v 2>&1` in
10451           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10452           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10453           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10454           *)
10455             lt_use_gnu_ld_interface=yes
10456             ;;
10457         esac
10458         ;;
10459       *)
10460         lt_use_gnu_ld_interface=yes
10461         ;;
10462     esac
10463   fi
10464
10465   if test yes = "$lt_use_gnu_ld_interface"; then
10466     # If archive_cmds runs LD, not CC, wlarc should be empty
10467     wlarc='$wl'
10468
10469     # Set some defaults for GNU ld with shared library support. These
10470     # are reset later if shared libraries are not supported. Putting them
10471     # here allows them to be overridden if necessary.
10472     runpath_var=LD_RUN_PATH
10473     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10474     export_dynamic_flag_spec='$wl--export-dynamic'
10475     # ancient GNU ld didn't support --whole-archive et. al.
10476     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10477       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10478     else
10479       whole_archive_flag_spec=
10480     fi
10481     supports_anon_versioning=no
10482     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10483       *GNU\ gold*) supports_anon_versioning=yes ;;
10484       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10485       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10486       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10487       *\ 2.11.*) ;; # other 2.11 versions
10488       *) supports_anon_versioning=yes ;;
10489     esac
10490
10491     # See if GNU ld supports shared libraries.
10492     case $host_os in
10493     aix[3-9]*)
10494       # On AIX/PPC, the GNU linker is very broken
10495       if test ia64 != "$host_cpu"; then
10496         ld_shlibs=no
10497         cat <<_LT_EOF 1>&2
10498
10499 *** Warning: the GNU linker, at least up to release 2.19, is reported
10500 *** to be unable to reliably create shared libraries on AIX.
10501 *** Therefore, libtool is disabling shared libraries support.  If you
10502 *** really care for shared libraries, you may want to install binutils
10503 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10504 *** You will then need to restart the configuration process.
10505
10506 _LT_EOF
10507       fi
10508       ;;
10509
10510     amigaos*)
10511       case $host_cpu in
10512       powerpc)
10513             # see comment about AmigaOS4 .so support
10514             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10515             archive_expsym_cmds=''
10516         ;;
10517       m68k)
10518             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)'
10519             hardcode_libdir_flag_spec='-L$libdir'
10520             hardcode_minus_L=yes
10521         ;;
10522       esac
10523       ;;
10524
10525     beos*)
10526       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10527         allow_undefined_flag=unsupported
10528         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10529         # support --undefined.  This deserves some investigation.  FIXME
10530         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10531       else
10532         ld_shlibs=no
10533       fi
10534       ;;
10535
10536     cygwin* | mingw* | pw32* | cegcc*)
10537       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10538       # as there is no search path for DLLs.
10539       hardcode_libdir_flag_spec='-L$libdir'
10540       export_dynamic_flag_spec='$wl--export-all-symbols'
10541       allow_undefined_flag=unsupported
10542       always_export_symbols=no
10543       enable_shared_with_static_runtimes=yes
10544       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'
10545       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10546
10547       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10548         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10549         # If the export-symbols file already is a .def file, use it as
10550         # is; otherwise, prepend EXPORTS...
10551         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10552           cp $export_symbols $output_objdir/$soname.def;
10553         else
10554           echo EXPORTS > $output_objdir/$soname.def;
10555           cat $export_symbols >> $output_objdir/$soname.def;
10556         fi~
10557         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10558       else
10559         ld_shlibs=no
10560       fi
10561       ;;
10562
10563     haiku*)
10564       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10565       link_all_deplibs=yes
10566       ;;
10567
10568     os2*)
10569       hardcode_libdir_flag_spec='-L$libdir'
10570       hardcode_minus_L=yes
10571       allow_undefined_flag=unsupported
10572       shrext_cmds=.dll
10573       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10574         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10575         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10576         $ECHO EXPORTS >> $output_objdir/$libname.def~
10577         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10578         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10579         emximp -o $lib $output_objdir/$libname.def'
10580       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10581         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10582         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10583         $ECHO EXPORTS >> $output_objdir/$libname.def~
10584         prefix_cmds="$SED"~
10585         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10586           prefix_cmds="$prefix_cmds -e 1d";
10587         fi~
10588         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10589         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10590         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10591         emximp -o $lib $output_objdir/$libname.def'
10592       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10593       enable_shared_with_static_runtimes=yes
10594       file_list_spec='@'
10595       ;;
10596
10597     interix[3-9]*)
10598       hardcode_direct=no
10599       hardcode_shlibpath_var=no
10600       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10601       export_dynamic_flag_spec='$wl-E'
10602       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10603       # Instead, shared libraries are loaded at an image base (0x10000000 by
10604       # default) and relocated if they conflict, which is a slow very memory
10605       # consuming and fragmenting process.  To avoid this, we pick a random,
10606       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10607       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10608       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10609       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'
10610       ;;
10611
10612     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10613       tmp_diet=no
10614       if test linux-dietlibc = "$host_os"; then
10615         case $cc_basename in
10616           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10617         esac
10618       fi
10619       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10620          && test no = "$tmp_diet"
10621       then
10622         tmp_addflag=' $pic_flag'
10623         tmp_sharedflag='-shared'
10624         case $cc_basename,$host_cpu in
10625         pgcc*)                          # Portland Group C compiler
10626           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'
10627           tmp_addflag=' $pic_flag'
10628           ;;
10629         pgf77* | pgf90* | pgf95* | pgfortran*)
10630                                         # Portland Group f77 and f90 compilers
10631           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'
10632           tmp_addflag=' $pic_flag -Mnomain' ;;
10633         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10634           tmp_addflag=' -i_dynamic' ;;
10635         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10636           tmp_addflag=' -i_dynamic -nofor_main' ;;
10637         ifc* | ifort*)                  # Intel Fortran compiler
10638           tmp_addflag=' -nofor_main' ;;
10639         lf95*)                          # Lahey Fortran 8.1
10640           whole_archive_flag_spec=
10641           tmp_sharedflag='--shared' ;;
10642         nagfor*)                        # NAGFOR 5.3
10643           tmp_sharedflag='-Wl,-shared' ;;
10644         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10645           tmp_sharedflag='-qmkshrobj'
10646           tmp_addflag= ;;
10647         nvcc*)  # Cuda Compiler Driver 2.2
10648           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'
10649           compiler_needs_object=yes
10650           ;;
10651         esac
10652         case `$CC -V 2>&1 | $SED 5q` in
10653         *Sun\ C*)                       # Sun C 5.9
10654           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'
10655           compiler_needs_object=yes
10656           tmp_sharedflag='-G' ;;
10657         *Sun\ F*)                       # Sun Fortran 8.3
10658           tmp_sharedflag='-G' ;;
10659         esac
10660         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10661
10662         if test yes = "$supports_anon_versioning"; then
10663           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10664             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10665             echo "local: *; };" >> $output_objdir/$libname.ver~
10666             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10667         fi
10668
10669         case $cc_basename in
10670         tcc*)
10671           export_dynamic_flag_spec='-rdynamic'
10672           ;;
10673         xlf* | bgf* | bgxlf* | mpixlf*)
10674           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10675           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10676           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10677           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10678           if test yes = "$supports_anon_versioning"; then
10679             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10680               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10681               echo "local: *; };" >> $output_objdir/$libname.ver~
10682               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10683           fi
10684           ;;
10685         esac
10686       else
10687         ld_shlibs=no
10688       fi
10689       ;;
10690
10691     netbsd*)
10692       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10693         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10694         wlarc=
10695       else
10696         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10697         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10698       fi
10699       ;;
10700
10701     solaris*)
10702       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10703         ld_shlibs=no
10704         cat <<_LT_EOF 1>&2
10705
10706 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10707 *** create shared libraries on Solaris systems.  Therefore, libtool
10708 *** is disabling shared libraries support.  We urge you to upgrade GNU
10709 *** binutils to release 2.9.1 or newer.  Another option is to modify
10710 *** your PATH or compiler configuration so that the native linker is
10711 *** used, and then restart.
10712
10713 _LT_EOF
10714       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10715         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10716         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10717       else
10718         ld_shlibs=no
10719       fi
10720       ;;
10721
10722     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10723       case `$LD -v 2>&1` in
10724         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10725         ld_shlibs=no
10726         cat <<_LT_EOF 1>&2
10727
10728 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10729 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10730 *** is disabling shared libraries support.  We urge you to upgrade GNU
10731 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10732 *** your PATH or compiler configuration so that the native linker is
10733 *** used, and then restart.
10734
10735 _LT_EOF
10736         ;;
10737         *)
10738           # For security reasons, it is highly recommended that you always
10739           # use absolute paths for naming shared libraries, and exclude the
10740           # DT_RUNPATH tag from executables and libraries.  But doing so
10741           # requires that you compile everything twice, which is a pain.
10742           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10743             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10744             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10745             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10746           else
10747             ld_shlibs=no
10748           fi
10749         ;;
10750       esac
10751       ;;
10752
10753     sunos4*)
10754       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10755       wlarc=
10756       hardcode_direct=yes
10757       hardcode_shlibpath_var=no
10758       ;;
10759
10760     *)
10761       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10762         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10763         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10764       else
10765         ld_shlibs=no
10766       fi
10767       ;;
10768     esac
10769
10770     if test no = "$ld_shlibs"; then
10771       runpath_var=
10772       hardcode_libdir_flag_spec=
10773       export_dynamic_flag_spec=
10774       whole_archive_flag_spec=
10775     fi
10776   else
10777     # PORTME fill in a description of your system's linker (not GNU ld)
10778     case $host_os in
10779     aix3*)
10780       allow_undefined_flag=unsupported
10781       always_export_symbols=yes
10782       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'
10783       # Note: this linker hardcodes the directories in LIBPATH if there
10784       # are no directories specified by -L.
10785       hardcode_minus_L=yes
10786       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10787         # Neither direct hardcoding nor static linking is supported with a
10788         # broken collect2.
10789         hardcode_direct=unsupported
10790       fi
10791       ;;
10792
10793     aix[4-9]*)
10794       if test ia64 = "$host_cpu"; then
10795         # On IA64, the linker does run time linking by default, so we don't
10796         # have to do anything special.
10797         aix_use_runtimelinking=no
10798         exp_sym_flag='-Bexport'
10799         no_entry_flag=
10800       else
10801         # If we're using GNU nm, then we don't want the "-C" option.
10802         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10803         # Without the "-l" option, or with the "-B" option, AIX nm treats
10804         # weak defined symbols like other global defined symbols, whereas
10805         # GNU nm marks them as "W".
10806         # While the 'weak' keyword is ignored in the Export File, we need
10807         # it in the Import File for the 'aix-soname' feature, so we have
10808         # to replace the "-B" option with "-P" for AIX nm.
10809         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10810           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10811         else
10812           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10813         fi
10814         aix_use_runtimelinking=no
10815
10816         # Test if we are trying to use run time linking or normal
10817         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10818         # have runtime linking enabled, and use it for executables.
10819         # For shared libraries, we enable/disable runtime linking
10820         # depending on the kind of the shared library created -
10821         # when "with_aix_soname,aix_use_runtimelinking" is:
10822         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10823         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10824         #            lib.a           static archive
10825         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10826         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10827         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10828         #            lib.a(lib.so.V) shared, rtl:no
10829         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10830         #            lib.a           static archive
10831         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10832           for ld_flag in $LDFLAGS; do
10833           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10834             aix_use_runtimelinking=yes
10835             break
10836           fi
10837           done
10838           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10839             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10840             # so we don't have lib.a shared libs to link our executables.
10841             # We have to force runtime linking in this case.
10842             aix_use_runtimelinking=yes
10843             LDFLAGS="$LDFLAGS -Wl,-brtl"
10844           fi
10845           ;;
10846         esac
10847
10848         exp_sym_flag='-bexport'
10849         no_entry_flag='-bnoentry'
10850       fi
10851
10852       # When large executables or shared objects are built, AIX ld can
10853       # have problems creating the table of contents.  If linking a library
10854       # or program results in "error TOC overflow" add -mminimal-toc to
10855       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10856       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10857
10858       archive_cmds=''
10859       hardcode_direct=yes
10860       hardcode_direct_absolute=yes
10861       hardcode_libdir_separator=':'
10862       link_all_deplibs=yes
10863       file_list_spec='$wl-f,'
10864       case $with_aix_soname,$aix_use_runtimelinking in
10865       aix,*) ;; # traditional, no import file
10866       svr4,* | *,yes) # use import file
10867         # The Import File defines what to hardcode.
10868         hardcode_direct=no
10869         hardcode_direct_absolute=no
10870         ;;
10871       esac
10872
10873       if test yes = "$GCC"; then
10874         case $host_os in aix4.[012]|aix4.[012].*)
10875         # We only want to do this on AIX 4.2 and lower, the check
10876         # below for broken collect2 doesn't work under 4.3+
10877           collect2name=`$CC -print-prog-name=collect2`
10878           if test -f "$collect2name" &&
10879            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10880           then
10881           # We have reworked collect2
10882           :
10883           else
10884           # We have old collect2
10885           hardcode_direct=unsupported
10886           # It fails to find uninstalled libraries when the uninstalled
10887           # path is not listed in the libpath.  Setting hardcode_minus_L
10888           # to unsupported forces relinking
10889           hardcode_minus_L=yes
10890           hardcode_libdir_flag_spec='-L$libdir'
10891           hardcode_libdir_separator=
10892           fi
10893           ;;
10894         esac
10895         shared_flag='-shared'
10896         if test yes = "$aix_use_runtimelinking"; then
10897           shared_flag="$shared_flag "'$wl-G'
10898         fi
10899         # Need to ensure runtime linking is disabled for the traditional
10900         # shared library, or the linker may eventually find shared libraries
10901         # /with/ Import File - we do not want to mix them.
10902         shared_flag_aix='-shared'
10903         shared_flag_svr4='-shared $wl-G'
10904       else
10905         # not using gcc
10906         if test ia64 = "$host_cpu"; then
10907         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10908         # chokes on -Wl,-G. The following line is correct:
10909           shared_flag='-G'
10910         else
10911           if test yes = "$aix_use_runtimelinking"; then
10912             shared_flag='$wl-G'
10913           else
10914             shared_flag='$wl-bM:SRE'
10915           fi
10916           shared_flag_aix='$wl-bM:SRE'
10917           shared_flag_svr4='$wl-G'
10918         fi
10919       fi
10920
10921       export_dynamic_flag_spec='$wl-bexpall'
10922       # It seems that -bexpall does not export symbols beginning with
10923       # underscore (_), so it is better to generate a list of symbols to export.
10924       always_export_symbols=yes
10925       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10926         # Warning - without using the other runtime loading flags (-brtl),
10927         # -berok will link without error, but may produce a broken library.
10928         allow_undefined_flag='-berok'
10929         # Determine the default libpath from the value encoded in an
10930         # empty executable.
10931         if test set = "${lt_cv_aix_libpath+set}"; then
10932   aix_libpath=$lt_cv_aix_libpath
10933 else
10934   if ${lt_cv_aix_libpath_+:} false; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h.  */
10939
10940 int
10941 main ()
10942 {
10943
10944   ;
10945   return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_c_try_link "$LINENO"; then :
10949
10950   lt_aix_libpath_sed='
10951       /Import File Strings/,/^$/ {
10952           /^0/ {
10953               s/^0  *\([^ ]*\) *$/\1/
10954               p
10955           }
10956       }'
10957   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10958   # Check for a 64-bit object if we didn't find anything.
10959   if test -z "$lt_cv_aix_libpath_"; then
10960     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10961   fi
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext \
10964     conftest$ac_exeext conftest.$ac_ext
10965   if test -z "$lt_cv_aix_libpath_"; then
10966     lt_cv_aix_libpath_=/usr/lib:/lib
10967   fi
10968
10969 fi
10970
10971   aix_libpath=$lt_cv_aix_libpath_
10972 fi
10973
10974         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10975         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10976       else
10977         if test ia64 = "$host_cpu"; then
10978           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10979           allow_undefined_flag="-z nodefs"
10980           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"
10981         else
10982          # Determine the default libpath from the value encoded in an
10983          # empty executable.
10984          if test set = "${lt_cv_aix_libpath+set}"; then
10985   aix_libpath=$lt_cv_aix_libpath
10986 else
10987   if ${lt_cv_aix_libpath_+:} false; then :
10988   $as_echo_n "(cached) " >&6
10989 else
10990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h.  */
10992
10993 int
10994 main ()
10995 {
10996
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002
11003   lt_aix_libpath_sed='
11004       /Import File Strings/,/^$/ {
11005           /^0/ {
11006               s/^0  *\([^ ]*\) *$/\1/
11007               p
11008           }
11009       }'
11010   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011   # Check for a 64-bit object if we didn't find anything.
11012   if test -z "$lt_cv_aix_libpath_"; then
11013     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11014   fi
11015 fi
11016 rm -f core conftest.err conftest.$ac_objext \
11017     conftest$ac_exeext conftest.$ac_ext
11018   if test -z "$lt_cv_aix_libpath_"; then
11019     lt_cv_aix_libpath_=/usr/lib:/lib
11020   fi
11021
11022 fi
11023
11024   aix_libpath=$lt_cv_aix_libpath_
11025 fi
11026
11027          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11028           # Warning - without using the other run time loading flags,
11029           # -berok will link without error, but may produce a broken library.
11030           no_undefined_flag=' $wl-bernotok'
11031           allow_undefined_flag=' $wl-berok'
11032           if test yes = "$with_gnu_ld"; then
11033             # We only use this code for GNU lds that support --whole-archive.
11034             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11035           else
11036             # Exported symbols can be pulled into shared objects from archives
11037             whole_archive_flag_spec='$convenience'
11038           fi
11039           archive_cmds_need_lc=yes
11040           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11041           # -brtl affects multiple linker settings, -berok does not and is overridden later
11042           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11043           if test svr4 != "$with_aix_soname"; then
11044             # This is similar to how AIX traditionally builds its shared libraries.
11045             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11046           fi
11047           if test aix != "$with_aix_soname"; then
11048             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11049           else
11050             # used by -dlpreopen to get the symbols
11051             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11052           fi
11053           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11054         fi
11055       fi
11056       ;;
11057
11058     amigaos*)
11059       case $host_cpu in
11060       powerpc)
11061             # see comment about AmigaOS4 .so support
11062             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11063             archive_expsym_cmds=''
11064         ;;
11065       m68k)
11066             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)'
11067             hardcode_libdir_flag_spec='-L$libdir'
11068             hardcode_minus_L=yes
11069         ;;
11070       esac
11071       ;;
11072
11073     bsdi[45]*)
11074       export_dynamic_flag_spec=-rdynamic
11075       ;;
11076
11077     cygwin* | mingw* | pw32* | cegcc*)
11078       # When not using gcc, we currently assume that we are using
11079       # Microsoft Visual C++ or Intel C++ Compiler.
11080       # hardcode_libdir_flag_spec is actually meaningless, as there is
11081       # no search path for DLLs.
11082       case $cc_basename in
11083       cl* | icl*)
11084         # Native MSVC or ICC
11085         hardcode_libdir_flag_spec=' '
11086         allow_undefined_flag=unsupported
11087         always_export_symbols=yes
11088         file_list_spec='@'
11089         # Tell ltmain to make .lib files, not .a files.
11090         libext=lib
11091         # Tell ltmain to make .dll files, not .so files.
11092         shrext_cmds=.dll
11093         # FIXME: Setting linknames here is a bad hack.
11094         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11095         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11096             cp "$export_symbols" "$output_objdir/$soname.def";
11097             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11098           else
11099             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11100           fi~
11101           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11102           linknames='
11103         # The linker will not automatically build a static lib if we build a DLL.
11104         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11105         enable_shared_with_static_runtimes=yes
11106         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11107         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11108         # Don't use ranlib
11109         old_postinstall_cmds='chmod 644 $oldlib'
11110         postlink_cmds='lt_outputfile="@OUTPUT@"~
11111           lt_tool_outputfile="@TOOL_OUTPUT@"~
11112           case $lt_outputfile in
11113             *.exe|*.EXE) ;;
11114             *)
11115               lt_outputfile=$lt_outputfile.exe
11116               lt_tool_outputfile=$lt_tool_outputfile.exe
11117               ;;
11118           esac~
11119           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11120             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11121             $RM "$lt_outputfile.manifest";
11122           fi'
11123         ;;
11124       *)
11125         # Assume MSVC and ICC wrapper
11126         hardcode_libdir_flag_spec=' '
11127         allow_undefined_flag=unsupported
11128         # Tell ltmain to make .lib files, not .a files.
11129         libext=lib
11130         # Tell ltmain to make .dll files, not .so files.
11131         shrext_cmds=.dll
11132         # FIXME: Setting linknames here is a bad hack.
11133         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11134         # The linker will automatically build a .lib file if we build a DLL.
11135         old_archive_from_new_cmds='true'
11136         # FIXME: Should let the user specify the lib program.
11137         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11138         enable_shared_with_static_runtimes=yes
11139         ;;
11140       esac
11141       ;;
11142
11143     darwin* | rhapsody*)
11144
11145
11146   archive_cmds_need_lc=no
11147   hardcode_direct=no
11148   hardcode_automatic=yes
11149   hardcode_shlibpath_var=unsupported
11150   if test yes = "$lt_cv_ld_force_load"; then
11151     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\"`'
11152
11153   else
11154     whole_archive_flag_spec=''
11155   fi
11156   link_all_deplibs=yes
11157   allow_undefined_flag=$_lt_dar_allow_undefined
11158   case $cc_basename in
11159      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11160      *) _lt_dar_can_shared=$GCC ;;
11161   esac
11162   if test yes = "$_lt_dar_can_shared"; then
11163     output_verbose_link_cmd=func_echo_all
11164     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11165     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11166     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"
11167     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"
11168
11169   else
11170   ld_shlibs=no
11171   fi
11172
11173       ;;
11174
11175     dgux*)
11176       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11177       hardcode_libdir_flag_spec='-L$libdir'
11178       hardcode_shlibpath_var=no
11179       ;;
11180
11181     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11182     # support.  Future versions do this automatically, but an explicit c++rt0.o
11183     # does not break anything, and helps significantly (at the cost of a little
11184     # extra space).
11185     freebsd2.2*)
11186       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11187       hardcode_libdir_flag_spec='-R$libdir'
11188       hardcode_direct=yes
11189       hardcode_shlibpath_var=no
11190       ;;
11191
11192     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11193     freebsd2.*)
11194       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11195       hardcode_direct=yes
11196       hardcode_minus_L=yes
11197       hardcode_shlibpath_var=no
11198       ;;
11199
11200     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11201     freebsd* | dragonfly* | midnightbsd*)
11202       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11203       hardcode_libdir_flag_spec='-R$libdir'
11204       hardcode_direct=yes
11205       hardcode_shlibpath_var=no
11206       ;;
11207
11208     hpux9*)
11209       if test yes = "$GCC"; then
11210         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11211       else
11212         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11213       fi
11214       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11215       hardcode_libdir_separator=:
11216       hardcode_direct=yes
11217
11218       # hardcode_minus_L: Not really in the search PATH,
11219       # but as the default location of the library.
11220       hardcode_minus_L=yes
11221       export_dynamic_flag_spec='$wl-E'
11222       ;;
11223
11224     hpux10*)
11225       if test yes,no = "$GCC,$with_gnu_ld"; then
11226         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11227       else
11228         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11229       fi
11230       if test no = "$with_gnu_ld"; then
11231         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11232         hardcode_libdir_separator=:
11233         hardcode_direct=yes
11234         hardcode_direct_absolute=yes
11235         export_dynamic_flag_spec='$wl-E'
11236         # hardcode_minus_L: Not really in the search PATH,
11237         # but as the default location of the library.
11238         hardcode_minus_L=yes
11239       fi
11240       ;;
11241
11242     hpux11*)
11243       if test yes,no = "$GCC,$with_gnu_ld"; then
11244         case $host_cpu in
11245         hppa*64*)
11246           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11247           ;;
11248         ia64*)
11249           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11250           ;;
11251         *)
11252           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11253           ;;
11254         esac
11255       else
11256         case $host_cpu in
11257         hppa*64*)
11258           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11259           ;;
11260         ia64*)
11261           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11262           ;;
11263         *)
11264
11265           # Older versions of the 11.00 compiler do not understand -b yet
11266           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11267           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11268 $as_echo_n "checking if $CC understands -b... " >&6; }
11269 if ${lt_cv_prog_compiler__b+:} false; then :
11270   $as_echo_n "(cached) " >&6
11271 else
11272   lt_cv_prog_compiler__b=no
11273    save_LDFLAGS=$LDFLAGS
11274    LDFLAGS="$LDFLAGS -b"
11275    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11276    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11277      # The linker can only warn and ignore the option if not recognized
11278      # So say no if there are warnings
11279      if test -s conftest.err; then
11280        # Append any errors to the config.log.
11281        cat conftest.err 1>&5
11282        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11283        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11284        if diff conftest.exp conftest.er2 >/dev/null; then
11285          lt_cv_prog_compiler__b=yes
11286        fi
11287      else
11288        lt_cv_prog_compiler__b=yes
11289      fi
11290    fi
11291    $RM -r conftest*
11292    LDFLAGS=$save_LDFLAGS
11293
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11296 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11297
11298 if test yes = "$lt_cv_prog_compiler__b"; then
11299     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11300 else
11301     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11302 fi
11303
11304           ;;
11305         esac
11306       fi
11307       if test no = "$with_gnu_ld"; then
11308         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11309         hardcode_libdir_separator=:
11310
11311         case $host_cpu in
11312         hppa*64*|ia64*)
11313           hardcode_direct=no
11314           hardcode_shlibpath_var=no
11315           ;;
11316         *)
11317           hardcode_direct=yes
11318           hardcode_direct_absolute=yes
11319           export_dynamic_flag_spec='$wl-E'
11320
11321           # hardcode_minus_L: Not really in the search PATH,
11322           # but as the default location of the library.
11323           hardcode_minus_L=yes
11324           ;;
11325         esac
11326       fi
11327       ;;
11328
11329     irix5* | irix6* | nonstopux*)
11330       if test yes = "$GCC"; then
11331         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'
11332         # Try to use the -exported_symbol ld option, if it does not
11333         # work, assume that -exports_file does not work either and
11334         # implicitly export all symbols.
11335         # This should be the same for all languages, so no per-tag cache variable.
11336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11337 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11338 if ${lt_cv_irix_exported_symbol+:} false; then :
11339   $as_echo_n "(cached) " >&6
11340 else
11341   save_LDFLAGS=$LDFLAGS
11342            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11343            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h.  */
11345 int foo (void) { return 0; }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348   lt_cv_irix_exported_symbol=yes
11349 else
11350   lt_cv_irix_exported_symbol=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353     conftest$ac_exeext conftest.$ac_ext
11354            LDFLAGS=$save_LDFLAGS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11357 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11358         if test yes = "$lt_cv_irix_exported_symbol"; then
11359           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'
11360         fi
11361       else
11362         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'
11363         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'
11364       fi
11365       archive_cmds_need_lc='no'
11366       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11367       hardcode_libdir_separator=:
11368       inherit_rpath=yes
11369       link_all_deplibs=yes
11370       ;;
11371
11372     linux*)
11373       case $cc_basename in
11374       tcc*)
11375         # Fabrice Bellard et al's Tiny C Compiler
11376         ld_shlibs=yes
11377         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11378         ;;
11379       esac
11380       ;;
11381
11382     netbsd*)
11383       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11384         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11385       else
11386         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11387       fi
11388       hardcode_libdir_flag_spec='-R$libdir'
11389       hardcode_direct=yes
11390       hardcode_shlibpath_var=no
11391       ;;
11392
11393     newsos6)
11394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11395       hardcode_direct=yes
11396       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11397       hardcode_libdir_separator=:
11398       hardcode_shlibpath_var=no
11399       ;;
11400
11401     *nto* | *qnx*)
11402       ;;
11403
11404     openbsd* | bitrig*)
11405       if test -f /usr/libexec/ld.so; then
11406         hardcode_direct=yes
11407         hardcode_shlibpath_var=no
11408         hardcode_direct_absolute=yes
11409         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11410           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11411           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11412           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11413           export_dynamic_flag_spec='$wl-E'
11414         else
11415           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11416           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11417         fi
11418       else
11419         ld_shlibs=no
11420       fi
11421       ;;
11422
11423     os2*)
11424       hardcode_libdir_flag_spec='-L$libdir'
11425       hardcode_minus_L=yes
11426       allow_undefined_flag=unsupported
11427       shrext_cmds=.dll
11428       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11429         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11430         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11431         $ECHO EXPORTS >> $output_objdir/$libname.def~
11432         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11433         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11434         emximp -o $lib $output_objdir/$libname.def'
11435       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11436         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11437         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11438         $ECHO EXPORTS >> $output_objdir/$libname.def~
11439         prefix_cmds="$SED"~
11440         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11441           prefix_cmds="$prefix_cmds -e 1d";
11442         fi~
11443         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11444         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11445         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11446         emximp -o $lib $output_objdir/$libname.def'
11447       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11448       enable_shared_with_static_runtimes=yes
11449       file_list_spec='@'
11450       ;;
11451
11452     osf3*)
11453       if test yes = "$GCC"; then
11454         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11455         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'
11456       else
11457         allow_undefined_flag=' -expect_unresolved \*'
11458         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'
11459       fi
11460       archive_cmds_need_lc='no'
11461       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11462       hardcode_libdir_separator=:
11463       ;;
11464
11465     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11466       if test yes = "$GCC"; then
11467         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11468         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'
11469         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11470       else
11471         allow_undefined_flag=' -expect_unresolved \*'
11472         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'
11473         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~
11474           $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'
11475
11476         # Both c and cxx compiler support -rpath directly
11477         hardcode_libdir_flag_spec='-rpath $libdir'
11478       fi
11479       archive_cmds_need_lc='no'
11480       hardcode_libdir_separator=:
11481       ;;
11482
11483     solaris*)
11484       no_undefined_flag=' -z defs'
11485       if test yes = "$GCC"; then
11486         wlarc='$wl'
11487         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11488         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11489           $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'
11490       else
11491         case `$CC -V 2>&1` in
11492         *"Compilers 5.0"*)
11493           wlarc=''
11494           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11495           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11496             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11497           ;;
11498         *)
11499           wlarc='$wl'
11500           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11501           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11502             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11503           ;;
11504         esac
11505       fi
11506       hardcode_libdir_flag_spec='-R$libdir'
11507       hardcode_shlibpath_var=no
11508       case $host_os in
11509       solaris2.[0-5] | solaris2.[0-5].*) ;;
11510       *)
11511         # The compiler driver will combine and reorder linker options,
11512         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11513         # but is careful enough not to reorder.
11514         # Supported since Solaris 2.6 (maybe 2.5.1?)
11515         if test yes = "$GCC"; then
11516           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11517         else
11518           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11519         fi
11520         ;;
11521       esac
11522       link_all_deplibs=yes
11523       ;;
11524
11525     sunos4*)
11526       if test sequent = "$host_vendor"; then
11527         # Use $CC to link under sequent, because it throws in some extra .o
11528         # files that make .init and .fini sections work.
11529         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11530       else
11531         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11532       fi
11533       hardcode_libdir_flag_spec='-L$libdir'
11534       hardcode_direct=yes
11535       hardcode_minus_L=yes
11536       hardcode_shlibpath_var=no
11537       ;;
11538
11539     sysv4)
11540       case $host_vendor in
11541         sni)
11542           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11543           hardcode_direct=yes # is this really true???
11544         ;;
11545         siemens)
11546           ## LD is ld it makes a PLAMLIB
11547           ## CC just makes a GrossModule.
11548           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11549           reload_cmds='$CC -r -o $output$reload_objs'
11550           hardcode_direct=no
11551         ;;
11552         motorola)
11553           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11554           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11555         ;;
11556       esac
11557       runpath_var='LD_RUN_PATH'
11558       hardcode_shlibpath_var=no
11559       ;;
11560
11561     sysv4.3*)
11562       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11563       hardcode_shlibpath_var=no
11564       export_dynamic_flag_spec='-Bexport'
11565       ;;
11566
11567     sysv4*MP*)
11568       if test -d /usr/nec; then
11569         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570         hardcode_shlibpath_var=no
11571         runpath_var=LD_RUN_PATH
11572         hardcode_runpath_var=yes
11573         ld_shlibs=yes
11574       fi
11575       ;;
11576
11577     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11578       no_undefined_flag='$wl-z,text'
11579       archive_cmds_need_lc=no
11580       hardcode_shlibpath_var=no
11581       runpath_var='LD_RUN_PATH'
11582
11583       if test yes = "$GCC"; then
11584         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11585         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11586       else
11587         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11588         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11589       fi
11590       ;;
11591
11592     sysv5* | sco3.2v5* | sco5v6*)
11593       # Note: We CANNOT use -z defs as we might desire, because we do not
11594       # link with -lc, and that would cause any symbols used from libc to
11595       # always be unresolved, which means just about no library would
11596       # ever link correctly.  If we're not using GNU ld we use -z text
11597       # though, which does catch some bad symbols but isn't as heavy-handed
11598       # as -z defs.
11599       no_undefined_flag='$wl-z,text'
11600       allow_undefined_flag='$wl-z,nodefs'
11601       archive_cmds_need_lc=no
11602       hardcode_shlibpath_var=no
11603       hardcode_libdir_flag_spec='$wl-R,$libdir'
11604       hardcode_libdir_separator=':'
11605       link_all_deplibs=yes
11606       export_dynamic_flag_spec='$wl-Bexport'
11607       runpath_var='LD_RUN_PATH'
11608
11609       if test yes = "$GCC"; then
11610         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11611         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11612       else
11613         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11614         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11615       fi
11616       ;;
11617
11618     uts4*)
11619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11620       hardcode_libdir_flag_spec='-L$libdir'
11621       hardcode_shlibpath_var=no
11622       ;;
11623
11624     *)
11625       ld_shlibs=no
11626       ;;
11627     esac
11628
11629     if test sni = "$host_vendor"; then
11630       case $host in
11631       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11632         export_dynamic_flag_spec='$wl-Blargedynsym'
11633         ;;
11634       esac
11635     fi
11636   fi
11637
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11639 $as_echo "$ld_shlibs" >&6; }
11640 test no = "$ld_shlibs" && can_build_shared=no
11641
11642 with_gnu_ld=$with_gnu_ld
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658 #
11659 # Do we need to explicitly link libc?
11660 #
11661 case "x$archive_cmds_need_lc" in
11662 x|xyes)
11663   # Assume -lc should be added
11664   archive_cmds_need_lc=yes
11665
11666   if test yes,yes = "$GCC,$enable_shared"; then
11667     case $archive_cmds in
11668     *'~'*)
11669       # FIXME: we may have to deal with multi-command sequences.
11670       ;;
11671     '$CC '*)
11672       # Test whether the compiler implicitly links with -lc since on some
11673       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11674       # to ld, don't add -lc before -lgcc.
11675       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11676 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11677 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   $RM conftest*
11681         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11682
11683         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11684   (eval $ac_compile) 2>&5
11685   ac_status=$?
11686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687   test $ac_status = 0; } 2>conftest.err; then
11688           soname=conftest
11689           lib=conftest
11690           libobjs=conftest.$ac_objext
11691           deplibs=
11692           wl=$lt_prog_compiler_wl
11693           pic_flag=$lt_prog_compiler_pic
11694           compiler_flags=-v
11695           linker_flags=-v
11696           verstring=
11697           output_objdir=.
11698           libname=conftest
11699           lt_save_allow_undefined_flag=$allow_undefined_flag
11700           allow_undefined_flag=
11701           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11702   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11703   ac_status=$?
11704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11705   test $ac_status = 0; }
11706           then
11707             lt_cv_archive_cmds_need_lc=no
11708           else
11709             lt_cv_archive_cmds_need_lc=yes
11710           fi
11711           allow_undefined_flag=$lt_save_allow_undefined_flag
11712         else
11713           cat conftest.err 1>&5
11714         fi
11715         $RM conftest*
11716
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11719 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11720       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11721       ;;
11722     esac
11723   fi
11724   ;;
11725 esac
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11880
11881 if test yes = "$GCC"; then
11882   case $host_os in
11883     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11884     *) lt_awk_arg='/^libraries:/' ;;
11885   esac
11886   case $host_os in
11887     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11888     *) lt_sed_strip_eq='s|=/|/|g' ;;
11889   esac
11890   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11891   case $lt_search_path_spec in
11892   *\;*)
11893     # if the path contains ";" then we assume it to be the separator
11894     # otherwise default to the standard path separator (i.e. ":") - it is
11895     # assumed that no part of a normal pathname contains ";" but that should
11896     # okay in the real world where ";" in dirpaths is itself problematic.
11897     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11898     ;;
11899   *)
11900     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11901     ;;
11902   esac
11903   # Ok, now we have the path, separated by spaces, we can step through it
11904   # and add multilib dir if necessary...
11905   lt_tmp_lt_search_path_spec=
11906   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11907   # ...but if some path component already ends with the multilib dir we assume
11908   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11909   case "$lt_multi_os_dir; $lt_search_path_spec " in
11910   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11911     lt_multi_os_dir=
11912     ;;
11913   esac
11914   for lt_sys_path in $lt_search_path_spec; do
11915     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11916       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11917     elif test -n "$lt_multi_os_dir"; then
11918       test -d "$lt_sys_path" && \
11919         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11920     fi
11921   done
11922   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11923 BEGIN {RS = " "; FS = "/|\n";} {
11924   lt_foo = "";
11925   lt_count = 0;
11926   for (lt_i = NF; lt_i > 0; lt_i--) {
11927     if ($lt_i != "" && $lt_i != ".") {
11928       if ($lt_i == "..") {
11929         lt_count++;
11930       } else {
11931         if (lt_count == 0) {
11932           lt_foo = "/" $lt_i lt_foo;
11933         } else {
11934           lt_count--;
11935         }
11936       }
11937     }
11938   }
11939   if (lt_foo != "") { lt_freq[lt_foo]++; }
11940   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11941 }'`
11942   # AWK program above erroneously prepends '/' to C:/dos/paths
11943   # for these hosts.
11944   case $host_os in
11945     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11946       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11947   esac
11948   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11949 else
11950   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11951 fi
11952 library_names_spec=
11953 libname_spec='lib$name'
11954 soname_spec=
11955 shrext_cmds=.so
11956 postinstall_cmds=
11957 postuninstall_cmds=
11958 finish_cmds=
11959 finish_eval=
11960 shlibpath_var=
11961 shlibpath_overrides_runpath=unknown
11962 version_type=none
11963 dynamic_linker="$host_os ld.so"
11964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11965 need_lib_prefix=unknown
11966 hardcode_into_libs=no
11967
11968 # when you set need_version to no, make sure it does not cause -set_version
11969 # flags to be left without arguments
11970 need_version=unknown
11971
11972
11973
11974 case $host_os in
11975 aix3*)
11976   version_type=linux # correct to gnu/linux during the next big refactor
11977   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11978   shlibpath_var=LIBPATH
11979
11980   # AIX 3 has no versioning support, so we append a major version to the name.
11981   soname_spec='$libname$release$shared_ext$major'
11982   ;;
11983
11984 aix[4-9]*)
11985   version_type=linux # correct to gnu/linux during the next big refactor
11986   need_lib_prefix=no
11987   need_version=no
11988   hardcode_into_libs=yes
11989   if test ia64 = "$host_cpu"; then
11990     # AIX 5 supports IA64
11991     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11992     shlibpath_var=LD_LIBRARY_PATH
11993   else
11994     # With GCC up to 2.95.x, collect2 would create an import file
11995     # for dependence libraries.  The import file would start with
11996     # the line '#! .'.  This would cause the generated library to
11997     # depend on '.', always an invalid library.  This was fixed in
11998     # development snapshots of GCC prior to 3.0.
11999     case $host_os in
12000       aix4 | aix4.[01] | aix4.[01].*)
12001       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12002            echo ' yes '
12003            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12004         :
12005       else
12006         can_build_shared=no
12007       fi
12008       ;;
12009     esac
12010     # Using Import Files as archive members, it is possible to support
12011     # filename-based versioning of shared library archives on AIX. While
12012     # this would work for both with and without runtime linking, it will
12013     # prevent static linking of such archives. So we do filename-based
12014     # shared library versioning with .so extension only, which is used
12015     # when both runtime linking and shared linking is enabled.
12016     # Unfortunately, runtime linking may impact performance, so we do
12017     # not want this to be the default eventually. Also, we use the
12018     # versioned .so libs for executables only if there is the -brtl
12019     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12020     # To allow for filename-based versioning support, we need to create
12021     # libNAME.so.V as an archive file, containing:
12022     # *) an Import File, referring to the versioned filename of the
12023     #    archive as well as the shared archive member, telling the
12024     #    bitwidth (32 or 64) of that shared object, and providing the
12025     #    list of exported symbols of that shared object, eventually
12026     #    decorated with the 'weak' keyword
12027     # *) the shared object with the F_LOADONLY flag set, to really avoid
12028     #    it being seen by the linker.
12029     # At run time we better use the real file rather than another symlink,
12030     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12031
12032     case $with_aix_soname,$aix_use_runtimelinking in
12033     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12034     # soname into executable. Probably we can add versioning support to
12035     # collect2, so additional links can be useful in future.
12036     aix,yes) # traditional libtool
12037       dynamic_linker='AIX unversionable lib.so'
12038       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12039       # instead of lib<name>.a to let people know that these are not
12040       # typical AIX shared libraries.
12041       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12042       ;;
12043     aix,no) # traditional AIX only
12044       dynamic_linker='AIX lib.a(lib.so.V)'
12045       # We preserve .a as extension for shared libraries through AIX4.2
12046       # and later when we are not doing run time linking.
12047       library_names_spec='$libname$release.a $libname.a'
12048       soname_spec='$libname$release$shared_ext$major'
12049       ;;
12050     svr4,*) # full svr4 only
12051       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12052       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12053       # We do not specify a path in Import Files, so LIBPATH fires.
12054       shlibpath_overrides_runpath=yes
12055       ;;
12056     *,yes) # both, prefer svr4
12057       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12058       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12059       # unpreferred sharedlib libNAME.a needs extra handling
12060       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12061       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12062       # We do not specify a path in Import Files, so LIBPATH fires.
12063       shlibpath_overrides_runpath=yes
12064       ;;
12065     *,no) # both, prefer aix
12066       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12067       library_names_spec='$libname$release.a $libname.a'
12068       soname_spec='$libname$release$shared_ext$major'
12069       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12070       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12071       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12072       ;;
12073     esac
12074     shlibpath_var=LIBPATH
12075   fi
12076   ;;
12077
12078 amigaos*)
12079   case $host_cpu in
12080   powerpc)
12081     # Since July 2007 AmigaOS4 officially supports .so libraries.
12082     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12083     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12084     ;;
12085   m68k)
12086     library_names_spec='$libname.ixlibrary $libname.a'
12087     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12088     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12089     ;;
12090   esac
12091   ;;
12092
12093 beos*)
12094   library_names_spec='$libname$shared_ext'
12095   dynamic_linker="$host_os ld.so"
12096   shlibpath_var=LIBRARY_PATH
12097   ;;
12098
12099 bsdi[45]*)
12100   version_type=linux # correct to gnu/linux during the next big refactor
12101   need_version=no
12102   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12103   soname_spec='$libname$release$shared_ext$major'
12104   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12105   shlibpath_var=LD_LIBRARY_PATH
12106   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12107   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12108   # the default ld.so.conf also contains /usr/contrib/lib and
12109   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12110   # libtool to hard-code these into programs
12111   ;;
12112
12113 cygwin* | mingw* | pw32* | cegcc*)
12114   version_type=windows
12115   shrext_cmds=.dll
12116   need_version=no
12117   need_lib_prefix=no
12118
12119   case $GCC,$cc_basename in
12120   yes,*)
12121     # gcc
12122     library_names_spec='$libname.dll.a'
12123     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12124     postinstall_cmds='base_file=`basename \$file`~
12125       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12126       dldir=$destdir/`dirname \$dlpath`~
12127       test -d \$dldir || mkdir -p \$dldir~
12128       $install_prog $dir/$dlname \$dldir/$dlname~
12129       chmod a+x \$dldir/$dlname~
12130       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12131         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12132       fi'
12133     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12134       dlpath=$dir/\$dldll~
12135        $RM \$dlpath'
12136     shlibpath_overrides_runpath=yes
12137
12138     case $host_os in
12139     cygwin*)
12140       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12141       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12142
12143       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12144       ;;
12145     mingw* | cegcc*)
12146       # MinGW DLLs use traditional 'lib' prefix
12147       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12148       ;;
12149     pw32*)
12150       # pw32 DLLs use 'pw' prefix rather than 'lib'
12151       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12152       ;;
12153     esac
12154     dynamic_linker='Win32 ld.exe'
12155     ;;
12156
12157   *,cl* | *,icl*)
12158     # Native MSVC or ICC
12159     libname_spec='$name'
12160     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12161     library_names_spec='$libname.dll.lib'
12162
12163     case $build_os in
12164     mingw*)
12165       sys_lib_search_path_spec=
12166       lt_save_ifs=$IFS
12167       IFS=';'
12168       for lt_path in $LIB
12169       do
12170         IFS=$lt_save_ifs
12171         # Let DOS variable expansion print the short 8.3 style file name.
12172         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12173         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12174       done
12175       IFS=$lt_save_ifs
12176       # Convert to MSYS style.
12177       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12178       ;;
12179     cygwin*)
12180       # Convert to unix form, then to dos form, then back to unix form
12181       # but this time dos style (no spaces!) so that the unix form looks
12182       # like /cygdrive/c/PROGRA~1:/cygdr...
12183       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12184       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12185       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12186       ;;
12187     *)
12188       sys_lib_search_path_spec=$LIB
12189       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12190         # It is most probably a Windows format PATH.
12191         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12192       else
12193         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12194       fi
12195       # FIXME: find the short name or the path components, as spaces are
12196       # common. (e.g. "Program Files" -> "PROGRA~1")
12197       ;;
12198     esac
12199
12200     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12201     postinstall_cmds='base_file=`basename \$file`~
12202       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12203       dldir=$destdir/`dirname \$dlpath`~
12204       test -d \$dldir || mkdir -p \$dldir~
12205       $install_prog $dir/$dlname \$dldir/$dlname'
12206     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12207       dlpath=$dir/\$dldll~
12208        $RM \$dlpath'
12209     shlibpath_overrides_runpath=yes
12210     dynamic_linker='Win32 link.exe'
12211     ;;
12212
12213   *)
12214     # Assume MSVC and ICC wrapper
12215     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12216     dynamic_linker='Win32 ld.exe'
12217     ;;
12218   esac
12219   # FIXME: first we should search . and the directory the executable is in
12220   shlibpath_var=PATH
12221   ;;
12222
12223 darwin* | rhapsody*)
12224   dynamic_linker="$host_os dyld"
12225   version_type=darwin
12226   need_lib_prefix=no
12227   need_version=no
12228   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12229   soname_spec='$libname$release$major$shared_ext'
12230   shlibpath_overrides_runpath=yes
12231   shlibpath_var=DYLD_LIBRARY_PATH
12232   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12233
12234   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12235   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12236   ;;
12237
12238 dgux*)
12239   version_type=linux # correct to gnu/linux during the next big refactor
12240   need_lib_prefix=no
12241   need_version=no
12242   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243   soname_spec='$libname$release$shared_ext$major'
12244   shlibpath_var=LD_LIBRARY_PATH
12245   ;;
12246
12247 freebsd* | dragonfly* | midnightbsd*)
12248   # DragonFly does not have aout.  When/if they implement a new
12249   # versioning mechanism, adjust this.
12250   if test -x /usr/bin/objformat; then
12251     objformat=`/usr/bin/objformat`
12252   else
12253     case $host_os in
12254     freebsd[23].*) objformat=aout ;;
12255     *) objformat=elf ;;
12256     esac
12257   fi
12258   version_type=freebsd-$objformat
12259   case $version_type in
12260     freebsd-elf*)
12261       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262       soname_spec='$libname$release$shared_ext$major'
12263       need_version=no
12264       need_lib_prefix=no
12265       ;;
12266     freebsd-*)
12267       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12268       need_version=yes
12269       ;;
12270   esac
12271   shlibpath_var=LD_LIBRARY_PATH
12272   case $host_os in
12273   freebsd2.*)
12274     shlibpath_overrides_runpath=yes
12275     ;;
12276   freebsd3.[01]* | freebsdelf3.[01]*)
12277     shlibpath_overrides_runpath=yes
12278     hardcode_into_libs=yes
12279     ;;
12280   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12281   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12282     shlibpath_overrides_runpath=no
12283     hardcode_into_libs=yes
12284     ;;
12285   *) # from 4.6 on, and DragonFly
12286     shlibpath_overrides_runpath=yes
12287     hardcode_into_libs=yes
12288     ;;
12289   esac
12290   ;;
12291
12292 haiku*)
12293   version_type=linux # correct to gnu/linux during the next big refactor
12294   need_lib_prefix=no
12295   need_version=no
12296   dynamic_linker="$host_os runtime_loader"
12297   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12298   soname_spec='$libname$release$shared_ext$major'
12299   shlibpath_var=LIBRARY_PATH
12300   shlibpath_overrides_runpath=no
12301   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12302   hardcode_into_libs=yes
12303   ;;
12304
12305 hpux9* | hpux10* | hpux11*)
12306   # Give a soname corresponding to the major version so that dld.sl refuses to
12307   # link against other versions.
12308   version_type=sunos
12309   need_lib_prefix=no
12310   need_version=no
12311   case $host_cpu in
12312   ia64*)
12313     shrext_cmds='.so'
12314     hardcode_into_libs=yes
12315     dynamic_linker="$host_os dld.so"
12316     shlibpath_var=LD_LIBRARY_PATH
12317     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12318     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319     soname_spec='$libname$release$shared_ext$major'
12320     if test 32 = "$HPUX_IA64_MODE"; then
12321       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12322       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12323     else
12324       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12325       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12326     fi
12327     ;;
12328   hppa*64*)
12329     shrext_cmds='.sl'
12330     hardcode_into_libs=yes
12331     dynamic_linker="$host_os dld.sl"
12332     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12333     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12334     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12335     soname_spec='$libname$release$shared_ext$major'
12336     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12337     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12338     ;;
12339   *)
12340     shrext_cmds='.sl'
12341     dynamic_linker="$host_os dld.sl"
12342     shlibpath_var=SHLIB_PATH
12343     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12344     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345     soname_spec='$libname$release$shared_ext$major'
12346     ;;
12347   esac
12348   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12349   postinstall_cmds='chmod 555 $lib'
12350   # or fails outright, so override atomically:
12351   install_override_mode=555
12352   ;;
12353
12354 interix[3-9]*)
12355   version_type=linux # correct to gnu/linux during the next big refactor
12356   need_lib_prefix=no
12357   need_version=no
12358   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12359   soname_spec='$libname$release$shared_ext$major'
12360   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12361   shlibpath_var=LD_LIBRARY_PATH
12362   shlibpath_overrides_runpath=no
12363   hardcode_into_libs=yes
12364   ;;
12365
12366 irix5* | irix6* | nonstopux*)
12367   case $host_os in
12368     nonstopux*) version_type=nonstopux ;;
12369     *)
12370         if test yes = "$lt_cv_prog_gnu_ld"; then
12371                 version_type=linux # correct to gnu/linux during the next big refactor
12372         else
12373                 version_type=irix
12374         fi ;;
12375   esac
12376   need_lib_prefix=no
12377   need_version=no
12378   soname_spec='$libname$release$shared_ext$major'
12379   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12380   case $host_os in
12381   irix5* | nonstopux*)
12382     libsuff= shlibsuff=
12383     ;;
12384   *)
12385     case $LD in # libtool.m4 will add one of these switches to LD
12386     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12387       libsuff= shlibsuff= libmagic=32-bit;;
12388     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12389       libsuff=32 shlibsuff=N32 libmagic=N32;;
12390     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12391       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12392     *) libsuff= shlibsuff= libmagic=never-match;;
12393     esac
12394     ;;
12395   esac
12396   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12397   shlibpath_overrides_runpath=no
12398   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12399   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12400   hardcode_into_libs=yes
12401   ;;
12402
12403 # No shared lib support for Linux oldld, aout, or coff.
12404 linux*oldld* | linux*aout* | linux*coff*)
12405   dynamic_linker=no
12406   ;;
12407
12408 linux*android*)
12409   version_type=none # Android doesn't support versioned libraries.
12410   need_lib_prefix=no
12411   need_version=no
12412   library_names_spec='$libname$release$shared_ext'
12413   soname_spec='$libname$release$shared_ext'
12414   finish_cmds=
12415   shlibpath_var=LD_LIBRARY_PATH
12416   shlibpath_overrides_runpath=yes
12417
12418   # This implies no fast_install, which is unacceptable.
12419   # Some rework will be needed to allow for fast_install
12420   # before this can be enabled.
12421   hardcode_into_libs=yes
12422
12423   dynamic_linker='Android linker'
12424   # Don't embed -rpath directories since the linker doesn't support them.
12425   hardcode_libdir_flag_spec='-L$libdir'
12426   ;;
12427
12428 # This must be glibc/ELF.
12429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12430   version_type=linux # correct to gnu/linux during the next big refactor
12431   need_lib_prefix=no
12432   need_version=no
12433   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12434   soname_spec='$libname$release$shared_ext$major'
12435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12436   shlibpath_var=LD_LIBRARY_PATH
12437   shlibpath_overrides_runpath=no
12438
12439   # Some binutils ld are patched to set DT_RUNPATH
12440   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12441   $as_echo_n "(cached) " >&6
12442 else
12443   lt_cv_shlibpath_overrides_runpath=no
12444     save_LDFLAGS=$LDFLAGS
12445     save_libdir=$libdir
12446     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12447          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h.  */
12450
12451 int
12452 main ()
12453 {
12454
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_link "$LINENO"; then :
12460   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12461   lt_cv_shlibpath_overrides_runpath=yes
12462 fi
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext \
12465     conftest$ac_exeext conftest.$ac_ext
12466     LDFLAGS=$save_LDFLAGS
12467     libdir=$save_libdir
12468
12469 fi
12470
12471   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12472
12473   # This implies no fast_install, which is unacceptable.
12474   # Some rework will be needed to allow for fast_install
12475   # before this can be enabled.
12476   hardcode_into_libs=yes
12477
12478   # Ideally, we could use ldconfig to report *all* directores which are
12479   # searched for libraries, however this is still not possible.  Aside from not
12480   # being certain /sbin/ldconfig is available, command
12481   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12482   # even though it is searched at run-time.  Try to do the best guess by
12483   # appending ld.so.conf contents (and includes) to the search path.
12484   if test -f /etc/ld.so.conf; then
12485     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' ' '`
12486     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12487   fi
12488
12489   # We used to test for /lib/ld.so.1 and disable shared libraries on
12490   # powerpc, because MkLinux only supported shared libraries with the
12491   # GNU dynamic linker.  Since this was broken with cross compilers,
12492   # most powerpc-linux boxes support dynamic linking these days and
12493   # people can always --disable-shared, the test was removed, and we
12494   # assume the GNU/Linux dynamic linker is in use.
12495   dynamic_linker='GNU/Linux ld.so'
12496   ;;
12497
12498 netbsd*)
12499   version_type=sunos
12500   need_lib_prefix=no
12501   need_version=no
12502   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12503     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12504     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12505     dynamic_linker='NetBSD (a.out) ld.so'
12506   else
12507     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12508     soname_spec='$libname$release$shared_ext$major'
12509     dynamic_linker='NetBSD ld.elf_so'
12510   fi
12511   shlibpath_var=LD_LIBRARY_PATH
12512   shlibpath_overrides_runpath=yes
12513   hardcode_into_libs=yes
12514   ;;
12515
12516 newsos6)
12517   version_type=linux # correct to gnu/linux during the next big refactor
12518   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519   shlibpath_var=LD_LIBRARY_PATH
12520   shlibpath_overrides_runpath=yes
12521   ;;
12522
12523 *nto* | *qnx*)
12524   version_type=qnx
12525   need_lib_prefix=no
12526   need_version=no
12527   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12528   soname_spec='$libname$release$shared_ext$major'
12529   shlibpath_var=LD_LIBRARY_PATH
12530   shlibpath_overrides_runpath=no
12531   hardcode_into_libs=yes
12532   dynamic_linker='ldqnx.so'
12533   ;;
12534
12535 openbsd* | bitrig*)
12536   version_type=sunos
12537   sys_lib_dlsearch_path_spec=/usr/lib
12538   need_lib_prefix=no
12539   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12540     need_version=no
12541   else
12542     need_version=yes
12543   fi
12544   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12545   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12546   shlibpath_var=LD_LIBRARY_PATH
12547   shlibpath_overrides_runpath=yes
12548   ;;
12549
12550 os2*)
12551   libname_spec='$name'
12552   version_type=windows
12553   shrext_cmds=.dll
12554   need_version=no
12555   need_lib_prefix=no
12556   # OS/2 can only load a DLL with a base name of 8 characters or less.
12557   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12558     v=$($ECHO $release$versuffix | tr -d .-);
12559     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12560     $ECHO $n$v`$shared_ext'
12561   library_names_spec='${libname}_dll.$libext'
12562   dynamic_linker='OS/2 ld.exe'
12563   shlibpath_var=BEGINLIBPATH
12564   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12565   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12566   postinstall_cmds='base_file=`basename \$file`~
12567     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12568     dldir=$destdir/`dirname \$dlpath`~
12569     test -d \$dldir || mkdir -p \$dldir~
12570     $install_prog $dir/$dlname \$dldir/$dlname~
12571     chmod a+x \$dldir/$dlname~
12572     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12573       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12574     fi'
12575   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12576     dlpath=$dir/\$dldll~
12577     $RM \$dlpath'
12578   ;;
12579
12580 osf3* | osf4* | osf5*)
12581   version_type=osf
12582   need_lib_prefix=no
12583   need_version=no
12584   soname_spec='$libname$release$shared_ext$major'
12585   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586   shlibpath_var=LD_LIBRARY_PATH
12587   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12588   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12589   ;;
12590
12591 rdos*)
12592   dynamic_linker=no
12593   ;;
12594
12595 solaris*)
12596   version_type=linux # correct to gnu/linux during the next big refactor
12597   need_lib_prefix=no
12598   need_version=no
12599   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600   soname_spec='$libname$release$shared_ext$major'
12601   shlibpath_var=LD_LIBRARY_PATH
12602   shlibpath_overrides_runpath=yes
12603   hardcode_into_libs=yes
12604   # ldd complains unless libraries are executable
12605   postinstall_cmds='chmod +x $lib'
12606   ;;
12607
12608 sunos4*)
12609   version_type=sunos
12610   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12611   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12612   shlibpath_var=LD_LIBRARY_PATH
12613   shlibpath_overrides_runpath=yes
12614   if test yes = "$with_gnu_ld"; then
12615     need_lib_prefix=no
12616   fi
12617   need_version=yes
12618   ;;
12619
12620 sysv4 | sysv4.3*)
12621   version_type=linux # correct to gnu/linux during the next big refactor
12622   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12623   soname_spec='$libname$release$shared_ext$major'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   case $host_vendor in
12626     sni)
12627       shlibpath_overrides_runpath=no
12628       need_lib_prefix=no
12629       runpath_var=LD_RUN_PATH
12630       ;;
12631     siemens)
12632       need_lib_prefix=no
12633       ;;
12634     motorola)
12635       need_lib_prefix=no
12636       need_version=no
12637       shlibpath_overrides_runpath=no
12638       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12639       ;;
12640   esac
12641   ;;
12642
12643 sysv4*MP*)
12644   if test -d /usr/nec; then
12645     version_type=linux # correct to gnu/linux during the next big refactor
12646     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12647     soname_spec='$libname$shared_ext.$major'
12648     shlibpath_var=LD_LIBRARY_PATH
12649   fi
12650   ;;
12651
12652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12653   version_type=sco
12654   need_lib_prefix=no
12655   need_version=no
12656   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12657   soname_spec='$libname$release$shared_ext$major'
12658   shlibpath_var=LD_LIBRARY_PATH
12659   shlibpath_overrides_runpath=yes
12660   hardcode_into_libs=yes
12661   if test yes = "$with_gnu_ld"; then
12662     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12663   else
12664     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12665     case $host_os in
12666       sco3.2v5*)
12667         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12668         ;;
12669     esac
12670   fi
12671   sys_lib_dlsearch_path_spec='/usr/lib'
12672   ;;
12673
12674 tpf*)
12675   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12676   version_type=linux # correct to gnu/linux during the next big refactor
12677   need_lib_prefix=no
12678   need_version=no
12679   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12680   shlibpath_var=LD_LIBRARY_PATH
12681   shlibpath_overrides_runpath=no
12682   hardcode_into_libs=yes
12683   ;;
12684
12685 uts4*)
12686   version_type=linux # correct to gnu/linux during the next big refactor
12687   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12688   soname_spec='$libname$release$shared_ext$major'
12689   shlibpath_var=LD_LIBRARY_PATH
12690   ;;
12691
12692 *)
12693   dynamic_linker=no
12694   ;;
12695 esac
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12697 $as_echo "$dynamic_linker" >&6; }
12698 test no = "$dynamic_linker" && can_build_shared=no
12699
12700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12701 if test yes = "$GCC"; then
12702   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12703 fi
12704
12705 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12706   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12707 fi
12708
12709 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12710   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12711 fi
12712
12713 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12714 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12715
12716 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12717 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12718
12719 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12720 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12820 hardcode_action=
12821 if test -n "$hardcode_libdir_flag_spec" ||
12822    test -n "$runpath_var" ||
12823    test yes = "$hardcode_automatic"; then
12824
12825   # We can hardcode non-existent directories.
12826   if test no != "$hardcode_direct" &&
12827      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12828      # have to relink, otherwise we might link with an installed library
12829      # when we should be linking with a yet-to-be-installed one
12830      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12831      test no != "$hardcode_minus_L"; then
12832     # Linking always hardcodes the temporary library directory.
12833     hardcode_action=relink
12834   else
12835     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12836     hardcode_action=immediate
12837   fi
12838 else
12839   # We cannot hardcode anything, or else we can only hardcode existing
12840   # directories.
12841   hardcode_action=unsupported
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12844 $as_echo "$hardcode_action" >&6; }
12845
12846 if test relink = "$hardcode_action" ||
12847    test yes = "$inherit_rpath"; then
12848   # Fast installation is not supported
12849   enable_fast_install=no
12850 elif test yes = "$shlibpath_overrides_runpath" ||
12851      test no = "$enable_shared"; then
12852   # Fast installation is not necessary
12853   enable_fast_install=needless
12854 fi
12855
12856
12857
12858
12859
12860
12861   if test yes != "$enable_dlopen"; then
12862   enable_dlopen=unknown
12863   enable_dlopen_self=unknown
12864   enable_dlopen_self_static=unknown
12865 else
12866   lt_cv_dlopen=no
12867   lt_cv_dlopen_libs=
12868
12869   case $host_os in
12870   beos*)
12871     lt_cv_dlopen=load_add_on
12872     lt_cv_dlopen_libs=
12873     lt_cv_dlopen_self=yes
12874     ;;
12875
12876   mingw* | pw32* | cegcc*)
12877     lt_cv_dlopen=LoadLibrary
12878     lt_cv_dlopen_libs=
12879     ;;
12880
12881   cygwin*)
12882     lt_cv_dlopen=dlopen
12883     lt_cv_dlopen_libs=
12884     ;;
12885
12886   darwin*)
12887     # if libdl is installed we need to link against it
12888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12890 if ${ac_cv_lib_dl_dlopen+:} false; then :
12891   $as_echo_n "(cached) " >&6
12892 else
12893   ac_check_lib_save_LIBS=$LIBS
12894 LIBS="-ldl  $LIBS"
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h.  */
12897
12898 /* Override any GCC internal prototype to avoid an error.
12899    Use char because int might match the return type of a GCC
12900    builtin and then its argument prototype would still apply.  */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char dlopen ();
12905 int
12906 main ()
12907 {
12908 return dlopen ();
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914   ac_cv_lib_dl_dlopen=yes
12915 else
12916   ac_cv_lib_dl_dlopen=no
12917 fi
12918 rm -f core conftest.err conftest.$ac_objext \
12919     conftest$ac_exeext conftest.$ac_ext
12920 LIBS=$ac_check_lib_save_LIBS
12921 fi
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12924 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12925   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12926 else
12927
12928     lt_cv_dlopen=dyld
12929     lt_cv_dlopen_libs=
12930     lt_cv_dlopen_self=yes
12931
12932 fi
12933
12934     ;;
12935
12936   tpf*)
12937     # Don't try to run any link tests for TPF.  We know it's impossible
12938     # because TPF is a cross-compiler, and we know how we open DSOs.
12939     lt_cv_dlopen=dlopen
12940     lt_cv_dlopen_libs=
12941     lt_cv_dlopen_self=no
12942     ;;
12943
12944   *)
12945     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12946 if test "x$ac_cv_func_shl_load" = xyes; then :
12947   lt_cv_dlopen=shl_load
12948 else
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12950 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12951 if ${ac_cv_lib_dld_shl_load+:} false; then :
12952   $as_echo_n "(cached) " >&6
12953 else
12954   ac_check_lib_save_LIBS=$LIBS
12955 LIBS="-ldld  $LIBS"
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h.  */
12958
12959 /* Override any GCC internal prototype to avoid an error.
12960    Use char because int might match the return type of a GCC
12961    builtin and then its argument prototype would still apply.  */
12962 #ifdef __cplusplus
12963 extern "C"
12964 #endif
12965 char shl_load ();
12966 int
12967 main ()
12968 {
12969 return shl_load ();
12970   ;
12971   return 0;
12972 }
12973 _ACEOF
12974 if ac_fn_c_try_link "$LINENO"; then :
12975   ac_cv_lib_dld_shl_load=yes
12976 else
12977   ac_cv_lib_dld_shl_load=no
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext \
12980     conftest$ac_exeext conftest.$ac_ext
12981 LIBS=$ac_check_lib_save_LIBS
12982 fi
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12984 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12985 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12986   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12987 else
12988   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12989 if test "x$ac_cv_func_dlopen" = xyes; then :
12990   lt_cv_dlopen=dlopen
12991 else
12992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12993 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12994 if ${ac_cv_lib_dl_dlopen+:} false; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-ldl  $LIBS"
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h.  */
13001
13002 /* Override any GCC internal prototype to avoid an error.
13003    Use char because int might match the return type of a GCC
13004    builtin and then its argument prototype would still apply.  */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 char dlopen ();
13009 int
13010 main ()
13011 {
13012 return dlopen ();
13013   ;
13014   return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018   ac_cv_lib_dl_dlopen=yes
13019 else
13020   ac_cv_lib_dl_dlopen=no
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext \
13023     conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13028 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13029   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13030 else
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13032 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13033 if ${ac_cv_lib_svld_dlopen+:} false; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036   ac_check_lib_save_LIBS=$LIBS
13037 LIBS="-lsvld  $LIBS"
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h.  */
13040
13041 /* Override any GCC internal prototype to avoid an error.
13042    Use char because int might match the return type of a GCC
13043    builtin and then its argument prototype would still apply.  */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 char dlopen ();
13048 int
13049 main ()
13050 {
13051 return dlopen ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057   ac_cv_lib_svld_dlopen=yes
13058 else
13059   ac_cv_lib_svld_dlopen=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext \
13062     conftest$ac_exeext conftest.$ac_ext
13063 LIBS=$ac_check_lib_save_LIBS
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13066 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13067 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13068   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13069 else
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13071 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13072 if ${ac_cv_lib_dld_dld_link+:} false; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075   ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-ldld  $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h.  */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081    Use char because int might match the return type of a GCC
13082    builtin and then its argument prototype would still apply.  */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char dld_link ();
13087 int
13088 main ()
13089 {
13090 return dld_link ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"; then :
13096   ac_cv_lib_dld_dld_link=yes
13097 else
13098   ac_cv_lib_dld_dld_link=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101     conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13105 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13106 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13107   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13108 fi
13109
13110
13111 fi
13112
13113
13114 fi
13115
13116
13117 fi
13118
13119
13120 fi
13121
13122
13123 fi
13124
13125     ;;
13126   esac
13127
13128   if test no = "$lt_cv_dlopen"; then
13129     enable_dlopen=no
13130   else
13131     enable_dlopen=yes
13132   fi
13133
13134   case $lt_cv_dlopen in
13135   dlopen)
13136     save_CPPFLAGS=$CPPFLAGS
13137     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13138
13139     save_LDFLAGS=$LDFLAGS
13140     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13141
13142     save_LIBS=$LIBS
13143     LIBS="$lt_cv_dlopen_libs $LIBS"
13144
13145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13146 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13147 if ${lt_cv_dlopen_self+:} false; then :
13148   $as_echo_n "(cached) " >&6
13149 else
13150           if test yes = "$cross_compiling"; then :
13151   lt_cv_dlopen_self=cross
13152 else
13153   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13154   lt_status=$lt_dlunknown
13155   cat > conftest.$ac_ext <<_LT_EOF
13156 #line $LINENO "configure"
13157 #include "confdefs.h"
13158
13159 #if HAVE_DLFCN_H
13160 #include <dlfcn.h>
13161 #endif
13162
13163 #include <stdio.h>
13164
13165 #ifdef RTLD_GLOBAL
13166 #  define LT_DLGLOBAL           RTLD_GLOBAL
13167 #else
13168 #  ifdef DL_GLOBAL
13169 #    define LT_DLGLOBAL         DL_GLOBAL
13170 #  else
13171 #    define LT_DLGLOBAL         0
13172 #  endif
13173 #endif
13174
13175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13176    find out it does not work in some platform. */
13177 #ifndef LT_DLLAZY_OR_NOW
13178 #  ifdef RTLD_LAZY
13179 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13180 #  else
13181 #    ifdef DL_LAZY
13182 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13183 #    else
13184 #      ifdef RTLD_NOW
13185 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13186 #      else
13187 #        ifdef DL_NOW
13188 #          define LT_DLLAZY_OR_NOW      DL_NOW
13189 #        else
13190 #          define LT_DLLAZY_OR_NOW      0
13191 #        endif
13192 #      endif
13193 #    endif
13194 #  endif
13195 #endif
13196
13197 /* When -fvisibility=hidden is used, assume the code has been annotated
13198    correspondingly for the symbols needed.  */
13199 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13200 int fnord () __attribute__((visibility("default")));
13201 #endif
13202
13203 int fnord () { return 42; }
13204 int main ()
13205 {
13206   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13207   int status = $lt_dlunknown;
13208
13209   if (self)
13210     {
13211       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13212       else
13213         {
13214           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13215           else puts (dlerror ());
13216         }
13217       /* dlclose (self); */
13218     }
13219   else
13220     puts (dlerror ());
13221
13222   return status;
13223 }
13224 _LT_EOF
13225   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13226   (eval $ac_link) 2>&5
13227   ac_status=$?
13228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13230     (./conftest; exit; ) >&5 2>/dev/null
13231     lt_status=$?
13232     case x$lt_status in
13233       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13234       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13235       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13236     esac
13237   else :
13238     # compilation failed
13239     lt_cv_dlopen_self=no
13240   fi
13241 fi
13242 rm -fr conftest*
13243
13244
13245 fi
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13247 $as_echo "$lt_cv_dlopen_self" >&6; }
13248
13249     if test yes = "$lt_cv_dlopen_self"; then
13250       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13251       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13252 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13253 if ${lt_cv_dlopen_self_static+:} false; then :
13254   $as_echo_n "(cached) " >&6
13255 else
13256           if test yes = "$cross_compiling"; then :
13257   lt_cv_dlopen_self_static=cross
13258 else
13259   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13260   lt_status=$lt_dlunknown
13261   cat > conftest.$ac_ext <<_LT_EOF
13262 #line $LINENO "configure"
13263 #include "confdefs.h"
13264
13265 #if HAVE_DLFCN_H
13266 #include <dlfcn.h>
13267 #endif
13268
13269 #include <stdio.h>
13270
13271 #ifdef RTLD_GLOBAL
13272 #  define LT_DLGLOBAL           RTLD_GLOBAL
13273 #else
13274 #  ifdef DL_GLOBAL
13275 #    define LT_DLGLOBAL         DL_GLOBAL
13276 #  else
13277 #    define LT_DLGLOBAL         0
13278 #  endif
13279 #endif
13280
13281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13282    find out it does not work in some platform. */
13283 #ifndef LT_DLLAZY_OR_NOW
13284 #  ifdef RTLD_LAZY
13285 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13286 #  else
13287 #    ifdef DL_LAZY
13288 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13289 #    else
13290 #      ifdef RTLD_NOW
13291 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13292 #      else
13293 #        ifdef DL_NOW
13294 #          define LT_DLLAZY_OR_NOW      DL_NOW
13295 #        else
13296 #          define LT_DLLAZY_OR_NOW      0
13297 #        endif
13298 #      endif
13299 #    endif
13300 #  endif
13301 #endif
13302
13303 /* When -fvisibility=hidden is used, assume the code has been annotated
13304    correspondingly for the symbols needed.  */
13305 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13306 int fnord () __attribute__((visibility("default")));
13307 #endif
13308
13309 int fnord () { return 42; }
13310 int main ()
13311 {
13312   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13313   int status = $lt_dlunknown;
13314
13315   if (self)
13316     {
13317       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13318       else
13319         {
13320           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13321           else puts (dlerror ());
13322         }
13323       /* dlclose (self); */
13324     }
13325   else
13326     puts (dlerror ());
13327
13328   return status;
13329 }
13330 _LT_EOF
13331   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13332   (eval $ac_link) 2>&5
13333   ac_status=$?
13334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13335   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13336     (./conftest; exit; ) >&5 2>/dev/null
13337     lt_status=$?
13338     case x$lt_status in
13339       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13340       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13341       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13342     esac
13343   else :
13344     # compilation failed
13345     lt_cv_dlopen_self_static=no
13346   fi
13347 fi
13348 rm -fr conftest*
13349
13350
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13353 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13354     fi
13355
13356     CPPFLAGS=$save_CPPFLAGS
13357     LDFLAGS=$save_LDFLAGS
13358     LIBS=$save_LIBS
13359     ;;
13360   esac
13361
13362   case $lt_cv_dlopen_self in
13363   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13364   *) enable_dlopen_self=unknown ;;
13365   esac
13366
13367   case $lt_cv_dlopen_self_static in
13368   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13369   *) enable_dlopen_self_static=unknown ;;
13370   esac
13371 fi
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389 striplib=
13390 old_striplib=
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13392 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13393 if test -z "$STRIP"; then
13394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13396 else
13397   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13398     old_striplib="$STRIP --strip-debug"
13399     striplib="$STRIP --strip-unneeded"
13400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13401 $as_echo "yes" >&6; }
13402   else
13403     case $host_os in
13404     darwin*)
13405       # FIXME - insert some real tests, host_os isn't really good enough
13406       striplib="$STRIP -x"
13407       old_striplib="$STRIP -S"
13408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13409 $as_echo "yes" >&6; }
13410       ;;
13411     freebsd*)
13412       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13413         old_striplib="$STRIP --strip-debug"
13414         striplib="$STRIP --strip-unneeded"
13415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416 $as_echo "yes" >&6; }
13417       else
13418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13420       fi
13421       ;;
13422     *)
13423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425       ;;
13426     esac
13427   fi
13428 fi
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441   # Report what library types will actually be built
13442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13443 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13445 $as_echo "$can_build_shared" >&6; }
13446
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13448 $as_echo_n "checking whether to build shared libraries... " >&6; }
13449   test no = "$can_build_shared" && enable_shared=no
13450
13451   # On AIX, shared libraries and static libraries use the same namespace, and
13452   # are all built from PIC.
13453   case $host_os in
13454   aix3*)
13455     test yes = "$enable_shared" && enable_static=no
13456     if test -n "$RANLIB"; then
13457       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13458       postinstall_cmds='$RANLIB $lib'
13459     fi
13460     ;;
13461
13462   aix[4-9]*)
13463     if test ia64 != "$host_cpu"; then
13464       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13465       yes,aix,yes) ;;                   # shared object as lib.so file only
13466       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13467       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13468       esac
13469     fi
13470     ;;
13471   esac
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13473 $as_echo "$enable_shared" >&6; }
13474
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13476 $as_echo_n "checking whether to build static libraries... " >&6; }
13477   # Make sure either enable_shared or enable_static is yes.
13478   test yes = "$enable_shared" || enable_static=yes
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13480 $as_echo "$enable_static" >&6; }
13481
13482
13483
13484
13485 fi
13486 ac_ext=c
13487 ac_cpp='$CPP $CPPFLAGS'
13488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13491
13492 CC=$lt_save_CC
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508         ac_config_commands="$ac_config_commands libtool"
13509
13510
13511
13512
13513 # Only expand once:
13514
13515
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
13518 $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
13519 if ${libltdl_cv_shlibext+:} false; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522
13523 module=yes
13524 eval libltdl_cv_shlibext=$shrext_cmds
13525 module=no
13526 eval libltdl_cv_shrext=$shrext_cmds
13527
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
13530 $as_echo "$libltdl_cv_shlibext" >&6; }
13531 if test -n "$libltdl_cv_shlibext"; then
13532
13533 cat >>confdefs.h <<_ACEOF
13534 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
13535 _ACEOF
13536
13537 fi
13538 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
13539
13540 cat >>confdefs.h <<_ACEOF
13541 #define LT_SHARED_EXT "$libltdl_cv_shrext"
13542 _ACEOF
13543
13544 fi
13545 if test -n "$shared_archive_member_spec"; then
13546
13547 cat >>confdefs.h <<_ACEOF
13548 #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
13549 _ACEOF
13550
13551 fi
13552
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
13554 $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
13555 if ${lt_cv_module_path_var+:} false; then :
13556   $as_echo_n "(cached) " >&6
13557 else
13558   lt_cv_module_path_var=$shlibpath_var
13559 fi
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
13561 $as_echo "$lt_cv_module_path_var" >&6; }
13562 if test -n "$lt_cv_module_path_var"; then
13563
13564 cat >>confdefs.h <<_ACEOF
13565 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
13566 _ACEOF
13567
13568 fi
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
13571 $as_echo_n "checking for the default library search path... " >&6; }
13572 if ${lt_cv_sys_dlsearch_path+:} false; then :
13573   $as_echo_n "(cached) " >&6
13574 else
13575   lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
13576 fi
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
13578 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
13579 if test -n "$lt_cv_sys_dlsearch_path"; then
13580   sys_dlsearch_path=
13581   for dir in $lt_cv_sys_dlsearch_path; do
13582     if test -z "$sys_dlsearch_path"; then
13583       sys_dlsearch_path=$dir
13584     else
13585       sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
13586     fi
13587   done
13588
13589 cat >>confdefs.h <<_ACEOF
13590 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
13591 _ACEOF
13592
13593 fi
13594
13595
13596 LT_DLLOADERS=
13597
13598
13599 ac_ext=c
13600 ac_cpp='$CPP $CPPFLAGS'
13601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13604
13605 lt_dlload_save_LIBS=$LIBS
13606
13607 LIBADD_DLOPEN=
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13609 $as_echo_n "checking for library containing dlopen... " >&6; }
13610 if ${ac_cv_search_dlopen+:} false; then :
13611   $as_echo_n "(cached) " >&6
13612 else
13613   ac_func_search_save_LIBS=$LIBS
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h.  */
13616
13617 /* Override any GCC internal prototype to avoid an error.
13618    Use char because int might match the return type of a GCC
13619    builtin and then its argument prototype would still apply.  */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 char dlopen ();
13624 int
13625 main ()
13626 {
13627 return dlopen ();
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 for ac_lib in '' dl; do
13633   if test -z "$ac_lib"; then
13634     ac_res="none required"
13635   else
13636     ac_res=-l$ac_lib
13637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13638   fi
13639   if ac_fn_c_try_link "$LINENO"; then :
13640   ac_cv_search_dlopen=$ac_res
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643     conftest$ac_exeext
13644   if ${ac_cv_search_dlopen+:} false; then :
13645   break
13646 fi
13647 done
13648 if ${ac_cv_search_dlopen+:} false; then :
13649
13650 else
13651   ac_cv_search_dlopen=no
13652 fi
13653 rm conftest.$ac_ext
13654 LIBS=$ac_func_search_save_LIBS
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13657 $as_echo "$ac_cv_search_dlopen" >&6; }
13658 ac_res=$ac_cv_search_dlopen
13659 if test "$ac_res" != no; then :
13660   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13661
13662 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13663
13664         if test "$ac_cv_search_dlopen" != "none required"; then
13665           LIBADD_DLOPEN=-ldl
13666         fi
13667         libltdl_cv_lib_dl_dlopen=yes
13668         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
13669 else
13670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h.  */
13672 #if HAVE_DLFCN_H
13673 #  include <dlfcn.h>
13674 #endif
13675
13676 int
13677 main ()
13678 {
13679 dlopen(0, 0);
13680   ;
13681   return 0;
13682 }
13683 _ACEOF
13684 if ac_fn_c_try_link "$LINENO"; then :
13685
13686 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13687
13688             libltdl_cv_func_dlopen=yes
13689             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
13690 else
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13692 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13693 if ${ac_cv_lib_svld_dlopen+:} false; then :
13694   $as_echo_n "(cached) " >&6
13695 else
13696   ac_check_lib_save_LIBS=$LIBS
13697 LIBS="-lsvld  $LIBS"
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h.  */
13700
13701 /* Override any GCC internal prototype to avoid an error.
13702    Use char because int might match the return type of a GCC
13703    builtin and then its argument prototype would still apply.  */
13704 #ifdef __cplusplus
13705 extern "C"
13706 #endif
13707 char dlopen ();
13708 int
13709 main ()
13710 {
13711 return dlopen ();
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 if ac_fn_c_try_link "$LINENO"; then :
13717   ac_cv_lib_svld_dlopen=yes
13718 else
13719   ac_cv_lib_svld_dlopen=no
13720 fi
13721 rm -f core conftest.err conftest.$ac_objext \
13722     conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13724 fi
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13726 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13727 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13728
13729 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13730
13731                 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
13732                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
13733 fi
13734
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext \
13737     conftest$ac_exeext conftest.$ac_ext
13738 fi
13739
13740 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
13741 then
13742   lt_save_LIBS=$LIBS
13743   LIBS="$LIBS $LIBADD_DLOPEN"
13744   for ac_func in dlerror
13745 do :
13746   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
13747 if test "x$ac_cv_func_dlerror" = xyes; then :
13748   cat >>confdefs.h <<_ACEOF
13749 #define HAVE_DLERROR 1
13750 _ACEOF
13751
13752 fi
13753 done
13754
13755   LIBS=$lt_save_LIBS
13756 fi
13757
13758
13759 LIBADD_SHL_LOAD=
13760 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13761 if test "x$ac_cv_func_shl_load" = xyes; then :
13762
13763 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13764
13765         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
13766 else
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13769 if ${ac_cv_lib_dld_shl_load+:} false; then :
13770   $as_echo_n "(cached) " >&6
13771 else
13772   ac_check_lib_save_LIBS=$LIBS
13773 LIBS="-ldld  $LIBS"
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h.  */
13776
13777 /* Override any GCC internal prototype to avoid an error.
13778    Use char because int might match the return type of a GCC
13779    builtin and then its argument prototype would still apply.  */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 char shl_load ();
13784 int
13785 main ()
13786 {
13787 return shl_load ();
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793   ac_cv_lib_dld_shl_load=yes
13794 else
13795   ac_cv_lib_dld_shl_load=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798     conftest$ac_exeext conftest.$ac_ext
13799 LIBS=$ac_check_lib_save_LIBS
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13803 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13804
13805 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13806
13807             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
13808             LIBADD_SHL_LOAD=-ldld
13809 fi
13810
13811 fi
13812
13813
13814
13815 case $host_os in
13816 darwin[1567].*)
13817 # We only want this for pre-Mac OS X 10.4.
13818   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
13819 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
13820
13821 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
13822
13823         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
13824 fi
13825
13826   ;;
13827 beos*)
13828   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
13829   ;;
13830 cygwin* | mingw* | pw32*)
13831   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
13832 "
13833 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
13834   ac_have_decl=1
13835 else
13836   ac_have_decl=0
13837 fi
13838
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
13841 _ACEOF
13842
13843   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
13844   ;;
13845 esac
13846
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13848 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13849 if ${ac_cv_lib_dld_dld_link+:} false; then :
13850   $as_echo_n "(cached) " >&6
13851 else
13852   ac_check_lib_save_LIBS=$LIBS
13853 LIBS="-ldld  $LIBS"
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h.  */
13856
13857 /* Override any GCC internal prototype to avoid an error.
13858    Use char because int might match the return type of a GCC
13859    builtin and then its argument prototype would still apply.  */
13860 #ifdef __cplusplus
13861 extern "C"
13862 #endif
13863 char dld_link ();
13864 int
13865 main ()
13866 {
13867 return dld_link ();
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_c_try_link "$LINENO"; then :
13873   ac_cv_lib_dld_dld_link=yes
13874 else
13875   ac_cv_lib_dld_dld_link=no
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext \
13878     conftest$ac_exeext conftest.$ac_ext
13879 LIBS=$ac_check_lib_save_LIBS
13880 fi
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13882 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13883 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13884
13885 $as_echo "#define HAVE_DLD 1" >>confdefs.h
13886
13887                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
13888 fi
13889
13890
13891
13892
13893 LT_DLPREOPEN=
13894 if test -n "$LT_DLLOADERS"
13895 then
13896   for lt_loader in $LT_DLLOADERS; do
13897     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
13898   done
13899
13900 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
13901
13902 fi
13903
13904
13905 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
13906
13907
13908 LIBS=$lt_dlload_save_LIBS
13909 ac_ext=c
13910 ac_cpp='$CPP $CPPFLAGS'
13911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13914
13915
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13917 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13918 if ${lt_cv_sys_symbol_underscore+:} false; then :
13919   $as_echo_n "(cached) " >&6
13920 else
13921   lt_cv_sys_symbol_underscore=no
13922   cat > conftest.$ac_ext <<_LT_EOF
13923 void nm_test_func(){}
13924 int main(){nm_test_func;return 0;}
13925 _LT_EOF
13926   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13927   (eval $ac_compile) 2>&5
13928   ac_status=$?
13929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13930   test $ac_status = 0; }; then
13931     # Now try to grab the symbols.
13932     ac_nlist=conftest.nm
13933     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13934   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13935   ac_status=$?
13936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937   test $ac_status = 0; } && test -s "$ac_nlist"; then
13938       # See whether the symbols have a leading underscore.
13939       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13940         lt_cv_sys_symbol_underscore=yes
13941       else
13942         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13943           :
13944         else
13945           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13946         fi
13947       fi
13948     else
13949       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13950     fi
13951   else
13952     echo "configure: failed program was:" >&5
13953     cat conftest.c >&5
13954   fi
13955   rm -rf conftest*
13956
13957 fi
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13959 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13960   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13961
13962
13963 if test yes = "$lt_cv_sys_symbol_underscore"; then
13964   if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
13965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13966 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13967 if ${libltdl_cv_need_uscore+:} false; then :
13968   $as_echo_n "(cached) " >&6
13969 else
13970   libltdl_cv_need_uscore=unknown
13971       dlsym_uscore_save_LIBS=$LIBS
13972       LIBS="$LIBS $LIBADD_DLOPEN"
13973       libname=conftmod # stay within 8.3 filename limits!
13974       cat >$libname.$ac_ext <<_LT_EOF
13975 #line $LINENO "configure"
13976 #include "confdefs.h"
13977 /* When -fvisibility=hidden is used, assume the code has been annotated
13978    correspondingly for the symbols needed.  */
13979 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13980 int fnord () __attribute__((visibility("default")));
13981 #endif
13982 int fnord () { return 42; }
13983 _LT_EOF
13984
13985       # ltfn_module_cmds module_cmds
13986       # Execute tilde-delimited MODULE_CMDS with environment primed for
13987       # $module_cmds or $archive_cmds type content.
13988       ltfn_module_cmds ()
13989       {( # subshell avoids polluting parent global environment
13990           module_cmds_save_ifs=$IFS; IFS='~'
13991           for cmd in $1; do
13992             IFS=$module_cmds_save_ifs
13993             libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13994             rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13995             major=; versuffix=; verstring=; deplibs=
13996             ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13997             eval $cmd
13998           done
13999           IFS=$module_cmds_save_ifs
14000       )}
14001
14002       # Compile a loadable module using libtool macro expansion results.
14003       $CC $pic_flag -c $libname.$ac_ext
14004       ltfn_module_cmds "${module_cmds:-$archive_cmds}"
14005
14006       # Try to fetch fnord with dlsym().
14007       libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
14008       cat >conftest.$ac_ext <<_LT_EOF
14009 #line $LINENO "configure"
14010 #include "confdefs.h"
14011 #if HAVE_DLFCN_H
14012 #include <dlfcn.h>
14013 #endif
14014 #include <stdio.h>
14015 #ifndef RTLD_GLOBAL
14016 #  ifdef DL_GLOBAL
14017 #    define RTLD_GLOBAL DL_GLOBAL
14018 #  else
14019 #    define RTLD_GLOBAL 0
14020 #  endif
14021 #endif
14022 #ifndef RTLD_NOW
14023 #  ifdef DL_NOW
14024 #    define RTLD_NOW DL_NOW
14025 #  else
14026 #    define RTLD_NOW 0
14027 #  endif
14028 #endif
14029 int main () {
14030   void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
14031   int status = $libltdl_dlunknown;
14032   if (handle) {
14033     if (dlsym (handle, "fnord"))
14034       status = $libltdl_dlnouscore;
14035     else {
14036       if (dlsym (handle, "_fnord"))
14037         status = $libltdl_dluscore;
14038       else
14039         puts (dlerror ());
14040     }
14041     dlclose (handle);
14042   } else
14043     puts (dlerror ());
14044   return status;
14045 }
14046 _LT_EOF
14047       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14048   (eval $ac_link) 2>&5
14049   ac_status=$?
14050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14051   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14052         (./conftest; exit; ) >&5 2>/dev/null
14053         libltdl_status=$?
14054         case x$libltdl_status in
14055           x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
14056           x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
14057           x*) libltdl_cv_need_uscore=unknown ;;
14058         esac
14059       fi
14060       rm -rf conftest* $libname*
14061       LIBS=$dlsym_uscore_save_LIBS
14062
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
14065 $as_echo "$libltdl_cv_need_uscore" >&6; }
14066   fi
14067 fi
14068
14069 if test yes = "$libltdl_cv_need_uscore"; then
14070
14071 $as_echo "#define NEED_USCORE 1" >>confdefs.h
14072
14073 fi
14074
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
14076 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
14077 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
14078   $as_echo_n "(cached) " >&6
14079 else
14080   # PORTME does your system automatically load deplibs for dlopen?
14081   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
14082   # For now, we just catch OSes we know something about -- in the
14083   # future, we'll try test this programmatically.
14084   lt_cv_sys_dlopen_deplibs=unknown
14085   case $host_os in
14086   aix3*|aix4.1.*|aix4.2.*)
14087     # Unknown whether this is true for these versions of AIX, but
14088     # we want this 'case' here to explicitly catch those versions.
14089     lt_cv_sys_dlopen_deplibs=unknown
14090     ;;
14091   aix[4-9]*)
14092     lt_cv_sys_dlopen_deplibs=yes
14093     ;;
14094   amigaos*)
14095     case $host_cpu in
14096     powerpc)
14097       lt_cv_sys_dlopen_deplibs=no
14098       ;;
14099     esac
14100     ;;
14101   bitrig*)
14102     lt_cv_sys_dlopen_deplibs=yes
14103     ;;
14104   darwin*)
14105     # Assuming the user has installed a libdl from somewhere, this is true
14106     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
14107     lt_cv_sys_dlopen_deplibs=yes
14108     ;;
14109   freebsd* | dragonfly* | midnightbsd*)
14110     lt_cv_sys_dlopen_deplibs=yes
14111     ;;
14112   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
14113     # GNU and its variants, using gnu ld.so (Glibc)
14114     lt_cv_sys_dlopen_deplibs=yes
14115     ;;
14116   hpux10*|hpux11*)
14117     lt_cv_sys_dlopen_deplibs=yes
14118     ;;
14119   interix*)
14120     lt_cv_sys_dlopen_deplibs=yes
14121     ;;
14122   irix[12345]*|irix6.[01]*)
14123     # Catch all versions of IRIX before 6.2, and indicate that we don't
14124     # know how it worked for any of those versions.
14125     lt_cv_sys_dlopen_deplibs=unknown
14126     ;;
14127   irix*)
14128     # The case above catches anything before 6.2, and it's known that
14129     # at 6.2 and later dlopen does load deplibs.
14130     lt_cv_sys_dlopen_deplibs=yes
14131     ;;
14132   netbsd*)
14133     lt_cv_sys_dlopen_deplibs=yes
14134     ;;
14135   openbsd*)
14136     lt_cv_sys_dlopen_deplibs=yes
14137     ;;
14138   osf[1234]*)
14139     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
14140     # it did *not* use an RPATH in a shared library to find objects the
14141     # library depends on, so we explicitly say 'no'.
14142     lt_cv_sys_dlopen_deplibs=no
14143     ;;
14144   osf5.0|osf5.0a|osf5.1)
14145     # dlopen *does* load deplibs and with the right loader patch applied
14146     # it even uses RPATH in a shared library to search for shared objects
14147     # that the library depends on, but there's no easy way to know if that
14148     # patch is installed.  Since this is the case, all we can really
14149     # say is unknown -- it depends on the patch being installed.  If
14150     # it is, this changes to 'yes'.  Without it, it would be 'no'.
14151     lt_cv_sys_dlopen_deplibs=unknown
14152     ;;
14153   osf*)
14154     # the two cases above should catch all versions of osf <= 5.1.  Read
14155     # the comments above for what we know about them.
14156     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
14157     # is used to find them so we can finally say 'yes'.
14158     lt_cv_sys_dlopen_deplibs=yes
14159     ;;
14160   qnx*)
14161     lt_cv_sys_dlopen_deplibs=yes
14162     ;;
14163   solaris*)
14164     lt_cv_sys_dlopen_deplibs=yes
14165     ;;
14166   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14167     libltdl_cv_sys_dlopen_deplibs=yes
14168     ;;
14169   esac
14170
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
14173 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
14174 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
14175
14176 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
14177
14178 fi
14179
14180
14181 for ac_header in argz.h
14182 do :
14183   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
14184 "
14185 if test "x$ac_cv_header_argz_h" = xyes; then :
14186   cat >>confdefs.h <<_ACEOF
14187 #define HAVE_ARGZ_H 1
14188 _ACEOF
14189
14190 fi
14191
14192 done
14193
14194
14195 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
14196 #  include <argz.h>
14197 #endif
14198 "
14199 if test "x$ac_cv_type_error_t" = xyes; then :
14200
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_ERROR_T 1
14203 _ACEOF
14204
14205
14206 else
14207
14208 $as_echo "#define error_t int" >>confdefs.h
14209
14210
14211 $as_echo "#define __error_t_defined 1" >>confdefs.h
14212
14213 fi
14214
14215
14216 LT_ARGZ_H=
14217 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
14218         argz_next argz_stringify
14219 do :
14220   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14221 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14222 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14223   cat >>confdefs.h <<_ACEOF
14224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14225 _ACEOF
14226
14227 else
14228   LT_ARGZ_H=lt__argz.h; case " $LIBOBJS " in
14229   *" lt__argz.$ac_objext "* ) ;;
14230   *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
14231  ;;
14232 esac
14233
14234 fi
14235 done
14236
14237
14238 if test -z "$LT_ARGZ_H"; then :
14239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
14240 $as_echo_n "checking if argz actually works... " >&6; }
14241 if ${lt_cv_sys_argz_works+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   case $host_os in #(
14245          *cygwin*)
14246            lt_cv_sys_argz_works=no
14247            if test no != "$cross_compiling"; then
14248              lt_cv_sys_argz_works="guessing no"
14249            else
14250              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
14251              save_IFS=$IFS
14252              IFS=-.
14253              set x `uname -r | $SED -e "$lt_sed_extract_leading_digits"`
14254              IFS=$save_IFS
14255              lt_os_major=${2-0}
14256              lt_os_minor=${3-0}
14257              lt_os_micro=${4-0}
14258              if test 1 -lt "$lt_os_major" \
14259                 || { test 1 -eq "$lt_os_major" \
14260                   && { test 5 -lt "$lt_os_minor" \
14261                     || { test 5 -eq "$lt_os_minor" \
14262                       && test 24 -lt "$lt_os_micro"; }; }; }; then
14263                lt_cv_sys_argz_works=yes
14264              fi
14265            fi
14266            ;; #(
14267          *) lt_cv_sys_argz_works=yes ;;
14268          esac
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
14271 $as_echo "$lt_cv_sys_argz_works" >&6; }
14272      if test yes = "$lt_cv_sys_argz_works"; then :
14273
14274 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
14275
14276 else
14277   LT_ARGZ_H=lt__argz.h
14278         case " $LIBOBJS " in
14279   *" lt__argz.$ac_objext "* ) ;;
14280   *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
14281  ;;
14282 esac
14283
14284 fi
14285 fi
14286
14287
14288
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
14290 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
14291 if ${libltdl_cv_preloaded_symbols+:} false; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294   if test -n "$lt_cv_sys_global_symbol_pipe"; then
14295     libltdl_cv_preloaded_symbols=yes
14296   else
14297     libltdl_cv_preloaded_symbols=no
14298   fi
14299
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
14302 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
14303 if test yes = "$libltdl_cv_preloaded_symbols"; then
14304
14305 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
14306
14307 fi
14308
14309
14310
14311 # Check whether --enable-ltdl-install was given.
14312 if test "${enable_ltdl_install+set}" = set; then :
14313   enableval=$enable_ltdl_install;
14314 fi
14315
14316
14317 case ,$enable_ltdl_install,$enable_ltdl_convenience in
14318   *yes*) ;;
14319   *) enable_ltdl_convenience=yes ;;
14320 esac
14321
14322  if test no != "${enable_ltdl_install-no}"; then
14323   INSTALL_LTDL_TRUE=
14324   INSTALL_LTDL_FALSE='#'
14325 else
14326   INSTALL_LTDL_TRUE='#'
14327   INSTALL_LTDL_FALSE=
14328 fi
14329
14330   if test no != "${enable_ltdl_convenience-no}"; then
14331   CONVENIENCE_LTDL_TRUE=
14332   CONVENIENCE_LTDL_FALSE='#'
14333 else
14334   CONVENIENCE_LTDL_TRUE='#'
14335   CONVENIENCE_LTDL_FALSE=
14336 fi
14337
14338
14339
14340
14341
14342
14343 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
14344 # the user used.  This is so that ltdl.h can pick up the parent projects
14345 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
14346 # definitions required by ltdl.c.
14347 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
14348
14349
14350
14351 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
14352 do :
14353   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14355 "
14356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14357   cat >>confdefs.h <<_ACEOF
14358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14359 _ACEOF
14360
14361 fi
14362
14363 done
14364
14365
14366 for ac_func in closedir opendir readdir
14367 do :
14368   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14371   cat >>confdefs.h <<_ACEOF
14372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14373 _ACEOF
14374
14375 else
14376   case " $LIBOBJS " in
14377   *" lt__dirent.$ac_objext "* ) ;;
14378   *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
14379  ;;
14380 esac
14381
14382 fi
14383 done
14384
14385 for ac_func in strlcat strlcpy
14386 do :
14387   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14388 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14389 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14390   cat >>confdefs.h <<_ACEOF
14391 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14392 _ACEOF
14393
14394 else
14395   case " $LIBOBJS " in
14396   *" lt__strl.$ac_objext "* ) ;;
14397   *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
14398  ;;
14399 esac
14400
14401 fi
14402 done
14403
14404
14405
14406 cat >>confdefs.h <<_ACEOF
14407 #define LT_LIBEXT "$libext"
14408 _ACEOF
14409
14410
14411 name=
14412 eval "lt_libprefix=\"$libname_spec\""
14413
14414 cat >>confdefs.h <<_ACEOF
14415 #define LT_LIBPREFIX "$lt_libprefix"
14416 _ACEOF
14417
14418
14419 name=ltdl
14420 eval "LTDLOPEN=\"$libname_spec\""
14421
14422
14423
14424 # Enable all the language support we can
14425 ac_ext=cpp
14426 ac_cpp='$CXXCPP $CPPFLAGS'
14427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14430 if test -z "$CXX"; then
14431   if test -n "$CCC"; then
14432     CXX=$CCC
14433   else
14434     if test -n "$ac_tool_prefix"; then
14435   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14436   do
14437     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14440 $as_echo_n "checking for $ac_word... " >&6; }
14441 if ${ac_cv_prog_CXX+:} false; then :
14442   $as_echo_n "(cached) " >&6
14443 else
14444   if test -n "$CXX"; then
14445   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14446 else
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14449 do
14450   IFS=$as_save_IFS
14451   test -z "$as_dir" && as_dir=.
14452     for ac_exec_ext in '' $ac_executable_extensions; do
14453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14454     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14456     break 2
14457   fi
14458 done
14459   done
14460 IFS=$as_save_IFS
14461
14462 fi
14463 fi
14464 CXX=$ac_cv_prog_CXX
14465 if test -n "$CXX"; then
14466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14467 $as_echo "$CXX" >&6; }
14468 else
14469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470 $as_echo "no" >&6; }
14471 fi
14472
14473
14474     test -n "$CXX" && break
14475   done
14476 fi
14477 if test -z "$CXX"; then
14478   ac_ct_CXX=$CXX
14479   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14480 do
14481   # Extract the first word of "$ac_prog", so it can be a program name with args.
14482 set dummy $ac_prog; ac_word=$2
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14484 $as_echo_n "checking for $ac_word... " >&6; }
14485 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14486   $as_echo_n "(cached) " >&6
14487 else
14488   if test -n "$ac_ct_CXX"; then
14489   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14490 else
14491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14492 for as_dir in $PATH
14493 do
14494   IFS=$as_save_IFS
14495   test -z "$as_dir" && as_dir=.
14496     for ac_exec_ext in '' $ac_executable_extensions; do
14497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14498     ac_cv_prog_ac_ct_CXX="$ac_prog"
14499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14500     break 2
14501   fi
14502 done
14503   done
14504 IFS=$as_save_IFS
14505
14506 fi
14507 fi
14508 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14509 if test -n "$ac_ct_CXX"; then
14510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14511 $as_echo "$ac_ct_CXX" >&6; }
14512 else
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515 fi
14516
14517
14518   test -n "$ac_ct_CXX" && break
14519 done
14520
14521   if test "x$ac_ct_CXX" = x; then
14522     CXX="g++"
14523   else
14524     case $cross_compiling:$ac_tool_warned in
14525 yes:)
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14528 ac_tool_warned=yes ;;
14529 esac
14530     CXX=$ac_ct_CXX
14531   fi
14532 fi
14533
14534   fi
14535 fi
14536 # Provide some information about the compiler.
14537 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14538 set X $ac_compile
14539 ac_compiler=$2
14540 for ac_option in --version -v -V -qversion; do
14541   { { ac_try="$ac_compiler $ac_option >&5"
14542 case "(($ac_try" in
14543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544   *) ac_try_echo=$ac_try;;
14545 esac
14546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14547 $as_echo "$ac_try_echo"; } >&5
14548   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14549   ac_status=$?
14550   if test -s conftest.err; then
14551     sed '10a\
14552 ... rest of stderr output deleted ...
14553          10q' conftest.err >conftest.er1
14554     cat conftest.er1 >&5
14555   fi
14556   rm -f conftest.er1 conftest.err
14557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14558   test $ac_status = 0; }
14559 done
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14562 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14563 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14564   $as_echo_n "(cached) " >&6
14565 else
14566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h.  */
14568
14569 int
14570 main ()
14571 {
14572 #ifndef __GNUC__
14573        choke me
14574 #endif
14575
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 if ac_fn_cxx_try_compile "$LINENO"; then :
14581   ac_compiler_gnu=yes
14582 else
14583   ac_compiler_gnu=no
14584 fi
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14587
14588 fi
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14590 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14591 if test $ac_compiler_gnu = yes; then
14592   GXX=yes
14593 else
14594   GXX=
14595 fi
14596 ac_test_CXXFLAGS=${CXXFLAGS+set}
14597 ac_save_CXXFLAGS=$CXXFLAGS
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14599 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14600 if ${ac_cv_prog_cxx_g+:} false; then :
14601   $as_echo_n "(cached) " >&6
14602 else
14603   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14604    ac_cxx_werror_flag=yes
14605    ac_cv_prog_cxx_g=no
14606    CXXFLAGS="-g"
14607    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h.  */
14609
14610 int
14611 main ()
14612 {
14613
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 if ac_fn_cxx_try_compile "$LINENO"; then :
14619   ac_cv_prog_cxx_g=yes
14620 else
14621   CXXFLAGS=""
14622       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h.  */
14624
14625 int
14626 main ()
14627 {
14628
14629   ;
14630   return 0;
14631 }
14632 _ACEOF
14633 if ac_fn_cxx_try_compile "$LINENO"; then :
14634
14635 else
14636   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14637          CXXFLAGS="-g"
14638          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h.  */
14640
14641 int
14642 main ()
14643 {
14644
14645   ;
14646   return 0;
14647 }
14648 _ACEOF
14649 if ac_fn_cxx_try_compile "$LINENO"; then :
14650   ac_cv_prog_cxx_g=yes
14651 fi
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14660 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14661 if test "$ac_test_CXXFLAGS" = set; then
14662   CXXFLAGS=$ac_save_CXXFLAGS
14663 elif test $ac_cv_prog_cxx_g = yes; then
14664   if test "$GXX" = yes; then
14665     CXXFLAGS="-g -O2"
14666   else
14667     CXXFLAGS="-g"
14668   fi
14669 else
14670   if test "$GXX" = yes; then
14671     CXXFLAGS="-O2"
14672   else
14673     CXXFLAGS=
14674   fi
14675 fi
14676 ac_ext=c
14677 ac_cpp='$CPP $CPPFLAGS'
14678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14681
14682 depcc="$CXX"  am_compiler_list=
14683
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14685 $as_echo_n "checking dependency style of $depcc... " >&6; }
14686 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14687   $as_echo_n "(cached) " >&6
14688 else
14689   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14690   # We make a subdir and do the tests there.  Otherwise we can end up
14691   # making bogus files that we don't know about and never remove.  For
14692   # instance it was reported that on HP-UX the gcc test will end up
14693   # making a dummy file named 'D' -- because '-MD' means "put the output
14694   # in D".
14695   rm -rf conftest.dir
14696   mkdir conftest.dir
14697   # Copy depcomp to subdir because otherwise we won't find it if we're
14698   # using a relative directory.
14699   cp "$am_depcomp" conftest.dir
14700   cd conftest.dir
14701   # We will build objects and dependencies in a subdirectory because
14702   # it helps to detect inapplicable dependency modes.  For instance
14703   # both Tru64's cc and ICC support -MD to output dependencies as a
14704   # side effect of compilation, but ICC will put the dependencies in
14705   # the current directory while Tru64 will put them in the object
14706   # directory.
14707   mkdir sub
14708
14709   am_cv_CXX_dependencies_compiler_type=none
14710   if test "$am_compiler_list" = ""; then
14711      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14712   fi
14713   am__universal=false
14714   case " $depcc " in #(
14715      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14716      esac
14717
14718   for depmode in $am_compiler_list; do
14719     # Setup a source with many dependencies, because some compilers
14720     # like to wrap large dependency lists on column 80 (with \), and
14721     # we should not choose a depcomp mode which is confused by this.
14722     #
14723     # We need to recreate these files for each test, as the compiler may
14724     # overwrite some of them when testing with obscure command lines.
14725     # This happens at least with the AIX C compiler.
14726     : > sub/conftest.c
14727     for i in 1 2 3 4 5 6; do
14728       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14729       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14730       # Solaris 10 /bin/sh.
14731       echo '/* dummy */' > sub/conftst$i.h
14732     done
14733     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14734
14735     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14736     # mode.  It turns out that the SunPro C++ compiler does not properly
14737     # handle '-M -o', and we need to detect this.  Also, some Intel
14738     # versions had trouble with output in subdirs.
14739     am__obj=sub/conftest.${OBJEXT-o}
14740     am__minus_obj="-o $am__obj"
14741     case $depmode in
14742     gcc)
14743       # This depmode causes a compiler race in universal mode.
14744       test "$am__universal" = false || continue
14745       ;;
14746     nosideeffect)
14747       # After this tag, mechanisms are not by side-effect, so they'll
14748       # only be used when explicitly requested.
14749       if test "x$enable_dependency_tracking" = xyes; then
14750         continue
14751       else
14752         break
14753       fi
14754       ;;
14755     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14756       # This compiler won't grok '-c -o', but also, the minuso test has
14757       # not run yet.  These depmodes are late enough in the game, and
14758       # so weak that their functioning should not be impacted.
14759       am__obj=conftest.${OBJEXT-o}
14760       am__minus_obj=
14761       ;;
14762     none) break ;;
14763     esac
14764     if depmode=$depmode \
14765        source=sub/conftest.c object=$am__obj \
14766        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14767        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14768          >/dev/null 2>conftest.err &&
14769        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14770        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14771        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14772        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14773       # icc doesn't choke on unknown options, it will just issue warnings
14774       # or remarks (even with -Werror).  So we grep stderr for any message
14775       # that says an option was ignored or not supported.
14776       # When given -MP, icc 7.0 and 7.1 complain thusly:
14777       #   icc: Command line warning: ignoring option '-M'; no argument required
14778       # The diagnosis changed in icc 8.0:
14779       #   icc: Command line remark: option '-MP' not supported
14780       if (grep 'ignoring option' conftest.err ||
14781           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14782         am_cv_CXX_dependencies_compiler_type=$depmode
14783         break
14784       fi
14785     fi
14786   done
14787
14788   cd ..
14789   rm -rf conftest.dir
14790 else
14791   am_cv_CXX_dependencies_compiler_type=none
14792 fi
14793
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14796 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14797 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14798
14799  if
14800   test "x$enable_dependency_tracking" != xno \
14801   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14802   am__fastdepCXX_TRUE=
14803   am__fastdepCXX_FALSE='#'
14804 else
14805   am__fastdepCXX_TRUE='#'
14806   am__fastdepCXX_FALSE=
14807 fi
14808
14809
14810
14811
14812
14813 func_stripname_cnf ()
14814 {
14815   case $2 in
14816   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14817   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14818   esac
14819 } # func_stripname_cnf
14820
14821       if test -n "$CXX" && ( test no != "$CXX" &&
14822     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14823     (test g++ != "$CXX"))); then
14824   ac_ext=cpp
14825 ac_cpp='$CXXCPP $CPPFLAGS'
14826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14830 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14831 if test -z "$CXXCPP"; then
14832   if ${ac_cv_prog_CXXCPP+:} false; then :
14833   $as_echo_n "(cached) " >&6
14834 else
14835       # Double quotes because CXXCPP needs to be expanded
14836     for CXXCPP in "$CXX -E" "/lib/cpp"
14837     do
14838       ac_preproc_ok=false
14839 for ac_cxx_preproc_warn_flag in '' yes
14840 do
14841   # Use a header file that comes with gcc, so configuring glibc
14842   # with a fresh cross-compiler works.
14843   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14844   # <limits.h> exists even on freestanding compilers.
14845   # On the NeXT, cc -E runs the code through the compiler's parser,
14846   # not just through cpp. "Syntax error" is here to catch this case.
14847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h.  */
14849 #ifdef __STDC__
14850 # include <limits.h>
14851 #else
14852 # include <assert.h>
14853 #endif
14854                      Syntax error
14855 _ACEOF
14856 if ac_fn_cxx_try_cpp "$LINENO"; then :
14857
14858 else
14859   # Broken: fails on valid input.
14860 continue
14861 fi
14862 rm -f conftest.err conftest.i conftest.$ac_ext
14863
14864   # OK, works on sane cases.  Now check whether nonexistent headers
14865   # can be detected and how.
14866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h.  */
14868 #include <ac_nonexistent.h>
14869 _ACEOF
14870 if ac_fn_cxx_try_cpp "$LINENO"; then :
14871   # Broken: success on invalid input.
14872 continue
14873 else
14874   # Passes both tests.
14875 ac_preproc_ok=:
14876 break
14877 fi
14878 rm -f conftest.err conftest.i conftest.$ac_ext
14879
14880 done
14881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14882 rm -f conftest.i conftest.err conftest.$ac_ext
14883 if $ac_preproc_ok; then :
14884   break
14885 fi
14886
14887     done
14888     ac_cv_prog_CXXCPP=$CXXCPP
14889
14890 fi
14891   CXXCPP=$ac_cv_prog_CXXCPP
14892 else
14893   ac_cv_prog_CXXCPP=$CXXCPP
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14896 $as_echo "$CXXCPP" >&6; }
14897 ac_preproc_ok=false
14898 for ac_cxx_preproc_warn_flag in '' yes
14899 do
14900   # Use a header file that comes with gcc, so configuring glibc
14901   # with a fresh cross-compiler works.
14902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14903   # <limits.h> exists even on freestanding compilers.
14904   # On the NeXT, cc -E runs the code through the compiler's parser,
14905   # not just through cpp. "Syntax error" is here to catch this case.
14906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h.  */
14908 #ifdef __STDC__
14909 # include <limits.h>
14910 #else
14911 # include <assert.h>
14912 #endif
14913                      Syntax error
14914 _ACEOF
14915 if ac_fn_cxx_try_cpp "$LINENO"; then :
14916
14917 else
14918   # Broken: fails on valid input.
14919 continue
14920 fi
14921 rm -f conftest.err conftest.i conftest.$ac_ext
14922
14923   # OK, works on sane cases.  Now check whether nonexistent headers
14924   # can be detected and how.
14925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h.  */
14927 #include <ac_nonexistent.h>
14928 _ACEOF
14929 if ac_fn_cxx_try_cpp "$LINENO"; then :
14930   # Broken: success on invalid input.
14931 continue
14932 else
14933   # Passes both tests.
14934 ac_preproc_ok=:
14935 break
14936 fi
14937 rm -f conftest.err conftest.i conftest.$ac_ext
14938
14939 done
14940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14941 rm -f conftest.i conftest.err conftest.$ac_ext
14942 if $ac_preproc_ok; then :
14943
14944 else
14945   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14947 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14948 See \`config.log' for more details" "$LINENO" 5; }
14949 fi
14950
14951 ac_ext=c
14952 ac_cpp='$CPP $CPPFLAGS'
14953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14956
14957 else
14958   _lt_caught_CXX_error=yes
14959 fi
14960
14961 ac_ext=cpp
14962 ac_cpp='$CXXCPP $CPPFLAGS'
14963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14966
14967 archive_cmds_need_lc_CXX=no
14968 allow_undefined_flag_CXX=
14969 always_export_symbols_CXX=no
14970 archive_expsym_cmds_CXX=
14971 compiler_needs_object_CXX=no
14972 export_dynamic_flag_spec_CXX=
14973 hardcode_direct_CXX=no
14974 hardcode_direct_absolute_CXX=no
14975 hardcode_libdir_flag_spec_CXX=
14976 hardcode_libdir_separator_CXX=
14977 hardcode_minus_L_CXX=no
14978 hardcode_shlibpath_var_CXX=unsupported
14979 hardcode_automatic_CXX=no
14980 inherit_rpath_CXX=no
14981 module_cmds_CXX=
14982 module_expsym_cmds_CXX=
14983 link_all_deplibs_CXX=unknown
14984 old_archive_cmds_CXX=$old_archive_cmds
14985 reload_flag_CXX=$reload_flag
14986 reload_cmds_CXX=$reload_cmds
14987 no_undefined_flag_CXX=
14988 whole_archive_flag_spec_CXX=
14989 enable_shared_with_static_runtimes_CXX=no
14990
14991 # Source file extension for C++ test sources.
14992 ac_ext=cpp
14993
14994 # Object file extension for compiled C++ test sources.
14995 objext=o
14996 objext_CXX=$objext
14997
14998 # No sense in running all these tests if we already determined that
14999 # the CXX compiler isn't working.  Some variables (like enable_shared)
15000 # are currently assumed to apply to all compilers on this platform,
15001 # and will be corrupted by setting them based on a non-working compiler.
15002 if test yes != "$_lt_caught_CXX_error"; then
15003   # Code to be used in simple compile tests
15004   lt_simple_compile_test_code="int some_variable = 0;"
15005
15006   # Code to be used in simple link tests
15007   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15008
15009   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15010
15011
15012
15013
15014
15015
15016 # If no C compiler was specified, use CC.
15017 LTCC=${LTCC-"$CC"}
15018
15019 # If no C compiler flags were specified, use CFLAGS.
15020 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15021
15022 # Allow CC to be a program name with arguments.
15023 compiler=$CC
15024
15025
15026   # save warnings/boilerplate of simple test code
15027   ac_outfile=conftest.$ac_objext
15028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15030 _lt_compiler_boilerplate=`cat conftest.err`
15031 $RM conftest*
15032
15033   ac_outfile=conftest.$ac_objext
15034 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15035 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15036 _lt_linker_boilerplate=`cat conftest.err`
15037 $RM -r conftest*
15038
15039
15040   # Allow CC to be a program name with arguments.
15041   lt_save_CC=$CC
15042   lt_save_CFLAGS=$CFLAGS
15043   lt_save_LD=$LD
15044   lt_save_GCC=$GCC
15045   GCC=$GXX
15046   lt_save_with_gnu_ld=$with_gnu_ld
15047   lt_save_path_LD=$lt_cv_path_LD
15048   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15049     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15050   else
15051     $as_unset lt_cv_prog_gnu_ld
15052   fi
15053   if test -n "${lt_cv_path_LDCXX+set}"; then
15054     lt_cv_path_LD=$lt_cv_path_LDCXX
15055   else
15056     $as_unset lt_cv_path_LD
15057   fi
15058   test -z "${LDCXX+set}" || LD=$LDCXX
15059   CC=${CXX-"c++"}
15060   CFLAGS=$CXXFLAGS
15061   compiler=$CC
15062   compiler_CXX=$CC
15063   func_cc_basename $compiler
15064 cc_basename=$func_cc_basename_result
15065
15066
15067   if test -n "$compiler"; then
15068     # We don't want -fno-exception when compiling C++ code, so set the
15069     # no_builtin_flag separately
15070     if test yes = "$GXX"; then
15071       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15072     else
15073       lt_prog_compiler_no_builtin_flag_CXX=
15074     fi
15075
15076     if test yes = "$GXX"; then
15077       # Set up default GNU C++ configuration
15078
15079
15080
15081 # Check whether --with-gnu-ld was given.
15082 if test "${with_gnu_ld+set}" = set; then :
15083   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15084 else
15085   with_gnu_ld=no
15086 fi
15087
15088 ac_prog=ld
15089 if test yes = "$GCC"; then
15090   # Check if gcc -print-prog-name=ld gives a path.
15091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15092 $as_echo_n "checking for ld used by $CC... " >&6; }
15093   case $host in
15094   *-*-mingw*)
15095     # gcc leaves a trailing carriage return, which upsets mingw
15096     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15097   *)
15098     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15099   esac
15100   case $ac_prog in
15101     # Accept absolute paths.
15102     [\\/]* | ?:[\\/]*)
15103       re_direlt='/[^/][^/]*/\.\./'
15104       # Canonicalize the pathname of ld
15105       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15106       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15107         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15108       done
15109       test -z "$LD" && LD=$ac_prog
15110       ;;
15111   "")
15112     # If it fails, then pretend we aren't using GCC.
15113     ac_prog=ld
15114     ;;
15115   *)
15116     # If it is relative, then search for the first ld in PATH.
15117     with_gnu_ld=unknown
15118     ;;
15119   esac
15120 elif test yes = "$with_gnu_ld"; then
15121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15122 $as_echo_n "checking for GNU ld... " >&6; }
15123 else
15124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15125 $as_echo_n "checking for non-GNU ld... " >&6; }
15126 fi
15127 if ${lt_cv_path_LD+:} false; then :
15128   $as_echo_n "(cached) " >&6
15129 else
15130   if test -z "$LD"; then
15131   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15132   for ac_dir in $PATH; do
15133     IFS=$lt_save_ifs
15134     test -z "$ac_dir" && ac_dir=.
15135     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15136       lt_cv_path_LD=$ac_dir/$ac_prog
15137       # Check to see if the program is GNU ld.  I'd rather use --version,
15138       # but apparently some variants of GNU ld only accept -v.
15139       # Break only if it was the GNU/non-GNU ld that we prefer.
15140       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15141       *GNU* | *'with BFD'*)
15142         test no != "$with_gnu_ld" && break
15143         ;;
15144       *)
15145         test yes != "$with_gnu_ld" && break
15146         ;;
15147       esac
15148     fi
15149   done
15150   IFS=$lt_save_ifs
15151 else
15152   lt_cv_path_LD=$LD # Let the user override the test with a path.
15153 fi
15154 fi
15155
15156 LD=$lt_cv_path_LD
15157 if test -n "$LD"; then
15158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15159 $as_echo "$LD" >&6; }
15160 else
15161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 $as_echo "no" >&6; }
15163 fi
15164 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15166 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15167 if ${lt_cv_prog_gnu_ld+:} false; then :
15168   $as_echo_n "(cached) " >&6
15169 else
15170   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15171 case `$LD -v 2>&1 </dev/null` in
15172 *GNU* | *'with BFD'*)
15173   lt_cv_prog_gnu_ld=yes
15174   ;;
15175 *)
15176   lt_cv_prog_gnu_ld=no
15177   ;;
15178 esac
15179 fi
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15181 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15182 with_gnu_ld=$lt_cv_prog_gnu_ld
15183
15184
15185
15186
15187
15188
15189
15190       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15191       # archiving commands below assume that GNU ld is being used.
15192       if test yes = "$with_gnu_ld"; then
15193         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15194         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'
15195
15196         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15197         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15198
15199         # If archive_cmds runs LD, not CC, wlarc should be empty
15200         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15201         #     investigate it a little bit more. (MM)
15202         wlarc='$wl'
15203
15204         # ancient GNU ld didn't support --whole-archive et. al.
15205         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15206           $GREP 'no-whole-archive' > /dev/null; then
15207           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15208         else
15209           whole_archive_flag_spec_CXX=
15210         fi
15211       else
15212         with_gnu_ld=no
15213         wlarc=
15214
15215         # A generic and very simple default shared library creation
15216         # command for GNU C++ for the case where it uses the native
15217         # linker, instead of GNU ld.  If possible, this setting should
15218         # overridden to take advantage of the native linker features on
15219         # the platform it is being used on.
15220         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15221       fi
15222
15223       # Commands to make compiler produce verbose output that lists
15224       # what "hidden" libraries, object files and flags are used when
15225       # linking a shared library.
15226       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15227
15228     else
15229       GXX=no
15230       with_gnu_ld=no
15231       wlarc=
15232     fi
15233
15234     # PORTME: fill in a description of your system's C++ link characteristics
15235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15236 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15237     ld_shlibs_CXX=yes
15238     case $host_os in
15239       aix3*)
15240         # FIXME: insert proper C++ library support
15241         ld_shlibs_CXX=no
15242         ;;
15243       aix[4-9]*)
15244         if test ia64 = "$host_cpu"; then
15245           # On IA64, the linker does run time linking by default, so we don't
15246           # have to do anything special.
15247           aix_use_runtimelinking=no
15248           exp_sym_flag='-Bexport'
15249           no_entry_flag=
15250         else
15251           aix_use_runtimelinking=no
15252
15253           # Test if we are trying to use run time linking or normal
15254           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15255           # have runtime linking enabled, and use it for executables.
15256           # For shared libraries, we enable/disable runtime linking
15257           # depending on the kind of the shared library created -
15258           # when "with_aix_soname,aix_use_runtimelinking" is:
15259           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15260           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15261           #            lib.a           static archive
15262           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15263           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15264           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15265           #            lib.a(lib.so.V) shared, rtl:no
15266           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15267           #            lib.a           static archive
15268           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15269             for ld_flag in $LDFLAGS; do
15270               case $ld_flag in
15271               *-brtl*)
15272                 aix_use_runtimelinking=yes
15273                 break
15274                 ;;
15275               esac
15276             done
15277             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15278               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15279               # so we don't have lib.a shared libs to link our executables.
15280               # We have to force runtime linking in this case.
15281               aix_use_runtimelinking=yes
15282               LDFLAGS="$LDFLAGS -Wl,-brtl"
15283             fi
15284             ;;
15285           esac
15286
15287           exp_sym_flag='-bexport'
15288           no_entry_flag='-bnoentry'
15289         fi
15290
15291         # When large executables or shared objects are built, AIX ld can
15292         # have problems creating the table of contents.  If linking a library
15293         # or program results in "error TOC overflow" add -mminimal-toc to
15294         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15295         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15296
15297         archive_cmds_CXX=''
15298         hardcode_direct_CXX=yes
15299         hardcode_direct_absolute_CXX=yes
15300         hardcode_libdir_separator_CXX=':'
15301         link_all_deplibs_CXX=yes
15302         file_list_spec_CXX='$wl-f,'
15303         case $with_aix_soname,$aix_use_runtimelinking in
15304         aix,*) ;;       # no import file
15305         svr4,* | *,yes) # use import file
15306           # The Import File defines what to hardcode.
15307           hardcode_direct_CXX=no
15308           hardcode_direct_absolute_CXX=no
15309           ;;
15310         esac
15311
15312         if test yes = "$GXX"; then
15313           case $host_os in aix4.[012]|aix4.[012].*)
15314           # We only want to do this on AIX 4.2 and lower, the check
15315           # below for broken collect2 doesn't work under 4.3+
15316           collect2name=`$CC -print-prog-name=collect2`
15317           if test -f "$collect2name" &&
15318              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15319           then
15320             # We have reworked collect2
15321             :
15322           else
15323             # We have old collect2
15324             hardcode_direct_CXX=unsupported
15325             # It fails to find uninstalled libraries when the uninstalled
15326             # path is not listed in the libpath.  Setting hardcode_minus_L
15327             # to unsupported forces relinking
15328             hardcode_minus_L_CXX=yes
15329             hardcode_libdir_flag_spec_CXX='-L$libdir'
15330             hardcode_libdir_separator_CXX=
15331           fi
15332           esac
15333           shared_flag='-shared'
15334           if test yes = "$aix_use_runtimelinking"; then
15335             shared_flag=$shared_flag' $wl-G'
15336           fi
15337           # Need to ensure runtime linking is disabled for the traditional
15338           # shared library, or the linker may eventually find shared libraries
15339           # /with/ Import File - we do not want to mix them.
15340           shared_flag_aix='-shared'
15341           shared_flag_svr4='-shared $wl-G'
15342         else
15343           # not using gcc
15344           if test ia64 = "$host_cpu"; then
15345           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15346           # chokes on -Wl,-G. The following line is correct:
15347           shared_flag='-G'
15348           else
15349             if test yes = "$aix_use_runtimelinking"; then
15350               shared_flag='$wl-G'
15351             else
15352               shared_flag='$wl-bM:SRE'
15353             fi
15354             shared_flag_aix='$wl-bM:SRE'
15355             shared_flag_svr4='$wl-G'
15356           fi
15357         fi
15358
15359         export_dynamic_flag_spec_CXX='$wl-bexpall'
15360         # It seems that -bexpall does not export symbols beginning with
15361         # underscore (_), so it is better to generate a list of symbols to
15362         # export.
15363         always_export_symbols_CXX=yes
15364         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15365           # Warning - without using the other runtime loading flags (-brtl),
15366           # -berok will link without error, but may produce a broken library.
15367           # The "-G" linker flag allows undefined symbols.
15368           no_undefined_flag_CXX='-bernotok'
15369           # Determine the default libpath from the value encoded in an empty
15370           # executable.
15371           if test set = "${lt_cv_aix_libpath+set}"; then
15372   aix_libpath=$lt_cv_aix_libpath
15373 else
15374   if ${lt_cv_aix_libpath__CXX+:} false; then :
15375   $as_echo_n "(cached) " >&6
15376 else
15377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h.  */
15379
15380 int
15381 main ()
15382 {
15383
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 if ac_fn_cxx_try_link "$LINENO"; then :
15389
15390   lt_aix_libpath_sed='
15391       /Import File Strings/,/^$/ {
15392           /^0/ {
15393               s/^0  *\([^ ]*\) *$/\1/
15394               p
15395           }
15396       }'
15397   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15398   # Check for a 64-bit object if we didn't find anything.
15399   if test -z "$lt_cv_aix_libpath__CXX"; then
15400     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401   fi
15402 fi
15403 rm -f core conftest.err conftest.$ac_objext \
15404     conftest$ac_exeext conftest.$ac_ext
15405   if test -z "$lt_cv_aix_libpath__CXX"; then
15406     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15407   fi
15408
15409 fi
15410
15411   aix_libpath=$lt_cv_aix_libpath__CXX
15412 fi
15413
15414           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15415
15416           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15417         else
15418           if test ia64 = "$host_cpu"; then
15419             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15420             allow_undefined_flag_CXX="-z nodefs"
15421             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"
15422           else
15423             # Determine the default libpath from the value encoded in an
15424             # empty executable.
15425             if test set = "${lt_cv_aix_libpath+set}"; then
15426   aix_libpath=$lt_cv_aix_libpath
15427 else
15428   if ${lt_cv_aix_libpath__CXX+:} false; then :
15429   $as_echo_n "(cached) " >&6
15430 else
15431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h.  */
15433
15434 int
15435 main ()
15436 {
15437
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_cxx_try_link "$LINENO"; then :
15443
15444   lt_aix_libpath_sed='
15445       /Import File Strings/,/^$/ {
15446           /^0/ {
15447               s/^0  *\([^ ]*\) *$/\1/
15448               p
15449           }
15450       }'
15451   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15452   # Check for a 64-bit object if we didn't find anything.
15453   if test -z "$lt_cv_aix_libpath__CXX"; then
15454     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15455   fi
15456 fi
15457 rm -f core conftest.err conftest.$ac_objext \
15458     conftest$ac_exeext conftest.$ac_ext
15459   if test -z "$lt_cv_aix_libpath__CXX"; then
15460     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15461   fi
15462
15463 fi
15464
15465   aix_libpath=$lt_cv_aix_libpath__CXX
15466 fi
15467
15468             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15469             # Warning - without using the other run time loading flags,
15470             # -berok will link without error, but may produce a broken library.
15471             no_undefined_flag_CXX=' $wl-bernotok'
15472             allow_undefined_flag_CXX=' $wl-berok'
15473             if test yes = "$with_gnu_ld"; then
15474               # We only use this code for GNU lds that support --whole-archive.
15475               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15476             else
15477               # Exported symbols can be pulled into shared objects from archives
15478               whole_archive_flag_spec_CXX='$convenience'
15479             fi
15480             archive_cmds_need_lc_CXX=yes
15481             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15482             # -brtl affects multiple linker settings, -berok does not and is overridden later
15483             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15484             if test svr4 != "$with_aix_soname"; then
15485               # This is similar to how AIX traditionally builds its shared
15486               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15487               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15488             fi
15489             if test aix != "$with_aix_soname"; then
15490               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15491             else
15492               # used by -dlpreopen to get the symbols
15493               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15494             fi
15495             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15496           fi
15497         fi
15498         ;;
15499
15500       beos*)
15501         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15502           allow_undefined_flag_CXX=unsupported
15503           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15504           # support --undefined.  This deserves some investigation.  FIXME
15505           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15506         else
15507           ld_shlibs_CXX=no
15508         fi
15509         ;;
15510
15511       chorus*)
15512         case $cc_basename in
15513           *)
15514           # FIXME: insert proper C++ library support
15515           ld_shlibs_CXX=no
15516           ;;
15517         esac
15518         ;;
15519
15520       cygwin* | mingw* | pw32* | cegcc*)
15521         case $GXX,$cc_basename in
15522         ,cl* | no,cl* | ,icl* | no,icl*)
15523           # Native MSVC or ICC
15524           # hardcode_libdir_flag_spec is actually meaningless, as there is
15525           # no search path for DLLs.
15526           hardcode_libdir_flag_spec_CXX=' '
15527           allow_undefined_flag_CXX=unsupported
15528           always_export_symbols_CXX=yes
15529           file_list_spec_CXX='@'
15530           # Tell ltmain to make .lib files, not .a files.
15531           libext=lib
15532           # Tell ltmain to make .dll files, not .so files.
15533           shrext_cmds=.dll
15534           # FIXME: Setting linknames here is a bad hack.
15535           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15536           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15537               cp "$export_symbols" "$output_objdir/$soname.def";
15538               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15539             else
15540               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15541             fi~
15542             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15543             linknames='
15544           # The linker will not automatically build a static lib if we build a DLL.
15545           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15546           enable_shared_with_static_runtimes_CXX=yes
15547           # Don't use ranlib
15548           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15549           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15550             lt_tool_outputfile="@TOOL_OUTPUT@"~
15551             case $lt_outputfile in
15552               *.exe|*.EXE) ;;
15553               *)
15554                 lt_outputfile=$lt_outputfile.exe
15555                 lt_tool_outputfile=$lt_tool_outputfile.exe
15556                 ;;
15557             esac~
15558             func_to_tool_file "$lt_outputfile"~
15559             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15560               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15561               $RM "$lt_outputfile.manifest";
15562             fi'
15563           ;;
15564         *)
15565           # g++
15566           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15567           # as there is no search path for DLLs.
15568           hardcode_libdir_flag_spec_CXX='-L$libdir'
15569           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15570           allow_undefined_flag_CXX=unsupported
15571           always_export_symbols_CXX=no
15572           enable_shared_with_static_runtimes_CXX=yes
15573
15574           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15575             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'
15576             # If the export-symbols file already is a .def file, use it as
15577             # is; otherwise, prepend EXPORTS...
15578             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15579               cp $export_symbols $output_objdir/$soname.def;
15580             else
15581               echo EXPORTS > $output_objdir/$soname.def;
15582               cat $export_symbols >> $output_objdir/$soname.def;
15583             fi~
15584             $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'
15585           else
15586             ld_shlibs_CXX=no
15587           fi
15588           ;;
15589         esac
15590         ;;
15591       darwin* | rhapsody*)
15592
15593
15594   archive_cmds_need_lc_CXX=no
15595   hardcode_direct_CXX=no
15596   hardcode_automatic_CXX=yes
15597   hardcode_shlibpath_var_CXX=unsupported
15598   if test yes = "$lt_cv_ld_force_load"; then
15599     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\"`'
15600
15601   else
15602     whole_archive_flag_spec_CXX=''
15603   fi
15604   link_all_deplibs_CXX=yes
15605   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15606   case $cc_basename in
15607      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15608      *) _lt_dar_can_shared=$GCC ;;
15609   esac
15610   if test yes = "$_lt_dar_can_shared"; then
15611     output_verbose_link_cmd=func_echo_all
15612     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"
15613     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15614     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"
15615     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"
15616        if test yes != "$lt_cv_apple_cc_single_mod"; then
15617       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"
15618       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"
15619     fi
15620
15621   else
15622   ld_shlibs_CXX=no
15623   fi
15624
15625         ;;
15626
15627       os2*)
15628         hardcode_libdir_flag_spec_CXX='-L$libdir'
15629         hardcode_minus_L_CXX=yes
15630         allow_undefined_flag_CXX=unsupported
15631         shrext_cmds=.dll
15632         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15633           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15634           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15635           $ECHO EXPORTS >> $output_objdir/$libname.def~
15636           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15637           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15638           emximp -o $lib $output_objdir/$libname.def'
15639         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15640           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15641           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15642           $ECHO EXPORTS >> $output_objdir/$libname.def~
15643           prefix_cmds="$SED"~
15644           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15645             prefix_cmds="$prefix_cmds -e 1d";
15646           fi~
15647           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15648           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15649           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15650           emximp -o $lib $output_objdir/$libname.def'
15651         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15652         enable_shared_with_static_runtimes_CXX=yes
15653         file_list_spec_CXX='@'
15654         ;;
15655
15656       dgux*)
15657         case $cc_basename in
15658           ec++*)
15659             # FIXME: insert proper C++ library support
15660             ld_shlibs_CXX=no
15661             ;;
15662           ghcx*)
15663             # Green Hills C++ Compiler
15664             # FIXME: insert proper C++ library support
15665             ld_shlibs_CXX=no
15666             ;;
15667           *)
15668             # FIXME: insert proper C++ library support
15669             ld_shlibs_CXX=no
15670             ;;
15671         esac
15672         ;;
15673
15674       freebsd2.*)
15675         # C++ shared libraries reported to be fairly broken before
15676         # switch to ELF
15677         ld_shlibs_CXX=no
15678         ;;
15679
15680       freebsd-elf*)
15681         archive_cmds_need_lc_CXX=no
15682         ;;
15683
15684       freebsd* | dragonfly* | midnightbsd*)
15685         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15686         # conventions
15687         ld_shlibs_CXX=yes
15688         ;;
15689
15690       haiku*)
15691         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15692         link_all_deplibs_CXX=yes
15693         ;;
15694
15695       hpux9*)
15696         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15697         hardcode_libdir_separator_CXX=:
15698         export_dynamic_flag_spec_CXX='$wl-E'
15699         hardcode_direct_CXX=yes
15700         hardcode_minus_L_CXX=yes # Not in the search PATH,
15701                                              # but as the default
15702                                              # location of the library.
15703
15704         case $cc_basename in
15705           CC*)
15706             # FIXME: insert proper C++ library support
15707             ld_shlibs_CXX=no
15708             ;;
15709           aCC*)
15710             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15711             # Commands to make compiler produce verbose output that lists
15712             # what "hidden" libraries, object files and flags are used when
15713             # linking a shared library.
15714             #
15715             # There doesn't appear to be a way to prevent this compiler from
15716             # explicitly linking system object files so we need to strip them
15717             # from the output so that they don't get included in the library
15718             # dependencies.
15719             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"'
15720             ;;
15721           *)
15722             if test yes = "$GXX"; then
15723               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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15724             else
15725               # FIXME: insert proper C++ library support
15726               ld_shlibs_CXX=no
15727             fi
15728             ;;
15729         esac
15730         ;;
15731
15732       hpux10*|hpux11*)
15733         if test no = "$with_gnu_ld"; then
15734           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15735           hardcode_libdir_separator_CXX=:
15736
15737           case $host_cpu in
15738             hppa*64*|ia64*)
15739               ;;
15740             *)
15741               export_dynamic_flag_spec_CXX='$wl-E'
15742               ;;
15743           esac
15744         fi
15745         case $host_cpu in
15746           hppa*64*|ia64*)
15747             hardcode_direct_CXX=no
15748             hardcode_shlibpath_var_CXX=no
15749             ;;
15750           *)
15751             hardcode_direct_CXX=yes
15752             hardcode_direct_absolute_CXX=yes
15753             hardcode_minus_L_CXX=yes # Not in the search PATH,
15754                                                  # but as the default
15755                                                  # location of the library.
15756             ;;
15757         esac
15758
15759         case $cc_basename in
15760           CC*)
15761             # FIXME: insert proper C++ library support
15762             ld_shlibs_CXX=no
15763             ;;
15764           aCC*)
15765             case $host_cpu in
15766               hppa*64*)
15767                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15768                 ;;
15769               ia64*)
15770                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15771                 ;;
15772               *)
15773                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15774                 ;;
15775             esac
15776             # Commands to make compiler produce verbose output that lists
15777             # what "hidden" libraries, object files and flags are used when
15778             # linking a shared library.
15779             #
15780             # There doesn't appear to be a way to prevent this compiler from
15781             # explicitly linking system object files so we need to strip them
15782             # from the output so that they don't get included in the library
15783             # dependencies.
15784             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"'
15785             ;;
15786           *)
15787             if test yes = "$GXX"; then
15788               if test no = "$with_gnu_ld"; then
15789                 case $host_cpu in
15790                   hppa*64*)
15791                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15792                     ;;
15793                   ia64*)
15794                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15795                     ;;
15796                   *)
15797                     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'
15798                     ;;
15799                 esac
15800               fi
15801             else
15802               # FIXME: insert proper C++ library support
15803               ld_shlibs_CXX=no
15804             fi
15805             ;;
15806         esac
15807         ;;
15808
15809       interix[3-9]*)
15810         hardcode_direct_CXX=no
15811         hardcode_shlibpath_var_CXX=no
15812         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15813         export_dynamic_flag_spec_CXX='$wl-E'
15814         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15815         # Instead, shared libraries are loaded at an image base (0x10000000 by
15816         # default) and relocated if they conflict, which is a slow very memory
15817         # consuming and fragmenting process.  To avoid this, we pick a random,
15818         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15819         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15820         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'
15821         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'
15822         ;;
15823       irix5* | irix6*)
15824         case $cc_basename in
15825           CC*)
15826             # SGI C++
15827             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'
15828
15829             # Archives containing C++ object files must be created using
15830             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15831             # necessary to make sure instantiated templates are included
15832             # in the archive.
15833             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15834             ;;
15835           *)
15836             if test yes = "$GXX"; then
15837               if test no = "$with_gnu_ld"; then
15838                 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'
15839               else
15840                 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'
15841               fi
15842             fi
15843             link_all_deplibs_CXX=yes
15844             ;;
15845         esac
15846         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15847         hardcode_libdir_separator_CXX=:
15848         inherit_rpath_CXX=yes
15849         ;;
15850
15851       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15852         case $cc_basename in
15853           KCC*)
15854             # Kuck and Associates, Inc. (KAI) C++ Compiler
15855
15856             # KCC will only create a shared library if the output file
15857             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15858             # to its proper name (with version) after linking.
15859             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'
15860             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'
15861             # Commands to make compiler produce verbose output that lists
15862             # what "hidden" libraries, object files and flags are used when
15863             # linking a shared library.
15864             #
15865             # There doesn't appear to be a way to prevent this compiler from
15866             # explicitly linking system object files so we need to strip them
15867             # from the output so that they don't get included in the library
15868             # dependencies.
15869             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"'
15870
15871             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15872             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15873
15874             # Archives containing C++ object files must be created using
15875             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15876             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15877             ;;
15878           icpc* | ecpc* )
15879             # Intel C++
15880             with_gnu_ld=yes
15881             # version 8.0 and above of icpc choke on multiply defined symbols
15882             # if we add $predep_objects and $postdep_objects, however 7.1 and
15883             # earlier do not add the objects themselves.
15884             case `$CC -V 2>&1` in
15885               *"Version 7."*)
15886                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15887                 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'
15888                 ;;
15889               *)  # Version 8.0 or newer
15890                 tmp_idyn=
15891                 case $host_cpu in
15892                   ia64*) tmp_idyn=' -i_dynamic';;
15893                 esac
15894                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15895                 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'
15896                 ;;
15897             esac
15898             archive_cmds_need_lc_CXX=no
15899             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15900             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15901             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15902             ;;
15903           pgCC* | pgcpp*)
15904             # Portland Group C++ compiler
15905             case `$CC -V` in
15906             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15907               prelink_cmds_CXX='tpldir=Template.dir~
15908                rm -rf $tpldir~
15909                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15910                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15911               old_archive_cmds_CXX='tpldir=Template.dir~
15912                 rm -rf $tpldir~
15913                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15914                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15915                 $RANLIB $oldlib'
15916               archive_cmds_CXX='tpldir=Template.dir~
15917                 rm -rf $tpldir~
15918                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15919                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15920               archive_expsym_cmds_CXX='tpldir=Template.dir~
15921                 rm -rf $tpldir~
15922                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15923                 $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'
15924               ;;
15925             *) # Version 6 and above use weak symbols
15926               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15927               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'
15928               ;;
15929             esac
15930
15931             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15932             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15933             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'
15934             ;;
15935           cxx*)
15936             # Compaq C++
15937             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15938             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'
15939
15940             runpath_var=LD_RUN_PATH
15941             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15942             hardcode_libdir_separator_CXX=:
15943
15944             # Commands to make compiler produce verbose output that lists
15945             # what "hidden" libraries, object files and flags are used when
15946             # linking a shared library.
15947             #
15948             # There doesn't appear to be a way to prevent this compiler from
15949             # explicitly linking system object files so we need to strip them
15950             # from the output so that they don't get included in the library
15951             # dependencies.
15952             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'
15953             ;;
15954           xl* | mpixl* | bgxl*)
15955             # IBM XL 8.0 on PPC, with GNU ld
15956             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15957             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15958             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15959             if test yes = "$supports_anon_versioning"; then
15960               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15961                 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15962                 echo "local: *; };" >> $output_objdir/$libname.ver~
15963                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15964             fi
15965             ;;
15966           *)
15967             case `$CC -V 2>&1 | $SED 5q` in
15968             *Sun\ C*)
15969               # Sun C++ 5.9
15970               no_undefined_flag_CXX=' -zdefs'
15971               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15972               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'
15973               hardcode_libdir_flag_spec_CXX='-R$libdir'
15974               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'
15975               compiler_needs_object_CXX=yes
15976
15977               # Not sure whether something based on
15978               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15979               # would be better.
15980               output_verbose_link_cmd='func_echo_all'
15981
15982               # Archives containing C++ object files must be created using
15983               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15984               # necessary to make sure instantiated templates are included
15985               # in the archive.
15986               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15987               ;;
15988             esac
15989             ;;
15990         esac
15991         ;;
15992
15993       lynxos*)
15994         # FIXME: insert proper C++ library support
15995         ld_shlibs_CXX=no
15996         ;;
15997
15998       m88k*)
15999         # FIXME: insert proper C++ library support
16000         ld_shlibs_CXX=no
16001         ;;
16002
16003       mvs*)
16004         case $cc_basename in
16005           cxx*)
16006             # FIXME: insert proper C++ library support
16007             ld_shlibs_CXX=no
16008             ;;
16009           *)
16010             # FIXME: insert proper C++ library support
16011             ld_shlibs_CXX=no
16012             ;;
16013         esac
16014         ;;
16015
16016       netbsd*)
16017         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16018           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16019           wlarc=
16020           hardcode_libdir_flag_spec_CXX='-R$libdir'
16021           hardcode_direct_CXX=yes
16022           hardcode_shlibpath_var_CXX=no
16023         fi
16024         # Workaround some broken pre-1.5 toolchains
16025         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16026         ;;
16027
16028       *nto* | *qnx*)
16029         ld_shlibs_CXX=yes
16030         ;;
16031
16032       openbsd* | bitrig*)
16033         if test -f /usr/libexec/ld.so; then
16034           hardcode_direct_CXX=yes
16035           hardcode_shlibpath_var_CXX=no
16036           hardcode_direct_absolute_CXX=yes
16037           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16038           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16039           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16040             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16041             export_dynamic_flag_spec_CXX='$wl-E'
16042             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16043           fi
16044           output_verbose_link_cmd=func_echo_all
16045         else
16046           ld_shlibs_CXX=no
16047         fi
16048         ;;
16049
16050       osf3* | osf4* | osf5*)
16051         case $cc_basename in
16052           KCC*)
16053             # Kuck and Associates, Inc. (KAI) C++ Compiler
16054
16055             # KCC will only create a shared library if the output file
16056             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16057             # to its proper name (with version) after linking.
16058             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'
16059
16060             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16061             hardcode_libdir_separator_CXX=:
16062
16063             # Archives containing C++ object files must be created using
16064             # the KAI C++ compiler.
16065             case $host in
16066               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16067               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16068             esac
16069             ;;
16070           RCC*)
16071             # Rational C++ 2.4.1
16072             # FIXME: insert proper C++ library support
16073             ld_shlibs_CXX=no
16074             ;;
16075           cxx*)
16076             case $host in
16077               osf3*)
16078                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16079                 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'
16080                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16081                 ;;
16082               *)
16083                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16084                 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'
16085                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16086                   echo "-hidden">> $lib.exp~
16087                   $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~
16088                   $RM $lib.exp'
16089                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16090                 ;;
16091             esac
16092
16093             hardcode_libdir_separator_CXX=:
16094
16095             # Commands to make compiler produce verbose output that lists
16096             # what "hidden" libraries, object files and flags are used when
16097             # linking a shared library.
16098             #
16099             # There doesn't appear to be a way to prevent this compiler from
16100             # explicitly linking system object files so we need to strip them
16101             # from the output so that they don't get included in the library
16102             # dependencies.
16103             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"'
16104             ;;
16105           *)
16106             if test yes,no = "$GXX,$with_gnu_ld"; then
16107               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16108               case $host in
16109                 osf3*)
16110                   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'
16111                   ;;
16112                 *)
16113                   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'
16114                   ;;
16115               esac
16116
16117               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16118               hardcode_libdir_separator_CXX=:
16119
16120               # Commands to make compiler produce verbose output that lists
16121               # what "hidden" libraries, object files and flags are used when
16122               # linking a shared library.
16123               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16124
16125             else
16126               # FIXME: insert proper C++ library support
16127               ld_shlibs_CXX=no
16128             fi
16129             ;;
16130         esac
16131         ;;
16132
16133       psos*)
16134         # FIXME: insert proper C++ library support
16135         ld_shlibs_CXX=no
16136         ;;
16137
16138       sunos4*)
16139         case $cc_basename in
16140           CC*)
16141             # Sun C++ 4.x
16142             # FIXME: insert proper C++ library support
16143             ld_shlibs_CXX=no
16144             ;;
16145           lcc*)
16146             # Lucid
16147             # FIXME: insert proper C++ library support
16148             ld_shlibs_CXX=no
16149             ;;
16150           *)
16151             # FIXME: insert proper C++ library support
16152             ld_shlibs_CXX=no
16153             ;;
16154         esac
16155         ;;
16156
16157       solaris*)
16158         case $cc_basename in
16159           CC* | sunCC*)
16160             # Sun C++ 4.2, 5.x and Centerline C++
16161             archive_cmds_need_lc_CXX=yes
16162             no_undefined_flag_CXX=' -zdefs'
16163             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16164             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16165               $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'
16166
16167             hardcode_libdir_flag_spec_CXX='-R$libdir'
16168             hardcode_shlibpath_var_CXX=no
16169             case $host_os in
16170               solaris2.[0-5] | solaris2.[0-5].*) ;;
16171               *)
16172                 # The compiler driver will combine and reorder linker options,
16173                 # but understands '-z linker_flag'.
16174                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16175                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16176                 ;;
16177             esac
16178             link_all_deplibs_CXX=yes
16179
16180             output_verbose_link_cmd='func_echo_all'
16181
16182             # Archives containing C++ object files must be created using
16183             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16184             # necessary to make sure instantiated templates are included
16185             # in the archive.
16186             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16187             ;;
16188           gcx*)
16189             # Green Hills C++ Compiler
16190             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16191
16192             # The C++ compiler must be used to create the archive.
16193             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16194             ;;
16195           *)
16196             # GNU C++ compiler with Solaris linker
16197             if test yes,no = "$GXX,$with_gnu_ld"; then
16198               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16199               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16200                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16201                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16202                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16203
16204                 # Commands to make compiler produce verbose output that lists
16205                 # what "hidden" libraries, object files and flags are used when
16206                 # linking a shared library.
16207                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16208               else
16209                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16210                 # platform.
16211                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16212                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16213                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16214
16215                 # Commands to make compiler produce verbose output that lists
16216                 # what "hidden" libraries, object files and flags are used when
16217                 # linking a shared library.
16218                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16219               fi
16220
16221               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16222               case $host_os in
16223                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16224                 *)
16225                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16226                   ;;
16227               esac
16228             fi
16229             ;;
16230         esac
16231         ;;
16232
16233     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16234       no_undefined_flag_CXX='$wl-z,text'
16235       archive_cmds_need_lc_CXX=no
16236       hardcode_shlibpath_var_CXX=no
16237       runpath_var='LD_RUN_PATH'
16238
16239       case $cc_basename in
16240         CC*)
16241           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16242           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16243           ;;
16244         *)
16245           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16246           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16247           ;;
16248       esac
16249       ;;
16250
16251       sysv5* | sco3.2v5* | sco5v6*)
16252         # Note: We CANNOT use -z defs as we might desire, because we do not
16253         # link with -lc, and that would cause any symbols used from libc to
16254         # always be unresolved, which means just about no library would
16255         # ever link correctly.  If we're not using GNU ld we use -z text
16256         # though, which does catch some bad symbols but isn't as heavy-handed
16257         # as -z defs.
16258         no_undefined_flag_CXX='$wl-z,text'
16259         allow_undefined_flag_CXX='$wl-z,nodefs'
16260         archive_cmds_need_lc_CXX=no
16261         hardcode_shlibpath_var_CXX=no
16262         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16263         hardcode_libdir_separator_CXX=':'
16264         link_all_deplibs_CXX=yes
16265         export_dynamic_flag_spec_CXX='$wl-Bexport'
16266         runpath_var='LD_RUN_PATH'
16267
16268         case $cc_basename in
16269           CC*)
16270             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16271             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16272             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16273               '"$old_archive_cmds_CXX"
16274             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16275               '"$reload_cmds_CXX"
16276             ;;
16277           *)
16278             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16279             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16280             ;;
16281         esac
16282       ;;
16283
16284       tandem*)
16285         case $cc_basename in
16286           NCC*)
16287             # NonStop-UX NCC 3.20
16288             # FIXME: insert proper C++ library support
16289             ld_shlibs_CXX=no
16290             ;;
16291           *)
16292             # FIXME: insert proper C++ library support
16293             ld_shlibs_CXX=no
16294             ;;
16295         esac
16296         ;;
16297
16298       vxworks*)
16299         # FIXME: insert proper C++ library support
16300         ld_shlibs_CXX=no
16301         ;;
16302
16303       *)
16304         # FIXME: insert proper C++ library support
16305         ld_shlibs_CXX=no
16306         ;;
16307     esac
16308
16309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16310 $as_echo "$ld_shlibs_CXX" >&6; }
16311     test no = "$ld_shlibs_CXX" && can_build_shared=no
16312
16313     GCC_CXX=$GXX
16314     LD_CXX=$LD
16315
16316     ## CAVEAT EMPTOR:
16317     ## There is no encapsulation within the following macros, do not change
16318     ## the running order or otherwise move them around unless you know exactly
16319     ## what you are doing...
16320     # Dependencies to place before and after the object being linked:
16321 predep_objects_CXX=
16322 postdep_objects_CXX=
16323 predeps_CXX=
16324 postdeps_CXX=
16325 compiler_lib_search_path_CXX=
16326
16327 cat > conftest.$ac_ext <<_LT_EOF
16328 class Foo
16329 {
16330 public:
16331   Foo (void) { a = 0; }
16332 private:
16333   int a;
16334 };
16335 _LT_EOF
16336
16337
16338 _lt_libdeps_save_CFLAGS=$CFLAGS
16339 case "$CC $CFLAGS " in #(
16340 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16341 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16342 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16343 esac
16344
16345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16346   (eval $ac_compile) 2>&5
16347   ac_status=$?
16348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16349   test $ac_status = 0; }; then
16350   # Parse the compiler output and extract the necessary
16351   # objects, libraries and library flags.
16352
16353   # Sentinel used to keep track of whether or not we are before
16354   # the conftest object file.
16355   pre_test_object_deps_done=no
16356
16357   for p in `eval "$output_verbose_link_cmd"`; do
16358     case $prev$p in
16359
16360     -L* | -R* | -l*)
16361        # Some compilers place space between "-{L,R}" and the path.
16362        # Remove the space.
16363        if test x-L = "$p" ||
16364           test x-R = "$p"; then
16365          prev=$p
16366          continue
16367        fi
16368
16369        # Expand the sysroot to ease extracting the directories later.
16370        if test -z "$prev"; then
16371          case $p in
16372          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16373          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16374          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16375          esac
16376        fi
16377        case $p in
16378        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16379        esac
16380        if test no = "$pre_test_object_deps_done"; then
16381          case $prev in
16382          -L | -R)
16383            # Internal compiler library paths should come after those
16384            # provided the user.  The postdeps already come after the
16385            # user supplied libs so there is no need to process them.
16386            if test -z "$compiler_lib_search_path_CXX"; then
16387              compiler_lib_search_path_CXX=$prev$p
16388            else
16389              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16390            fi
16391            ;;
16392          # The "-l" case would never come before the object being
16393          # linked, so don't bother handling this case.
16394          esac
16395        else
16396          if test -z "$postdeps_CXX"; then
16397            postdeps_CXX=$prev$p
16398          else
16399            postdeps_CXX="${postdeps_CXX} $prev$p"
16400          fi
16401        fi
16402        prev=
16403        ;;
16404
16405     *.lto.$objext) ;; # Ignore GCC LTO objects
16406     *.$objext)
16407        # This assumes that the test object file only shows up
16408        # once in the compiler output.
16409        if test "$p" = "conftest.$objext"; then
16410          pre_test_object_deps_done=yes
16411          continue
16412        fi
16413
16414        if test no = "$pre_test_object_deps_done"; then
16415          if test -z "$predep_objects_CXX"; then
16416            predep_objects_CXX=$p
16417          else
16418            predep_objects_CXX="$predep_objects_CXX $p"
16419          fi
16420        else
16421          if test -z "$postdep_objects_CXX"; then
16422            postdep_objects_CXX=$p
16423          else
16424            postdep_objects_CXX="$postdep_objects_CXX $p"
16425          fi
16426        fi
16427        ;;
16428
16429     *) ;; # Ignore the rest.
16430
16431     esac
16432   done
16433
16434   # Clean up.
16435   rm -f a.out a.exe
16436 else
16437   echo "libtool.m4: error: problem compiling CXX test program"
16438 fi
16439
16440 $RM -f confest.$objext
16441 CFLAGS=$_lt_libdeps_save_CFLAGS
16442
16443 # PORTME: override above test on systems where it is broken
16444 case $host_os in
16445 interix[3-9]*)
16446   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16447   # hack all around it, let's just trust "g++" to DTRT.
16448   predep_objects_CXX=
16449   postdep_objects_CXX=
16450   postdeps_CXX=
16451   ;;
16452 esac
16453
16454
16455 case " $postdeps_CXX " in
16456 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16457 esac
16458  compiler_lib_search_dirs_CXX=
16459 if test -n "${compiler_lib_search_path_CXX}"; then
16460  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16461 fi
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493     lt_prog_compiler_wl_CXX=
16494 lt_prog_compiler_pic_CXX=
16495 lt_prog_compiler_static_CXX=
16496
16497
16498   # C++ specific cases for pic, static, wl, etc.
16499   if test yes = "$GXX"; then
16500     lt_prog_compiler_wl_CXX='-Wl,'
16501     lt_prog_compiler_static_CXX='-static'
16502
16503     case $host_os in
16504     aix*)
16505       # All AIX code is PIC.
16506       if test ia64 = "$host_cpu"; then
16507         # AIX 5 now supports IA64 processor
16508         lt_prog_compiler_static_CXX='-Bstatic'
16509       fi
16510       lt_prog_compiler_pic_CXX='-fPIC'
16511       ;;
16512
16513     amigaos*)
16514       case $host_cpu in
16515       powerpc)
16516             # see comment about AmigaOS4 .so support
16517             lt_prog_compiler_pic_CXX='-fPIC'
16518         ;;
16519       m68k)
16520             # FIXME: we need at least 68020 code to build shared libraries, but
16521             # adding the '-m68020' flag to GCC prevents building anything better,
16522             # like '-m68040'.
16523             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16524         ;;
16525       esac
16526       ;;
16527
16528     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16529       # PIC is the default for these OSes.
16530       ;;
16531     mingw* | cygwin* | os2* | pw32* | cegcc*)
16532       # This hack is so that the source file can tell whether it is being
16533       # built for inclusion in a dll (and should export symbols for example).
16534       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16535       # (--disable-auto-import) libraries
16536       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16537       case $host_os in
16538       os2*)
16539         lt_prog_compiler_static_CXX='$wl-static'
16540         ;;
16541       esac
16542       ;;
16543     darwin* | rhapsody*)
16544       # PIC is the default on this platform
16545       # Common symbols not allowed in MH_DYLIB files
16546       lt_prog_compiler_pic_CXX='-fno-common'
16547       ;;
16548     *djgpp*)
16549       # DJGPP does not support shared libraries at all
16550       lt_prog_compiler_pic_CXX=
16551       ;;
16552     haiku*)
16553       # PIC is the default for Haiku.
16554       # The "-static" flag exists, but is broken.
16555       lt_prog_compiler_static_CXX=
16556       ;;
16557     interix[3-9]*)
16558       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16559       # Instead, we relocate shared libraries at runtime.
16560       ;;
16561     sysv4*MP*)
16562       if test -d /usr/nec; then
16563         lt_prog_compiler_pic_CXX=-Kconform_pic
16564       fi
16565       ;;
16566     hpux*)
16567       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16568       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16569       # sets the default TLS model and affects inlining.
16570       case $host_cpu in
16571       hppa*64*)
16572         ;;
16573       *)
16574         lt_prog_compiler_pic_CXX='-fPIC'
16575         ;;
16576       esac
16577       ;;
16578     *qnx* | *nto*)
16579       # QNX uses GNU C++, but need to define -shared option too, otherwise
16580       # it will coredump.
16581       lt_prog_compiler_pic_CXX='-fPIC -shared'
16582       ;;
16583     *)
16584       lt_prog_compiler_pic_CXX='-fPIC'
16585       ;;
16586     esac
16587   else
16588     case $host_os in
16589       aix[4-9]*)
16590         # All AIX code is PIC.
16591         if test ia64 = "$host_cpu"; then
16592           # AIX 5 now supports IA64 processor
16593           lt_prog_compiler_static_CXX='-Bstatic'
16594         else
16595           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16596         fi
16597         ;;
16598       chorus*)
16599         case $cc_basename in
16600         cxch68*)
16601           # Green Hills C++ Compiler
16602           # _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"
16603           ;;
16604         esac
16605         ;;
16606       mingw* | cygwin* | os2* | pw32* | cegcc*)
16607         # This hack is so that the source file can tell whether it is being
16608         # built for inclusion in a dll (and should export symbols for example).
16609         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16610         ;;
16611       dgux*)
16612         case $cc_basename in
16613           ec++*)
16614             lt_prog_compiler_pic_CXX='-KPIC'
16615             ;;
16616           ghcx*)
16617             # Green Hills C++ Compiler
16618             lt_prog_compiler_pic_CXX='-pic'
16619             ;;
16620           *)
16621             ;;
16622         esac
16623         ;;
16624       freebsd* | dragonfly* | midnightbsd*)
16625         # FreeBSD uses GNU C++
16626         ;;
16627       hpux9* | hpux10* | hpux11*)
16628         case $cc_basename in
16629           CC*)
16630             lt_prog_compiler_wl_CXX='-Wl,'
16631             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16632             if test ia64 != "$host_cpu"; then
16633               lt_prog_compiler_pic_CXX='+Z'
16634             fi
16635             ;;
16636           aCC*)
16637             lt_prog_compiler_wl_CXX='-Wl,'
16638             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16639             case $host_cpu in
16640             hppa*64*|ia64*)
16641               # +Z the default
16642               ;;
16643             *)
16644               lt_prog_compiler_pic_CXX='+Z'
16645               ;;
16646             esac
16647             ;;
16648           *)
16649             ;;
16650         esac
16651         ;;
16652       interix*)
16653         # This is c89, which is MS Visual C++ (no shared libs)
16654         # Anyone wants to do a port?
16655         ;;
16656       irix5* | irix6* | nonstopux*)
16657         case $cc_basename in
16658           CC*)
16659             lt_prog_compiler_wl_CXX='-Wl,'
16660             lt_prog_compiler_static_CXX='-non_shared'
16661             # CC pic flag -KPIC is the default.
16662             ;;
16663           *)
16664             ;;
16665         esac
16666         ;;
16667       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16668         case $cc_basename in
16669           KCC*)
16670             # KAI C++ Compiler
16671             lt_prog_compiler_wl_CXX='--backend -Wl,'
16672             lt_prog_compiler_pic_CXX='-fPIC'
16673             ;;
16674           ecpc* )
16675             # old Intel C++ for x86_64, which still supported -KPIC.
16676             lt_prog_compiler_wl_CXX='-Wl,'
16677             lt_prog_compiler_pic_CXX='-KPIC'
16678             lt_prog_compiler_static_CXX='-static'
16679             ;;
16680           icpc* )
16681             # Intel C++, used to be incompatible with GCC.
16682             # ICC 10 doesn't accept -KPIC any more.
16683             lt_prog_compiler_wl_CXX='-Wl,'
16684             lt_prog_compiler_pic_CXX='-fPIC'
16685             lt_prog_compiler_static_CXX='-static'
16686             ;;
16687           pgCC* | pgcpp*)
16688             # Portland Group C++ compiler
16689             lt_prog_compiler_wl_CXX='-Wl,'
16690             lt_prog_compiler_pic_CXX='-fpic'
16691             lt_prog_compiler_static_CXX='-Bstatic'
16692             ;;
16693           cxx*)
16694             # Compaq C++
16695             # Make sure the PIC flag is empty.  It appears that all Alpha
16696             # Linux and Compaq Tru64 Unix objects are PIC.
16697             lt_prog_compiler_pic_CXX=
16698             lt_prog_compiler_static_CXX='-non_shared'
16699             ;;
16700           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16701             # IBM XL 8.0, 9.0 on PPC and BlueGene
16702             lt_prog_compiler_wl_CXX='-Wl,'
16703             lt_prog_compiler_pic_CXX='-qpic'
16704             lt_prog_compiler_static_CXX='-qstaticlink'
16705             ;;
16706           *)
16707             case `$CC -V 2>&1 | $SED 5q` in
16708             *Sun\ C*)
16709               # Sun C++ 5.9
16710               lt_prog_compiler_pic_CXX='-KPIC'
16711               lt_prog_compiler_static_CXX='-Bstatic'
16712               lt_prog_compiler_wl_CXX='-Qoption ld '
16713               ;;
16714             esac
16715             ;;
16716         esac
16717         ;;
16718       lynxos*)
16719         ;;
16720       m88k*)
16721         ;;
16722       mvs*)
16723         case $cc_basename in
16724           cxx*)
16725             lt_prog_compiler_pic_CXX='-W c,exportall'
16726             ;;
16727           *)
16728             ;;
16729         esac
16730         ;;
16731       netbsd*)
16732         ;;
16733       *qnx* | *nto*)
16734         # QNX uses GNU C++, but need to define -shared option too, otherwise
16735         # it will coredump.
16736         lt_prog_compiler_pic_CXX='-fPIC -shared'
16737         ;;
16738       osf3* | osf4* | osf5*)
16739         case $cc_basename in
16740           KCC*)
16741             lt_prog_compiler_wl_CXX='--backend -Wl,'
16742             ;;
16743           RCC*)
16744             # Rational C++ 2.4.1
16745             lt_prog_compiler_pic_CXX='-pic'
16746             ;;
16747           cxx*)
16748             # Digital/Compaq C++
16749             lt_prog_compiler_wl_CXX='-Wl,'
16750             # Make sure the PIC flag is empty.  It appears that all Alpha
16751             # Linux and Compaq Tru64 Unix objects are PIC.
16752             lt_prog_compiler_pic_CXX=
16753             lt_prog_compiler_static_CXX='-non_shared'
16754             ;;
16755           *)
16756             ;;
16757         esac
16758         ;;
16759       psos*)
16760         ;;
16761       solaris*)
16762         case $cc_basename in
16763           CC* | sunCC*)
16764             # Sun C++ 4.2, 5.x and Centerline C++
16765             lt_prog_compiler_pic_CXX='-KPIC'
16766             lt_prog_compiler_static_CXX='-Bstatic'
16767             lt_prog_compiler_wl_CXX='-Qoption ld '
16768             ;;
16769           gcx*)
16770             # Green Hills C++ Compiler
16771             lt_prog_compiler_pic_CXX='-PIC'
16772             ;;
16773           *)
16774             ;;
16775         esac
16776         ;;
16777       sunos4*)
16778         case $cc_basename in
16779           CC*)
16780             # Sun C++ 4.x
16781             lt_prog_compiler_pic_CXX='-pic'
16782             lt_prog_compiler_static_CXX='-Bstatic'
16783             ;;
16784           lcc*)
16785             # Lucid
16786             lt_prog_compiler_pic_CXX='-pic'
16787             ;;
16788           *)
16789             ;;
16790         esac
16791         ;;
16792       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16793         case $cc_basename in
16794           CC*)
16795             lt_prog_compiler_wl_CXX='-Wl,'
16796             lt_prog_compiler_pic_CXX='-KPIC'
16797             lt_prog_compiler_static_CXX='-Bstatic'
16798             ;;
16799         esac
16800         ;;
16801       tandem*)
16802         case $cc_basename in
16803           NCC*)
16804             # NonStop-UX NCC 3.20
16805             lt_prog_compiler_pic_CXX='-KPIC'
16806             ;;
16807           *)
16808             ;;
16809         esac
16810         ;;
16811       vxworks*)
16812         ;;
16813       *)
16814         lt_prog_compiler_can_build_shared_CXX=no
16815         ;;
16816     esac
16817   fi
16818
16819 case $host_os in
16820   # For platforms that do not support PIC, -DPIC is meaningless:
16821   *djgpp*)
16822     lt_prog_compiler_pic_CXX=
16823     ;;
16824   *)
16825     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16826     ;;
16827 esac
16828
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16830 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16831 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16832   $as_echo_n "(cached) " >&6
16833 else
16834   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16835 fi
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16837 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16838 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16839
16840 #
16841 # Check to make sure the PIC flag actually works.
16842 #
16843 if test -n "$lt_prog_compiler_pic_CXX"; then
16844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16845 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16846 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16847   $as_echo_n "(cached) " >&6
16848 else
16849   lt_cv_prog_compiler_pic_works_CXX=no
16850    ac_outfile=conftest.$ac_objext
16851    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16852    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16853    # Insert the option either (1) after the last *FLAGS variable, or
16854    # (2) before a word containing "conftest.", or (3) at the end.
16855    # Note that $ac_compile itself does not contain backslashes and begins
16856    # with a dollar sign (not a hyphen), so the echo should work correctly.
16857    # The option is referenced via a variable to avoid confusing sed.
16858    lt_compile=`echo "$ac_compile" | $SED \
16859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16861    -e 's:$: $lt_compiler_flag:'`
16862    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16863    (eval "$lt_compile" 2>conftest.err)
16864    ac_status=$?
16865    cat conftest.err >&5
16866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867    if (exit $ac_status) && test -s "$ac_outfile"; then
16868      # The compiler can only warn and ignore the option if not recognized
16869      # So say no if there are warnings other than the usual output.
16870      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16871      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16872      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16873        lt_cv_prog_compiler_pic_works_CXX=yes
16874      fi
16875    fi
16876    $RM conftest*
16877
16878 fi
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16880 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16881
16882 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16883     case $lt_prog_compiler_pic_CXX in
16884      "" | " "*) ;;
16885      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16886      esac
16887 else
16888     lt_prog_compiler_pic_CXX=
16889      lt_prog_compiler_can_build_shared_CXX=no
16890 fi
16891
16892 fi
16893
16894
16895
16896
16897
16898 #
16899 # Check to make sure the static flag actually works.
16900 #
16901 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16903 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16904 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16905   $as_echo_n "(cached) " >&6
16906 else
16907   lt_cv_prog_compiler_static_works_CXX=no
16908    save_LDFLAGS=$LDFLAGS
16909    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16910    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16911    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16912      # The linker can only warn and ignore the option if not recognized
16913      # So say no if there are warnings
16914      if test -s conftest.err; then
16915        # Append any errors to the config.log.
16916        cat conftest.err 1>&5
16917        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16918        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16919        if diff conftest.exp conftest.er2 >/dev/null; then
16920          lt_cv_prog_compiler_static_works_CXX=yes
16921        fi
16922      else
16923        lt_cv_prog_compiler_static_works_CXX=yes
16924      fi
16925    fi
16926    $RM -r conftest*
16927    LDFLAGS=$save_LDFLAGS
16928
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16931 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16932
16933 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16934     :
16935 else
16936     lt_prog_compiler_static_CXX=
16937 fi
16938
16939
16940
16941
16942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16944 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16945   $as_echo_n "(cached) " >&6
16946 else
16947   lt_cv_prog_compiler_c_o_CXX=no
16948    $RM -r conftest 2>/dev/null
16949    mkdir conftest
16950    cd conftest
16951    mkdir out
16952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16953
16954    lt_compiler_flag="-o out/conftest2.$ac_objext"
16955    # Insert the option either (1) after the last *FLAGS variable, or
16956    # (2) before a word containing "conftest.", or (3) at the end.
16957    # Note that $ac_compile itself does not contain backslashes and begins
16958    # with a dollar sign (not a hyphen), so the echo should work correctly.
16959    lt_compile=`echo "$ac_compile" | $SED \
16960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16962    -e 's:$: $lt_compiler_flag:'`
16963    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16964    (eval "$lt_compile" 2>out/conftest.err)
16965    ac_status=$?
16966    cat out/conftest.err >&5
16967    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16969    then
16970      # The compiler can only warn and ignore the option if not recognized
16971      # So say no if there are warnings
16972      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16973      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16974      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16975        lt_cv_prog_compiler_c_o_CXX=yes
16976      fi
16977    fi
16978    chmod u+w . 2>&5
16979    $RM conftest*
16980    # SGI C++ compiler will create directory out/ii_files/ for
16981    # template instantiation
16982    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16983    $RM out/* && rmdir out
16984    cd ..
16985    $RM -r conftest
16986    $RM conftest*
16987
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16990 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16991
16992
16993
16994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16996 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16997   $as_echo_n "(cached) " >&6
16998 else
16999   lt_cv_prog_compiler_c_o_CXX=no
17000    $RM -r conftest 2>/dev/null
17001    mkdir conftest
17002    cd conftest
17003    mkdir out
17004    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17005
17006    lt_compiler_flag="-o out/conftest2.$ac_objext"
17007    # Insert the option either (1) after the last *FLAGS variable, or
17008    # (2) before a word containing "conftest.", or (3) at the end.
17009    # Note that $ac_compile itself does not contain backslashes and begins
17010    # with a dollar sign (not a hyphen), so the echo should work correctly.
17011    lt_compile=`echo "$ac_compile" | $SED \
17012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17014    -e 's:$: $lt_compiler_flag:'`
17015    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17016    (eval "$lt_compile" 2>out/conftest.err)
17017    ac_status=$?
17018    cat out/conftest.err >&5
17019    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17021    then
17022      # The compiler can only warn and ignore the option if not recognized
17023      # So say no if there are warnings
17024      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17025      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17026      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17027        lt_cv_prog_compiler_c_o_CXX=yes
17028      fi
17029    fi
17030    chmod u+w . 2>&5
17031    $RM conftest*
17032    # SGI C++ compiler will create directory out/ii_files/ for
17033    # template instantiation
17034    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17035    $RM out/* && rmdir out
17036    cd ..
17037    $RM -r conftest
17038    $RM conftest*
17039
17040 fi
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17042 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17043
17044
17045
17046
17047 hard_links=nottested
17048 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17049   # do not overwrite the value of need_locks provided by the user
17050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17051 $as_echo_n "checking if we can lock with hard links... " >&6; }
17052   hard_links=yes
17053   $RM conftest*
17054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17055   touch conftest.a
17056   ln conftest.a conftest.b 2>&5 || hard_links=no
17057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17059 $as_echo "$hard_links" >&6; }
17060   if test no = "$hard_links"; then
17061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17062 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17063     need_locks=warn
17064   fi
17065 else
17066   need_locks=no
17067 fi
17068
17069
17070
17071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17072 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17073
17074   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17075   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17076   case $host_os in
17077   aix[4-9]*)
17078     # If we're using GNU nm, then we don't want the "-C" option.
17079     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17080     # Without the "-l" option, or with the "-B" option, AIX nm treats
17081     # weak defined symbols like other global defined symbols, whereas
17082     # GNU nm marks them as "W".
17083     # While the 'weak' keyword is ignored in the Export File, we need
17084     # it in the Import File for the 'aix-soname' feature, so we have
17085     # to replace the "-B" option with "-P" for AIX nm.
17086     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17087       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17088     else
17089       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17090     fi
17091     ;;
17092   pw32*)
17093     export_symbols_cmds_CXX=$ltdll_cmds
17094     ;;
17095   cygwin* | mingw* | cegcc*)
17096     case $cc_basename in
17097     cl* | icl*)
17098       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17099       ;;
17100     *)
17101       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'
17102       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17103       ;;
17104     esac
17105     ;;
17106   *)
17107     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17108     ;;
17109   esac
17110
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17112 $as_echo "$ld_shlibs_CXX" >&6; }
17113 test no = "$ld_shlibs_CXX" && can_build_shared=no
17114
17115 with_gnu_ld_CXX=$with_gnu_ld
17116
17117
17118
17119
17120
17121
17122 #
17123 # Do we need to explicitly link libc?
17124 #
17125 case "x$archive_cmds_need_lc_CXX" in
17126 x|xyes)
17127   # Assume -lc should be added
17128   archive_cmds_need_lc_CXX=yes
17129
17130   if test yes,yes = "$GCC,$enable_shared"; then
17131     case $archive_cmds_CXX in
17132     *'~'*)
17133       # FIXME: we may have to deal with multi-command sequences.
17134       ;;
17135     '$CC '*)
17136       # Test whether the compiler implicitly links with -lc since on some
17137       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17138       # to ld, don't add -lc before -lgcc.
17139       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17140 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17141 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17142   $as_echo_n "(cached) " >&6
17143 else
17144   $RM conftest*
17145         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17146
17147         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17148   (eval $ac_compile) 2>&5
17149   ac_status=$?
17150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17151   test $ac_status = 0; } 2>conftest.err; then
17152           soname=conftest
17153           lib=conftest
17154           libobjs=conftest.$ac_objext
17155           deplibs=
17156           wl=$lt_prog_compiler_wl_CXX
17157           pic_flag=$lt_prog_compiler_pic_CXX
17158           compiler_flags=-v
17159           linker_flags=-v
17160           verstring=
17161           output_objdir=.
17162           libname=conftest
17163           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17164           allow_undefined_flag_CXX=
17165           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17166   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17167   ac_status=$?
17168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169   test $ac_status = 0; }
17170           then
17171             lt_cv_archive_cmds_need_lc_CXX=no
17172           else
17173             lt_cv_archive_cmds_need_lc_CXX=yes
17174           fi
17175           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17176         else
17177           cat conftest.err 1>&5
17178         fi
17179         $RM conftest*
17180
17181 fi
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17183 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17184       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17185       ;;
17186     esac
17187   fi
17188   ;;
17189 esac
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17253 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17254
17255 library_names_spec=
17256 libname_spec='lib$name'
17257 soname_spec=
17258 shrext_cmds=.so
17259 postinstall_cmds=
17260 postuninstall_cmds=
17261 finish_cmds=
17262 finish_eval=
17263 shlibpath_var=
17264 shlibpath_overrides_runpath=unknown
17265 version_type=none
17266 dynamic_linker="$host_os ld.so"
17267 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17268 need_lib_prefix=unknown
17269 hardcode_into_libs=no
17270
17271 # when you set need_version to no, make sure it does not cause -set_version
17272 # flags to be left without arguments
17273 need_version=unknown
17274
17275
17276
17277 case $host_os in
17278 aix3*)
17279   version_type=linux # correct to gnu/linux during the next big refactor
17280   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17281   shlibpath_var=LIBPATH
17282
17283   # AIX 3 has no versioning support, so we append a major version to the name.
17284   soname_spec='$libname$release$shared_ext$major'
17285   ;;
17286
17287 aix[4-9]*)
17288   version_type=linux # correct to gnu/linux during the next big refactor
17289   need_lib_prefix=no
17290   need_version=no
17291   hardcode_into_libs=yes
17292   if test ia64 = "$host_cpu"; then
17293     # AIX 5 supports IA64
17294     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17295     shlibpath_var=LD_LIBRARY_PATH
17296   else
17297     # With GCC up to 2.95.x, collect2 would create an import file
17298     # for dependence libraries.  The import file would start with
17299     # the line '#! .'.  This would cause the generated library to
17300     # depend on '.', always an invalid library.  This was fixed in
17301     # development snapshots of GCC prior to 3.0.
17302     case $host_os in
17303       aix4 | aix4.[01] | aix4.[01].*)
17304       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17305            echo ' yes '
17306            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17307         :
17308       else
17309         can_build_shared=no
17310       fi
17311       ;;
17312     esac
17313     # Using Import Files as archive members, it is possible to support
17314     # filename-based versioning of shared library archives on AIX. While
17315     # this would work for both with and without runtime linking, it will
17316     # prevent static linking of such archives. So we do filename-based
17317     # shared library versioning with .so extension only, which is used
17318     # when both runtime linking and shared linking is enabled.
17319     # Unfortunately, runtime linking may impact performance, so we do
17320     # not want this to be the default eventually. Also, we use the
17321     # versioned .so libs for executables only if there is the -brtl
17322     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17323     # To allow for filename-based versioning support, we need to create
17324     # libNAME.so.V as an archive file, containing:
17325     # *) an Import File, referring to the versioned filename of the
17326     #    archive as well as the shared archive member, telling the
17327     #    bitwidth (32 or 64) of that shared object, and providing the
17328     #    list of exported symbols of that shared object, eventually
17329     #    decorated with the 'weak' keyword
17330     # *) the shared object with the F_LOADONLY flag set, to really avoid
17331     #    it being seen by the linker.
17332     # At run time we better use the real file rather than another symlink,
17333     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17334
17335     case $with_aix_soname,$aix_use_runtimelinking in
17336     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17337     # soname into executable. Probably we can add versioning support to
17338     # collect2, so additional links can be useful in future.
17339     aix,yes) # traditional libtool
17340       dynamic_linker='AIX unversionable lib.so'
17341       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17342       # instead of lib<name>.a to let people know that these are not
17343       # typical AIX shared libraries.
17344       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17345       ;;
17346     aix,no) # traditional AIX only
17347       dynamic_linker='AIX lib.a(lib.so.V)'
17348       # We preserve .a as extension for shared libraries through AIX4.2
17349       # and later when we are not doing run time linking.
17350       library_names_spec='$libname$release.a $libname.a'
17351       soname_spec='$libname$release$shared_ext$major'
17352       ;;
17353     svr4,*) # full svr4 only
17354       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17355       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17356       # We do not specify a path in Import Files, so LIBPATH fires.
17357       shlibpath_overrides_runpath=yes
17358       ;;
17359     *,yes) # both, prefer svr4
17360       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17361       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17362       # unpreferred sharedlib libNAME.a needs extra handling
17363       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17364       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17365       # We do not specify a path in Import Files, so LIBPATH fires.
17366       shlibpath_overrides_runpath=yes
17367       ;;
17368     *,no) # both, prefer aix
17369       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17370       library_names_spec='$libname$release.a $libname.a'
17371       soname_spec='$libname$release$shared_ext$major'
17372       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17373       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17374       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17375       ;;
17376     esac
17377     shlibpath_var=LIBPATH
17378   fi
17379   ;;
17380
17381 amigaos*)
17382   case $host_cpu in
17383   powerpc)
17384     # Since July 2007 AmigaOS4 officially supports .so libraries.
17385     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17386     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17387     ;;
17388   m68k)
17389     library_names_spec='$libname.ixlibrary $libname.a'
17390     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17391     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17392     ;;
17393   esac
17394   ;;
17395
17396 beos*)
17397   library_names_spec='$libname$shared_ext'
17398   dynamic_linker="$host_os ld.so"
17399   shlibpath_var=LIBRARY_PATH
17400   ;;
17401
17402 bsdi[45]*)
17403   version_type=linux # correct to gnu/linux during the next big refactor
17404   need_version=no
17405   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17406   soname_spec='$libname$release$shared_ext$major'
17407   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17408   shlibpath_var=LD_LIBRARY_PATH
17409   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17410   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17411   # the default ld.so.conf also contains /usr/contrib/lib and
17412   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17413   # libtool to hard-code these into programs
17414   ;;
17415
17416 cygwin* | mingw* | pw32* | cegcc*)
17417   version_type=windows
17418   shrext_cmds=.dll
17419   need_version=no
17420   need_lib_prefix=no
17421
17422   case $GCC,$cc_basename in
17423   yes,*)
17424     # gcc
17425     library_names_spec='$libname.dll.a'
17426     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17427     postinstall_cmds='base_file=`basename \$file`~
17428       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17429       dldir=$destdir/`dirname \$dlpath`~
17430       test -d \$dldir || mkdir -p \$dldir~
17431       $install_prog $dir/$dlname \$dldir/$dlname~
17432       chmod a+x \$dldir/$dlname~
17433       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17434         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17435       fi'
17436     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17437       dlpath=$dir/\$dldll~
17438        $RM \$dlpath'
17439     shlibpath_overrides_runpath=yes
17440
17441     case $host_os in
17442     cygwin*)
17443       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17444       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17445
17446       ;;
17447     mingw* | cegcc*)
17448       # MinGW DLLs use traditional 'lib' prefix
17449       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17450       ;;
17451     pw32*)
17452       # pw32 DLLs use 'pw' prefix rather than 'lib'
17453       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17454       ;;
17455     esac
17456     dynamic_linker='Win32 ld.exe'
17457     ;;
17458
17459   *,cl* | *,icl*)
17460     # Native MSVC or ICC
17461     libname_spec='$name'
17462     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17463     library_names_spec='$libname.dll.lib'
17464
17465     case $build_os in
17466     mingw*)
17467       sys_lib_search_path_spec=
17468       lt_save_ifs=$IFS
17469       IFS=';'
17470       for lt_path in $LIB
17471       do
17472         IFS=$lt_save_ifs
17473         # Let DOS variable expansion print the short 8.3 style file name.
17474         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17475         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17476       done
17477       IFS=$lt_save_ifs
17478       # Convert to MSYS style.
17479       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17480       ;;
17481     cygwin*)
17482       # Convert to unix form, then to dos form, then back to unix form
17483       # but this time dos style (no spaces!) so that the unix form looks
17484       # like /cygdrive/c/PROGRA~1:/cygdr...
17485       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17486       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17487       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17488       ;;
17489     *)
17490       sys_lib_search_path_spec=$LIB
17491       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17492         # It is most probably a Windows format PATH.
17493         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17494       else
17495         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17496       fi
17497       # FIXME: find the short name or the path components, as spaces are
17498       # common. (e.g. "Program Files" -> "PROGRA~1")
17499       ;;
17500     esac
17501
17502     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17503     postinstall_cmds='base_file=`basename \$file`~
17504       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17505       dldir=$destdir/`dirname \$dlpath`~
17506       test -d \$dldir || mkdir -p \$dldir~
17507       $install_prog $dir/$dlname \$dldir/$dlname'
17508     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17509       dlpath=$dir/\$dldll~
17510        $RM \$dlpath'
17511     shlibpath_overrides_runpath=yes
17512     dynamic_linker='Win32 link.exe'
17513     ;;
17514
17515   *)
17516     # Assume MSVC and ICC wrapper
17517     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17518     dynamic_linker='Win32 ld.exe'
17519     ;;
17520   esac
17521   # FIXME: first we should search . and the directory the executable is in
17522   shlibpath_var=PATH
17523   ;;
17524
17525 darwin* | rhapsody*)
17526   dynamic_linker="$host_os dyld"
17527   version_type=darwin
17528   need_lib_prefix=no
17529   need_version=no
17530   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17531   soname_spec='$libname$release$major$shared_ext'
17532   shlibpath_overrides_runpath=yes
17533   shlibpath_var=DYLD_LIBRARY_PATH
17534   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17535
17536   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17537   ;;
17538
17539 dgux*)
17540   version_type=linux # correct to gnu/linux during the next big refactor
17541   need_lib_prefix=no
17542   need_version=no
17543   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17544   soname_spec='$libname$release$shared_ext$major'
17545   shlibpath_var=LD_LIBRARY_PATH
17546   ;;
17547
17548 freebsd* | dragonfly* | midnightbsd*)
17549   # DragonFly does not have aout.  When/if they implement a new
17550   # versioning mechanism, adjust this.
17551   if test -x /usr/bin/objformat; then
17552     objformat=`/usr/bin/objformat`
17553   else
17554     case $host_os in
17555     freebsd[23].*) objformat=aout ;;
17556     *) objformat=elf ;;
17557     esac
17558   fi
17559   version_type=freebsd-$objformat
17560   case $version_type in
17561     freebsd-elf*)
17562       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17563       soname_spec='$libname$release$shared_ext$major'
17564       need_version=no
17565       need_lib_prefix=no
17566       ;;
17567     freebsd-*)
17568       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17569       need_version=yes
17570       ;;
17571   esac
17572   shlibpath_var=LD_LIBRARY_PATH
17573   case $host_os in
17574   freebsd2.*)
17575     shlibpath_overrides_runpath=yes
17576     ;;
17577   freebsd3.[01]* | freebsdelf3.[01]*)
17578     shlibpath_overrides_runpath=yes
17579     hardcode_into_libs=yes
17580     ;;
17581   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17582   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17583     shlibpath_overrides_runpath=no
17584     hardcode_into_libs=yes
17585     ;;
17586   *) # from 4.6 on, and DragonFly
17587     shlibpath_overrides_runpath=yes
17588     hardcode_into_libs=yes
17589     ;;
17590   esac
17591   ;;
17592
17593 haiku*)
17594   version_type=linux # correct to gnu/linux during the next big refactor
17595   need_lib_prefix=no
17596   need_version=no
17597   dynamic_linker="$host_os runtime_loader"
17598   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17599   soname_spec='$libname$release$shared_ext$major'
17600   shlibpath_var=LIBRARY_PATH
17601   shlibpath_overrides_runpath=no
17602   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17603   hardcode_into_libs=yes
17604   ;;
17605
17606 hpux9* | hpux10* | hpux11*)
17607   # Give a soname corresponding to the major version so that dld.sl refuses to
17608   # link against other versions.
17609   version_type=sunos
17610   need_lib_prefix=no
17611   need_version=no
17612   case $host_cpu in
17613   ia64*)
17614     shrext_cmds='.so'
17615     hardcode_into_libs=yes
17616     dynamic_linker="$host_os dld.so"
17617     shlibpath_var=LD_LIBRARY_PATH
17618     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17619     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17620     soname_spec='$libname$release$shared_ext$major'
17621     if test 32 = "$HPUX_IA64_MODE"; then
17622       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17623       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17624     else
17625       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17626       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17627     fi
17628     ;;
17629   hppa*64*)
17630     shrext_cmds='.sl'
17631     hardcode_into_libs=yes
17632     dynamic_linker="$host_os dld.sl"
17633     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17634     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17635     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17636     soname_spec='$libname$release$shared_ext$major'
17637     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17638     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17639     ;;
17640   *)
17641     shrext_cmds='.sl'
17642     dynamic_linker="$host_os dld.sl"
17643     shlibpath_var=SHLIB_PATH
17644     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17645     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17646     soname_spec='$libname$release$shared_ext$major'
17647     ;;
17648   esac
17649   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17650   postinstall_cmds='chmod 555 $lib'
17651   # or fails outright, so override atomically:
17652   install_override_mode=555
17653   ;;
17654
17655 interix[3-9]*)
17656   version_type=linux # correct to gnu/linux during the next big refactor
17657   need_lib_prefix=no
17658   need_version=no
17659   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17660   soname_spec='$libname$release$shared_ext$major'
17661   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17662   shlibpath_var=LD_LIBRARY_PATH
17663   shlibpath_overrides_runpath=no
17664   hardcode_into_libs=yes
17665   ;;
17666
17667 irix5* | irix6* | nonstopux*)
17668   case $host_os in
17669     nonstopux*) version_type=nonstopux ;;
17670     *)
17671         if test yes = "$lt_cv_prog_gnu_ld"; then
17672                 version_type=linux # correct to gnu/linux during the next big refactor
17673         else
17674                 version_type=irix
17675         fi ;;
17676   esac
17677   need_lib_prefix=no
17678   need_version=no
17679   soname_spec='$libname$release$shared_ext$major'
17680   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17681   case $host_os in
17682   irix5* | nonstopux*)
17683     libsuff= shlibsuff=
17684     ;;
17685   *)
17686     case $LD in # libtool.m4 will add one of these switches to LD
17687     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17688       libsuff= shlibsuff= libmagic=32-bit;;
17689     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17690       libsuff=32 shlibsuff=N32 libmagic=N32;;
17691     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17692       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17693     *) libsuff= shlibsuff= libmagic=never-match;;
17694     esac
17695     ;;
17696   esac
17697   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17698   shlibpath_overrides_runpath=no
17699   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17700   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17701   hardcode_into_libs=yes
17702   ;;
17703
17704 # No shared lib support for Linux oldld, aout, or coff.
17705 linux*oldld* | linux*aout* | linux*coff*)
17706   dynamic_linker=no
17707   ;;
17708
17709 linux*android*)
17710   version_type=none # Android doesn't support versioned libraries.
17711   need_lib_prefix=no
17712   need_version=no
17713   library_names_spec='$libname$release$shared_ext'
17714   soname_spec='$libname$release$shared_ext'
17715   finish_cmds=
17716   shlibpath_var=LD_LIBRARY_PATH
17717   shlibpath_overrides_runpath=yes
17718
17719   # This implies no fast_install, which is unacceptable.
17720   # Some rework will be needed to allow for fast_install
17721   # before this can be enabled.
17722   hardcode_into_libs=yes
17723
17724   dynamic_linker='Android linker'
17725   # Don't embed -rpath directories since the linker doesn't support them.
17726   hardcode_libdir_flag_spec_CXX='-L$libdir'
17727   ;;
17728
17729 # This must be glibc/ELF.
17730 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17731   version_type=linux # correct to gnu/linux during the next big refactor
17732   need_lib_prefix=no
17733   need_version=no
17734   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17735   soname_spec='$libname$release$shared_ext$major'
17736   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17737   shlibpath_var=LD_LIBRARY_PATH
17738   shlibpath_overrides_runpath=no
17739
17740   # Some binutils ld are patched to set DT_RUNPATH
17741   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17742   $as_echo_n "(cached) " >&6
17743 else
17744   lt_cv_shlibpath_overrides_runpath=no
17745     save_LDFLAGS=$LDFLAGS
17746     save_libdir=$libdir
17747     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17748          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h.  */
17751
17752 int
17753 main ()
17754 {
17755
17756   ;
17757   return 0;
17758 }
17759 _ACEOF
17760 if ac_fn_cxx_try_link "$LINENO"; then :
17761   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17762   lt_cv_shlibpath_overrides_runpath=yes
17763 fi
17764 fi
17765 rm -f core conftest.err conftest.$ac_objext \
17766     conftest$ac_exeext conftest.$ac_ext
17767     LDFLAGS=$save_LDFLAGS
17768     libdir=$save_libdir
17769
17770 fi
17771
17772   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17773
17774   # This implies no fast_install, which is unacceptable.
17775   # Some rework will be needed to allow for fast_install
17776   # before this can be enabled.
17777   hardcode_into_libs=yes
17778
17779   # Ideally, we could use ldconfig to report *all* directores which are
17780   # searched for libraries, however this is still not possible.  Aside from not
17781   # being certain /sbin/ldconfig is available, command
17782   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17783   # even though it is searched at run-time.  Try to do the best guess by
17784   # appending ld.so.conf contents (and includes) to the search path.
17785   if test -f /etc/ld.so.conf; then
17786     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' ' '`
17787     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17788   fi
17789
17790   # We used to test for /lib/ld.so.1 and disable shared libraries on
17791   # powerpc, because MkLinux only supported shared libraries with the
17792   # GNU dynamic linker.  Since this was broken with cross compilers,
17793   # most powerpc-linux boxes support dynamic linking these days and
17794   # people can always --disable-shared, the test was removed, and we
17795   # assume the GNU/Linux dynamic linker is in use.
17796   dynamic_linker='GNU/Linux ld.so'
17797   ;;
17798
17799 netbsd*)
17800   version_type=sunos
17801   need_lib_prefix=no
17802   need_version=no
17803   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17804     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17805     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17806     dynamic_linker='NetBSD (a.out) ld.so'
17807   else
17808     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17809     soname_spec='$libname$release$shared_ext$major'
17810     dynamic_linker='NetBSD ld.elf_so'
17811   fi
17812   shlibpath_var=LD_LIBRARY_PATH
17813   shlibpath_overrides_runpath=yes
17814   hardcode_into_libs=yes
17815   ;;
17816
17817 newsos6)
17818   version_type=linux # correct to gnu/linux during the next big refactor
17819   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17820   shlibpath_var=LD_LIBRARY_PATH
17821   shlibpath_overrides_runpath=yes
17822   ;;
17823
17824 *nto* | *qnx*)
17825   version_type=qnx
17826   need_lib_prefix=no
17827   need_version=no
17828   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17829   soname_spec='$libname$release$shared_ext$major'
17830   shlibpath_var=LD_LIBRARY_PATH
17831   shlibpath_overrides_runpath=no
17832   hardcode_into_libs=yes
17833   dynamic_linker='ldqnx.so'
17834   ;;
17835
17836 openbsd* | bitrig*)
17837   version_type=sunos
17838   sys_lib_dlsearch_path_spec=/usr/lib
17839   need_lib_prefix=no
17840   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17841     need_version=no
17842   else
17843     need_version=yes
17844   fi
17845   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17846   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17847   shlibpath_var=LD_LIBRARY_PATH
17848   shlibpath_overrides_runpath=yes
17849   ;;
17850
17851 os2*)
17852   libname_spec='$name'
17853   version_type=windows
17854   shrext_cmds=.dll
17855   need_version=no
17856   need_lib_prefix=no
17857   # OS/2 can only load a DLL with a base name of 8 characters or less.
17858   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17859     v=$($ECHO $release$versuffix | tr -d .-);
17860     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17861     $ECHO $n$v`$shared_ext'
17862   library_names_spec='${libname}_dll.$libext'
17863   dynamic_linker='OS/2 ld.exe'
17864   shlibpath_var=BEGINLIBPATH
17865   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17866   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17867   postinstall_cmds='base_file=`basename \$file`~
17868     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17869     dldir=$destdir/`dirname \$dlpath`~
17870     test -d \$dldir || mkdir -p \$dldir~
17871     $install_prog $dir/$dlname \$dldir/$dlname~
17872     chmod a+x \$dldir/$dlname~
17873     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17874       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17875     fi'
17876   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17877     dlpath=$dir/\$dldll~
17878     $RM \$dlpath'
17879   ;;
17880
17881 osf3* | osf4* | osf5*)
17882   version_type=osf
17883   need_lib_prefix=no
17884   need_version=no
17885   soname_spec='$libname$release$shared_ext$major'
17886   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17887   shlibpath_var=LD_LIBRARY_PATH
17888   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17889   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17890   ;;
17891
17892 rdos*)
17893   dynamic_linker=no
17894   ;;
17895
17896 solaris*)
17897   version_type=linux # correct to gnu/linux during the next big refactor
17898   need_lib_prefix=no
17899   need_version=no
17900   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17901   soname_spec='$libname$release$shared_ext$major'
17902   shlibpath_var=LD_LIBRARY_PATH
17903   shlibpath_overrides_runpath=yes
17904   hardcode_into_libs=yes
17905   # ldd complains unless libraries are executable
17906   postinstall_cmds='chmod +x $lib'
17907   ;;
17908
17909 sunos4*)
17910   version_type=sunos
17911   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17912   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17913   shlibpath_var=LD_LIBRARY_PATH
17914   shlibpath_overrides_runpath=yes
17915   if test yes = "$with_gnu_ld"; then
17916     need_lib_prefix=no
17917   fi
17918   need_version=yes
17919   ;;
17920
17921 sysv4 | sysv4.3*)
17922   version_type=linux # correct to gnu/linux during the next big refactor
17923   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17924   soname_spec='$libname$release$shared_ext$major'
17925   shlibpath_var=LD_LIBRARY_PATH
17926   case $host_vendor in
17927     sni)
17928       shlibpath_overrides_runpath=no
17929       need_lib_prefix=no
17930       runpath_var=LD_RUN_PATH
17931       ;;
17932     siemens)
17933       need_lib_prefix=no
17934       ;;
17935     motorola)
17936       need_lib_prefix=no
17937       need_version=no
17938       shlibpath_overrides_runpath=no
17939       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17940       ;;
17941   esac
17942   ;;
17943
17944 sysv4*MP*)
17945   if test -d /usr/nec; then
17946     version_type=linux # correct to gnu/linux during the next big refactor
17947     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17948     soname_spec='$libname$shared_ext.$major'
17949     shlibpath_var=LD_LIBRARY_PATH
17950   fi
17951   ;;
17952
17953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17954   version_type=sco
17955   need_lib_prefix=no
17956   need_version=no
17957   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17958   soname_spec='$libname$release$shared_ext$major'
17959   shlibpath_var=LD_LIBRARY_PATH
17960   shlibpath_overrides_runpath=yes
17961   hardcode_into_libs=yes
17962   if test yes = "$with_gnu_ld"; then
17963     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17964   else
17965     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17966     case $host_os in
17967       sco3.2v5*)
17968         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17969         ;;
17970     esac
17971   fi
17972   sys_lib_dlsearch_path_spec='/usr/lib'
17973   ;;
17974
17975 tpf*)
17976   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17977   version_type=linux # correct to gnu/linux during the next big refactor
17978   need_lib_prefix=no
17979   need_version=no
17980   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   shlibpath_overrides_runpath=no
17983   hardcode_into_libs=yes
17984   ;;
17985
17986 uts4*)
17987   version_type=linux # correct to gnu/linux during the next big refactor
17988   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17989   soname_spec='$libname$release$shared_ext$major'
17990   shlibpath_var=LD_LIBRARY_PATH
17991   ;;
17992
17993 *)
17994   dynamic_linker=no
17995   ;;
17996 esac
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17998 $as_echo "$dynamic_linker" >&6; }
17999 test no = "$dynamic_linker" && can_build_shared=no
18000
18001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18002 if test yes = "$GCC"; then
18003   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18004 fi
18005
18006 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18007   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18008 fi
18009
18010 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18011   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18012 fi
18013
18014 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18015 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18016
18017 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18018 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18019
18020 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18021 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18063 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18064 hardcode_action_CXX=
18065 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18066    test -n "$runpath_var_CXX" ||
18067    test yes = "$hardcode_automatic_CXX"; then
18068
18069   # We can hardcode non-existent directories.
18070   if test no != "$hardcode_direct_CXX" &&
18071      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18072      # have to relink, otherwise we might link with an installed library
18073      # when we should be linking with a yet-to-be-installed one
18074      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18075      test no != "$hardcode_minus_L_CXX"; then
18076     # Linking always hardcodes the temporary library directory.
18077     hardcode_action_CXX=relink
18078   else
18079     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18080     hardcode_action_CXX=immediate
18081   fi
18082 else
18083   # We cannot hardcode anything, or else we can only hardcode existing
18084   # directories.
18085   hardcode_action_CXX=unsupported
18086 fi
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18088 $as_echo "$hardcode_action_CXX" >&6; }
18089
18090 if test relink = "$hardcode_action_CXX" ||
18091    test yes = "$inherit_rpath_CXX"; then
18092   # Fast installation is not supported
18093   enable_fast_install=no
18094 elif test yes = "$shlibpath_overrides_runpath" ||
18095      test no = "$enable_shared"; then
18096   # Fast installation is not necessary
18097   enable_fast_install=needless
18098 fi
18099
18100
18101
18102
18103
18104
18105
18106   fi # test -n "$compiler"
18107
18108   CC=$lt_save_CC
18109   CFLAGS=$lt_save_CFLAGS
18110   LDCXX=$LD
18111   LD=$lt_save_LD
18112   GCC=$lt_save_GCC
18113   with_gnu_ld=$lt_save_with_gnu_ld
18114   lt_cv_path_LDCXX=$lt_cv_path_LD
18115   lt_cv_path_LD=$lt_save_path_LD
18116   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18117   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18118 fi # test yes != "$_lt_caught_CXX_error"
18119
18120 ac_ext=c
18121 ac_cpp='$CPP $CPPFLAGS'
18122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18125
18126
18127 ac_ext=f
18128 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18129 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18131 if test -n "$ac_tool_prefix"; then
18132   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 nagfor
18133   do
18134     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18137 $as_echo_n "checking for $ac_word... " >&6; }
18138 if ${ac_cv_prog_F77+:} false; then :
18139   $as_echo_n "(cached) " >&6
18140 else
18141   if test -n "$F77"; then
18142   ac_cv_prog_F77="$F77" # Let the user override the test.
18143 else
18144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18145 for as_dir in $PATH
18146 do
18147   IFS=$as_save_IFS
18148   test -z "$as_dir" && as_dir=.
18149     for ac_exec_ext in '' $ac_executable_extensions; do
18150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18151     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
18152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18153     break 2
18154   fi
18155 done
18156   done
18157 IFS=$as_save_IFS
18158
18159 fi
18160 fi
18161 F77=$ac_cv_prog_F77
18162 if test -n "$F77"; then
18163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
18164 $as_echo "$F77" >&6; }
18165 else
18166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18167 $as_echo "no" >&6; }
18168 fi
18169
18170
18171     test -n "$F77" && break
18172   done
18173 fi
18174 if test -z "$F77"; then
18175   ac_ct_F77=$F77
18176   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 nagfor
18177 do
18178   # Extract the first word of "$ac_prog", so it can be a program name with args.
18179 set dummy $ac_prog; ac_word=$2
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18181 $as_echo_n "checking for $ac_word... " >&6; }
18182 if ${ac_cv_prog_ac_ct_F77+:} false; then :
18183   $as_echo_n "(cached) " >&6
18184 else
18185   if test -n "$ac_ct_F77"; then
18186   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
18187 else
18188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18189 for as_dir in $PATH
18190 do
18191   IFS=$as_save_IFS
18192   test -z "$as_dir" && as_dir=.
18193     for ac_exec_ext in '' $ac_executable_extensions; do
18194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18195     ac_cv_prog_ac_ct_F77="$ac_prog"
18196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18197     break 2
18198   fi
18199 done
18200   done
18201 IFS=$as_save_IFS
18202
18203 fi
18204 fi
18205 ac_ct_F77=$ac_cv_prog_ac_ct_F77
18206 if test -n "$ac_ct_F77"; then
18207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
18208 $as_echo "$ac_ct_F77" >&6; }
18209 else
18210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18211 $as_echo "no" >&6; }
18212 fi
18213
18214
18215   test -n "$ac_ct_F77" && break
18216 done
18217
18218   if test "x$ac_ct_F77" = x; then
18219     F77=""
18220   else
18221     case $cross_compiling:$ac_tool_warned in
18222 yes:)
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18225 ac_tool_warned=yes ;;
18226 esac
18227     F77=$ac_ct_F77
18228   fi
18229 fi
18230
18231
18232 # Provide some information about the compiler.
18233 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
18234 set X $ac_compile
18235 ac_compiler=$2
18236 for ac_option in --version -v -V -qversion; do
18237   { { ac_try="$ac_compiler $ac_option >&5"
18238 case "(($ac_try" in
18239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240   *) ac_try_echo=$ac_try;;
18241 esac
18242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18243 $as_echo "$ac_try_echo"; } >&5
18244   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18245   ac_status=$?
18246   if test -s conftest.err; then
18247     sed '10a\
18248 ... rest of stderr output deleted ...
18249          10q' conftest.err >conftest.er1
18250     cat conftest.er1 >&5
18251   fi
18252   rm -f conftest.er1 conftest.err
18253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254   test $ac_status = 0; }
18255 done
18256 rm -f a.out
18257
18258 # If we don't use `.F' as extension, the preprocessor is not run on the
18259 # input file.  (Note that this only needs to work for GNU compilers.)
18260 ac_save_ext=$ac_ext
18261 ac_ext=F
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
18263 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
18264 if ${ac_cv_f77_compiler_gnu+:} false; then :
18265   $as_echo_n "(cached) " >&6
18266 else
18267   cat > conftest.$ac_ext <<_ACEOF
18268       program main
18269 #ifndef __GNUC__
18270        choke me
18271 #endif
18272
18273       end
18274 _ACEOF
18275 if ac_fn_f77_try_compile "$LINENO"; then :
18276   ac_compiler_gnu=yes
18277 else
18278   ac_compiler_gnu=no
18279 fi
18280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18281 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
18282
18283 fi
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
18285 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
18286 ac_ext=$ac_save_ext
18287 ac_test_FFLAGS=${FFLAGS+set}
18288 ac_save_FFLAGS=$FFLAGS
18289 FFLAGS=
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
18291 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
18292 if ${ac_cv_prog_f77_g+:} false; then :
18293   $as_echo_n "(cached) " >&6
18294 else
18295   FFLAGS=-g
18296 cat > conftest.$ac_ext <<_ACEOF
18297       program main
18298
18299       end
18300 _ACEOF
18301 if ac_fn_f77_try_compile "$LINENO"; then :
18302   ac_cv_prog_f77_g=yes
18303 else
18304   ac_cv_prog_f77_g=no
18305 fi
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18307
18308 fi
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
18310 $as_echo "$ac_cv_prog_f77_g" >&6; }
18311 if test "$ac_test_FFLAGS" = set; then
18312   FFLAGS=$ac_save_FFLAGS
18313 elif test $ac_cv_prog_f77_g = yes; then
18314   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
18315     FFLAGS="-g -O2"
18316   else
18317     FFLAGS="-g"
18318   fi
18319 else
18320   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
18321     FFLAGS="-O2"
18322   else
18323     FFLAGS=
18324   fi
18325 fi
18326
18327 if test $ac_compiler_gnu = yes; then
18328   G77=yes
18329 else
18330   G77=
18331 fi
18332 ac_ext=f
18333 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18334 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18335 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18336
18337
18338       ac_ext=f
18339 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18340 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18342
18343 if test -z "$F77" || test no = "$F77"; then
18344   _lt_disable_F77=yes
18345 fi
18346
18347 archive_cmds_need_lc_F77=no
18348 allow_undefined_flag_F77=
18349 always_export_symbols_F77=no
18350 archive_expsym_cmds_F77=
18351 export_dynamic_flag_spec_F77=
18352 hardcode_direct_F77=no
18353 hardcode_direct_absolute_F77=no
18354 hardcode_libdir_flag_spec_F77=
18355 hardcode_libdir_separator_F77=
18356 hardcode_minus_L_F77=no
18357 hardcode_automatic_F77=no
18358 inherit_rpath_F77=no
18359 module_cmds_F77=
18360 module_expsym_cmds_F77=
18361 link_all_deplibs_F77=unknown
18362 old_archive_cmds_F77=$old_archive_cmds
18363 reload_flag_F77=$reload_flag
18364 reload_cmds_F77=$reload_cmds
18365 no_undefined_flag_F77=
18366 whole_archive_flag_spec_F77=
18367 enable_shared_with_static_runtimes_F77=no
18368
18369 # Source file extension for f77 test sources.
18370 ac_ext=f
18371
18372 # Object file extension for compiled f77 test sources.
18373 objext=o
18374 objext_F77=$objext
18375
18376 # No sense in running all these tests if we already determined that
18377 # the F77 compiler isn't working.  Some variables (like enable_shared)
18378 # are currently assumed to apply to all compilers on this platform,
18379 # and will be corrupted by setting them based on a non-working compiler.
18380 if test yes != "$_lt_disable_F77"; then
18381   # Code to be used in simple compile tests
18382   lt_simple_compile_test_code="\
18383       subroutine t
18384       return
18385       end
18386 "
18387
18388   # Code to be used in simple link tests
18389   lt_simple_link_test_code="\
18390       program t
18391       end
18392 "
18393
18394   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18395
18396
18397
18398
18399
18400
18401 # If no C compiler was specified, use CC.
18402 LTCC=${LTCC-"$CC"}
18403
18404 # If no C compiler flags were specified, use CFLAGS.
18405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18406
18407 # Allow CC to be a program name with arguments.
18408 compiler=$CC
18409
18410
18411   # save warnings/boilerplate of simple test code
18412   ac_outfile=conftest.$ac_objext
18413 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18415 _lt_compiler_boilerplate=`cat conftest.err`
18416 $RM conftest*
18417
18418   ac_outfile=conftest.$ac_objext
18419 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18421 _lt_linker_boilerplate=`cat conftest.err`
18422 $RM -r conftest*
18423
18424
18425   # Allow CC to be a program name with arguments.
18426   lt_save_CC=$CC
18427   lt_save_GCC=$GCC
18428   lt_save_CFLAGS=$CFLAGS
18429   CC=${F77-"f77"}
18430   CFLAGS=$FFLAGS
18431   compiler=$CC
18432   compiler_F77=$CC
18433   func_cc_basename $compiler
18434 cc_basename=$func_cc_basename_result
18435
18436   GCC=$G77
18437   if test -n "$compiler"; then
18438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18439 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18441 $as_echo "$can_build_shared" >&6; }
18442
18443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18444 $as_echo_n "checking whether to build shared libraries... " >&6; }
18445     test no = "$can_build_shared" && enable_shared=no
18446
18447     # On AIX, shared libraries and static libraries use the same namespace, and
18448     # are all built from PIC.
18449     case $host_os in
18450       aix3*)
18451         test yes = "$enable_shared" && enable_static=no
18452         if test -n "$RANLIB"; then
18453           archive_cmds="$archive_cmds~\$RANLIB \$lib"
18454           postinstall_cmds='$RANLIB $lib'
18455         fi
18456         ;;
18457       aix[4-9]*)
18458         if test ia64 != "$host_cpu"; then
18459           case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18460           yes,aix,yes) ;;               # shared object as lib.so file only
18461           yes,svr4,*) ;;                # shared object as lib.so archive member only
18462           yes,*) enable_static=no ;;    # shared object in lib.a archive as well
18463           esac
18464         fi
18465         ;;
18466     esac
18467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18468 $as_echo "$enable_shared" >&6; }
18469
18470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18471 $as_echo_n "checking whether to build static libraries... " >&6; }
18472     # Make sure either enable_shared or enable_static is yes.
18473     test yes = "$enable_shared" || enable_static=yes
18474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18475 $as_echo "$enable_static" >&6; }
18476
18477     GCC_F77=$G77
18478     LD_F77=$LD
18479
18480     ## CAVEAT EMPTOR:
18481     ## There is no encapsulation within the following macros, do not change
18482     ## the running order or otherwise move them around unless you know exactly
18483     ## what you are doing...
18484     lt_prog_compiler_wl_F77=
18485 lt_prog_compiler_pic_F77=
18486 lt_prog_compiler_static_F77=
18487
18488
18489   if test yes = "$GCC"; then
18490     lt_prog_compiler_wl_F77='-Wl,'
18491     lt_prog_compiler_static_F77='-static'
18492
18493     case $host_os in
18494       aix*)
18495       # All AIX code is PIC.
18496       if test ia64 = "$host_cpu"; then
18497         # AIX 5 now supports IA64 processor
18498         lt_prog_compiler_static_F77='-Bstatic'
18499       fi
18500       lt_prog_compiler_pic_F77='-fPIC'
18501       ;;
18502
18503     amigaos*)
18504       case $host_cpu in
18505       powerpc)
18506             # see comment about AmigaOS4 .so support
18507             lt_prog_compiler_pic_F77='-fPIC'
18508         ;;
18509       m68k)
18510             # FIXME: we need at least 68020 code to build shared libraries, but
18511             # adding the '-m68020' flag to GCC prevents building anything better,
18512             # like '-m68040'.
18513             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18514         ;;
18515       esac
18516       ;;
18517
18518     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18519       # PIC is the default for these OSes.
18520       ;;
18521
18522     mingw* | cygwin* | pw32* | os2* | cegcc*)
18523       # This hack is so that the source file can tell whether it is being
18524       # built for inclusion in a dll (and should export symbols for example).
18525       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18526       # (--disable-auto-import) libraries
18527       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18528       case $host_os in
18529       os2*)
18530         lt_prog_compiler_static_F77='$wl-static'
18531         ;;
18532       esac
18533       ;;
18534
18535     darwin* | rhapsody*)
18536       # PIC is the default on this platform
18537       # Common symbols not allowed in MH_DYLIB files
18538       lt_prog_compiler_pic_F77='-fno-common'
18539       ;;
18540
18541     haiku*)
18542       # PIC is the default for Haiku.
18543       # The "-static" flag exists, but is broken.
18544       lt_prog_compiler_static_F77=
18545       ;;
18546
18547     hpux*)
18548       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18549       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18550       # sets the default TLS model and affects inlining.
18551       case $host_cpu in
18552       hppa*64*)
18553         # +Z the default
18554         ;;
18555       *)
18556         lt_prog_compiler_pic_F77='-fPIC'
18557         ;;
18558       esac
18559       ;;
18560
18561     interix[3-9]*)
18562       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18563       # Instead, we relocate shared libraries at runtime.
18564       ;;
18565
18566     msdosdjgpp*)
18567       # Just because we use GCC doesn't mean we suddenly get shared libraries
18568       # on systems that don't support them.
18569       lt_prog_compiler_can_build_shared_F77=no
18570       enable_shared=no
18571       ;;
18572
18573     *nto* | *qnx*)
18574       # QNX uses GNU C++, but need to define -shared option too, otherwise
18575       # it will coredump.
18576       lt_prog_compiler_pic_F77='-fPIC -shared'
18577       ;;
18578
18579     sysv4*MP*)
18580       if test -d /usr/nec; then
18581         lt_prog_compiler_pic_F77=-Kconform_pic
18582       fi
18583       ;;
18584
18585     *)
18586       lt_prog_compiler_pic_F77='-fPIC'
18587       ;;
18588     esac
18589
18590     case $cc_basename in
18591     nvcc*) # Cuda Compiler Driver 2.2
18592       lt_prog_compiler_wl_F77='-Xlinker '
18593       if test -n "$lt_prog_compiler_pic_F77"; then
18594         lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
18595       fi
18596       ;;
18597     esac
18598   else
18599     # PORTME Check for flag to pass linker flags through the system compiler.
18600     case $host_os in
18601     aix*)
18602       lt_prog_compiler_wl_F77='-Wl,'
18603       if test ia64 = "$host_cpu"; then
18604         # AIX 5 now supports IA64 processor
18605         lt_prog_compiler_static_F77='-Bstatic'
18606       else
18607         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18608       fi
18609       ;;
18610
18611     darwin* | rhapsody*)
18612       # PIC is the default on this platform
18613       # Common symbols not allowed in MH_DYLIB files
18614       lt_prog_compiler_pic_F77='-fno-common'
18615       case $cc_basename in
18616       nagfor*)
18617         # NAG Fortran compiler
18618         lt_prog_compiler_wl_F77='-Wl,-Wl,,'
18619         lt_prog_compiler_pic_F77='-PIC'
18620         lt_prog_compiler_static_F77='-Bstatic'
18621         ;;
18622       esac
18623       ;;
18624
18625     mingw* | cygwin* | pw32* | os2* | cegcc*)
18626       # This hack is so that the source file can tell whether it is being
18627       # built for inclusion in a dll (and should export symbols for example).
18628       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18629       case $host_os in
18630       os2*)
18631         lt_prog_compiler_static_F77='$wl-static'
18632         ;;
18633       esac
18634       ;;
18635
18636     hpux9* | hpux10* | hpux11*)
18637       lt_prog_compiler_wl_F77='-Wl,'
18638       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18639       # not for PA HP-UX.
18640       case $host_cpu in
18641       hppa*64*|ia64*)
18642         # +Z the default
18643         ;;
18644       *)
18645         lt_prog_compiler_pic_F77='+Z'
18646         ;;
18647       esac
18648       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18649       lt_prog_compiler_static_F77='$wl-a ${wl}archive'
18650       ;;
18651
18652     irix5* | irix6* | nonstopux*)
18653       lt_prog_compiler_wl_F77='-Wl,'
18654       # PIC (with -KPIC) is the default.
18655       lt_prog_compiler_static_F77='-non_shared'
18656       ;;
18657
18658     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18659       case $cc_basename in
18660       # old Intel for x86_64, which still supported -KPIC.
18661       ecc*)
18662         lt_prog_compiler_wl_F77='-Wl,'
18663         lt_prog_compiler_pic_F77='-KPIC'
18664         lt_prog_compiler_static_F77='-static'
18665         ;;
18666       # icc used to be incompatible with GCC.
18667       # ICC 10 doesn't accept -KPIC any more.
18668       icc* | ifort*)
18669         lt_prog_compiler_wl_F77='-Wl,'
18670         lt_prog_compiler_pic_F77='-fPIC'
18671         lt_prog_compiler_static_F77='-static'
18672         ;;
18673       # Lahey Fortran 8.1.
18674       lf95*)
18675         lt_prog_compiler_wl_F77='-Wl,'
18676         lt_prog_compiler_pic_F77='--shared'
18677         lt_prog_compiler_static_F77='--static'
18678         ;;
18679       nagfor*)
18680         # NAG Fortran compiler
18681         lt_prog_compiler_wl_F77='-Wl,-Wl,,'
18682         lt_prog_compiler_pic_F77='-PIC'
18683         lt_prog_compiler_static_F77='-Bstatic'
18684         ;;
18685       tcc*)
18686         # Fabrice Bellard et al's Tiny C Compiler
18687         lt_prog_compiler_wl_F77='-Wl,'
18688         lt_prog_compiler_pic_F77='-fPIC'
18689         lt_prog_compiler_static_F77='-static'
18690         ;;
18691       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18692         # Portland Group compilers (*not* the Pentium gcc compiler,
18693         # which looks to be a dead project)
18694         lt_prog_compiler_wl_F77='-Wl,'
18695         lt_prog_compiler_pic_F77='-fpic'
18696         lt_prog_compiler_static_F77='-Bstatic'
18697         ;;
18698       ccc*)
18699         lt_prog_compiler_wl_F77='-Wl,'
18700         # All Alpha code is PIC.
18701         lt_prog_compiler_static_F77='-non_shared'
18702         ;;
18703       xl* | bgxl* | bgf* | mpixl*)
18704         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18705         lt_prog_compiler_wl_F77='-Wl,'
18706         lt_prog_compiler_pic_F77='-qpic'
18707         lt_prog_compiler_static_F77='-qstaticlink'
18708         ;;
18709       *)
18710         case `$CC -V 2>&1 | $SED 5q` in
18711         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18712           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18713           lt_prog_compiler_pic_F77='-KPIC'
18714           lt_prog_compiler_static_F77='-Bstatic'
18715           lt_prog_compiler_wl_F77=''
18716           ;;
18717         *Sun\ F* | *Sun*Fortran*)
18718           lt_prog_compiler_pic_F77='-KPIC'
18719           lt_prog_compiler_static_F77='-Bstatic'
18720           lt_prog_compiler_wl_F77='-Qoption ld '
18721           ;;
18722         *Sun\ C*)
18723           # Sun C 5.9
18724           lt_prog_compiler_pic_F77='-KPIC'
18725           lt_prog_compiler_static_F77='-Bstatic'
18726           lt_prog_compiler_wl_F77='-Wl,'
18727           ;;
18728         *Intel*\ [CF]*Compiler*)
18729           lt_prog_compiler_wl_F77='-Wl,'
18730           lt_prog_compiler_pic_F77='-fPIC'
18731           lt_prog_compiler_static_F77='-static'
18732           ;;
18733         *Portland\ Group*)
18734           lt_prog_compiler_wl_F77='-Wl,'
18735           lt_prog_compiler_pic_F77='-fpic'
18736           lt_prog_compiler_static_F77='-Bstatic'
18737           ;;
18738         esac
18739         ;;
18740       esac
18741       ;;
18742
18743     newsos6)
18744       lt_prog_compiler_pic_F77='-KPIC'
18745       lt_prog_compiler_static_F77='-Bstatic'
18746       ;;
18747
18748     *nto* | *qnx*)
18749       # QNX uses GNU C++, but need to define -shared option too, otherwise
18750       # it will coredump.
18751       lt_prog_compiler_pic_F77='-fPIC -shared'
18752       ;;
18753
18754     osf3* | osf4* | osf5*)
18755       lt_prog_compiler_wl_F77='-Wl,'
18756       # All OSF/1 code is PIC.
18757       lt_prog_compiler_static_F77='-non_shared'
18758       ;;
18759
18760     rdos*)
18761       lt_prog_compiler_static_F77='-non_shared'
18762       ;;
18763
18764     solaris*)
18765       lt_prog_compiler_pic_F77='-KPIC'
18766       lt_prog_compiler_static_F77='-Bstatic'
18767       case $cc_basename in
18768       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18769         lt_prog_compiler_wl_F77='-Qoption ld ';;
18770       *)
18771         lt_prog_compiler_wl_F77='-Wl,';;
18772       esac
18773       ;;
18774
18775     sunos4*)
18776       lt_prog_compiler_wl_F77='-Qoption ld '
18777       lt_prog_compiler_pic_F77='-PIC'
18778       lt_prog_compiler_static_F77='-Bstatic'
18779       ;;
18780
18781     sysv4 | sysv4.2uw2* | sysv4.3*)
18782       lt_prog_compiler_wl_F77='-Wl,'
18783       lt_prog_compiler_pic_F77='-KPIC'
18784       lt_prog_compiler_static_F77='-Bstatic'
18785       ;;
18786
18787     sysv4*MP*)
18788       if test -d /usr/nec; then
18789         lt_prog_compiler_pic_F77='-Kconform_pic'
18790         lt_prog_compiler_static_F77='-Bstatic'
18791       fi
18792       ;;
18793
18794     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18795       lt_prog_compiler_wl_F77='-Wl,'
18796       lt_prog_compiler_pic_F77='-KPIC'
18797       lt_prog_compiler_static_F77='-Bstatic'
18798       ;;
18799
18800     unicos*)
18801       lt_prog_compiler_wl_F77='-Wl,'
18802       lt_prog_compiler_can_build_shared_F77=no
18803       ;;
18804
18805     uts4*)
18806       lt_prog_compiler_pic_F77='-pic'
18807       lt_prog_compiler_static_F77='-Bstatic'
18808       ;;
18809
18810     *)
18811       lt_prog_compiler_can_build_shared_F77=no
18812       ;;
18813     esac
18814   fi
18815
18816 case $host_os in
18817   # For platforms that do not support PIC, -DPIC is meaningless:
18818   *djgpp*)
18819     lt_prog_compiler_pic_F77=
18820     ;;
18821   *)
18822     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18823     ;;
18824 esac
18825
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18827 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18828 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
18829   $as_echo_n "(cached) " >&6
18830 else
18831   lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
18832 fi
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
18834 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
18835 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
18836
18837 #
18838 # Check to make sure the PIC flag actually works.
18839 #
18840 if test -n "$lt_prog_compiler_pic_F77"; then
18841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18842 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18843 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
18844   $as_echo_n "(cached) " >&6
18845 else
18846   lt_cv_prog_compiler_pic_works_F77=no
18847    ac_outfile=conftest.$ac_objext
18848    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18849    lt_compiler_flag="$lt_prog_compiler_pic_F77"  ## exclude from sc_useless_quotes_in_assignment
18850    # Insert the option either (1) after the last *FLAGS variable, or
18851    # (2) before a word containing "conftest.", or (3) at the end.
18852    # Note that $ac_compile itself does not contain backslashes and begins
18853    # with a dollar sign (not a hyphen), so the echo should work correctly.
18854    # The option is referenced via a variable to avoid confusing sed.
18855    lt_compile=`echo "$ac_compile" | $SED \
18856    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18857    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18858    -e 's:$: $lt_compiler_flag:'`
18859    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18860    (eval "$lt_compile" 2>conftest.err)
18861    ac_status=$?
18862    cat conftest.err >&5
18863    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864    if (exit $ac_status) && test -s "$ac_outfile"; then
18865      # The compiler can only warn and ignore the option if not recognized
18866      # So say no if there are warnings other than the usual output.
18867      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18868      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18869      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18870        lt_cv_prog_compiler_pic_works_F77=yes
18871      fi
18872    fi
18873    $RM conftest*
18874
18875 fi
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18877 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
18878
18879 if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
18880     case $lt_prog_compiler_pic_F77 in
18881      "" | " "*) ;;
18882      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18883      esac
18884 else
18885     lt_prog_compiler_pic_F77=
18886      lt_prog_compiler_can_build_shared_F77=no
18887 fi
18888
18889 fi
18890
18891
18892
18893
18894
18895 #
18896 # Check to make sure the static flag actually works.
18897 #
18898 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18900 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18901 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
18902   $as_echo_n "(cached) " >&6
18903 else
18904   lt_cv_prog_compiler_static_works_F77=no
18905    save_LDFLAGS=$LDFLAGS
18906    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18907    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18908    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18909      # The linker can only warn and ignore the option if not recognized
18910      # So say no if there are warnings
18911      if test -s conftest.err; then
18912        # Append any errors to the config.log.
18913        cat conftest.err 1>&5
18914        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18915        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18916        if diff conftest.exp conftest.er2 >/dev/null; then
18917          lt_cv_prog_compiler_static_works_F77=yes
18918        fi
18919      else
18920        lt_cv_prog_compiler_static_works_F77=yes
18921      fi
18922    fi
18923    $RM -r conftest*
18924    LDFLAGS=$save_LDFLAGS
18925
18926 fi
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
18928 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
18929
18930 if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
18931     :
18932 else
18933     lt_prog_compiler_static_F77=
18934 fi
18935
18936
18937
18938
18939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18941 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
18942   $as_echo_n "(cached) " >&6
18943 else
18944   lt_cv_prog_compiler_c_o_F77=no
18945    $RM -r conftest 2>/dev/null
18946    mkdir conftest
18947    cd conftest
18948    mkdir out
18949    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18950
18951    lt_compiler_flag="-o out/conftest2.$ac_objext"
18952    # Insert the option either (1) after the last *FLAGS variable, or
18953    # (2) before a word containing "conftest.", or (3) at the end.
18954    # Note that $ac_compile itself does not contain backslashes and begins
18955    # with a dollar sign (not a hyphen), so the echo should work correctly.
18956    lt_compile=`echo "$ac_compile" | $SED \
18957    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18959    -e 's:$: $lt_compiler_flag:'`
18960    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18961    (eval "$lt_compile" 2>out/conftest.err)
18962    ac_status=$?
18963    cat out/conftest.err >&5
18964    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18966    then
18967      # The compiler can only warn and ignore the option if not recognized
18968      # So say no if there are warnings
18969      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18970      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18971      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18972        lt_cv_prog_compiler_c_o_F77=yes
18973      fi
18974    fi
18975    chmod u+w . 2>&5
18976    $RM conftest*
18977    # SGI C++ compiler will create directory out/ii_files/ for
18978    # template instantiation
18979    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18980    $RM out/* && rmdir out
18981    cd ..
18982    $RM -r conftest
18983    $RM conftest*
18984
18985 fi
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18987 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18988
18989
18990
18991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18993 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
18994   $as_echo_n "(cached) " >&6
18995 else
18996   lt_cv_prog_compiler_c_o_F77=no
18997    $RM -r conftest 2>/dev/null
18998    mkdir conftest
18999    cd conftest
19000    mkdir out
19001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19002
19003    lt_compiler_flag="-o out/conftest2.$ac_objext"
19004    # Insert the option either (1) after the last *FLAGS variable, or
19005    # (2) before a word containing "conftest.", or (3) at the end.
19006    # Note that $ac_compile itself does not contain backslashes and begins
19007    # with a dollar sign (not a hyphen), so the echo should work correctly.
19008    lt_compile=`echo "$ac_compile" | $SED \
19009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19011    -e 's:$: $lt_compiler_flag:'`
19012    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19013    (eval "$lt_compile" 2>out/conftest.err)
19014    ac_status=$?
19015    cat out/conftest.err >&5
19016    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19018    then
19019      # The compiler can only warn and ignore the option if not recognized
19020      # So say no if there are warnings
19021      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19022      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19023      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19024        lt_cv_prog_compiler_c_o_F77=yes
19025      fi
19026    fi
19027    chmod u+w . 2>&5
19028    $RM conftest*
19029    # SGI C++ compiler will create directory out/ii_files/ for
19030    # template instantiation
19031    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19032    $RM out/* && rmdir out
19033    cd ..
19034    $RM -r conftest
19035    $RM conftest*
19036
19037 fi
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
19039 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
19040
19041
19042
19043
19044 hard_links=nottested
19045 if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
19046   # do not overwrite the value of need_locks provided by the user
19047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19048 $as_echo_n "checking if we can lock with hard links... " >&6; }
19049   hard_links=yes
19050   $RM conftest*
19051   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19052   touch conftest.a
19053   ln conftest.a conftest.b 2>&5 || hard_links=no
19054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19056 $as_echo "$hard_links" >&6; }
19057   if test no = "$hard_links"; then
19058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19059 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19060     need_locks=warn
19061   fi
19062 else
19063   need_locks=no
19064 fi
19065
19066
19067
19068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19069 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19070
19071   runpath_var=
19072   allow_undefined_flag_F77=
19073   always_export_symbols_F77=no
19074   archive_cmds_F77=
19075   archive_expsym_cmds_F77=
19076   compiler_needs_object_F77=no
19077   enable_shared_with_static_runtimes_F77=no
19078   export_dynamic_flag_spec_F77=
19079   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19080   hardcode_automatic_F77=no
19081   hardcode_direct_F77=no
19082   hardcode_direct_absolute_F77=no
19083   hardcode_libdir_flag_spec_F77=
19084   hardcode_libdir_separator_F77=
19085   hardcode_minus_L_F77=no
19086   hardcode_shlibpath_var_F77=unsupported
19087   inherit_rpath_F77=no
19088   link_all_deplibs_F77=unknown
19089   module_cmds_F77=
19090   module_expsym_cmds_F77=
19091   old_archive_from_new_cmds_F77=
19092   old_archive_from_expsyms_cmds_F77=
19093   thread_safe_flag_spec_F77=
19094   whole_archive_flag_spec_F77=
19095   # include_expsyms should be a list of space-separated symbols to be *always*
19096   # included in the symbol list
19097   include_expsyms_F77=
19098   # exclude_expsyms can be an extended regexp of symbols to exclude
19099   # it will be wrapped by ' (' and ')$', so one must not match beginning or
19100   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19101   # as well as any symbol that contains 'd'.
19102   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19103   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19104   # platforms (ab)use it in PIC code, but their linkers get confused if
19105   # the symbol is explicitly referenced.  Since portable code cannot
19106   # rely on this symbol name, it's probably fine to never include it in
19107   # preloaded symbol tables.
19108   # Exclude shared library initialization/finalization symbols.
19109   extract_expsyms_cmds=
19110
19111   case $host_os in
19112   cygwin* | mingw* | pw32* | cegcc*)
19113     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
19114     # When not using gcc, we currently assume that we are using
19115     # Microsoft Visual C++ or Intel C++ Compiler.
19116     if test yes != "$GCC"; then
19117       with_gnu_ld=no
19118     fi
19119     ;;
19120   interix*)
19121     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
19122     with_gnu_ld=yes
19123     ;;
19124   openbsd* | bitrig*)
19125     with_gnu_ld=no
19126     ;;
19127   esac
19128
19129   ld_shlibs_F77=yes
19130
19131   # On some targets, GNU ld is compatible enough with the native linker
19132   # that we're better off using the native interface for both.
19133   lt_use_gnu_ld_interface=no
19134   if test yes = "$with_gnu_ld"; then
19135     case $host_os in
19136       aix*)
19137         # The AIX port of GNU ld has always aspired to compatibility
19138         # with the native linker.  However, as the warning in the GNU ld
19139         # block says, versions before 2.19.5* couldn't really create working
19140         # shared libraries, regardless of the interface used.
19141         case `$LD -v 2>&1` in
19142           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19143           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19144           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19145           *)
19146             lt_use_gnu_ld_interface=yes
19147             ;;
19148         esac
19149         ;;
19150       *)
19151         lt_use_gnu_ld_interface=yes
19152         ;;
19153     esac
19154   fi
19155
19156   if test yes = "$lt_use_gnu_ld_interface"; then
19157     # If archive_cmds runs LD, not CC, wlarc should be empty
19158     wlarc='$wl'
19159
19160     # Set some defaults for GNU ld with shared library support. These
19161     # are reset later if shared libraries are not supported. Putting them
19162     # here allows them to be overridden if necessary.
19163     runpath_var=LD_RUN_PATH
19164     hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19165     export_dynamic_flag_spec_F77='$wl--export-dynamic'
19166     # ancient GNU ld didn't support --whole-archive et. al.
19167     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19168       whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19169     else
19170       whole_archive_flag_spec_F77=
19171     fi
19172     supports_anon_versioning=no
19173     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
19174       *GNU\ gold*) supports_anon_versioning=yes ;;
19175       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19176       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19177       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19178       *\ 2.11.*) ;; # other 2.11 versions
19179       *) supports_anon_versioning=yes ;;
19180     esac
19181
19182     # See if GNU ld supports shared libraries.
19183     case $host_os in
19184     aix[3-9]*)
19185       # On AIX/PPC, the GNU linker is very broken
19186       if test ia64 != "$host_cpu"; then
19187         ld_shlibs_F77=no
19188         cat <<_LT_EOF 1>&2
19189
19190 *** Warning: the GNU linker, at least up to release 2.19, is reported
19191 *** to be unable to reliably create shared libraries on AIX.
19192 *** Therefore, libtool is disabling shared libraries support.  If you
19193 *** really care for shared libraries, you may want to install binutils
19194 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19195 *** You will then need to restart the configuration process.
19196
19197 _LT_EOF
19198       fi
19199       ;;
19200
19201     amigaos*)
19202       case $host_cpu in
19203       powerpc)
19204             # see comment about AmigaOS4 .so support
19205             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19206             archive_expsym_cmds_F77=''
19207         ;;
19208       m68k)
19209             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)'
19210             hardcode_libdir_flag_spec_F77='-L$libdir'
19211             hardcode_minus_L_F77=yes
19212         ;;
19213       esac
19214       ;;
19215
19216     beos*)
19217       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19218         allow_undefined_flag_F77=unsupported
19219         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19220         # support --undefined.  This deserves some investigation.  FIXME
19221         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19222       else
19223         ld_shlibs_F77=no
19224       fi
19225       ;;
19226
19227     cygwin* | mingw* | pw32* | cegcc*)
19228       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19229       # as there is no search path for DLLs.
19230       hardcode_libdir_flag_spec_F77='-L$libdir'
19231       export_dynamic_flag_spec_F77='$wl--export-all-symbols'
19232       allow_undefined_flag_F77=unsupported
19233       always_export_symbols_F77=no
19234       enable_shared_with_static_runtimes_F77=yes
19235       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'
19236       exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19237
19238       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19239         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19240         # If the export-symbols file already is a .def file, use it as
19241         # is; otherwise, prepend EXPORTS...
19242         archive_expsym_cmds_F77='if   test DEF = "`$SED -n     -e '\''s/^[       ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19243           cp $export_symbols $output_objdir/$soname.def;
19244         else
19245           echo EXPORTS > $output_objdir/$soname.def;
19246           cat $export_symbols >> $output_objdir/$soname.def;
19247         fi~
19248         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19249       else
19250         ld_shlibs_F77=no
19251       fi
19252       ;;
19253
19254     haiku*)
19255       archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19256       link_all_deplibs_F77=yes
19257       ;;
19258
19259     os2*)
19260       hardcode_libdir_flag_spec_F77='-L$libdir'
19261       hardcode_minus_L_F77=yes
19262       allow_undefined_flag_F77=unsupported
19263       shrext_cmds=.dll
19264       archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19265         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19266         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19267         $ECHO EXPORTS >> $output_objdir/$libname.def~
19268         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19269         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19270         emximp -o $lib $output_objdir/$libname.def'
19271       archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19272         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19273         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19274         $ECHO EXPORTS >> $output_objdir/$libname.def~
19275         prefix_cmds="$SED"~
19276         if test EXPORTS = "`$SED 1q $export_symbols`"; then
19277           prefix_cmds="$prefix_cmds -e 1d";
19278         fi~
19279         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19280         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19281         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19282         emximp -o $lib $output_objdir/$libname.def'
19283       old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19284       enable_shared_with_static_runtimes_F77=yes
19285       file_list_spec_F77='@'
19286       ;;
19287
19288     interix[3-9]*)
19289       hardcode_direct_F77=no
19290       hardcode_shlibpath_var_F77=no
19291       hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
19292       export_dynamic_flag_spec_F77='$wl-E'
19293       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19294       # Instead, shared libraries are loaded at an image base (0x10000000 by
19295       # default) and relocated if they conflict, which is a slow very memory
19296       # consuming and fragmenting process.  To avoid this, we pick a random,
19297       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19298       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19299       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'
19300       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'
19301       ;;
19302
19303     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19304       tmp_diet=no
19305       if test linux-dietlibc = "$host_os"; then
19306         case $cc_basename in
19307           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
19308         esac
19309       fi
19310       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19311          && test no = "$tmp_diet"
19312       then
19313         tmp_addflag=' $pic_flag'
19314         tmp_sharedflag='-shared'
19315         case $cc_basename,$host_cpu in
19316         pgcc*)                          # Portland Group C compiler
19317           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'
19318           tmp_addflag=' $pic_flag'
19319           ;;
19320         pgf77* | pgf90* | pgf95* | pgfortran*)
19321                                         # Portland Group f77 and f90 compilers
19322           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'
19323           tmp_addflag=' $pic_flag -Mnomain' ;;
19324         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
19325           tmp_addflag=' -i_dynamic' ;;
19326         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19327           tmp_addflag=' -i_dynamic -nofor_main' ;;
19328         ifc* | ifort*)                  # Intel Fortran compiler
19329           tmp_addflag=' -nofor_main' ;;
19330         lf95*)                          # Lahey Fortran 8.1
19331           whole_archive_flag_spec_F77=
19332           tmp_sharedflag='--shared' ;;
19333         nagfor*)                        # NAGFOR 5.3
19334           tmp_sharedflag='-Wl,-shared' ;;
19335         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19336           tmp_sharedflag='-qmkshrobj'
19337           tmp_addflag= ;;
19338         nvcc*)  # Cuda Compiler Driver 2.2
19339           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'
19340           compiler_needs_object_F77=yes
19341           ;;
19342         esac
19343         case `$CC -V 2>&1 | $SED 5q` in
19344         *Sun\ C*)                       # Sun C 5.9
19345           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'
19346           compiler_needs_object_F77=yes
19347           tmp_sharedflag='-G' ;;
19348         *Sun\ F*)                       # Sun Fortran 8.3
19349           tmp_sharedflag='-G' ;;
19350         esac
19351         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19352
19353         if test yes = "$supports_anon_versioning"; then
19354           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
19355             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19356             echo "local: *; };" >> $output_objdir/$libname.ver~
19357             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19358         fi
19359
19360         case $cc_basename in
19361         tcc*)
19362           export_dynamic_flag_spec_F77='-rdynamic'
19363           ;;
19364         xlf* | bgf* | bgxlf* | mpixlf*)
19365           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19366           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
19367           hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19368           archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19369           if test yes = "$supports_anon_versioning"; then
19370             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
19371               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19372               echo "local: *; };" >> $output_objdir/$libname.ver~
19373               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19374           fi
19375           ;;
19376         esac
19377       else
19378         ld_shlibs_F77=no
19379       fi
19380       ;;
19381
19382     netbsd*)
19383       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19384         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19385         wlarc=
19386       else
19387         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19388         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'
19389       fi
19390       ;;
19391
19392     solaris*)
19393       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19394         ld_shlibs_F77=no
19395         cat <<_LT_EOF 1>&2
19396
19397 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19398 *** create shared libraries on Solaris systems.  Therefore, libtool
19399 *** is disabling shared libraries support.  We urge you to upgrade GNU
19400 *** binutils to release 2.9.1 or newer.  Another option is to modify
19401 *** your PATH or compiler configuration so that the native linker is
19402 *** used, and then restart.
19403
19404 _LT_EOF
19405       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19406         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19407         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'
19408       else
19409         ld_shlibs_F77=no
19410       fi
19411       ;;
19412
19413     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19414       case `$LD -v 2>&1` in
19415         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19416         ld_shlibs_F77=no
19417         cat <<_LT_EOF 1>&2
19418
19419 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
19420 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19421 *** is disabling shared libraries support.  We urge you to upgrade GNU
19422 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19423 *** your PATH or compiler configuration so that the native linker is
19424 *** used, and then restart.
19425
19426 _LT_EOF
19427         ;;
19428         *)
19429           # For security reasons, it is highly recommended that you always
19430           # use absolute paths for naming shared libraries, and exclude the
19431           # DT_RUNPATH tag from executables and libraries.  But doing so
19432           # requires that you compile everything twice, which is a pain.
19433           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19434             hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19435             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19436             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19437           else
19438             ld_shlibs_F77=no
19439           fi
19440         ;;
19441       esac
19442       ;;
19443
19444     sunos4*)
19445       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19446       wlarc=
19447       hardcode_direct_F77=yes
19448       hardcode_shlibpath_var_F77=no
19449       ;;
19450
19451     *)
19452       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19453         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19454         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'
19455       else
19456         ld_shlibs_F77=no
19457       fi
19458       ;;
19459     esac
19460
19461     if test no = "$ld_shlibs_F77"; then
19462       runpath_var=
19463       hardcode_libdir_flag_spec_F77=
19464       export_dynamic_flag_spec_F77=
19465       whole_archive_flag_spec_F77=
19466     fi
19467   else
19468     # PORTME fill in a description of your system's linker (not GNU ld)
19469     case $host_os in
19470     aix3*)
19471       allow_undefined_flag_F77=unsupported
19472       always_export_symbols_F77=yes
19473       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'
19474       # Note: this linker hardcodes the directories in LIBPATH if there
19475       # are no directories specified by -L.
19476       hardcode_minus_L_F77=yes
19477       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
19478         # Neither direct hardcoding nor static linking is supported with a
19479         # broken collect2.
19480         hardcode_direct_F77=unsupported
19481       fi
19482       ;;
19483
19484     aix[4-9]*)
19485       if test ia64 = "$host_cpu"; then
19486         # On IA64, the linker does run time linking by default, so we don't
19487         # have to do anything special.
19488         aix_use_runtimelinking=no
19489         exp_sym_flag='-Bexport'
19490         no_entry_flag=
19491       else
19492         # If we're using GNU nm, then we don't want the "-C" option.
19493         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19494         # Without the "-l" option, or with the "-B" option, AIX nm treats
19495         # weak defined symbols like other global defined symbols, whereas
19496         # GNU nm marks them as "W".
19497         # While the 'weak' keyword is ignored in the Export File, we need
19498         # it in the Import File for the 'aix-soname' feature, so we have
19499         # to replace the "-B" option with "-P" for AIX nm.
19500         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19501           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
19502         else
19503           export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
19504         fi
19505         aix_use_runtimelinking=no
19506
19507         # Test if we are trying to use run time linking or normal
19508         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19509         # have runtime linking enabled, and use it for executables.
19510         # For shared libraries, we enable/disable runtime linking
19511         # depending on the kind of the shared library created -
19512         # when "with_aix_soname,aix_use_runtimelinking" is:
19513         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19514         # "aix,yes"  lib.so          shared, rtl:yes, for executables
19515         #            lib.a           static archive
19516         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
19517         #            lib.a(lib.so.V) shared, rtl:no,  for executables
19518         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19519         #            lib.a(lib.so.V) shared, rtl:no
19520         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19521         #            lib.a           static archive
19522         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19523           for ld_flag in $LDFLAGS; do
19524           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
19525             aix_use_runtimelinking=yes
19526             break
19527           fi
19528           done
19529           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19530             # With aix-soname=svr4, we create the lib.so.V shared archives only,
19531             # so we don't have lib.a shared libs to link our executables.
19532             # We have to force runtime linking in this case.
19533             aix_use_runtimelinking=yes
19534             LDFLAGS="$LDFLAGS -Wl,-brtl"
19535           fi
19536           ;;
19537         esac
19538
19539         exp_sym_flag='-bexport'
19540         no_entry_flag='-bnoentry'
19541       fi
19542
19543       # When large executables or shared objects are built, AIX ld can
19544       # have problems creating the table of contents.  If linking a library
19545       # or program results in "error TOC overflow" add -mminimal-toc to
19546       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19547       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19548
19549       archive_cmds_F77=''
19550       hardcode_direct_F77=yes
19551       hardcode_direct_absolute_F77=yes
19552       hardcode_libdir_separator_F77=':'
19553       link_all_deplibs_F77=yes
19554       file_list_spec_F77='$wl-f,'
19555       case $with_aix_soname,$aix_use_runtimelinking in
19556       aix,*) ;; # traditional, no import file
19557       svr4,* | *,yes) # use import file
19558         # The Import File defines what to hardcode.
19559         hardcode_direct_F77=no
19560         hardcode_direct_absolute_F77=no
19561         ;;
19562       esac
19563
19564       if test yes = "$GCC"; then
19565         case $host_os in aix4.[012]|aix4.[012].*)
19566         # We only want to do this on AIX 4.2 and lower, the check
19567         # below for broken collect2 doesn't work under 4.3+
19568           collect2name=`$CC -print-prog-name=collect2`
19569           if test -f "$collect2name" &&
19570            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19571           then
19572           # We have reworked collect2
19573           :
19574           else
19575           # We have old collect2
19576           hardcode_direct_F77=unsupported
19577           # It fails to find uninstalled libraries when the uninstalled
19578           # path is not listed in the libpath.  Setting hardcode_minus_L
19579           # to unsupported forces relinking
19580           hardcode_minus_L_F77=yes
19581           hardcode_libdir_flag_spec_F77='-L$libdir'
19582           hardcode_libdir_separator_F77=
19583           fi
19584           ;;
19585         esac
19586         shared_flag='-shared'
19587         if test yes = "$aix_use_runtimelinking"; then
19588           shared_flag="$shared_flag "'$wl-G'
19589         fi
19590         # Need to ensure runtime linking is disabled for the traditional
19591         # shared library, or the linker may eventually find shared libraries
19592         # /with/ Import File - we do not want to mix them.
19593         shared_flag_aix='-shared'
19594         shared_flag_svr4='-shared $wl-G'
19595       else
19596         # not using gcc
19597         if test ia64 = "$host_cpu"; then
19598         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19599         # chokes on -Wl,-G. The following line is correct:
19600           shared_flag='-G'
19601         else
19602           if test yes = "$aix_use_runtimelinking"; then
19603             shared_flag='$wl-G'
19604           else
19605             shared_flag='$wl-bM:SRE'
19606           fi
19607           shared_flag_aix='$wl-bM:SRE'
19608           shared_flag_svr4='$wl-G'
19609         fi
19610       fi
19611
19612       export_dynamic_flag_spec_F77='$wl-bexpall'
19613       # It seems that -bexpall does not export symbols beginning with
19614       # underscore (_), so it is better to generate a list of symbols to export.
19615       always_export_symbols_F77=yes
19616       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19617         # Warning - without using the other runtime loading flags (-brtl),
19618         # -berok will link without error, but may produce a broken library.
19619         allow_undefined_flag_F77='-berok'
19620         # Determine the default libpath from the value encoded in an
19621         # empty executable.
19622         if test set = "${lt_cv_aix_libpath+set}"; then
19623   aix_libpath=$lt_cv_aix_libpath
19624 else
19625   if ${lt_cv_aix_libpath__F77+:} false; then :
19626   $as_echo_n "(cached) " >&6
19627 else
19628   cat > conftest.$ac_ext <<_ACEOF
19629       program main
19630
19631       end
19632 _ACEOF
19633 if ac_fn_f77_try_link "$LINENO"; then :
19634
19635   lt_aix_libpath_sed='
19636       /Import File Strings/,/^$/ {
19637           /^0/ {
19638               s/^0  *\([^ ]*\) *$/\1/
19639               p
19640           }
19641       }'
19642   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19643   # Check for a 64-bit object if we didn't find anything.
19644   if test -z "$lt_cv_aix_libpath__F77"; then
19645     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19646   fi
19647 fi
19648 rm -f core conftest.err conftest.$ac_objext \
19649     conftest$ac_exeext conftest.$ac_ext
19650   if test -z "$lt_cv_aix_libpath__F77"; then
19651     lt_cv_aix_libpath__F77=/usr/lib:/lib
19652   fi
19653
19654 fi
19655
19656   aix_libpath=$lt_cv_aix_libpath__F77
19657 fi
19658
19659         hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
19660         archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
19661       else
19662         if test ia64 = "$host_cpu"; then
19663           hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
19664           allow_undefined_flag_F77="-z nodefs"
19665           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"
19666         else
19667          # Determine the default libpath from the value encoded in an
19668          # empty executable.
19669          if test set = "${lt_cv_aix_libpath+set}"; then
19670   aix_libpath=$lt_cv_aix_libpath
19671 else
19672   if ${lt_cv_aix_libpath__F77+:} false; then :
19673   $as_echo_n "(cached) " >&6
19674 else
19675   cat > conftest.$ac_ext <<_ACEOF
19676       program main
19677
19678       end
19679 _ACEOF
19680 if ac_fn_f77_try_link "$LINENO"; then :
19681
19682   lt_aix_libpath_sed='
19683       /Import File Strings/,/^$/ {
19684           /^0/ {
19685               s/^0  *\([^ ]*\) *$/\1/
19686               p
19687           }
19688       }'
19689   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19690   # Check for a 64-bit object if we didn't find anything.
19691   if test -z "$lt_cv_aix_libpath__F77"; then
19692     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19693   fi
19694 fi
19695 rm -f core conftest.err conftest.$ac_objext \
19696     conftest$ac_exeext conftest.$ac_ext
19697   if test -z "$lt_cv_aix_libpath__F77"; then
19698     lt_cv_aix_libpath__F77=/usr/lib:/lib
19699   fi
19700
19701 fi
19702
19703   aix_libpath=$lt_cv_aix_libpath__F77
19704 fi
19705
19706          hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
19707           # Warning - without using the other run time loading flags,
19708           # -berok will link without error, but may produce a broken library.
19709           no_undefined_flag_F77=' $wl-bernotok'
19710           allow_undefined_flag_F77=' $wl-berok'
19711           if test yes = "$with_gnu_ld"; then
19712             # We only use this code for GNU lds that support --whole-archive.
19713             whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
19714           else
19715             # Exported symbols can be pulled into shared objects from archives
19716             whole_archive_flag_spec_F77='$convenience'
19717           fi
19718           archive_cmds_need_lc_F77=yes
19719           archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19720           # -brtl affects multiple linker settings, -berok does not and is overridden later
19721           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19722           if test svr4 != "$with_aix_soname"; then
19723             # This is similar to how AIX traditionally builds its shared libraries.
19724             archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
19725           fi
19726           if test aix != "$with_aix_soname"; then
19727             archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
19728           else
19729             # used by -dlpreopen to get the symbols
19730             archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19731           fi
19732           archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
19733         fi
19734       fi
19735       ;;
19736
19737     amigaos*)
19738       case $host_cpu in
19739       powerpc)
19740             # see comment about AmigaOS4 .so support
19741             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19742             archive_expsym_cmds_F77=''
19743         ;;
19744       m68k)
19745             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)'
19746             hardcode_libdir_flag_spec_F77='-L$libdir'
19747             hardcode_minus_L_F77=yes
19748         ;;
19749       esac
19750       ;;
19751
19752     bsdi[45]*)
19753       export_dynamic_flag_spec_F77=-rdynamic
19754       ;;
19755
19756     cygwin* | mingw* | pw32* | cegcc*)
19757       # When not using gcc, we currently assume that we are using
19758       # Microsoft Visual C++ or Intel C++ Compiler.
19759       # hardcode_libdir_flag_spec is actually meaningless, as there is
19760       # no search path for DLLs.
19761       case $cc_basename in
19762       cl* | icl*)
19763         # Native MSVC or ICC
19764         hardcode_libdir_flag_spec_F77=' '
19765         allow_undefined_flag_F77=unsupported
19766         always_export_symbols_F77=yes
19767         file_list_spec_F77='@'
19768         # Tell ltmain to make .lib files, not .a files.
19769         libext=lib
19770         # Tell ltmain to make .dll files, not .so files.
19771         shrext_cmds=.dll
19772         # FIXME: Setting linknames here is a bad hack.
19773         archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19774         archive_expsym_cmds_F77='if   test DEF = "`$SED -n     -e '\''s/^[       ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19775             cp "$export_symbols" "$output_objdir/$soname.def";
19776             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19777           else
19778             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19779           fi~
19780           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19781           linknames='
19782         # The linker will not automatically build a static lib if we build a DLL.
19783         # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
19784         enable_shared_with_static_runtimes_F77=yes
19785         exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19786         export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19787         # Don't use ranlib
19788         old_postinstall_cmds_F77='chmod 644 $oldlib'
19789         postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
19790           lt_tool_outputfile="@TOOL_OUTPUT@"~
19791           case $lt_outputfile in
19792             *.exe|*.EXE) ;;
19793             *)
19794               lt_outputfile=$lt_outputfile.exe
19795               lt_tool_outputfile=$lt_tool_outputfile.exe
19796               ;;
19797           esac~
19798           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19799             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19800             $RM "$lt_outputfile.manifest";
19801           fi'
19802         ;;
19803       *)
19804         # Assume MSVC and ICC wrapper
19805         hardcode_libdir_flag_spec_F77=' '
19806         allow_undefined_flag_F77=unsupported
19807         # Tell ltmain to make .lib files, not .a files.
19808         libext=lib
19809         # Tell ltmain to make .dll files, not .so files.
19810         shrext_cmds=.dll
19811         # FIXME: Setting linknames here is a bad hack.
19812         archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19813         # The linker will automatically build a .lib file if we build a DLL.
19814         old_archive_from_new_cmds_F77='true'
19815         # FIXME: Should let the user specify the lib program.
19816         old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19817         enable_shared_with_static_runtimes_F77=yes
19818         ;;
19819       esac
19820       ;;
19821
19822     darwin* | rhapsody*)
19823
19824
19825   archive_cmds_need_lc_F77=no
19826   hardcode_direct_F77=no
19827   hardcode_automatic_F77=yes
19828   hardcode_shlibpath_var_F77=unsupported
19829   if test yes = "$lt_cv_ld_force_load"; then
19830     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\"`'
19831     compiler_needs_object_F77=yes
19832   else
19833     whole_archive_flag_spec_F77=''
19834   fi
19835   link_all_deplibs_F77=yes
19836   allow_undefined_flag_F77=$_lt_dar_allow_undefined
19837   case $cc_basename in
19838      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19839      *) _lt_dar_can_shared=$GCC ;;
19840   esac
19841   if test yes = "$_lt_dar_can_shared"; then
19842     output_verbose_link_cmd=func_echo_all
19843     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"
19844     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19845     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"
19846     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"
19847
19848   else
19849   ld_shlibs_F77=no
19850   fi
19851
19852       ;;
19853
19854     dgux*)
19855       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19856       hardcode_libdir_flag_spec_F77='-L$libdir'
19857       hardcode_shlibpath_var_F77=no
19858       ;;
19859
19860     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19861     # support.  Future versions do this automatically, but an explicit c++rt0.o
19862     # does not break anything, and helps significantly (at the cost of a little
19863     # extra space).
19864     freebsd2.2*)
19865       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19866       hardcode_libdir_flag_spec_F77='-R$libdir'
19867       hardcode_direct_F77=yes
19868       hardcode_shlibpath_var_F77=no
19869       ;;
19870
19871     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19872     freebsd2.*)
19873       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19874       hardcode_direct_F77=yes
19875       hardcode_minus_L_F77=yes
19876       hardcode_shlibpath_var_F77=no
19877       ;;
19878
19879     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19880     freebsd* | dragonfly* | midnightbsd*)
19881       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19882       hardcode_libdir_flag_spec_F77='-R$libdir'
19883       hardcode_direct_F77=yes
19884       hardcode_shlibpath_var_F77=no
19885       ;;
19886
19887     hpux9*)
19888       if test yes = "$GCC"; then
19889         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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19890       else
19891         archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19892       fi
19893       hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19894       hardcode_libdir_separator_F77=:
19895       hardcode_direct_F77=yes
19896
19897       # hardcode_minus_L: Not really in the search PATH,
19898       # but as the default location of the library.
19899       hardcode_minus_L_F77=yes
19900       export_dynamic_flag_spec_F77='$wl-E'
19901       ;;
19902
19903     hpux10*)
19904       if test yes,no = "$GCC,$with_gnu_ld"; then
19905         archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19906       else
19907         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19908       fi
19909       if test no = "$with_gnu_ld"; then
19910         hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19911         hardcode_libdir_separator_F77=:
19912         hardcode_direct_F77=yes
19913         hardcode_direct_absolute_F77=yes
19914         export_dynamic_flag_spec_F77='$wl-E'
19915         # hardcode_minus_L: Not really in the search PATH,
19916         # but as the default location of the library.
19917         hardcode_minus_L_F77=yes
19918       fi
19919       ;;
19920
19921     hpux11*)
19922       if test yes,no = "$GCC,$with_gnu_ld"; then
19923         case $host_cpu in
19924         hppa*64*)
19925           archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19926           ;;
19927         ia64*)
19928           archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19929           ;;
19930         *)
19931           archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19932           ;;
19933         esac
19934       else
19935         case $host_cpu in
19936         hppa*64*)
19937           archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19938           ;;
19939         ia64*)
19940           archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19941           ;;
19942         *)
19943         archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19944           ;;
19945         esac
19946       fi
19947       if test no = "$with_gnu_ld"; then
19948         hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19949         hardcode_libdir_separator_F77=:
19950
19951         case $host_cpu in
19952         hppa*64*|ia64*)
19953           hardcode_direct_F77=no
19954           hardcode_shlibpath_var_F77=no
19955           ;;
19956         *)
19957           hardcode_direct_F77=yes
19958           hardcode_direct_absolute_F77=yes
19959           export_dynamic_flag_spec_F77='$wl-E'
19960
19961           # hardcode_minus_L: Not really in the search PATH,
19962           # but as the default location of the library.
19963           hardcode_minus_L_F77=yes
19964           ;;
19965         esac
19966       fi
19967       ;;
19968
19969     irix5* | irix6* | nonstopux*)
19970       if test yes = "$GCC"; then
19971         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'
19972         # Try to use the -exported_symbol ld option, if it does not
19973         # work, assume that -exports_file does not work either and
19974         # implicitly export all symbols.
19975         # This should be the same for all languages, so no per-tag cache variable.
19976         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19977 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19978 if ${lt_cv_irix_exported_symbol+:} false; then :
19979   $as_echo_n "(cached) " >&6
19980 else
19981   save_LDFLAGS=$LDFLAGS
19982            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
19983            cat > conftest.$ac_ext <<_ACEOF
19984
19985       subroutine foo
19986       end
19987 _ACEOF
19988 if ac_fn_f77_try_link "$LINENO"; then :
19989   lt_cv_irix_exported_symbol=yes
19990 else
19991   lt_cv_irix_exported_symbol=no
19992 fi
19993 rm -f core conftest.err conftest.$ac_objext \
19994     conftest$ac_exeext conftest.$ac_ext
19995            LDFLAGS=$save_LDFLAGS
19996 fi
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19998 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
19999         if test yes = "$lt_cv_irix_exported_symbol"; then
20000           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'
20001         fi
20002       else
20003         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'
20004         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'
20005       fi
20006       archive_cmds_need_lc_F77='no'
20007       hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
20008       hardcode_libdir_separator_F77=:
20009       inherit_rpath_F77=yes
20010       link_all_deplibs_F77=yes
20011       ;;
20012
20013     linux*)
20014       case $cc_basename in
20015       tcc*)
20016         # Fabrice Bellard et al's Tiny C Compiler
20017         ld_shlibs_F77=yes
20018         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20019         ;;
20020       esac
20021       ;;
20022
20023     netbsd*)
20024       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20025         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20026       else
20027         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20028       fi
20029       hardcode_libdir_flag_spec_F77='-R$libdir'
20030       hardcode_direct_F77=yes
20031       hardcode_shlibpath_var_F77=no
20032       ;;
20033
20034     newsos6)
20035       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20036       hardcode_direct_F77=yes
20037       hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
20038       hardcode_libdir_separator_F77=:
20039       hardcode_shlibpath_var_F77=no
20040       ;;
20041
20042     *nto* | *qnx*)
20043       ;;
20044
20045     openbsd* | bitrig*)
20046       if test -f /usr/libexec/ld.so; then
20047         hardcode_direct_F77=yes
20048         hardcode_shlibpath_var_F77=no
20049         hardcode_direct_absolute_F77=yes
20050         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20051           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20052           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20053           hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
20054           export_dynamic_flag_spec_F77='$wl-E'
20055         else
20056           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20057           hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
20058         fi
20059       else
20060         ld_shlibs_F77=no
20061       fi
20062       ;;
20063
20064     os2*)
20065       hardcode_libdir_flag_spec_F77='-L$libdir'
20066       hardcode_minus_L_F77=yes
20067       allow_undefined_flag_F77=unsupported
20068       shrext_cmds=.dll
20069       archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20070         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20071         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20072         $ECHO EXPORTS >> $output_objdir/$libname.def~
20073         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20074         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20075         emximp -o $lib $output_objdir/$libname.def'
20076       archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20077         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20078         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20079         $ECHO EXPORTS >> $output_objdir/$libname.def~
20080         prefix_cmds="$SED"~
20081         if test EXPORTS = "`$SED 1q $export_symbols`"; then
20082           prefix_cmds="$prefix_cmds -e 1d";
20083         fi~
20084         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20085         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20086         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20087         emximp -o $lib $output_objdir/$libname.def'
20088       old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20089       enable_shared_with_static_runtimes_F77=yes
20090       file_list_spec_F77='@'
20091       ;;
20092
20093     osf3*)
20094       if test yes = "$GCC"; then
20095         allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
20096         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'
20097       else
20098         allow_undefined_flag_F77=' -expect_unresolved \*'
20099         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'
20100       fi
20101       archive_cmds_need_lc_F77='no'
20102       hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
20103       hardcode_libdir_separator_F77=:
20104       ;;
20105
20106     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20107       if test yes = "$GCC"; then
20108         allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
20109         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'
20110         hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
20111       else
20112         allow_undefined_flag_F77=' -expect_unresolved \*'
20113         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'
20114         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~
20115           $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'
20116
20117         # Both c and cxx compiler support -rpath directly
20118         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20119       fi
20120       archive_cmds_need_lc_F77='no'
20121       hardcode_libdir_separator_F77=:
20122       ;;
20123
20124     solaris*)
20125       no_undefined_flag_F77=' -z defs'
20126       if test yes = "$GCC"; then
20127         wlarc='$wl'
20128         archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20129         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20130           $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'
20131       else
20132         case `$CC -V 2>&1` in
20133         *"Compilers 5.0"*)
20134           wlarc=''
20135           archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20136           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20137             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20138           ;;
20139         *)
20140           wlarc='$wl'
20141           archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20142           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20143             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20144           ;;
20145         esac
20146       fi
20147       hardcode_libdir_flag_spec_F77='-R$libdir'
20148       hardcode_shlibpath_var_F77=no
20149       case $host_os in
20150       solaris2.[0-5] | solaris2.[0-5].*) ;;
20151       *)
20152         # The compiler driver will combine and reorder linker options,
20153         # but understands '-z linker_flag'.  GCC discards it without '$wl',
20154         # but is careful enough not to reorder.
20155         # Supported since Solaris 2.6 (maybe 2.5.1?)
20156         if test yes = "$GCC"; then
20157           whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20158         else
20159           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
20160         fi
20161         ;;
20162       esac
20163       link_all_deplibs_F77=yes
20164       ;;
20165
20166     sunos4*)
20167       if test sequent = "$host_vendor"; then
20168         # Use $CC to link under sequent, because it throws in some extra .o
20169         # files that make .init and .fini sections work.
20170         archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20171       else
20172         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20173       fi
20174       hardcode_libdir_flag_spec_F77='-L$libdir'
20175       hardcode_direct_F77=yes
20176       hardcode_minus_L_F77=yes
20177       hardcode_shlibpath_var_F77=no
20178       ;;
20179
20180     sysv4)
20181       case $host_vendor in
20182         sni)
20183           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20184           hardcode_direct_F77=yes # is this really true???
20185         ;;
20186         siemens)
20187           ## LD is ld it makes a PLAMLIB
20188           ## CC just makes a GrossModule.
20189           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20190           reload_cmds_F77='$CC -r -o $output$reload_objs'
20191           hardcode_direct_F77=no
20192         ;;
20193         motorola)
20194           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20195           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20196         ;;
20197       esac
20198       runpath_var='LD_RUN_PATH'
20199       hardcode_shlibpath_var_F77=no
20200       ;;
20201
20202     sysv4.3*)
20203       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20204       hardcode_shlibpath_var_F77=no
20205       export_dynamic_flag_spec_F77='-Bexport'
20206       ;;
20207
20208     sysv4*MP*)
20209       if test -d /usr/nec; then
20210         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20211         hardcode_shlibpath_var_F77=no
20212         runpath_var=LD_RUN_PATH
20213         hardcode_runpath_var=yes
20214         ld_shlibs_F77=yes
20215       fi
20216       ;;
20217
20218     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20219       no_undefined_flag_F77='$wl-z,text'
20220       archive_cmds_need_lc_F77=no
20221       hardcode_shlibpath_var_F77=no
20222       runpath_var='LD_RUN_PATH'
20223
20224       if test yes = "$GCC"; then
20225         archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20226         archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20227       else
20228         archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20229         archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20230       fi
20231       ;;
20232
20233     sysv5* | sco3.2v5* | sco5v6*)
20234       # Note: We CANNOT use -z defs as we might desire, because we do not
20235       # link with -lc, and that would cause any symbols used from libc to
20236       # always be unresolved, which means just about no library would
20237       # ever link correctly.  If we're not using GNU ld we use -z text
20238       # though, which does catch some bad symbols but isn't as heavy-handed
20239       # as -z defs.
20240       no_undefined_flag_F77='$wl-z,text'
20241       allow_undefined_flag_F77='$wl-z,nodefs'
20242       archive_cmds_need_lc_F77=no
20243       hardcode_shlibpath_var_F77=no
20244       hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
20245       hardcode_libdir_separator_F77=':'
20246       link_all_deplibs_F77=yes
20247       export_dynamic_flag_spec_F77='$wl-Bexport'
20248       runpath_var='LD_RUN_PATH'
20249
20250       if test yes = "$GCC"; then
20251         archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20252         archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20253       else
20254         archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20255         archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20256       fi
20257       ;;
20258
20259     uts4*)
20260       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20261       hardcode_libdir_flag_spec_F77='-L$libdir'
20262       hardcode_shlibpath_var_F77=no
20263       ;;
20264
20265     *)
20266       ld_shlibs_F77=no
20267       ;;
20268     esac
20269
20270     if test sni = "$host_vendor"; then
20271       case $host in
20272       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20273         export_dynamic_flag_spec_F77='$wl-Blargedynsym'
20274         ;;
20275       esac
20276     fi
20277   fi
20278
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
20280 $as_echo "$ld_shlibs_F77" >&6; }
20281 test no = "$ld_shlibs_F77" && can_build_shared=no
20282
20283 with_gnu_ld_F77=$with_gnu_ld
20284
20285
20286
20287
20288
20289
20290 #
20291 # Do we need to explicitly link libc?
20292 #
20293 case "x$archive_cmds_need_lc_F77" in
20294 x|xyes)
20295   # Assume -lc should be added
20296   archive_cmds_need_lc_F77=yes
20297
20298   if test yes,yes = "$GCC,$enable_shared"; then
20299     case $archive_cmds_F77 in
20300     *'~'*)
20301       # FIXME: we may have to deal with multi-command sequences.
20302       ;;
20303     '$CC '*)
20304       # Test whether the compiler implicitly links with -lc since on some
20305       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20306       # to ld, don't add -lc before -lgcc.
20307       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20308 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20309 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
20310   $as_echo_n "(cached) " >&6
20311 else
20312   $RM conftest*
20313         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20314
20315         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20316   (eval $ac_compile) 2>&5
20317   ac_status=$?
20318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20319   test $ac_status = 0; } 2>conftest.err; then
20320           soname=conftest
20321           lib=conftest
20322           libobjs=conftest.$ac_objext
20323           deplibs=
20324           wl=$lt_prog_compiler_wl_F77
20325           pic_flag=$lt_prog_compiler_pic_F77
20326           compiler_flags=-v
20327           linker_flags=-v
20328           verstring=
20329           output_objdir=.
20330           libname=conftest
20331           lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20332           allow_undefined_flag_F77=
20333           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20334   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20335   ac_status=$?
20336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20337   test $ac_status = 0; }
20338           then
20339             lt_cv_archive_cmds_need_lc_F77=no
20340           else
20341             lt_cv_archive_cmds_need_lc_F77=yes
20342           fi
20343           allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20344         else
20345           cat conftest.err 1>&5
20346         fi
20347         $RM conftest*
20348
20349 fi
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
20351 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
20352       archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
20353       ;;
20354     esac
20355   fi
20356   ;;
20357 esac
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20421 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20422
20423 library_names_spec=
20424 libname_spec='lib$name'
20425 soname_spec=
20426 shrext_cmds=.so
20427 postinstall_cmds=
20428 postuninstall_cmds=
20429 finish_cmds=
20430 finish_eval=
20431 shlibpath_var=
20432 shlibpath_overrides_runpath=unknown
20433 version_type=none
20434 dynamic_linker="$host_os ld.so"
20435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20436 need_lib_prefix=unknown
20437 hardcode_into_libs=no
20438
20439 # when you set need_version to no, make sure it does not cause -set_version
20440 # flags to be left without arguments
20441 need_version=unknown
20442
20443
20444
20445 case $host_os in
20446 aix3*)
20447   version_type=linux # correct to gnu/linux during the next big refactor
20448   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
20449   shlibpath_var=LIBPATH
20450
20451   # AIX 3 has no versioning support, so we append a major version to the name.
20452   soname_spec='$libname$release$shared_ext$major'
20453   ;;
20454
20455 aix[4-9]*)
20456   version_type=linux # correct to gnu/linux during the next big refactor
20457   need_lib_prefix=no
20458   need_version=no
20459   hardcode_into_libs=yes
20460   if test ia64 = "$host_cpu"; then
20461     # AIX 5 supports IA64
20462     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
20463     shlibpath_var=LD_LIBRARY_PATH
20464   else
20465     # With GCC up to 2.95.x, collect2 would create an import file
20466     # for dependence libraries.  The import file would start with
20467     # the line '#! .'.  This would cause the generated library to
20468     # depend on '.', always an invalid library.  This was fixed in
20469     # development snapshots of GCC prior to 3.0.
20470     case $host_os in
20471       aix4 | aix4.[01] | aix4.[01].*)
20472       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20473            echo ' yes '
20474            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
20475         :
20476       else
20477         can_build_shared=no
20478       fi
20479       ;;
20480     esac
20481     # Using Import Files as archive members, it is possible to support
20482     # filename-based versioning of shared library archives on AIX. While
20483     # this would work for both with and without runtime linking, it will
20484     # prevent static linking of such archives. So we do filename-based
20485     # shared library versioning with .so extension only, which is used
20486     # when both runtime linking and shared linking is enabled.
20487     # Unfortunately, runtime linking may impact performance, so we do
20488     # not want this to be the default eventually. Also, we use the
20489     # versioned .so libs for executables only if there is the -brtl
20490     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
20491     # To allow for filename-based versioning support, we need to create
20492     # libNAME.so.V as an archive file, containing:
20493     # *) an Import File, referring to the versioned filename of the
20494     #    archive as well as the shared archive member, telling the
20495     #    bitwidth (32 or 64) of that shared object, and providing the
20496     #    list of exported symbols of that shared object, eventually
20497     #    decorated with the 'weak' keyword
20498     # *) the shared object with the F_LOADONLY flag set, to really avoid
20499     #    it being seen by the linker.
20500     # At run time we better use the real file rather than another symlink,
20501     # but for link time we create the symlink libNAME.so -> libNAME.so.V
20502
20503     case $with_aix_soname,$aix_use_runtimelinking in
20504     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
20505     # soname into executable. Probably we can add versioning support to
20506     # collect2, so additional links can be useful in future.
20507     aix,yes) # traditional libtool
20508       dynamic_linker='AIX unversionable lib.so'
20509       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20510       # instead of lib<name>.a to let people know that these are not
20511       # typical AIX shared libraries.
20512       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20513       ;;
20514     aix,no) # traditional AIX only
20515       dynamic_linker='AIX lib.a(lib.so.V)'
20516       # We preserve .a as extension for shared libraries through AIX4.2
20517       # and later when we are not doing run time linking.
20518       library_names_spec='$libname$release.a $libname.a'
20519       soname_spec='$libname$release$shared_ext$major'
20520       ;;
20521     svr4,*) # full svr4 only
20522       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
20523       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20524       # We do not specify a path in Import Files, so LIBPATH fires.
20525       shlibpath_overrides_runpath=yes
20526       ;;
20527     *,yes) # both, prefer svr4
20528       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
20529       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20530       # unpreferred sharedlib libNAME.a needs extra handling
20531       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
20532       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
20533       # We do not specify a path in Import Files, so LIBPATH fires.
20534       shlibpath_overrides_runpath=yes
20535       ;;
20536     *,no) # both, prefer aix
20537       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
20538       library_names_spec='$libname$release.a $libname.a'
20539       soname_spec='$libname$release$shared_ext$major'
20540       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
20541       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
20542       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
20543       ;;
20544     esac
20545     shlibpath_var=LIBPATH
20546   fi
20547   ;;
20548
20549 amigaos*)
20550   case $host_cpu in
20551   powerpc)
20552     # Since July 2007 AmigaOS4 officially supports .so libraries.
20553     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20554     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20555     ;;
20556   m68k)
20557     library_names_spec='$libname.ixlibrary $libname.a'
20558     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20559     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
20560     ;;
20561   esac
20562   ;;
20563
20564 beos*)
20565   library_names_spec='$libname$shared_ext'
20566   dynamic_linker="$host_os ld.so"
20567   shlibpath_var=LIBRARY_PATH
20568   ;;
20569
20570 bsdi[45]*)
20571   version_type=linux # correct to gnu/linux during the next big refactor
20572   need_version=no
20573   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20574   soname_spec='$libname$release$shared_ext$major'
20575   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20576   shlibpath_var=LD_LIBRARY_PATH
20577   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20578   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20579   # the default ld.so.conf also contains /usr/contrib/lib and
20580   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20581   # libtool to hard-code these into programs
20582   ;;
20583
20584 cygwin* | mingw* | pw32* | cegcc*)
20585   version_type=windows
20586   shrext_cmds=.dll
20587   need_version=no
20588   need_lib_prefix=no
20589
20590   case $GCC,$cc_basename in
20591   yes,*)
20592     # gcc
20593     library_names_spec='$libname.dll.a'
20594     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20595     postinstall_cmds='base_file=`basename \$file`~
20596       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20597       dldir=$destdir/`dirname \$dlpath`~
20598       test -d \$dldir || mkdir -p \$dldir~
20599       $install_prog $dir/$dlname \$dldir/$dlname~
20600       chmod a+x \$dldir/$dlname~
20601       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20602         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20603       fi'
20604     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20605       dlpath=$dir/\$dldll~
20606        $RM \$dlpath'
20607     shlibpath_overrides_runpath=yes
20608
20609     case $host_os in
20610     cygwin*)
20611       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20612       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20613
20614       ;;
20615     mingw* | cegcc*)
20616       # MinGW DLLs use traditional 'lib' prefix
20617       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20618       ;;
20619     pw32*)
20620       # pw32 DLLs use 'pw' prefix rather than 'lib'
20621       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20622       ;;
20623     esac
20624     dynamic_linker='Win32 ld.exe'
20625     ;;
20626
20627   *,cl* | *,icl*)
20628     # Native MSVC or ICC
20629     libname_spec='$name'
20630     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20631     library_names_spec='$libname.dll.lib'
20632
20633     case $build_os in
20634     mingw*)
20635       sys_lib_search_path_spec=
20636       lt_save_ifs=$IFS
20637       IFS=';'
20638       for lt_path in $LIB
20639       do
20640         IFS=$lt_save_ifs
20641         # Let DOS variable expansion print the short 8.3 style file name.
20642         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20643         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20644       done
20645       IFS=$lt_save_ifs
20646       # Convert to MSYS style.
20647       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20648       ;;
20649     cygwin*)
20650       # Convert to unix form, then to dos form, then back to unix form
20651       # but this time dos style (no spaces!) so that the unix form looks
20652       # like /cygdrive/c/PROGRA~1:/cygdr...
20653       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20654       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20655       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20656       ;;
20657     *)
20658       sys_lib_search_path_spec=$LIB
20659       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20660         # It is most probably a Windows format PATH.
20661         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20662       else
20663         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20664       fi
20665       # FIXME: find the short name or the path components, as spaces are
20666       # common. (e.g. "Program Files" -> "PROGRA~1")
20667       ;;
20668     esac
20669
20670     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20671     postinstall_cmds='base_file=`basename \$file`~
20672       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20673       dldir=$destdir/`dirname \$dlpath`~
20674       test -d \$dldir || mkdir -p \$dldir~
20675       $install_prog $dir/$dlname \$dldir/$dlname'
20676     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20677       dlpath=$dir/\$dldll~
20678        $RM \$dlpath'
20679     shlibpath_overrides_runpath=yes
20680     dynamic_linker='Win32 link.exe'
20681     ;;
20682
20683   *)
20684     # Assume MSVC and ICC wrapper
20685     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
20686     dynamic_linker='Win32 ld.exe'
20687     ;;
20688   esac
20689   # FIXME: first we should search . and the directory the executable is in
20690   shlibpath_var=PATH
20691   ;;
20692
20693 darwin* | rhapsody*)
20694   dynamic_linker="$host_os dyld"
20695   version_type=darwin
20696   need_lib_prefix=no
20697   need_version=no
20698   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
20699   soname_spec='$libname$release$major$shared_ext'
20700   shlibpath_overrides_runpath=yes
20701   shlibpath_var=DYLD_LIBRARY_PATH
20702   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20703
20704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20705   ;;
20706
20707 dgux*)
20708   version_type=linux # correct to gnu/linux during the next big refactor
20709   need_lib_prefix=no
20710   need_version=no
20711   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20712   soname_spec='$libname$release$shared_ext$major'
20713   shlibpath_var=LD_LIBRARY_PATH
20714   ;;
20715
20716 freebsd* | dragonfly* | midnightbsd*)
20717   # DragonFly does not have aout.  When/if they implement a new
20718   # versioning mechanism, adjust this.
20719   if test -x /usr/bin/objformat; then
20720     objformat=`/usr/bin/objformat`
20721   else
20722     case $host_os in
20723     freebsd[23].*) objformat=aout ;;
20724     *) objformat=elf ;;
20725     esac
20726   fi
20727   version_type=freebsd-$objformat
20728   case $version_type in
20729     freebsd-elf*)
20730       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20731       soname_spec='$libname$release$shared_ext$major'
20732       need_version=no
20733       need_lib_prefix=no
20734       ;;
20735     freebsd-*)
20736       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20737       need_version=yes
20738       ;;
20739   esac
20740   shlibpath_var=LD_LIBRARY_PATH
20741   case $host_os in
20742   freebsd2.*)
20743     shlibpath_overrides_runpath=yes
20744     ;;
20745   freebsd3.[01]* | freebsdelf3.[01]*)
20746     shlibpath_overrides_runpath=yes
20747     hardcode_into_libs=yes
20748     ;;
20749   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20750   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20751     shlibpath_overrides_runpath=no
20752     hardcode_into_libs=yes
20753     ;;
20754   *) # from 4.6 on, and DragonFly
20755     shlibpath_overrides_runpath=yes
20756     hardcode_into_libs=yes
20757     ;;
20758   esac
20759   ;;
20760
20761 haiku*)
20762   version_type=linux # correct to gnu/linux during the next big refactor
20763   need_lib_prefix=no
20764   need_version=no
20765   dynamic_linker="$host_os runtime_loader"
20766   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20767   soname_spec='$libname$release$shared_ext$major'
20768   shlibpath_var=LIBRARY_PATH
20769   shlibpath_overrides_runpath=no
20770   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20771   hardcode_into_libs=yes
20772   ;;
20773
20774 hpux9* | hpux10* | hpux11*)
20775   # Give a soname corresponding to the major version so that dld.sl refuses to
20776   # link against other versions.
20777   version_type=sunos
20778   need_lib_prefix=no
20779   need_version=no
20780   case $host_cpu in
20781   ia64*)
20782     shrext_cmds='.so'
20783     hardcode_into_libs=yes
20784     dynamic_linker="$host_os dld.so"
20785     shlibpath_var=LD_LIBRARY_PATH
20786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20787     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20788     soname_spec='$libname$release$shared_ext$major'
20789     if test 32 = "$HPUX_IA64_MODE"; then
20790       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20791       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20792     else
20793       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20794       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20795     fi
20796     ;;
20797   hppa*64*)
20798     shrext_cmds='.sl'
20799     hardcode_into_libs=yes
20800     dynamic_linker="$host_os dld.sl"
20801     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20803     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20804     soname_spec='$libname$release$shared_ext$major'
20805     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20807     ;;
20808   *)
20809     shrext_cmds='.sl'
20810     dynamic_linker="$host_os dld.sl"
20811     shlibpath_var=SHLIB_PATH
20812     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20813     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20814     soname_spec='$libname$release$shared_ext$major'
20815     ;;
20816   esac
20817   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20818   postinstall_cmds='chmod 555 $lib'
20819   # or fails outright, so override atomically:
20820   install_override_mode=555
20821   ;;
20822
20823 interix[3-9]*)
20824   version_type=linux # correct to gnu/linux during the next big refactor
20825   need_lib_prefix=no
20826   need_version=no
20827   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20828   soname_spec='$libname$release$shared_ext$major'
20829   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20830   shlibpath_var=LD_LIBRARY_PATH
20831   shlibpath_overrides_runpath=no
20832   hardcode_into_libs=yes
20833   ;;
20834
20835 irix5* | irix6* | nonstopux*)
20836   case $host_os in
20837     nonstopux*) version_type=nonstopux ;;
20838     *)
20839         if test yes = "$lt_cv_prog_gnu_ld"; then
20840                 version_type=linux # correct to gnu/linux during the next big refactor
20841         else
20842                 version_type=irix
20843         fi ;;
20844   esac
20845   need_lib_prefix=no
20846   need_version=no
20847   soname_spec='$libname$release$shared_ext$major'
20848   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20849   case $host_os in
20850   irix5* | nonstopux*)
20851     libsuff= shlibsuff=
20852     ;;
20853   *)
20854     case $LD in # libtool.m4 will add one of these switches to LD
20855     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20856       libsuff= shlibsuff= libmagic=32-bit;;
20857     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20858       libsuff=32 shlibsuff=N32 libmagic=N32;;
20859     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20860       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20861     *) libsuff= shlibsuff= libmagic=never-match;;
20862     esac
20863     ;;
20864   esac
20865   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20866   shlibpath_overrides_runpath=no
20867   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20868   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20869   hardcode_into_libs=yes
20870   ;;
20871
20872 # No shared lib support for Linux oldld, aout, or coff.
20873 linux*oldld* | linux*aout* | linux*coff*)
20874   dynamic_linker=no
20875   ;;
20876
20877 linux*android*)
20878   version_type=none # Android doesn't support versioned libraries.
20879   need_lib_prefix=no
20880   need_version=no
20881   library_names_spec='$libname$release$shared_ext'
20882   soname_spec='$libname$release$shared_ext'
20883   finish_cmds=
20884   shlibpath_var=LD_LIBRARY_PATH
20885   shlibpath_overrides_runpath=yes
20886
20887   # This implies no fast_install, which is unacceptable.
20888   # Some rework will be needed to allow for fast_install
20889   # before this can be enabled.
20890   hardcode_into_libs=yes
20891
20892   dynamic_linker='Android linker'
20893   # Don't embed -rpath directories since the linker doesn't support them.
20894   hardcode_libdir_flag_spec_F77='-L$libdir'
20895   ;;
20896
20897 # This must be glibc/ELF.
20898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20899   version_type=linux # correct to gnu/linux during the next big refactor
20900   need_lib_prefix=no
20901   need_version=no
20902   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20903   soname_spec='$libname$release$shared_ext$major'
20904   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20905   shlibpath_var=LD_LIBRARY_PATH
20906   shlibpath_overrides_runpath=no
20907
20908   # Some binutils ld are patched to set DT_RUNPATH
20909   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20910   $as_echo_n "(cached) " >&6
20911 else
20912   lt_cv_shlibpath_overrides_runpath=no
20913     save_LDFLAGS=$LDFLAGS
20914     save_libdir=$libdir
20915     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
20916          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
20917     cat > conftest.$ac_ext <<_ACEOF
20918       program main
20919
20920       end
20921 _ACEOF
20922 if ac_fn_f77_try_link "$LINENO"; then :
20923   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20924   lt_cv_shlibpath_overrides_runpath=yes
20925 fi
20926 fi
20927 rm -f core conftest.err conftest.$ac_objext \
20928     conftest$ac_exeext conftest.$ac_ext
20929     LDFLAGS=$save_LDFLAGS
20930     libdir=$save_libdir
20931
20932 fi
20933
20934   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20935
20936   # This implies no fast_install, which is unacceptable.
20937   # Some rework will be needed to allow for fast_install
20938   # before this can be enabled.
20939   hardcode_into_libs=yes
20940
20941   # Ideally, we could use ldconfig to report *all* directores which are
20942   # searched for libraries, however this is still not possible.  Aside from not
20943   # being certain /sbin/ldconfig is available, command
20944   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20945   # even though it is searched at run-time.  Try to do the best guess by
20946   # appending ld.so.conf contents (and includes) to the search path.
20947   if test -f /etc/ld.so.conf; then
20948     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' ' '`
20949     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20950   fi
20951
20952   # We used to test for /lib/ld.so.1 and disable shared libraries on
20953   # powerpc, because MkLinux only supported shared libraries with the
20954   # GNU dynamic linker.  Since this was broken with cross compilers,
20955   # most powerpc-linux boxes support dynamic linking these days and
20956   # people can always --disable-shared, the test was removed, and we
20957   # assume the GNU/Linux dynamic linker is in use.
20958   dynamic_linker='GNU/Linux ld.so'
20959   ;;
20960
20961 netbsd*)
20962   version_type=sunos
20963   need_lib_prefix=no
20964   need_version=no
20965   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20966     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20967     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20968     dynamic_linker='NetBSD (a.out) ld.so'
20969   else
20970     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20971     soname_spec='$libname$release$shared_ext$major'
20972     dynamic_linker='NetBSD ld.elf_so'
20973   fi
20974   shlibpath_var=LD_LIBRARY_PATH
20975   shlibpath_overrides_runpath=yes
20976   hardcode_into_libs=yes
20977   ;;
20978
20979 newsos6)
20980   version_type=linux # correct to gnu/linux during the next big refactor
20981   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20982   shlibpath_var=LD_LIBRARY_PATH
20983   shlibpath_overrides_runpath=yes
20984   ;;
20985
20986 *nto* | *qnx*)
20987   version_type=qnx
20988   need_lib_prefix=no
20989   need_version=no
20990   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20991   soname_spec='$libname$release$shared_ext$major'
20992   shlibpath_var=LD_LIBRARY_PATH
20993   shlibpath_overrides_runpath=no
20994   hardcode_into_libs=yes
20995   dynamic_linker='ldqnx.so'
20996   ;;
20997
20998 openbsd* | bitrig*)
20999   version_type=sunos
21000   sys_lib_dlsearch_path_spec=/usr/lib
21001   need_lib_prefix=no
21002   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21003     need_version=no
21004   else
21005     need_version=yes
21006   fi
21007   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21008   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21009   shlibpath_var=LD_LIBRARY_PATH
21010   shlibpath_overrides_runpath=yes
21011   ;;
21012
21013 os2*)
21014   libname_spec='$name'
21015   version_type=windows
21016   shrext_cmds=.dll
21017   need_version=no
21018   need_lib_prefix=no
21019   # OS/2 can only load a DLL with a base name of 8 characters or less.
21020   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21021     v=$($ECHO $release$versuffix | tr -d .-);
21022     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21023     $ECHO $n$v`$shared_ext'
21024   library_names_spec='${libname}_dll.$libext'
21025   dynamic_linker='OS/2 ld.exe'
21026   shlibpath_var=BEGINLIBPATH
21027   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21028   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21029   postinstall_cmds='base_file=`basename \$file`~
21030     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21031     dldir=$destdir/`dirname \$dlpath`~
21032     test -d \$dldir || mkdir -p \$dldir~
21033     $install_prog $dir/$dlname \$dldir/$dlname~
21034     chmod a+x \$dldir/$dlname~
21035     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21036       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21037     fi'
21038   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21039     dlpath=$dir/\$dldll~
21040     $RM \$dlpath'
21041   ;;
21042
21043 osf3* | osf4* | osf5*)
21044   version_type=osf
21045   need_lib_prefix=no
21046   need_version=no
21047   soname_spec='$libname$release$shared_ext$major'
21048   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21049   shlibpath_var=LD_LIBRARY_PATH
21050   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21051   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21052   ;;
21053
21054 rdos*)
21055   dynamic_linker=no
21056   ;;
21057
21058 solaris*)
21059   version_type=linux # correct to gnu/linux during the next big refactor
21060   need_lib_prefix=no
21061   need_version=no
21062   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21063   soname_spec='$libname$release$shared_ext$major'
21064   shlibpath_var=LD_LIBRARY_PATH
21065   shlibpath_overrides_runpath=yes
21066   hardcode_into_libs=yes
21067   # ldd complains unless libraries are executable
21068   postinstall_cmds='chmod +x $lib'
21069   ;;
21070
21071 sunos4*)
21072   version_type=sunos
21073   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21074   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21075   shlibpath_var=LD_LIBRARY_PATH
21076   shlibpath_overrides_runpath=yes
21077   if test yes = "$with_gnu_ld"; then
21078     need_lib_prefix=no
21079   fi
21080   need_version=yes
21081   ;;
21082
21083 sysv4 | sysv4.3*)
21084   version_type=linux # correct to gnu/linux during the next big refactor
21085   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21086   soname_spec='$libname$release$shared_ext$major'
21087   shlibpath_var=LD_LIBRARY_PATH
21088   case $host_vendor in
21089     sni)
21090       shlibpath_overrides_runpath=no
21091       need_lib_prefix=no
21092       runpath_var=LD_RUN_PATH
21093       ;;
21094     siemens)
21095       need_lib_prefix=no
21096       ;;
21097     motorola)
21098       need_lib_prefix=no
21099       need_version=no
21100       shlibpath_overrides_runpath=no
21101       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21102       ;;
21103   esac
21104   ;;
21105
21106 sysv4*MP*)
21107   if test -d /usr/nec; then
21108     version_type=linux # correct to gnu/linux during the next big refactor
21109     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21110     soname_spec='$libname$shared_ext.$major'
21111     shlibpath_var=LD_LIBRARY_PATH
21112   fi
21113   ;;
21114
21115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21116   version_type=sco
21117   need_lib_prefix=no
21118   need_version=no
21119   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21120   soname_spec='$libname$release$shared_ext$major'
21121   shlibpath_var=LD_LIBRARY_PATH
21122   shlibpath_overrides_runpath=yes
21123   hardcode_into_libs=yes
21124   if test yes = "$with_gnu_ld"; then
21125     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21126   else
21127     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21128     case $host_os in
21129       sco3.2v5*)
21130         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21131         ;;
21132     esac
21133   fi
21134   sys_lib_dlsearch_path_spec='/usr/lib'
21135   ;;
21136
21137 tpf*)
21138   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21139   version_type=linux # correct to gnu/linux during the next big refactor
21140   need_lib_prefix=no
21141   need_version=no
21142   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21143   shlibpath_var=LD_LIBRARY_PATH
21144   shlibpath_overrides_runpath=no
21145   hardcode_into_libs=yes
21146   ;;
21147
21148 uts4*)
21149   version_type=linux # correct to gnu/linux during the next big refactor
21150   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21151   soname_spec='$libname$release$shared_ext$major'
21152   shlibpath_var=LD_LIBRARY_PATH
21153   ;;
21154
21155 *)
21156   dynamic_linker=no
21157   ;;
21158 esac
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21160 $as_echo "$dynamic_linker" >&6; }
21161 test no = "$dynamic_linker" && can_build_shared=no
21162
21163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21164 if test yes = "$GCC"; then
21165   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21166 fi
21167
21168 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
21169   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
21170 fi
21171
21172 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
21173   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
21174 fi
21175
21176 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
21177 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
21178
21179 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
21180 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
21181
21182 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
21183 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21225 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21226 hardcode_action_F77=
21227 if test -n "$hardcode_libdir_flag_spec_F77" ||
21228    test -n "$runpath_var_F77" ||
21229    test yes = "$hardcode_automatic_F77"; then
21230
21231   # We can hardcode non-existent directories.
21232   if test no != "$hardcode_direct_F77" &&
21233      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21234      # have to relink, otherwise we might link with an installed library
21235      # when we should be linking with a yet-to-be-installed one
21236      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
21237      test no != "$hardcode_minus_L_F77"; then
21238     # Linking always hardcodes the temporary library directory.
21239     hardcode_action_F77=relink
21240   else
21241     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21242     hardcode_action_F77=immediate
21243   fi
21244 else
21245   # We cannot hardcode anything, or else we can only hardcode existing
21246   # directories.
21247   hardcode_action_F77=unsupported
21248 fi
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
21250 $as_echo "$hardcode_action_F77" >&6; }
21251
21252 if test relink = "$hardcode_action_F77" ||
21253    test yes = "$inherit_rpath_F77"; then
21254   # Fast installation is not supported
21255   enable_fast_install=no
21256 elif test yes = "$shlibpath_overrides_runpath" ||
21257      test no = "$enable_shared"; then
21258   # Fast installation is not necessary
21259   enable_fast_install=needless
21260 fi
21261
21262
21263
21264
21265
21266
21267
21268   fi # test -n "$compiler"
21269
21270   GCC=$lt_save_GCC
21271   CC=$lt_save_CC
21272   CFLAGS=$lt_save_CFLAGS
21273 fi # test yes != "$_lt_disable_F77"
21274
21275 ac_ext=c
21276 ac_cpp='$CPP $CPPFLAGS'
21277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281
21282 ac_ext=${ac_fc_srcext-f}
21283 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
21284 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
21285 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
21286 if test -n "$ac_tool_prefix"; then
21287   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
21288   do
21289     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21292 $as_echo_n "checking for $ac_word... " >&6; }
21293 if ${ac_cv_prog_FC+:} false; then :
21294   $as_echo_n "(cached) " >&6
21295 else
21296   if test -n "$FC"; then
21297   ac_cv_prog_FC="$FC" # Let the user override the test.
21298 else
21299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21300 for as_dir in $PATH
21301 do
21302   IFS=$as_save_IFS
21303   test -z "$as_dir" && as_dir=.
21304     for ac_exec_ext in '' $ac_executable_extensions; do
21305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21306     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
21307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21308     break 2
21309   fi
21310 done
21311   done
21312 IFS=$as_save_IFS
21313
21314 fi
21315 fi
21316 FC=$ac_cv_prog_FC
21317 if test -n "$FC"; then
21318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
21319 $as_echo "$FC" >&6; }
21320 else
21321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21322 $as_echo "no" >&6; }
21323 fi
21324
21325
21326     test -n "$FC" && break
21327   done
21328 fi
21329 if test -z "$FC"; then
21330   ac_ct_FC=$FC
21331   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
21332 do
21333   # Extract the first word of "$ac_prog", so it can be a program name with args.
21334 set dummy $ac_prog; ac_word=$2
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21336 $as_echo_n "checking for $ac_word... " >&6; }
21337 if ${ac_cv_prog_ac_ct_FC+:} false; then :
21338   $as_echo_n "(cached) " >&6
21339 else
21340   if test -n "$ac_ct_FC"; then
21341   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
21342 else
21343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21344 for as_dir in $PATH
21345 do
21346   IFS=$as_save_IFS
21347   test -z "$as_dir" && as_dir=.
21348     for ac_exec_ext in '' $ac_executable_extensions; do
21349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21350     ac_cv_prog_ac_ct_FC="$ac_prog"
21351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21352     break 2
21353   fi
21354 done
21355   done
21356 IFS=$as_save_IFS
21357
21358 fi
21359 fi
21360 ac_ct_FC=$ac_cv_prog_ac_ct_FC
21361 if test -n "$ac_ct_FC"; then
21362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
21363 $as_echo "$ac_ct_FC" >&6; }
21364 else
21365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21366 $as_echo "no" >&6; }
21367 fi
21368
21369
21370   test -n "$ac_ct_FC" && break
21371 done
21372
21373   if test "x$ac_ct_FC" = x; then
21374     FC=""
21375   else
21376     case $cross_compiling:$ac_tool_warned in
21377 yes:)
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21380 ac_tool_warned=yes ;;
21381 esac
21382     FC=$ac_ct_FC
21383   fi
21384 fi
21385
21386
21387 # Provide some information about the compiler.
21388 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
21389 set X $ac_compile
21390 ac_compiler=$2
21391 for ac_option in --version -v -V -qversion; do
21392   { { ac_try="$ac_compiler $ac_option >&5"
21393 case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21398 $as_echo "$ac_try_echo"; } >&5
21399   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21400   ac_status=$?
21401   if test -s conftest.err; then
21402     sed '10a\
21403 ... rest of stderr output deleted ...
21404          10q' conftest.err >conftest.er1
21405     cat conftest.er1 >&5
21406   fi
21407   rm -f conftest.er1 conftest.err
21408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21409   test $ac_status = 0; }
21410 done
21411 rm -f a.out
21412
21413 # If we don't use `.F' as extension, the preprocessor is not run on the
21414 # input file.  (Note that this only needs to work for GNU compilers.)
21415 ac_save_ext=$ac_ext
21416 ac_ext=F
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
21418 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
21419 if ${ac_cv_fc_compiler_gnu+:} false; then :
21420   $as_echo_n "(cached) " >&6
21421 else
21422   cat > conftest.$ac_ext <<_ACEOF
21423       program main
21424 #ifndef __GNUC__
21425        choke me
21426 #endif
21427
21428       end
21429 _ACEOF
21430 if ac_fn_fc_try_compile "$LINENO"; then :
21431   ac_compiler_gnu=yes
21432 else
21433   ac_compiler_gnu=no
21434 fi
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
21437
21438 fi
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
21440 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
21441 ac_ext=$ac_save_ext
21442 ac_test_FCFLAGS=${FCFLAGS+set}
21443 ac_save_FCFLAGS=$FCFLAGS
21444 FCFLAGS=
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
21446 $as_echo_n "checking whether $FC accepts -g... " >&6; }
21447 if ${ac_cv_prog_fc_g+:} false; then :
21448   $as_echo_n "(cached) " >&6
21449 else
21450   FCFLAGS=-g
21451 cat > conftest.$ac_ext <<_ACEOF
21452       program main
21453
21454       end
21455 _ACEOF
21456 if ac_fn_fc_try_compile "$LINENO"; then :
21457   ac_cv_prog_fc_g=yes
21458 else
21459   ac_cv_prog_fc_g=no
21460 fi
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462
21463 fi
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
21465 $as_echo "$ac_cv_prog_fc_g" >&6; }
21466 if test "$ac_test_FCFLAGS" = set; then
21467   FCFLAGS=$ac_save_FCFLAGS
21468 elif test $ac_cv_prog_fc_g = yes; then
21469   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
21470     FCFLAGS="-g -O2"
21471   else
21472     FCFLAGS="-g"
21473   fi
21474 else
21475   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
21476     FCFLAGS="-O2"
21477   else
21478     FCFLAGS=
21479   fi
21480 fi
21481
21482 if test $ac_compiler_gnu = yes; then
21483   GFC=yes
21484 else
21485   GFC=
21486 fi
21487 ac_ext=${ac_fc_srcext-f}
21488 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
21489 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
21490 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
21491
21492
21493       ac_ext=${ac_fc_srcext-f}
21494 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
21495 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
21496 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
21497
21498
21499 if test -z "$FC" || test no = "$FC"; then
21500   _lt_disable_FC=yes
21501 fi
21502
21503 archive_cmds_need_lc_FC=no
21504 allow_undefined_flag_FC=
21505 always_export_symbols_FC=no
21506 archive_expsym_cmds_FC=
21507 export_dynamic_flag_spec_FC=
21508 hardcode_direct_FC=no
21509 hardcode_direct_absolute_FC=no
21510 hardcode_libdir_flag_spec_FC=
21511 hardcode_libdir_separator_FC=
21512 hardcode_minus_L_FC=no
21513 hardcode_automatic_FC=no
21514 inherit_rpath_FC=no
21515 module_cmds_FC=
21516 module_expsym_cmds_FC=
21517 link_all_deplibs_FC=unknown
21518 old_archive_cmds_FC=$old_archive_cmds
21519 reload_flag_FC=$reload_flag
21520 reload_cmds_FC=$reload_cmds
21521 no_undefined_flag_FC=
21522 whole_archive_flag_spec_FC=
21523 enable_shared_with_static_runtimes_FC=no
21524
21525 # Source file extension for fc test sources.
21526 ac_ext=${ac_fc_srcext-f}
21527
21528 # Object file extension for compiled fc test sources.
21529 objext=o
21530 objext_FC=$objext
21531
21532 # No sense in running all these tests if we already determined that
21533 # the FC compiler isn't working.  Some variables (like enable_shared)
21534 # are currently assumed to apply to all compilers on this platform,
21535 # and will be corrupted by setting them based on a non-working compiler.
21536 if test yes != "$_lt_disable_FC"; then
21537   # Code to be used in simple compile tests
21538   lt_simple_compile_test_code="\
21539       subroutine t
21540       return
21541       end
21542 "
21543
21544   # Code to be used in simple link tests
21545   lt_simple_link_test_code="\
21546       program t
21547       end
21548 "
21549
21550   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21551
21552
21553
21554
21555
21556
21557 # If no C compiler was specified, use CC.
21558 LTCC=${LTCC-"$CC"}
21559
21560 # If no C compiler flags were specified, use CFLAGS.
21561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21562
21563 # Allow CC to be a program name with arguments.
21564 compiler=$CC
21565
21566
21567   # save warnings/boilerplate of simple test code
21568   ac_outfile=conftest.$ac_objext
21569 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21571 _lt_compiler_boilerplate=`cat conftest.err`
21572 $RM conftest*
21573
21574   ac_outfile=conftest.$ac_objext
21575 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21577 _lt_linker_boilerplate=`cat conftest.err`
21578 $RM -r conftest*
21579
21580
21581   # Allow CC to be a program name with arguments.
21582   lt_save_CC=$CC
21583   lt_save_GCC=$GCC
21584   lt_save_CFLAGS=$CFLAGS
21585   CC=${FC-"f95"}
21586   CFLAGS=$FCFLAGS
21587   compiler=$CC
21588   GCC=$ac_cv_fc_compiler_gnu
21589
21590   compiler_FC=$CC
21591   func_cc_basename $compiler
21592 cc_basename=$func_cc_basename_result
21593
21594
21595   if test -n "$compiler"; then
21596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21597 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21599 $as_echo "$can_build_shared" >&6; }
21600
21601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21602 $as_echo_n "checking whether to build shared libraries... " >&6; }
21603     test no = "$can_build_shared" && enable_shared=no
21604
21605     # On AIX, shared libraries and static libraries use the same namespace, and
21606     # are all built from PIC.
21607     case $host_os in
21608       aix3*)
21609         test yes = "$enable_shared" && enable_static=no
21610         if test -n "$RANLIB"; then
21611           archive_cmds="$archive_cmds~\$RANLIB \$lib"
21612           postinstall_cmds='$RANLIB $lib'
21613         fi
21614         ;;
21615       aix[4-9]*)
21616         if test ia64 != "$host_cpu"; then
21617           case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
21618           yes,aix,yes) ;;               # shared object as lib.so file only
21619           yes,svr4,*) ;;                # shared object as lib.so archive member only
21620           yes,*) enable_static=no ;;    # shared object in lib.a archive as well
21621           esac
21622         fi
21623         ;;
21624     esac
21625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21626 $as_echo "$enable_shared" >&6; }
21627
21628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21629 $as_echo_n "checking whether to build static libraries... " >&6; }
21630     # Make sure either enable_shared or enable_static is yes.
21631     test yes = "$enable_shared" || enable_static=yes
21632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21633 $as_echo "$enable_static" >&6; }
21634
21635     GCC_FC=$ac_cv_fc_compiler_gnu
21636     LD_FC=$LD
21637
21638     ## CAVEAT EMPTOR:
21639     ## There is no encapsulation within the following macros, do not change
21640     ## the running order or otherwise move them around unless you know exactly
21641     ## what you are doing...
21642     # Dependencies to place before and after the object being linked:
21643 predep_objects_FC=
21644 postdep_objects_FC=
21645 predeps_FC=
21646 postdeps_FC=
21647 compiler_lib_search_path_FC=
21648
21649 cat > conftest.$ac_ext <<_LT_EOF
21650       subroutine foo
21651       implicit none
21652       integer a
21653       a=0
21654       return
21655       end
21656 _LT_EOF
21657
21658
21659 _lt_libdeps_save_CFLAGS=$CFLAGS
21660 case "$CC $CFLAGS " in #(
21661 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
21662 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
21663 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
21664 esac
21665
21666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21667   (eval $ac_compile) 2>&5
21668   ac_status=$?
21669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21670   test $ac_status = 0; }; then
21671   # Parse the compiler output and extract the necessary
21672   # objects, libraries and library flags.
21673
21674   # Sentinel used to keep track of whether or not we are before
21675   # the conftest object file.
21676   pre_test_object_deps_done=no
21677
21678   for p in `eval "$output_verbose_link_cmd"`; do
21679     case $prev$p in
21680
21681     -L* | -R* | -l*)
21682        # Some compilers place space between "-{L,R}" and the path.
21683        # Remove the space.
21684        if test x-L = "$p" ||
21685           test x-R = "$p"; then
21686          prev=$p
21687          continue
21688        fi
21689
21690        # Expand the sysroot to ease extracting the directories later.
21691        if test -z "$prev"; then
21692          case $p in
21693          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
21694          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
21695          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
21696          esac
21697        fi
21698        case $p in
21699        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
21700        esac
21701        if test no = "$pre_test_object_deps_done"; then
21702          case $prev in
21703          -L | -R)
21704            # Internal compiler library paths should come after those
21705            # provided the user.  The postdeps already come after the
21706            # user supplied libs so there is no need to process them.
21707            if test -z "$compiler_lib_search_path_FC"; then
21708              compiler_lib_search_path_FC=$prev$p
21709            else
21710              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p"
21711            fi
21712            ;;
21713          # The "-l" case would never come before the object being
21714          # linked, so don't bother handling this case.
21715          esac
21716        else
21717          if test -z "$postdeps_FC"; then
21718            postdeps_FC=$prev$p
21719          else
21720            postdeps_FC="${postdeps_FC} $prev$p"
21721          fi
21722        fi
21723        prev=
21724        ;;
21725
21726     *.lto.$objext) ;; # Ignore GCC LTO objects
21727     *.$objext)
21728        # This assumes that the test object file only shows up
21729        # once in the compiler output.
21730        if test "$p" = "conftest.$objext"; then
21731          pre_test_object_deps_done=yes
21732          continue
21733        fi
21734
21735        if test no = "$pre_test_object_deps_done"; then
21736          if test -z "$predep_objects_FC"; then
21737            predep_objects_FC=$p
21738          else
21739            predep_objects_FC="$predep_objects_FC $p"
21740          fi
21741        else
21742          if test -z "$postdep_objects_FC"; then
21743            postdep_objects_FC=$p
21744          else
21745            postdep_objects_FC="$postdep_objects_FC $p"
21746          fi
21747        fi
21748        ;;
21749
21750     *) ;; # Ignore the rest.
21751
21752     esac
21753   done
21754
21755   # Clean up.
21756   rm -f a.out a.exe
21757 else
21758   echo "libtool.m4: error: problem compiling FC test program"
21759 fi
21760
21761 $RM -f confest.$objext
21762 CFLAGS=$_lt_libdeps_save_CFLAGS
21763
21764 # PORTME: override above test on systems where it is broken
21765
21766
21767 case " $postdeps_FC " in
21768 *" -lc "*) archive_cmds_need_lc_FC=no ;;
21769 esac
21770  compiler_lib_search_dirs_FC=
21771 if test -n "${compiler_lib_search_path_FC}"; then
21772  compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'`
21773 fi
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787     lt_prog_compiler_wl_FC=
21788 lt_prog_compiler_pic_FC=
21789 lt_prog_compiler_static_FC=
21790
21791
21792   if test yes = "$GCC"; then
21793     lt_prog_compiler_wl_FC='-Wl,'
21794     lt_prog_compiler_static_FC='-static'
21795
21796     case $host_os in
21797       aix*)
21798       # All AIX code is PIC.
21799       if test ia64 = "$host_cpu"; then
21800         # AIX 5 now supports IA64 processor
21801         lt_prog_compiler_static_FC='-Bstatic'
21802       fi
21803       lt_prog_compiler_pic_FC='-fPIC'
21804       ;;
21805
21806     amigaos*)
21807       case $host_cpu in
21808       powerpc)
21809             # see comment about AmigaOS4 .so support
21810             lt_prog_compiler_pic_FC='-fPIC'
21811         ;;
21812       m68k)
21813             # FIXME: we need at least 68020 code to build shared libraries, but
21814             # adding the '-m68020' flag to GCC prevents building anything better,
21815             # like '-m68040'.
21816             lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
21817         ;;
21818       esac
21819       ;;
21820
21821     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21822       # PIC is the default for these OSes.
21823       ;;
21824
21825     mingw* | cygwin* | pw32* | os2* | cegcc*)
21826       # This hack is so that the source file can tell whether it is being
21827       # built for inclusion in a dll (and should export symbols for example).
21828       # Although the cygwin gcc ignores -fPIC, still need this for old-style
21829       # (--disable-auto-import) libraries
21830       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
21831       case $host_os in
21832       os2*)
21833         lt_prog_compiler_static_FC='$wl-static'
21834         ;;
21835       esac
21836       ;;
21837
21838     darwin* | rhapsody*)
21839       # PIC is the default on this platform
21840       # Common symbols not allowed in MH_DYLIB files
21841       lt_prog_compiler_pic_FC='-fno-common'
21842       ;;
21843
21844     haiku*)
21845       # PIC is the default for Haiku.
21846       # The "-static" flag exists, but is broken.
21847       lt_prog_compiler_static_FC=
21848       ;;
21849
21850     hpux*)
21851       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21852       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21853       # sets the default TLS model and affects inlining.
21854       case $host_cpu in
21855       hppa*64*)
21856         # +Z the default
21857         ;;
21858       *)
21859         lt_prog_compiler_pic_FC='-fPIC'
21860         ;;
21861       esac
21862       ;;
21863
21864     interix[3-9]*)
21865       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21866       # Instead, we relocate shared libraries at runtime.
21867       ;;
21868
21869     msdosdjgpp*)
21870       # Just because we use GCC doesn't mean we suddenly get shared libraries
21871       # on systems that don't support them.
21872       lt_prog_compiler_can_build_shared_FC=no
21873       enable_shared=no
21874       ;;
21875
21876     *nto* | *qnx*)
21877       # QNX uses GNU C++, but need to define -shared option too, otherwise
21878       # it will coredump.
21879       lt_prog_compiler_pic_FC='-fPIC -shared'
21880       ;;
21881
21882     sysv4*MP*)
21883       if test -d /usr/nec; then
21884         lt_prog_compiler_pic_FC=-Kconform_pic
21885       fi
21886       ;;
21887
21888     *)
21889       lt_prog_compiler_pic_FC='-fPIC'
21890       ;;
21891     esac
21892
21893     case $cc_basename in
21894     nvcc*) # Cuda Compiler Driver 2.2
21895       lt_prog_compiler_wl_FC='-Xlinker '
21896       if test -n "$lt_prog_compiler_pic_FC"; then
21897         lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
21898       fi
21899       ;;
21900     esac
21901   else
21902     # PORTME Check for flag to pass linker flags through the system compiler.
21903     case $host_os in
21904     aix*)
21905       lt_prog_compiler_wl_FC='-Wl,'
21906       if test ia64 = "$host_cpu"; then
21907         # AIX 5 now supports IA64 processor
21908         lt_prog_compiler_static_FC='-Bstatic'
21909       else
21910         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
21911       fi
21912       ;;
21913
21914     darwin* | rhapsody*)
21915       # PIC is the default on this platform
21916       # Common symbols not allowed in MH_DYLIB files
21917       lt_prog_compiler_pic_FC='-fno-common'
21918       case $cc_basename in
21919       nagfor*)
21920         # NAG Fortran compiler
21921         lt_prog_compiler_wl_FC='-Wl,-Wl,,'
21922         lt_prog_compiler_pic_FC='-PIC'
21923         lt_prog_compiler_static_FC='-Bstatic'
21924         ;;
21925       esac
21926       ;;
21927
21928     mingw* | cygwin* | pw32* | os2* | cegcc*)
21929       # This hack is so that the source file can tell whether it is being
21930       # built for inclusion in a dll (and should export symbols for example).
21931       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
21932       case $host_os in
21933       os2*)
21934         lt_prog_compiler_static_FC='$wl-static'
21935         ;;
21936       esac
21937       ;;
21938
21939     hpux9* | hpux10* | hpux11*)
21940       lt_prog_compiler_wl_FC='-Wl,'
21941       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21942       # not for PA HP-UX.
21943       case $host_cpu in
21944       hppa*64*|ia64*)
21945         # +Z the default
21946         ;;
21947       *)
21948         lt_prog_compiler_pic_FC='+Z'
21949         ;;
21950       esac
21951       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21952       lt_prog_compiler_static_FC='$wl-a ${wl}archive'
21953       ;;
21954
21955     irix5* | irix6* | nonstopux*)
21956       lt_prog_compiler_wl_FC='-Wl,'
21957       # PIC (with -KPIC) is the default.
21958       lt_prog_compiler_static_FC='-non_shared'
21959       ;;
21960
21961     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21962       case $cc_basename in
21963       # old Intel for x86_64, which still supported -KPIC.
21964       ecc*)
21965         lt_prog_compiler_wl_FC='-Wl,'
21966         lt_prog_compiler_pic_FC='-KPIC'
21967         lt_prog_compiler_static_FC='-static'
21968         ;;
21969       # icc used to be incompatible with GCC.
21970       # ICC 10 doesn't accept -KPIC any more.
21971       icc* | ifort*)
21972         lt_prog_compiler_wl_FC='-Wl,'
21973         lt_prog_compiler_pic_FC='-fPIC'
21974         lt_prog_compiler_static_FC='-static'
21975         ;;
21976       # Lahey Fortran 8.1.
21977       lf95*)
21978         lt_prog_compiler_wl_FC='-Wl,'
21979         lt_prog_compiler_pic_FC='--shared'
21980         lt_prog_compiler_static_FC='--static'
21981         ;;
21982       nagfor*)
21983         # NAG Fortran compiler
21984         lt_prog_compiler_wl_FC='-Wl,-Wl,,'
21985         lt_prog_compiler_pic_FC='-PIC'
21986         lt_prog_compiler_static_FC='-Bstatic'
21987         ;;
21988       tcc*)
21989         # Fabrice Bellard et al's Tiny C Compiler
21990         lt_prog_compiler_wl_FC='-Wl,'
21991         lt_prog_compiler_pic_FC='-fPIC'
21992         lt_prog_compiler_static_FC='-static'
21993         ;;
21994       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
21995         # Portland Group compilers (*not* the Pentium gcc compiler,
21996         # which looks to be a dead project)
21997         lt_prog_compiler_wl_FC='-Wl,'
21998         lt_prog_compiler_pic_FC='-fpic'
21999         lt_prog_compiler_static_FC='-Bstatic'
22000         ;;
22001       ccc*)
22002         lt_prog_compiler_wl_FC='-Wl,'
22003         # All Alpha code is PIC.
22004         lt_prog_compiler_static_FC='-non_shared'
22005         ;;
22006       xl* | bgxl* | bgf* | mpixl*)
22007         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
22008         lt_prog_compiler_wl_FC='-Wl,'
22009         lt_prog_compiler_pic_FC='-qpic'
22010         lt_prog_compiler_static_FC='-qstaticlink'
22011         ;;
22012       *)
22013         case `$CC -V 2>&1 | $SED 5q` in
22014         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
22015           # Sun Fortran 8.3 passes all unrecognized flags to the linker
22016           lt_prog_compiler_pic_FC='-KPIC'
22017           lt_prog_compiler_static_FC='-Bstatic'
22018           lt_prog_compiler_wl_FC=''
22019           ;;
22020         *Sun\ F* | *Sun*Fortran*)
22021           lt_prog_compiler_pic_FC='-KPIC'
22022           lt_prog_compiler_static_FC='-Bstatic'
22023           lt_prog_compiler_wl_FC='-Qoption ld '
22024           ;;
22025         *Sun\ C*)
22026           # Sun C 5.9
22027           lt_prog_compiler_pic_FC='-KPIC'
22028           lt_prog_compiler_static_FC='-Bstatic'
22029           lt_prog_compiler_wl_FC='-Wl,'
22030           ;;
22031         *Intel*\ [CF]*Compiler*)
22032           lt_prog_compiler_wl_FC='-Wl,'
22033           lt_prog_compiler_pic_FC='-fPIC'
22034           lt_prog_compiler_static_FC='-static'
22035           ;;
22036         *Portland\ Group*)
22037           lt_prog_compiler_wl_FC='-Wl,'
22038           lt_prog_compiler_pic_FC='-fpic'
22039           lt_prog_compiler_static_FC='-Bstatic'
22040           ;;
22041         esac
22042         ;;
22043       esac
22044       ;;
22045
22046     newsos6)
22047       lt_prog_compiler_pic_FC='-KPIC'
22048       lt_prog_compiler_static_FC='-Bstatic'
22049       ;;
22050
22051     *nto* | *qnx*)
22052       # QNX uses GNU C++, but need to define -shared option too, otherwise
22053       # it will coredump.
22054       lt_prog_compiler_pic_FC='-fPIC -shared'
22055       ;;
22056
22057     osf3* | osf4* | osf5*)
22058       lt_prog_compiler_wl_FC='-Wl,'
22059       # All OSF/1 code is PIC.
22060       lt_prog_compiler_static_FC='-non_shared'
22061       ;;
22062
22063     rdos*)
22064       lt_prog_compiler_static_FC='-non_shared'
22065       ;;
22066
22067     solaris*)
22068       lt_prog_compiler_pic_FC='-KPIC'
22069       lt_prog_compiler_static_FC='-Bstatic'
22070       case $cc_basename in
22071       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22072         lt_prog_compiler_wl_FC='-Qoption ld ';;
22073       *)
22074         lt_prog_compiler_wl_FC='-Wl,';;
22075       esac
22076       ;;
22077
22078     sunos4*)
22079       lt_prog_compiler_wl_FC='-Qoption ld '
22080       lt_prog_compiler_pic_FC='-PIC'
22081       lt_prog_compiler_static_FC='-Bstatic'
22082       ;;
22083
22084     sysv4 | sysv4.2uw2* | sysv4.3*)
22085       lt_prog_compiler_wl_FC='-Wl,'
22086       lt_prog_compiler_pic_FC='-KPIC'
22087       lt_prog_compiler_static_FC='-Bstatic'
22088       ;;
22089
22090     sysv4*MP*)
22091       if test -d /usr/nec; then
22092         lt_prog_compiler_pic_FC='-Kconform_pic'
22093         lt_prog_compiler_static_FC='-Bstatic'
22094       fi
22095       ;;
22096
22097     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22098       lt_prog_compiler_wl_FC='-Wl,'
22099       lt_prog_compiler_pic_FC='-KPIC'
22100       lt_prog_compiler_static_FC='-Bstatic'
22101       ;;
22102
22103     unicos*)
22104       lt_prog_compiler_wl_FC='-Wl,'
22105       lt_prog_compiler_can_build_shared_FC=no
22106       ;;
22107
22108     uts4*)
22109       lt_prog_compiler_pic_FC='-pic'
22110       lt_prog_compiler_static_FC='-Bstatic'
22111       ;;
22112
22113     *)
22114       lt_prog_compiler_can_build_shared_FC=no
22115       ;;
22116     esac
22117   fi
22118
22119 case $host_os in
22120   # For platforms that do not support PIC, -DPIC is meaningless:
22121   *djgpp*)
22122     lt_prog_compiler_pic_FC=
22123     ;;
22124   *)
22125     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
22126     ;;
22127 esac
22128
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22130 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22131 if ${lt_cv_prog_compiler_pic_FC+:} false; then :
22132   $as_echo_n "(cached) " >&6
22133 else
22134   lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
22135 fi
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
22137 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
22138 lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
22139
22140 #
22141 # Check to make sure the PIC flag actually works.
22142 #
22143 if test -n "$lt_prog_compiler_pic_FC"; then
22144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
22145 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
22146 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
22147   $as_echo_n "(cached) " >&6
22148 else
22149   lt_cv_prog_compiler_pic_works_FC=no
22150    ac_outfile=conftest.$ac_objext
22151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22152    lt_compiler_flag="$lt_prog_compiler_pic_FC"  ## exclude from sc_useless_quotes_in_assignment
22153    # Insert the option either (1) after the last *FLAGS variable, or
22154    # (2) before a word containing "conftest.", or (3) at the end.
22155    # Note that $ac_compile itself does not contain backslashes and begins
22156    # with a dollar sign (not a hyphen), so the echo should work correctly.
22157    # The option is referenced via a variable to avoid confusing sed.
22158    lt_compile=`echo "$ac_compile" | $SED \
22159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22161    -e 's:$: $lt_compiler_flag:'`
22162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22163    (eval "$lt_compile" 2>conftest.err)
22164    ac_status=$?
22165    cat conftest.err >&5
22166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167    if (exit $ac_status) && test -s "$ac_outfile"; then
22168      # The compiler can only warn and ignore the option if not recognized
22169      # So say no if there are warnings other than the usual output.
22170      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22171      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22172      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22173        lt_cv_prog_compiler_pic_works_FC=yes
22174      fi
22175    fi
22176    $RM conftest*
22177
22178 fi
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
22180 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
22181
22182 if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then
22183     case $lt_prog_compiler_pic_FC in
22184      "" | " "*) ;;
22185      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
22186      esac
22187 else
22188     lt_prog_compiler_pic_FC=
22189      lt_prog_compiler_can_build_shared_FC=no
22190 fi
22191
22192 fi
22193
22194
22195
22196
22197
22198 #
22199 # Check to make sure the static flag actually works.
22200 #
22201 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22203 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22204 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
22205   $as_echo_n "(cached) " >&6
22206 else
22207   lt_cv_prog_compiler_static_works_FC=no
22208    save_LDFLAGS=$LDFLAGS
22209    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22210    echo "$lt_simple_link_test_code" > conftest.$ac_ext
22211    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22212      # The linker can only warn and ignore the option if not recognized
22213      # So say no if there are warnings
22214      if test -s conftest.err; then
22215        # Append any errors to the config.log.
22216        cat conftest.err 1>&5
22217        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22218        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22219        if diff conftest.exp conftest.er2 >/dev/null; then
22220          lt_cv_prog_compiler_static_works_FC=yes
22221        fi
22222      else
22223        lt_cv_prog_compiler_static_works_FC=yes
22224      fi
22225    fi
22226    $RM -r conftest*
22227    LDFLAGS=$save_LDFLAGS
22228
22229 fi
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
22231 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
22232
22233 if test yes = "$lt_cv_prog_compiler_static_works_FC"; then
22234     :
22235 else
22236     lt_prog_compiler_static_FC=
22237 fi
22238
22239
22240
22241
22242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22244 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
22245   $as_echo_n "(cached) " >&6
22246 else
22247   lt_cv_prog_compiler_c_o_FC=no
22248    $RM -r conftest 2>/dev/null
22249    mkdir conftest
22250    cd conftest
22251    mkdir out
22252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22253
22254    lt_compiler_flag="-o out/conftest2.$ac_objext"
22255    # Insert the option either (1) after the last *FLAGS variable, or
22256    # (2) before a word containing "conftest.", or (3) at the end.
22257    # Note that $ac_compile itself does not contain backslashes and begins
22258    # with a dollar sign (not a hyphen), so the echo should work correctly.
22259    lt_compile=`echo "$ac_compile" | $SED \
22260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22262    -e 's:$: $lt_compiler_flag:'`
22263    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22264    (eval "$lt_compile" 2>out/conftest.err)
22265    ac_status=$?
22266    cat out/conftest.err >&5
22267    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22269    then
22270      # The compiler can only warn and ignore the option if not recognized
22271      # So say no if there are warnings
22272      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22273      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22274      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22275        lt_cv_prog_compiler_c_o_FC=yes
22276      fi
22277    fi
22278    chmod u+w . 2>&5
22279    $RM conftest*
22280    # SGI C++ compiler will create directory out/ii_files/ for
22281    # template instantiation
22282    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22283    $RM out/* && rmdir out
22284    cd ..
22285    $RM -r conftest
22286    $RM conftest*
22287
22288 fi
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
22290 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
22291
22292
22293
22294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22295 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22296 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
22297   $as_echo_n "(cached) " >&6
22298 else
22299   lt_cv_prog_compiler_c_o_FC=no
22300    $RM -r conftest 2>/dev/null
22301    mkdir conftest
22302    cd conftest
22303    mkdir out
22304    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22305
22306    lt_compiler_flag="-o out/conftest2.$ac_objext"
22307    # Insert the option either (1) after the last *FLAGS variable, or
22308    # (2) before a word containing "conftest.", or (3) at the end.
22309    # Note that $ac_compile itself does not contain backslashes and begins
22310    # with a dollar sign (not a hyphen), so the echo should work correctly.
22311    lt_compile=`echo "$ac_compile" | $SED \
22312    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22314    -e 's:$: $lt_compiler_flag:'`
22315    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22316    (eval "$lt_compile" 2>out/conftest.err)
22317    ac_status=$?
22318    cat out/conftest.err >&5
22319    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22321    then
22322      # The compiler can only warn and ignore the option if not recognized
22323      # So say no if there are warnings
22324      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22325      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22326      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22327        lt_cv_prog_compiler_c_o_FC=yes
22328      fi
22329    fi
22330    chmod u+w . 2>&5
22331    $RM conftest*
22332    # SGI C++ compiler will create directory out/ii_files/ for
22333    # template instantiation
22334    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22335    $RM out/* && rmdir out
22336    cd ..
22337    $RM -r conftest
22338    $RM conftest*
22339
22340 fi
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
22342 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
22343
22344
22345
22346
22347 hard_links=nottested
22348 if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then
22349   # do not overwrite the value of need_locks provided by the user
22350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22351 $as_echo_n "checking if we can lock with hard links... " >&6; }
22352   hard_links=yes
22353   $RM conftest*
22354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22355   touch conftest.a
22356   ln conftest.a conftest.b 2>&5 || hard_links=no
22357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22359 $as_echo "$hard_links" >&6; }
22360   if test no = "$hard_links"; then
22361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
22362 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
22363     need_locks=warn
22364   fi
22365 else
22366   need_locks=no
22367 fi
22368
22369
22370
22371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22373
22374   runpath_var=
22375   allow_undefined_flag_FC=
22376   always_export_symbols_FC=no
22377   archive_cmds_FC=
22378   archive_expsym_cmds_FC=
22379   compiler_needs_object_FC=no
22380   enable_shared_with_static_runtimes_FC=no
22381   export_dynamic_flag_spec_FC=
22382   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22383   hardcode_automatic_FC=no
22384   hardcode_direct_FC=no
22385   hardcode_direct_absolute_FC=no
22386   hardcode_libdir_flag_spec_FC=
22387   hardcode_libdir_separator_FC=
22388   hardcode_minus_L_FC=no
22389   hardcode_shlibpath_var_FC=unsupported
22390   inherit_rpath_FC=no
22391   link_all_deplibs_FC=unknown
22392   module_cmds_FC=
22393   module_expsym_cmds_FC=
22394   old_archive_from_new_cmds_FC=
22395   old_archive_from_expsyms_cmds_FC=
22396   thread_safe_flag_spec_FC=
22397   whole_archive_flag_spec_FC=
22398   # include_expsyms should be a list of space-separated symbols to be *always*
22399   # included in the symbol list
22400   include_expsyms_FC=
22401   # exclude_expsyms can be an extended regexp of symbols to exclude
22402   # it will be wrapped by ' (' and ')$', so one must not match beginning or
22403   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
22404   # as well as any symbol that contains 'd'.
22405   exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22406   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22407   # platforms (ab)use it in PIC code, but their linkers get confused if
22408   # the symbol is explicitly referenced.  Since portable code cannot
22409   # rely on this symbol name, it's probably fine to never include it in
22410   # preloaded symbol tables.
22411   # Exclude shared library initialization/finalization symbols.
22412   extract_expsyms_cmds=
22413
22414   case $host_os in
22415   cygwin* | mingw* | pw32* | cegcc*)
22416     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
22417     # When not using gcc, we currently assume that we are using
22418     # Microsoft Visual C++ or Intel C++ Compiler.
22419     if test yes != "$GCC"; then
22420       with_gnu_ld=no
22421     fi
22422     ;;
22423   interix*)
22424     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
22425     with_gnu_ld=yes
22426     ;;
22427   openbsd* | bitrig*)
22428     with_gnu_ld=no
22429     ;;
22430   esac
22431
22432   ld_shlibs_FC=yes
22433
22434   # On some targets, GNU ld is compatible enough with the native linker
22435   # that we're better off using the native interface for both.
22436   lt_use_gnu_ld_interface=no
22437   if test yes = "$with_gnu_ld"; then
22438     case $host_os in
22439       aix*)
22440         # The AIX port of GNU ld has always aspired to compatibility
22441         # with the native linker.  However, as the warning in the GNU ld
22442         # block says, versions before 2.19.5* couldn't really create working
22443         # shared libraries, regardless of the interface used.
22444         case `$LD -v 2>&1` in
22445           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
22446           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
22447           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
22448           *)
22449             lt_use_gnu_ld_interface=yes
22450             ;;
22451         esac
22452         ;;
22453       *)
22454         lt_use_gnu_ld_interface=yes
22455         ;;
22456     esac
22457   fi
22458
22459   if test yes = "$lt_use_gnu_ld_interface"; then
22460     # If archive_cmds runs LD, not CC, wlarc should be empty
22461     wlarc='$wl'
22462
22463     # Set some defaults for GNU ld with shared library support. These
22464     # are reset later if shared libraries are not supported. Putting them
22465     # here allows them to be overridden if necessary.
22466     runpath_var=LD_RUN_PATH
22467     hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
22468     export_dynamic_flag_spec_FC='$wl--export-dynamic'
22469     # ancient GNU ld didn't support --whole-archive et. al.
22470     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
22471       whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
22472     else
22473       whole_archive_flag_spec_FC=
22474     fi
22475     supports_anon_versioning=no
22476     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
22477       *GNU\ gold*) supports_anon_versioning=yes ;;
22478       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22479       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22480       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22481       *\ 2.11.*) ;; # other 2.11 versions
22482       *) supports_anon_versioning=yes ;;
22483     esac
22484
22485     # See if GNU ld supports shared libraries.
22486     case $host_os in
22487     aix[3-9]*)
22488       # On AIX/PPC, the GNU linker is very broken
22489       if test ia64 != "$host_cpu"; then
22490         ld_shlibs_FC=no
22491         cat <<_LT_EOF 1>&2
22492
22493 *** Warning: the GNU linker, at least up to release 2.19, is reported
22494 *** to be unable to reliably create shared libraries on AIX.
22495 *** Therefore, libtool is disabling shared libraries support.  If you
22496 *** really care for shared libraries, you may want to install binutils
22497 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
22498 *** You will then need to restart the configuration process.
22499
22500 _LT_EOF
22501       fi
22502       ;;
22503
22504     amigaos*)
22505       case $host_cpu in
22506       powerpc)
22507             # see comment about AmigaOS4 .so support
22508             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22509             archive_expsym_cmds_FC=''
22510         ;;
22511       m68k)
22512             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)'
22513             hardcode_libdir_flag_spec_FC='-L$libdir'
22514             hardcode_minus_L_FC=yes
22515         ;;
22516       esac
22517       ;;
22518
22519     beos*)
22520       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22521         allow_undefined_flag_FC=unsupported
22522         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22523         # support --undefined.  This deserves some investigation.  FIXME
22524         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22525       else
22526         ld_shlibs_FC=no
22527       fi
22528       ;;
22529
22530     cygwin* | mingw* | pw32* | cegcc*)
22531       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
22532       # as there is no search path for DLLs.
22533       hardcode_libdir_flag_spec_FC='-L$libdir'
22534       export_dynamic_flag_spec_FC='$wl--export-all-symbols'
22535       allow_undefined_flag_FC=unsupported
22536       always_export_symbols_FC=no
22537       enable_shared_with_static_runtimes_FC=yes
22538       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'
22539       exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22540
22541       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22542         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22543         # If the export-symbols file already is a .def file, use it as
22544         # is; otherwise, prepend EXPORTS...
22545         archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[        ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
22546           cp $export_symbols $output_objdir/$soname.def;
22547         else
22548           echo EXPORTS > $output_objdir/$soname.def;
22549           cat $export_symbols >> $output_objdir/$soname.def;
22550         fi~
22551         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22552       else
22553         ld_shlibs_FC=no
22554       fi
22555       ;;
22556
22557     haiku*)
22558       archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22559       link_all_deplibs_FC=yes
22560       ;;
22561
22562     os2*)
22563       hardcode_libdir_flag_spec_FC='-L$libdir'
22564       hardcode_minus_L_FC=yes
22565       allow_undefined_flag_FC=unsupported
22566       shrext_cmds=.dll
22567       archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
22568         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
22569         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
22570         $ECHO EXPORTS >> $output_objdir/$libname.def~
22571         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
22572         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
22573         emximp -o $lib $output_objdir/$libname.def'
22574       archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
22575         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
22576         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
22577         $ECHO EXPORTS >> $output_objdir/$libname.def~
22578         prefix_cmds="$SED"~
22579         if test EXPORTS = "`$SED 1q $export_symbols`"; then
22580           prefix_cmds="$prefix_cmds -e 1d";
22581         fi~
22582         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
22583         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
22584         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
22585         emximp -o $lib $output_objdir/$libname.def'
22586       old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
22587       enable_shared_with_static_runtimes_FC=yes
22588       file_list_spec_FC='@'
22589       ;;
22590
22591     interix[3-9]*)
22592       hardcode_direct_FC=no
22593       hardcode_shlibpath_var_FC=no
22594       hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
22595       export_dynamic_flag_spec_FC='$wl-E'
22596       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22597       # Instead, shared libraries are loaded at an image base (0x10000000 by
22598       # default) and relocated if they conflict, which is a slow very memory
22599       # consuming and fragmenting process.  To avoid this, we pick a random,
22600       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22601       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22602       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'
22603       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'
22604       ;;
22605
22606     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
22607       tmp_diet=no
22608       if test linux-dietlibc = "$host_os"; then
22609         case $cc_basename in
22610           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
22611         esac
22612       fi
22613       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22614          && test no = "$tmp_diet"
22615       then
22616         tmp_addflag=' $pic_flag'
22617         tmp_sharedflag='-shared'
22618         case $cc_basename,$host_cpu in
22619         pgcc*)                          # Portland Group C compiler
22620           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'
22621           tmp_addflag=' $pic_flag'
22622           ;;
22623         pgf77* | pgf90* | pgf95* | pgfortran*)
22624                                         # Portland Group f77 and f90 compilers
22625           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'
22626           tmp_addflag=' $pic_flag -Mnomain' ;;
22627         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
22628           tmp_addflag=' -i_dynamic' ;;
22629         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22630           tmp_addflag=' -i_dynamic -nofor_main' ;;
22631         ifc* | ifort*)                  # Intel Fortran compiler
22632           tmp_addflag=' -nofor_main' ;;
22633         lf95*)                          # Lahey Fortran 8.1
22634           whole_archive_flag_spec_FC=
22635           tmp_sharedflag='--shared' ;;
22636         nagfor*)                        # NAGFOR 5.3
22637           tmp_sharedflag='-Wl,-shared' ;;
22638         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
22639           tmp_sharedflag='-qmkshrobj'
22640           tmp_addflag= ;;
22641         nvcc*)  # Cuda Compiler Driver 2.2
22642           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'
22643           compiler_needs_object_FC=yes
22644           ;;
22645         esac
22646         case `$CC -V 2>&1 | $SED 5q` in
22647         *Sun\ C*)                       # Sun C 5.9
22648           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'
22649           compiler_needs_object_FC=yes
22650           tmp_sharedflag='-G' ;;
22651         *Sun\ F*)                       # Sun Fortran 8.3
22652           tmp_sharedflag='-G' ;;
22653         esac
22654         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22655
22656         if test yes = "$supports_anon_versioning"; then
22657           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
22658             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22659             echo "local: *; };" >> $output_objdir/$libname.ver~
22660             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
22661         fi
22662
22663         case $cc_basename in
22664         tcc*)
22665           export_dynamic_flag_spec_FC='-rdynamic'
22666           ;;
22667         xlf* | bgf* | bgxlf* | mpixlf*)
22668           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22669           whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
22670           hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
22671           archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22672           if test yes = "$supports_anon_versioning"; then
22673             archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
22674               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22675               echo "local: *; };" >> $output_objdir/$libname.ver~
22676               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22677           fi
22678           ;;
22679         esac
22680       else
22681         ld_shlibs_FC=no
22682       fi
22683       ;;
22684
22685     netbsd*)
22686       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22687         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22688         wlarc=
22689       else
22690         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22691         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'
22692       fi
22693       ;;
22694
22695     solaris*)
22696       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22697         ld_shlibs_FC=no
22698         cat <<_LT_EOF 1>&2
22699
22700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22701 *** create shared libraries on Solaris systems.  Therefore, libtool
22702 *** is disabling shared libraries support.  We urge you to upgrade GNU
22703 *** binutils to release 2.9.1 or newer.  Another option is to modify
22704 *** your PATH or compiler configuration so that the native linker is
22705 *** used, and then restart.
22706
22707 _LT_EOF
22708       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22709         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22710         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'
22711       else
22712         ld_shlibs_FC=no
22713       fi
22714       ;;
22715
22716     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22717       case `$LD -v 2>&1` in
22718         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22719         ld_shlibs_FC=no
22720         cat <<_LT_EOF 1>&2
22721
22722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
22723 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22724 *** is disabling shared libraries support.  We urge you to upgrade GNU
22725 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22726 *** your PATH or compiler configuration so that the native linker is
22727 *** used, and then restart.
22728
22729 _LT_EOF
22730         ;;
22731         *)
22732           # For security reasons, it is highly recommended that you always
22733           # use absolute paths for naming shared libraries, and exclude the
22734           # DT_RUNPATH tag from executables and libraries.  But doing so
22735           # requires that you compile everything twice, which is a pain.
22736           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22737             hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
22738             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22739             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22740           else
22741             ld_shlibs_FC=no
22742           fi
22743         ;;
22744       esac
22745       ;;
22746
22747     sunos4*)
22748       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22749       wlarc=
22750       hardcode_direct_FC=yes
22751       hardcode_shlibpath_var_FC=no
22752       ;;
22753
22754     *)
22755       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22756         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22757         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'
22758       else
22759         ld_shlibs_FC=no
22760       fi
22761       ;;
22762     esac
22763
22764     if test no = "$ld_shlibs_FC"; then
22765       runpath_var=
22766       hardcode_libdir_flag_spec_FC=
22767       export_dynamic_flag_spec_FC=
22768       whole_archive_flag_spec_FC=
22769     fi
22770   else
22771     # PORTME fill in a description of your system's linker (not GNU ld)
22772     case $host_os in
22773     aix3*)
22774       allow_undefined_flag_FC=unsupported
22775       always_export_symbols_FC=yes
22776       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'
22777       # Note: this linker hardcodes the directories in LIBPATH if there
22778       # are no directories specified by -L.
22779       hardcode_minus_L_FC=yes
22780       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
22781         # Neither direct hardcoding nor static linking is supported with a
22782         # broken collect2.
22783         hardcode_direct_FC=unsupported
22784       fi
22785       ;;
22786
22787     aix[4-9]*)
22788       if test ia64 = "$host_cpu"; then
22789         # On IA64, the linker does run time linking by default, so we don't
22790         # have to do anything special.
22791         aix_use_runtimelinking=no
22792         exp_sym_flag='-Bexport'
22793         no_entry_flag=
22794       else
22795         # If we're using GNU nm, then we don't want the "-C" option.
22796         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
22797         # Without the "-l" option, or with the "-B" option, AIX nm treats
22798         # weak defined symbols like other global defined symbols, whereas
22799         # GNU nm marks them as "W".
22800         # While the 'weak' keyword is ignored in the Export File, we need
22801         # it in the Import File for the 'aix-soname' feature, so we have
22802         # to replace the "-B" option with "-P" for AIX nm.
22803         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22804           export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
22805         else
22806           export_symbols_cmds_FC='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
22807         fi
22808         aix_use_runtimelinking=no
22809
22810         # Test if we are trying to use run time linking or normal
22811         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22812         # have runtime linking enabled, and use it for executables.
22813         # For shared libraries, we enable/disable runtime linking
22814         # depending on the kind of the shared library created -
22815         # when "with_aix_soname,aix_use_runtimelinking" is:
22816         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
22817         # "aix,yes"  lib.so          shared, rtl:yes, for executables
22818         #            lib.a           static archive
22819         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
22820         #            lib.a(lib.so.V) shared, rtl:no,  for executables
22821         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
22822         #            lib.a(lib.so.V) shared, rtl:no
22823         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
22824         #            lib.a           static archive
22825         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22826           for ld_flag in $LDFLAGS; do
22827           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
22828             aix_use_runtimelinking=yes
22829             break
22830           fi
22831           done
22832           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
22833             # With aix-soname=svr4, we create the lib.so.V shared archives only,
22834             # so we don't have lib.a shared libs to link our executables.
22835             # We have to force runtime linking in this case.
22836             aix_use_runtimelinking=yes
22837             LDFLAGS="$LDFLAGS -Wl,-brtl"
22838           fi
22839           ;;
22840         esac
22841
22842         exp_sym_flag='-bexport'
22843         no_entry_flag='-bnoentry'
22844       fi
22845
22846       # When large executables or shared objects are built, AIX ld can
22847       # have problems creating the table of contents.  If linking a library
22848       # or program results in "error TOC overflow" add -mminimal-toc to
22849       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22850       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22851
22852       archive_cmds_FC=''
22853       hardcode_direct_FC=yes
22854       hardcode_direct_absolute_FC=yes
22855       hardcode_libdir_separator_FC=':'
22856       link_all_deplibs_FC=yes
22857       file_list_spec_FC='$wl-f,'
22858       case $with_aix_soname,$aix_use_runtimelinking in
22859       aix,*) ;; # traditional, no import file
22860       svr4,* | *,yes) # use import file
22861         # The Import File defines what to hardcode.
22862         hardcode_direct_FC=no
22863         hardcode_direct_absolute_FC=no
22864         ;;
22865       esac
22866
22867       if test yes = "$GCC"; then
22868         case $host_os in aix4.[012]|aix4.[012].*)
22869         # We only want to do this on AIX 4.2 and lower, the check
22870         # below for broken collect2 doesn't work under 4.3+
22871           collect2name=`$CC -print-prog-name=collect2`
22872           if test -f "$collect2name" &&
22873            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22874           then
22875           # We have reworked collect2
22876           :
22877           else
22878           # We have old collect2
22879           hardcode_direct_FC=unsupported
22880           # It fails to find uninstalled libraries when the uninstalled
22881           # path is not listed in the libpath.  Setting hardcode_minus_L
22882           # to unsupported forces relinking
22883           hardcode_minus_L_FC=yes
22884           hardcode_libdir_flag_spec_FC='-L$libdir'
22885           hardcode_libdir_separator_FC=
22886           fi
22887           ;;
22888         esac
22889         shared_flag='-shared'
22890         if test yes = "$aix_use_runtimelinking"; then
22891           shared_flag="$shared_flag "'$wl-G'
22892         fi
22893         # Need to ensure runtime linking is disabled for the traditional
22894         # shared library, or the linker may eventually find shared libraries
22895         # /with/ Import File - we do not want to mix them.
22896         shared_flag_aix='-shared'
22897         shared_flag_svr4='-shared $wl-G'
22898       else
22899         # not using gcc
22900         if test ia64 = "$host_cpu"; then
22901         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22902         # chokes on -Wl,-G. The following line is correct:
22903           shared_flag='-G'
22904         else
22905           if test yes = "$aix_use_runtimelinking"; then
22906             shared_flag='$wl-G'
22907           else
22908             shared_flag='$wl-bM:SRE'
22909           fi
22910           shared_flag_aix='$wl-bM:SRE'
22911           shared_flag_svr4='$wl-G'
22912         fi
22913       fi
22914
22915       export_dynamic_flag_spec_FC='$wl-bexpall'
22916       # It seems that -bexpall does not export symbols beginning with
22917       # underscore (_), so it is better to generate a list of symbols to export.
22918       always_export_symbols_FC=yes
22919       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
22920         # Warning - without using the other runtime loading flags (-brtl),
22921         # -berok will link without error, but may produce a broken library.
22922         allow_undefined_flag_FC='-berok'
22923         # Determine the default libpath from the value encoded in an
22924         # empty executable.
22925         if test set = "${lt_cv_aix_libpath+set}"; then
22926   aix_libpath=$lt_cv_aix_libpath
22927 else
22928   if ${lt_cv_aix_libpath__FC+:} false; then :
22929   $as_echo_n "(cached) " >&6
22930 else
22931   cat > conftest.$ac_ext <<_ACEOF
22932       program main
22933
22934       end
22935 _ACEOF
22936 if ac_fn_fc_try_link "$LINENO"; then :
22937
22938   lt_aix_libpath_sed='
22939       /Import File Strings/,/^$/ {
22940           /^0/ {
22941               s/^0  *\([^ ]*\) *$/\1/
22942               p
22943           }
22944       }'
22945   lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22946   # Check for a 64-bit object if we didn't find anything.
22947   if test -z "$lt_cv_aix_libpath__FC"; then
22948     lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22949   fi
22950 fi
22951 rm -f core conftest.err conftest.$ac_objext \
22952     conftest$ac_exeext conftest.$ac_ext
22953   if test -z "$lt_cv_aix_libpath__FC"; then
22954     lt_cv_aix_libpath__FC=/usr/lib:/lib
22955   fi
22956
22957 fi
22958
22959   aix_libpath=$lt_cv_aix_libpath__FC
22960 fi
22961
22962         hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
22963         archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
22964       else
22965         if test ia64 = "$host_cpu"; then
22966           hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib'
22967           allow_undefined_flag_FC="-z nodefs"
22968           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"
22969         else
22970          # Determine the default libpath from the value encoded in an
22971          # empty executable.
22972          if test set = "${lt_cv_aix_libpath+set}"; then
22973   aix_libpath=$lt_cv_aix_libpath
22974 else
22975   if ${lt_cv_aix_libpath__FC+:} false; then :
22976   $as_echo_n "(cached) " >&6
22977 else
22978   cat > conftest.$ac_ext <<_ACEOF
22979       program main
22980
22981       end
22982 _ACEOF
22983 if ac_fn_fc_try_link "$LINENO"; then :
22984
22985   lt_aix_libpath_sed='
22986       /Import File Strings/,/^$/ {
22987           /^0/ {
22988               s/^0  *\([^ ]*\) *$/\1/
22989               p
22990           }
22991       }'
22992   lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22993   # Check for a 64-bit object if we didn't find anything.
22994   if test -z "$lt_cv_aix_libpath__FC"; then
22995     lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22996   fi
22997 fi
22998 rm -f core conftest.err conftest.$ac_objext \
22999     conftest$ac_exeext conftest.$ac_ext
23000   if test -z "$lt_cv_aix_libpath__FC"; then
23001     lt_cv_aix_libpath__FC=/usr/lib:/lib
23002   fi
23003
23004 fi
23005
23006   aix_libpath=$lt_cv_aix_libpath__FC
23007 fi
23008
23009          hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
23010           # Warning - without using the other run time loading flags,
23011           # -berok will link without error, but may produce a broken library.
23012           no_undefined_flag_FC=' $wl-bernotok'
23013           allow_undefined_flag_FC=' $wl-berok'
23014           if test yes = "$with_gnu_ld"; then
23015             # We only use this code for GNU lds that support --whole-archive.
23016             whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive'
23017           else
23018             # Exported symbols can be pulled into shared objects from archives
23019             whole_archive_flag_spec_FC='$convenience'
23020           fi
23021           archive_cmds_need_lc_FC=yes
23022           archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
23023           # -brtl affects multiple linker settings, -berok does not and is overridden later
23024           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
23025           if test svr4 != "$with_aix_soname"; then
23026             # This is similar to how AIX traditionally builds its shared libraries.
23027             archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
23028           fi
23029           if test aix != "$with_aix_soname"; then
23030             archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
23031           else
23032             # used by -dlpreopen to get the symbols
23033             archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
23034           fi
23035           archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d'
23036         fi
23037       fi
23038       ;;
23039
23040     amigaos*)
23041       case $host_cpu in
23042       powerpc)
23043             # see comment about AmigaOS4 .so support
23044             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
23045             archive_expsym_cmds_FC=''
23046         ;;
23047       m68k)
23048             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)'
23049             hardcode_libdir_flag_spec_FC='-L$libdir'
23050             hardcode_minus_L_FC=yes
23051         ;;
23052       esac
23053       ;;
23054
23055     bsdi[45]*)
23056       export_dynamic_flag_spec_FC=-rdynamic
23057       ;;
23058
23059     cygwin* | mingw* | pw32* | cegcc*)
23060       # When not using gcc, we currently assume that we are using
23061       # Microsoft Visual C++ or Intel C++ Compiler.
23062       # hardcode_libdir_flag_spec is actually meaningless, as there is
23063       # no search path for DLLs.
23064       case $cc_basename in
23065       cl* | icl*)
23066         # Native MSVC or ICC
23067         hardcode_libdir_flag_spec_FC=' '
23068         allow_undefined_flag_FC=unsupported
23069         always_export_symbols_FC=yes
23070         file_list_spec_FC='@'
23071         # Tell ltmain to make .lib files, not .a files.
23072         libext=lib
23073         # Tell ltmain to make .dll files, not .so files.
23074         shrext_cmds=.dll
23075         # FIXME: Setting linknames here is a bad hack.
23076         archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
23077         archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[        ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
23078             cp "$export_symbols" "$output_objdir/$soname.def";
23079             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
23080           else
23081             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
23082           fi~
23083           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
23084           linknames='
23085         # The linker will not automatically build a static lib if we build a DLL.
23086         # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
23087         enable_shared_with_static_runtimes_FC=yes
23088         exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23089         export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23090         # Don't use ranlib
23091         old_postinstall_cmds_FC='chmod 644 $oldlib'
23092         postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
23093           lt_tool_outputfile="@TOOL_OUTPUT@"~
23094           case $lt_outputfile in
23095             *.exe|*.EXE) ;;
23096             *)
23097               lt_outputfile=$lt_outputfile.exe
23098               lt_tool_outputfile=$lt_tool_outputfile.exe
23099               ;;
23100           esac~
23101           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
23102             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
23103             $RM "$lt_outputfile.manifest";
23104           fi'
23105         ;;
23106       *)
23107         # Assume MSVC and ICC wrapper
23108         hardcode_libdir_flag_spec_FC=' '
23109         allow_undefined_flag_FC=unsupported
23110         # Tell ltmain to make .lib files, not .a files.
23111         libext=lib
23112         # Tell ltmain to make .dll files, not .so files.
23113         shrext_cmds=.dll
23114         # FIXME: Setting linknames here is a bad hack.
23115         archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
23116         # The linker will automatically build a .lib file if we build a DLL.
23117         old_archive_from_new_cmds_FC='true'
23118         # FIXME: Should let the user specify the lib program.
23119         old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
23120         enable_shared_with_static_runtimes_FC=yes
23121         ;;
23122       esac
23123       ;;
23124
23125     darwin* | rhapsody*)
23126
23127
23128   archive_cmds_need_lc_FC=no
23129   hardcode_direct_FC=no
23130   hardcode_automatic_FC=yes
23131   hardcode_shlibpath_var_FC=unsupported
23132   if test yes = "$lt_cv_ld_force_load"; then
23133     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\"`'
23134     compiler_needs_object_FC=yes
23135   else
23136     whole_archive_flag_spec_FC=''
23137   fi
23138   link_all_deplibs_FC=yes
23139   allow_undefined_flag_FC=$_lt_dar_allow_undefined
23140   case $cc_basename in
23141      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
23142      *) _lt_dar_can_shared=$GCC ;;
23143   esac
23144   if test yes = "$_lt_dar_can_shared"; then
23145     output_verbose_link_cmd=func_echo_all
23146     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"
23147     module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
23148     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"
23149     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"
23150
23151   else
23152   ld_shlibs_FC=no
23153   fi
23154
23155       ;;
23156
23157     dgux*)
23158       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23159       hardcode_libdir_flag_spec_FC='-L$libdir'
23160       hardcode_shlibpath_var_FC=no
23161       ;;
23162
23163     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23164     # support.  Future versions do this automatically, but an explicit c++rt0.o
23165     # does not break anything, and helps significantly (at the cost of a little
23166     # extra space).
23167     freebsd2.2*)
23168       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23169       hardcode_libdir_flag_spec_FC='-R$libdir'
23170       hardcode_direct_FC=yes
23171       hardcode_shlibpath_var_FC=no
23172       ;;
23173
23174     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23175     freebsd2.*)
23176       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23177       hardcode_direct_FC=yes
23178       hardcode_minus_L_FC=yes
23179       hardcode_shlibpath_var_FC=no
23180       ;;
23181
23182     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23183     freebsd* | dragonfly* | midnightbsd*)
23184       archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23185       hardcode_libdir_flag_spec_FC='-R$libdir'
23186       hardcode_direct_FC=yes
23187       hardcode_shlibpath_var_FC=no
23188       ;;
23189
23190     hpux9*)
23191       if test yes = "$GCC"; then
23192         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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
23193       else
23194         archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
23195       fi
23196       hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
23197       hardcode_libdir_separator_FC=:
23198       hardcode_direct_FC=yes
23199
23200       # hardcode_minus_L: Not really in the search PATH,
23201       # but as the default location of the library.
23202       hardcode_minus_L_FC=yes
23203       export_dynamic_flag_spec_FC='$wl-E'
23204       ;;
23205
23206     hpux10*)
23207       if test yes,no = "$GCC,$with_gnu_ld"; then
23208         archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23209       else
23210         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23211       fi
23212       if test no = "$with_gnu_ld"; then
23213         hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
23214         hardcode_libdir_separator_FC=:
23215         hardcode_direct_FC=yes
23216         hardcode_direct_absolute_FC=yes
23217         export_dynamic_flag_spec_FC='$wl-E'
23218         # hardcode_minus_L: Not really in the search PATH,
23219         # but as the default location of the library.
23220         hardcode_minus_L_FC=yes
23221       fi
23222       ;;
23223
23224     hpux11*)
23225       if test yes,no = "$GCC,$with_gnu_ld"; then
23226         case $host_cpu in
23227         hppa*64*)
23228           archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
23229           ;;
23230         ia64*)
23231           archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23232           ;;
23233         *)
23234           archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23235           ;;
23236         esac
23237       else
23238         case $host_cpu in
23239         hppa*64*)
23240           archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
23241           ;;
23242         ia64*)
23243           archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23244           ;;
23245         *)
23246         archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23247           ;;
23248         esac
23249       fi
23250       if test no = "$with_gnu_ld"; then
23251         hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
23252         hardcode_libdir_separator_FC=:
23253
23254         case $host_cpu in
23255         hppa*64*|ia64*)
23256           hardcode_direct_FC=no
23257           hardcode_shlibpath_var_FC=no
23258           ;;
23259         *)
23260           hardcode_direct_FC=yes
23261           hardcode_direct_absolute_FC=yes
23262           export_dynamic_flag_spec_FC='$wl-E'
23263
23264           # hardcode_minus_L: Not really in the search PATH,
23265           # but as the default location of the library.
23266           hardcode_minus_L_FC=yes
23267           ;;
23268         esac
23269       fi
23270       ;;
23271
23272     irix5* | irix6* | nonstopux*)
23273       if test yes = "$GCC"; then
23274         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'
23275         # Try to use the -exported_symbol ld option, if it does not
23276         # work, assume that -exports_file does not work either and
23277         # implicitly export all symbols.
23278         # This should be the same for all languages, so no per-tag cache variable.
23279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
23280 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
23281 if ${lt_cv_irix_exported_symbol+:} false; then :
23282   $as_echo_n "(cached) " >&6
23283 else
23284   save_LDFLAGS=$LDFLAGS
23285            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
23286            cat > conftest.$ac_ext <<_ACEOF
23287
23288       subroutine foo
23289       end
23290 _ACEOF
23291 if ac_fn_fc_try_link "$LINENO"; then :
23292   lt_cv_irix_exported_symbol=yes
23293 else
23294   lt_cv_irix_exported_symbol=no
23295 fi
23296 rm -f core conftest.err conftest.$ac_objext \
23297     conftest$ac_exeext conftest.$ac_ext
23298            LDFLAGS=$save_LDFLAGS
23299 fi
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
23301 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
23302         if test yes = "$lt_cv_irix_exported_symbol"; then
23303           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'
23304         fi
23305       else
23306         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'
23307         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'
23308       fi
23309       archive_cmds_need_lc_FC='no'
23310       hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
23311       hardcode_libdir_separator_FC=:
23312       inherit_rpath_FC=yes
23313       link_all_deplibs_FC=yes
23314       ;;
23315
23316     linux*)
23317       case $cc_basename in
23318       tcc*)
23319         # Fabrice Bellard et al's Tiny C Compiler
23320         ld_shlibs_FC=yes
23321         archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23322         ;;
23323       esac
23324       ;;
23325
23326     netbsd*)
23327       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23328         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23329       else
23330         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23331       fi
23332       hardcode_libdir_flag_spec_FC='-R$libdir'
23333       hardcode_direct_FC=yes
23334       hardcode_shlibpath_var_FC=no
23335       ;;
23336
23337     newsos6)
23338       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23339       hardcode_direct_FC=yes
23340       hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
23341       hardcode_libdir_separator_FC=:
23342       hardcode_shlibpath_var_FC=no
23343       ;;
23344
23345     *nto* | *qnx*)
23346       ;;
23347
23348     openbsd* | bitrig*)
23349       if test -f /usr/libexec/ld.so; then
23350         hardcode_direct_FC=yes
23351         hardcode_shlibpath_var_FC=no
23352         hardcode_direct_absolute_FC=yes
23353         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
23354           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23355           archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
23356           hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
23357           export_dynamic_flag_spec_FC='$wl-E'
23358         else
23359           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23360           hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
23361         fi
23362       else
23363         ld_shlibs_FC=no
23364       fi
23365       ;;
23366
23367     os2*)
23368       hardcode_libdir_flag_spec_FC='-L$libdir'
23369       hardcode_minus_L_FC=yes
23370       allow_undefined_flag_FC=unsupported
23371       shrext_cmds=.dll
23372       archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
23373         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
23374         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
23375         $ECHO EXPORTS >> $output_objdir/$libname.def~
23376         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
23377         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
23378         emximp -o $lib $output_objdir/$libname.def'
23379       archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
23380         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
23381         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
23382         $ECHO EXPORTS >> $output_objdir/$libname.def~
23383         prefix_cmds="$SED"~
23384         if test EXPORTS = "`$SED 1q $export_symbols`"; then
23385           prefix_cmds="$prefix_cmds -e 1d";
23386         fi~
23387         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
23388         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
23389         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
23390         emximp -o $lib $output_objdir/$libname.def'
23391       old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
23392       enable_shared_with_static_runtimes_FC=yes
23393       file_list_spec_FC='@'
23394       ;;
23395
23396     osf3*)
23397       if test yes = "$GCC"; then
23398         allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
23399         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'
23400       else
23401         allow_undefined_flag_FC=' -expect_unresolved \*'
23402         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'
23403       fi
23404       archive_cmds_need_lc_FC='no'
23405       hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
23406       hardcode_libdir_separator_FC=:
23407       ;;
23408
23409     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23410       if test yes = "$GCC"; then
23411         allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
23412         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'
23413         hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
23414       else
23415         allow_undefined_flag_FC=' -expect_unresolved \*'
23416         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'
23417         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~
23418           $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'
23419
23420         # Both c and cxx compiler support -rpath directly
23421         hardcode_libdir_flag_spec_FC='-rpath $libdir'
23422       fi
23423       archive_cmds_need_lc_FC='no'
23424       hardcode_libdir_separator_FC=:
23425       ;;
23426
23427     solaris*)
23428       no_undefined_flag_FC=' -z defs'
23429       if test yes = "$GCC"; then
23430         wlarc='$wl'
23431         archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
23432         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23433           $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'
23434       else
23435         case `$CC -V 2>&1` in
23436         *"Compilers 5.0"*)
23437           wlarc=''
23438           archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
23439           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23440             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
23441           ;;
23442         *)
23443           wlarc='$wl'
23444           archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
23445           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23446             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23447           ;;
23448         esac
23449       fi
23450       hardcode_libdir_flag_spec_FC='-R$libdir'
23451       hardcode_shlibpath_var_FC=no
23452       case $host_os in
23453       solaris2.[0-5] | solaris2.[0-5].*) ;;
23454       *)
23455         # The compiler driver will combine and reorder linker options,
23456         # but understands '-z linker_flag'.  GCC discards it without '$wl',
23457         # but is careful enough not to reorder.
23458         # Supported since Solaris 2.6 (maybe 2.5.1?)
23459         if test yes = "$GCC"; then
23460           whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
23461         else
23462           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
23463         fi
23464         ;;
23465       esac
23466       link_all_deplibs_FC=yes
23467       ;;
23468
23469     sunos4*)
23470       if test sequent = "$host_vendor"; then
23471         # Use $CC to link under sequent, because it throws in some extra .o
23472         # files that make .init and .fini sections work.
23473         archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23474       else
23475         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23476       fi
23477       hardcode_libdir_flag_spec_FC='-L$libdir'
23478       hardcode_direct_FC=yes
23479       hardcode_minus_L_FC=yes
23480       hardcode_shlibpath_var_FC=no
23481       ;;
23482
23483     sysv4)
23484       case $host_vendor in
23485         sni)
23486           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23487           hardcode_direct_FC=yes # is this really true???
23488         ;;
23489         siemens)
23490           ## LD is ld it makes a PLAMLIB
23491           ## CC just makes a GrossModule.
23492           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23493           reload_cmds_FC='$CC -r -o $output$reload_objs'
23494           hardcode_direct_FC=no
23495         ;;
23496         motorola)
23497           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23498           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
23499         ;;
23500       esac
23501       runpath_var='LD_RUN_PATH'
23502       hardcode_shlibpath_var_FC=no
23503       ;;
23504
23505     sysv4.3*)
23506       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23507       hardcode_shlibpath_var_FC=no
23508       export_dynamic_flag_spec_FC='-Bexport'
23509       ;;
23510
23511     sysv4*MP*)
23512       if test -d /usr/nec; then
23513         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23514         hardcode_shlibpath_var_FC=no
23515         runpath_var=LD_RUN_PATH
23516         hardcode_runpath_var=yes
23517         ld_shlibs_FC=yes
23518       fi
23519       ;;
23520
23521     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23522       no_undefined_flag_FC='$wl-z,text'
23523       archive_cmds_need_lc_FC=no
23524       hardcode_shlibpath_var_FC=no
23525       runpath_var='LD_RUN_PATH'
23526
23527       if test yes = "$GCC"; then
23528         archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23529         archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23530       else
23531         archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23532         archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23533       fi
23534       ;;
23535
23536     sysv5* | sco3.2v5* | sco5v6*)
23537       # Note: We CANNOT use -z defs as we might desire, because we do not
23538       # link with -lc, and that would cause any symbols used from libc to
23539       # always be unresolved, which means just about no library would
23540       # ever link correctly.  If we're not using GNU ld we use -z text
23541       # though, which does catch some bad symbols but isn't as heavy-handed
23542       # as -z defs.
23543       no_undefined_flag_FC='$wl-z,text'
23544       allow_undefined_flag_FC='$wl-z,nodefs'
23545       archive_cmds_need_lc_FC=no
23546       hardcode_shlibpath_var_FC=no
23547       hardcode_libdir_flag_spec_FC='$wl-R,$libdir'
23548       hardcode_libdir_separator_FC=':'
23549       link_all_deplibs_FC=yes
23550       export_dynamic_flag_spec_FC='$wl-Bexport'
23551       runpath_var='LD_RUN_PATH'
23552
23553       if test yes = "$GCC"; then
23554         archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23555         archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23556       else
23557         archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23558         archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23559       fi
23560       ;;
23561
23562     uts4*)
23563       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23564       hardcode_libdir_flag_spec_FC='-L$libdir'
23565       hardcode_shlibpath_var_FC=no
23566       ;;
23567
23568     *)
23569       ld_shlibs_FC=no
23570       ;;
23571     esac
23572
23573     if test sni = "$host_vendor"; then
23574       case $host in
23575       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23576         export_dynamic_flag_spec_FC='$wl-Blargedynsym'
23577         ;;
23578       esac
23579     fi
23580   fi
23581
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
23583 $as_echo "$ld_shlibs_FC" >&6; }
23584 test no = "$ld_shlibs_FC" && can_build_shared=no
23585
23586 with_gnu_ld_FC=$with_gnu_ld
23587
23588
23589
23590
23591
23592
23593 #
23594 # Do we need to explicitly link libc?
23595 #
23596 case "x$archive_cmds_need_lc_FC" in
23597 x|xyes)
23598   # Assume -lc should be added
23599   archive_cmds_need_lc_FC=yes
23600
23601   if test yes,yes = "$GCC,$enable_shared"; then
23602     case $archive_cmds_FC in
23603     *'~'*)
23604       # FIXME: we may have to deal with multi-command sequences.
23605       ;;
23606     '$CC '*)
23607       # Test whether the compiler implicitly links with -lc since on some
23608       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23609       # to ld, don't add -lc before -lgcc.
23610       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23611 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23612 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
23613   $as_echo_n "(cached) " >&6
23614 else
23615   $RM conftest*
23616         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23617
23618         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23619   (eval $ac_compile) 2>&5
23620   ac_status=$?
23621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23622   test $ac_status = 0; } 2>conftest.err; then
23623           soname=conftest
23624           lib=conftest
23625           libobjs=conftest.$ac_objext
23626           deplibs=
23627           wl=$lt_prog_compiler_wl_FC
23628           pic_flag=$lt_prog_compiler_pic_FC
23629           compiler_flags=-v
23630           linker_flags=-v
23631           verstring=
23632           output_objdir=.
23633           libname=conftest
23634           lt_save_allow_undefined_flag=$allow_undefined_flag_FC
23635           allow_undefined_flag_FC=
23636           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23637   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23638   ac_status=$?
23639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23640   test $ac_status = 0; }
23641           then
23642             lt_cv_archive_cmds_need_lc_FC=no
23643           else
23644             lt_cv_archive_cmds_need_lc_FC=yes
23645           fi
23646           allow_undefined_flag_FC=$lt_save_allow_undefined_flag
23647         else
23648           cat conftest.err 1>&5
23649         fi
23650         $RM conftest*
23651
23652 fi
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
23654 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
23655       archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
23656       ;;
23657     esac
23658   fi
23659   ;;
23660 esac
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23725
23726 library_names_spec=
23727 libname_spec='lib$name'
23728 soname_spec=
23729 shrext_cmds=.so
23730 postinstall_cmds=
23731 postuninstall_cmds=
23732 finish_cmds=
23733 finish_eval=
23734 shlibpath_var=
23735 shlibpath_overrides_runpath=unknown
23736 version_type=none
23737 dynamic_linker="$host_os ld.so"
23738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23739 need_lib_prefix=unknown
23740 hardcode_into_libs=no
23741
23742 # when you set need_version to no, make sure it does not cause -set_version
23743 # flags to be left without arguments
23744 need_version=unknown
23745
23746
23747
23748 case $host_os in
23749 aix3*)
23750   version_type=linux # correct to gnu/linux during the next big refactor
23751   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
23752   shlibpath_var=LIBPATH
23753
23754   # AIX 3 has no versioning support, so we append a major version to the name.
23755   soname_spec='$libname$release$shared_ext$major'
23756   ;;
23757
23758 aix[4-9]*)
23759   version_type=linux # correct to gnu/linux during the next big refactor
23760   need_lib_prefix=no
23761   need_version=no
23762   hardcode_into_libs=yes
23763   if test ia64 = "$host_cpu"; then
23764     # AIX 5 supports IA64
23765     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
23766     shlibpath_var=LD_LIBRARY_PATH
23767   else
23768     # With GCC up to 2.95.x, collect2 would create an import file
23769     # for dependence libraries.  The import file would start with
23770     # the line '#! .'.  This would cause the generated library to
23771     # depend on '.', always an invalid library.  This was fixed in
23772     # development snapshots of GCC prior to 3.0.
23773     case $host_os in
23774       aix4 | aix4.[01] | aix4.[01].*)
23775       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23776            echo ' yes '
23777            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
23778         :
23779       else
23780         can_build_shared=no
23781       fi
23782       ;;
23783     esac
23784     # Using Import Files as archive members, it is possible to support
23785     # filename-based versioning of shared library archives on AIX. While
23786     # this would work for both with and without runtime linking, it will
23787     # prevent static linking of such archives. So we do filename-based
23788     # shared library versioning with .so extension only, which is used
23789     # when both runtime linking and shared linking is enabled.
23790     # Unfortunately, runtime linking may impact performance, so we do
23791     # not want this to be the default eventually. Also, we use the
23792     # versioned .so libs for executables only if there is the -brtl
23793     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
23794     # To allow for filename-based versioning support, we need to create
23795     # libNAME.so.V as an archive file, containing:
23796     # *) an Import File, referring to the versioned filename of the
23797     #    archive as well as the shared archive member, telling the
23798     #    bitwidth (32 or 64) of that shared object, and providing the
23799     #    list of exported symbols of that shared object, eventually
23800     #    decorated with the 'weak' keyword
23801     # *) the shared object with the F_LOADONLY flag set, to really avoid
23802     #    it being seen by the linker.
23803     # At run time we better use the real file rather than another symlink,
23804     # but for link time we create the symlink libNAME.so -> libNAME.so.V
23805
23806     case $with_aix_soname,$aix_use_runtimelinking in
23807     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
23808     # soname into executable. Probably we can add versioning support to
23809     # collect2, so additional links can be useful in future.
23810     aix,yes) # traditional libtool
23811       dynamic_linker='AIX unversionable lib.so'
23812       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23813       # instead of lib<name>.a to let people know that these are not
23814       # typical AIX shared libraries.
23815       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23816       ;;
23817     aix,no) # traditional AIX only
23818       dynamic_linker='AIX lib.a(lib.so.V)'
23819       # We preserve .a as extension for shared libraries through AIX4.2
23820       # and later when we are not doing run time linking.
23821       library_names_spec='$libname$release.a $libname.a'
23822       soname_spec='$libname$release$shared_ext$major'
23823       ;;
23824     svr4,*) # full svr4 only
23825       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
23826       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23827       # We do not specify a path in Import Files, so LIBPATH fires.
23828       shlibpath_overrides_runpath=yes
23829       ;;
23830     *,yes) # both, prefer svr4
23831       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
23832       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23833       # unpreferred sharedlib libNAME.a needs extra handling
23834       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
23835       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
23836       # We do not specify a path in Import Files, so LIBPATH fires.
23837       shlibpath_overrides_runpath=yes
23838       ;;
23839     *,no) # both, prefer aix
23840       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
23841       library_names_spec='$libname$release.a $libname.a'
23842       soname_spec='$libname$release$shared_ext$major'
23843       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
23844       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
23845       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
23846       ;;
23847     esac
23848     shlibpath_var=LIBPATH
23849   fi
23850   ;;
23851
23852 amigaos*)
23853   case $host_cpu in
23854   powerpc)
23855     # Since July 2007 AmigaOS4 officially supports .so libraries.
23856     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23857     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23858     ;;
23859   m68k)
23860     library_names_spec='$libname.ixlibrary $libname.a'
23861     # Create ${libname}_ixlibrary.a entries in /sys/libs.
23862     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
23863     ;;
23864   esac
23865   ;;
23866
23867 beos*)
23868   library_names_spec='$libname$shared_ext'
23869   dynamic_linker="$host_os ld.so"
23870   shlibpath_var=LIBRARY_PATH
23871   ;;
23872
23873 bsdi[45]*)
23874   version_type=linux # correct to gnu/linux during the next big refactor
23875   need_version=no
23876   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23877   soname_spec='$libname$release$shared_ext$major'
23878   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23879   shlibpath_var=LD_LIBRARY_PATH
23880   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23881   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23882   # the default ld.so.conf also contains /usr/contrib/lib and
23883   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23884   # libtool to hard-code these into programs
23885   ;;
23886
23887 cygwin* | mingw* | pw32* | cegcc*)
23888   version_type=windows
23889   shrext_cmds=.dll
23890   need_version=no
23891   need_lib_prefix=no
23892
23893   case $GCC,$cc_basename in
23894   yes,*)
23895     # gcc
23896     library_names_spec='$libname.dll.a'
23897     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23898     postinstall_cmds='base_file=`basename \$file`~
23899       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23900       dldir=$destdir/`dirname \$dlpath`~
23901       test -d \$dldir || mkdir -p \$dldir~
23902       $install_prog $dir/$dlname \$dldir/$dlname~
23903       chmod a+x \$dldir/$dlname~
23904       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23905         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23906       fi'
23907     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23908       dlpath=$dir/\$dldll~
23909        $RM \$dlpath'
23910     shlibpath_overrides_runpath=yes
23911
23912     case $host_os in
23913     cygwin*)
23914       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23915       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23916
23917       ;;
23918     mingw* | cegcc*)
23919       # MinGW DLLs use traditional 'lib' prefix
23920       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23921       ;;
23922     pw32*)
23923       # pw32 DLLs use 'pw' prefix rather than 'lib'
23924       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23925       ;;
23926     esac
23927     dynamic_linker='Win32 ld.exe'
23928     ;;
23929
23930   *,cl* | *,icl*)
23931     # Native MSVC or ICC
23932     libname_spec='$name'
23933     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23934     library_names_spec='$libname.dll.lib'
23935
23936     case $build_os in
23937     mingw*)
23938       sys_lib_search_path_spec=
23939       lt_save_ifs=$IFS
23940       IFS=';'
23941       for lt_path in $LIB
23942       do
23943         IFS=$lt_save_ifs
23944         # Let DOS variable expansion print the short 8.3 style file name.
23945         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23946         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23947       done
23948       IFS=$lt_save_ifs
23949       # Convert to MSYS style.
23950       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
23951       ;;
23952     cygwin*)
23953       # Convert to unix form, then to dos form, then back to unix form
23954       # but this time dos style (no spaces!) so that the unix form looks
23955       # like /cygdrive/c/PROGRA~1:/cygdr...
23956       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
23957       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23958       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23959       ;;
23960     *)
23961       sys_lib_search_path_spec=$LIB
23962       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23963         # It is most probably a Windows format PATH.
23964         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23965       else
23966         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23967       fi
23968       # FIXME: find the short name or the path components, as spaces are
23969       # common. (e.g. "Program Files" -> "PROGRA~1")
23970       ;;
23971     esac
23972
23973     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23974     postinstall_cmds='base_file=`basename \$file`~
23975       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23976       dldir=$destdir/`dirname \$dlpath`~
23977       test -d \$dldir || mkdir -p \$dldir~
23978       $install_prog $dir/$dlname \$dldir/$dlname'
23979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23980       dlpath=$dir/\$dldll~
23981        $RM \$dlpath'
23982     shlibpath_overrides_runpath=yes
23983     dynamic_linker='Win32 link.exe'
23984     ;;
23985
23986   *)
23987     # Assume MSVC and ICC wrapper
23988     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
23989     dynamic_linker='Win32 ld.exe'
23990     ;;
23991   esac
23992   # FIXME: first we should search . and the directory the executable is in
23993   shlibpath_var=PATH
23994   ;;
23995
23996 darwin* | rhapsody*)
23997   dynamic_linker="$host_os dyld"
23998   version_type=darwin
23999   need_lib_prefix=no
24000   need_version=no
24001   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
24002   soname_spec='$libname$release$major$shared_ext'
24003   shlibpath_overrides_runpath=yes
24004   shlibpath_var=DYLD_LIBRARY_PATH
24005   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24006
24007   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24008   ;;
24009
24010 dgux*)
24011   version_type=linux # correct to gnu/linux during the next big refactor
24012   need_lib_prefix=no
24013   need_version=no
24014   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24015   soname_spec='$libname$release$shared_ext$major'
24016   shlibpath_var=LD_LIBRARY_PATH
24017   ;;
24018
24019 freebsd* | dragonfly* | midnightbsd*)
24020   # DragonFly does not have aout.  When/if they implement a new
24021   # versioning mechanism, adjust this.
24022   if test -x /usr/bin/objformat; then
24023     objformat=`/usr/bin/objformat`
24024   else
24025     case $host_os in
24026     freebsd[23].*) objformat=aout ;;
24027     *) objformat=elf ;;
24028     esac
24029   fi
24030   version_type=freebsd-$objformat
24031   case $version_type in
24032     freebsd-elf*)
24033       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24034       soname_spec='$libname$release$shared_ext$major'
24035       need_version=no
24036       need_lib_prefix=no
24037       ;;
24038     freebsd-*)
24039       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24040       need_version=yes
24041       ;;
24042   esac
24043   shlibpath_var=LD_LIBRARY_PATH
24044   case $host_os in
24045   freebsd2.*)
24046     shlibpath_overrides_runpath=yes
24047     ;;
24048   freebsd3.[01]* | freebsdelf3.[01]*)
24049     shlibpath_overrides_runpath=yes
24050     hardcode_into_libs=yes
24051     ;;
24052   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24053   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24054     shlibpath_overrides_runpath=no
24055     hardcode_into_libs=yes
24056     ;;
24057   *) # from 4.6 on, and DragonFly
24058     shlibpath_overrides_runpath=yes
24059     hardcode_into_libs=yes
24060     ;;
24061   esac
24062   ;;
24063
24064 haiku*)
24065   version_type=linux # correct to gnu/linux during the next big refactor
24066   need_lib_prefix=no
24067   need_version=no
24068   dynamic_linker="$host_os runtime_loader"
24069   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24070   soname_spec='$libname$release$shared_ext$major'
24071   shlibpath_var=LIBRARY_PATH
24072   shlibpath_overrides_runpath=no
24073   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24074   hardcode_into_libs=yes
24075   ;;
24076
24077 hpux9* | hpux10* | hpux11*)
24078   # Give a soname corresponding to the major version so that dld.sl refuses to
24079   # link against other versions.
24080   version_type=sunos
24081   need_lib_prefix=no
24082   need_version=no
24083   case $host_cpu in
24084   ia64*)
24085     shrext_cmds='.so'
24086     hardcode_into_libs=yes
24087     dynamic_linker="$host_os dld.so"
24088     shlibpath_var=LD_LIBRARY_PATH
24089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24090     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24091     soname_spec='$libname$release$shared_ext$major'
24092     if test 32 = "$HPUX_IA64_MODE"; then
24093       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24094       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
24095     else
24096       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24097       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
24098     fi
24099     ;;
24100   hppa*64*)
24101     shrext_cmds='.sl'
24102     hardcode_into_libs=yes
24103     dynamic_linker="$host_os dld.sl"
24104     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24105     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24106     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24107     soname_spec='$libname$release$shared_ext$major'
24108     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24109     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24110     ;;
24111   *)
24112     shrext_cmds='.sl'
24113     dynamic_linker="$host_os dld.sl"
24114     shlibpath_var=SHLIB_PATH
24115     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24116     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24117     soname_spec='$libname$release$shared_ext$major'
24118     ;;
24119   esac
24120   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24121   postinstall_cmds='chmod 555 $lib'
24122   # or fails outright, so override atomically:
24123   install_override_mode=555
24124   ;;
24125
24126 interix[3-9]*)
24127   version_type=linux # correct to gnu/linux during the next big refactor
24128   need_lib_prefix=no
24129   need_version=no
24130   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24131   soname_spec='$libname$release$shared_ext$major'
24132   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24133   shlibpath_var=LD_LIBRARY_PATH
24134   shlibpath_overrides_runpath=no
24135   hardcode_into_libs=yes
24136   ;;
24137
24138 irix5* | irix6* | nonstopux*)
24139   case $host_os in
24140     nonstopux*) version_type=nonstopux ;;
24141     *)
24142         if test yes = "$lt_cv_prog_gnu_ld"; then
24143                 version_type=linux # correct to gnu/linux during the next big refactor
24144         else
24145                 version_type=irix
24146         fi ;;
24147   esac
24148   need_lib_prefix=no
24149   need_version=no
24150   soname_spec='$libname$release$shared_ext$major'
24151   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
24152   case $host_os in
24153   irix5* | nonstopux*)
24154     libsuff= shlibsuff=
24155     ;;
24156   *)
24157     case $LD in # libtool.m4 will add one of these switches to LD
24158     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24159       libsuff= shlibsuff= libmagic=32-bit;;
24160     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24161       libsuff=32 shlibsuff=N32 libmagic=N32;;
24162     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24163       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24164     *) libsuff= shlibsuff= libmagic=never-match;;
24165     esac
24166     ;;
24167   esac
24168   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24169   shlibpath_overrides_runpath=no
24170   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
24171   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
24172   hardcode_into_libs=yes
24173   ;;
24174
24175 # No shared lib support for Linux oldld, aout, or coff.
24176 linux*oldld* | linux*aout* | linux*coff*)
24177   dynamic_linker=no
24178   ;;
24179
24180 linux*android*)
24181   version_type=none # Android doesn't support versioned libraries.
24182   need_lib_prefix=no
24183   need_version=no
24184   library_names_spec='$libname$release$shared_ext'
24185   soname_spec='$libname$release$shared_ext'
24186   finish_cmds=
24187   shlibpath_var=LD_LIBRARY_PATH
24188   shlibpath_overrides_runpath=yes
24189
24190   # This implies no fast_install, which is unacceptable.
24191   # Some rework will be needed to allow for fast_install
24192   # before this can be enabled.
24193   hardcode_into_libs=yes
24194
24195   dynamic_linker='Android linker'
24196   # Don't embed -rpath directories since the linker doesn't support them.
24197   hardcode_libdir_flag_spec_FC='-L$libdir'
24198   ;;
24199
24200 # This must be glibc/ELF.
24201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24202   version_type=linux # correct to gnu/linux during the next big refactor
24203   need_lib_prefix=no
24204   need_version=no
24205   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24206   soname_spec='$libname$release$shared_ext$major'
24207   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24208   shlibpath_var=LD_LIBRARY_PATH
24209   shlibpath_overrides_runpath=no
24210
24211   # Some binutils ld are patched to set DT_RUNPATH
24212   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24213   $as_echo_n "(cached) " >&6
24214 else
24215   lt_cv_shlibpath_overrides_runpath=no
24216     save_LDFLAGS=$LDFLAGS
24217     save_libdir=$libdir
24218     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
24219          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
24220     cat > conftest.$ac_ext <<_ACEOF
24221       program main
24222
24223       end
24224 _ACEOF
24225 if ac_fn_fc_try_link "$LINENO"; then :
24226   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24227   lt_cv_shlibpath_overrides_runpath=yes
24228 fi
24229 fi
24230 rm -f core conftest.err conftest.$ac_objext \
24231     conftest$ac_exeext conftest.$ac_ext
24232     LDFLAGS=$save_LDFLAGS
24233     libdir=$save_libdir
24234
24235 fi
24236
24237   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24238
24239   # This implies no fast_install, which is unacceptable.
24240   # Some rework will be needed to allow for fast_install
24241   # before this can be enabled.
24242   hardcode_into_libs=yes
24243
24244   # Ideally, we could use ldconfig to report *all* directores which are
24245   # searched for libraries, however this is still not possible.  Aside from not
24246   # being certain /sbin/ldconfig is available, command
24247   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
24248   # even though it is searched at run-time.  Try to do the best guess by
24249   # appending ld.so.conf contents (and includes) to the search path.
24250   if test -f /etc/ld.so.conf; then
24251     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' ' '`
24252     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24253   fi
24254
24255   # We used to test for /lib/ld.so.1 and disable shared libraries on
24256   # powerpc, because MkLinux only supported shared libraries with the
24257   # GNU dynamic linker.  Since this was broken with cross compilers,
24258   # most powerpc-linux boxes support dynamic linking these days and
24259   # people can always --disable-shared, the test was removed, and we
24260   # assume the GNU/Linux dynamic linker is in use.
24261   dynamic_linker='GNU/Linux ld.so'
24262   ;;
24263
24264 netbsd*)
24265   version_type=sunos
24266   need_lib_prefix=no
24267   need_version=no
24268   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24269     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24270     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24271     dynamic_linker='NetBSD (a.out) ld.so'
24272   else
24273     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24274     soname_spec='$libname$release$shared_ext$major'
24275     dynamic_linker='NetBSD ld.elf_so'
24276   fi
24277   shlibpath_var=LD_LIBRARY_PATH
24278   shlibpath_overrides_runpath=yes
24279   hardcode_into_libs=yes
24280   ;;
24281
24282 newsos6)
24283   version_type=linux # correct to gnu/linux during the next big refactor
24284   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24285   shlibpath_var=LD_LIBRARY_PATH
24286   shlibpath_overrides_runpath=yes
24287   ;;
24288
24289 *nto* | *qnx*)
24290   version_type=qnx
24291   need_lib_prefix=no
24292   need_version=no
24293   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24294   soname_spec='$libname$release$shared_ext$major'
24295   shlibpath_var=LD_LIBRARY_PATH
24296   shlibpath_overrides_runpath=no
24297   hardcode_into_libs=yes
24298   dynamic_linker='ldqnx.so'
24299   ;;
24300
24301 openbsd* | bitrig*)
24302   version_type=sunos
24303   sys_lib_dlsearch_path_spec=/usr/lib
24304   need_lib_prefix=no
24305   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
24306     need_version=no
24307   else
24308     need_version=yes
24309   fi
24310   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24311   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24312   shlibpath_var=LD_LIBRARY_PATH
24313   shlibpath_overrides_runpath=yes
24314   ;;
24315
24316 os2*)
24317   libname_spec='$name'
24318   version_type=windows
24319   shrext_cmds=.dll
24320   need_version=no
24321   need_lib_prefix=no
24322   # OS/2 can only load a DLL with a base name of 8 characters or less.
24323   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
24324     v=$($ECHO $release$versuffix | tr -d .-);
24325     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
24326     $ECHO $n$v`$shared_ext'
24327   library_names_spec='${libname}_dll.$libext'
24328   dynamic_linker='OS/2 ld.exe'
24329   shlibpath_var=BEGINLIBPATH
24330   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24331   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24332   postinstall_cmds='base_file=`basename \$file`~
24333     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
24334     dldir=$destdir/`dirname \$dlpath`~
24335     test -d \$dldir || mkdir -p \$dldir~
24336     $install_prog $dir/$dlname \$dldir/$dlname~
24337     chmod a+x \$dldir/$dlname~
24338     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24339       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24340     fi'
24341   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
24342     dlpath=$dir/\$dldll~
24343     $RM \$dlpath'
24344   ;;
24345
24346 osf3* | osf4* | osf5*)
24347   version_type=osf
24348   need_lib_prefix=no
24349   need_version=no
24350   soname_spec='$libname$release$shared_ext$major'
24351   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24352   shlibpath_var=LD_LIBRARY_PATH
24353   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24354   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24355   ;;
24356
24357 rdos*)
24358   dynamic_linker=no
24359   ;;
24360
24361 solaris*)
24362   version_type=linux # correct to gnu/linux during the next big refactor
24363   need_lib_prefix=no
24364   need_version=no
24365   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24366   soname_spec='$libname$release$shared_ext$major'
24367   shlibpath_var=LD_LIBRARY_PATH
24368   shlibpath_overrides_runpath=yes
24369   hardcode_into_libs=yes
24370   # ldd complains unless libraries are executable
24371   postinstall_cmds='chmod +x $lib'
24372   ;;
24373
24374 sunos4*)
24375   version_type=sunos
24376   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24377   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24378   shlibpath_var=LD_LIBRARY_PATH
24379   shlibpath_overrides_runpath=yes
24380   if test yes = "$with_gnu_ld"; then
24381     need_lib_prefix=no
24382   fi
24383   need_version=yes
24384   ;;
24385
24386 sysv4 | sysv4.3*)
24387   version_type=linux # correct to gnu/linux during the next big refactor
24388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24389   soname_spec='$libname$release$shared_ext$major'
24390   shlibpath_var=LD_LIBRARY_PATH
24391   case $host_vendor in
24392     sni)
24393       shlibpath_overrides_runpath=no
24394       need_lib_prefix=no
24395       runpath_var=LD_RUN_PATH
24396       ;;
24397     siemens)
24398       need_lib_prefix=no
24399       ;;
24400     motorola)
24401       need_lib_prefix=no
24402       need_version=no
24403       shlibpath_overrides_runpath=no
24404       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24405       ;;
24406   esac
24407   ;;
24408
24409 sysv4*MP*)
24410   if test -d /usr/nec; then
24411     version_type=linux # correct to gnu/linux during the next big refactor
24412     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
24413     soname_spec='$libname$shared_ext.$major'
24414     shlibpath_var=LD_LIBRARY_PATH
24415   fi
24416   ;;
24417
24418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24419   version_type=sco
24420   need_lib_prefix=no
24421   need_version=no
24422   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
24423   soname_spec='$libname$release$shared_ext$major'
24424   shlibpath_var=LD_LIBRARY_PATH
24425   shlibpath_overrides_runpath=yes
24426   hardcode_into_libs=yes
24427   if test yes = "$with_gnu_ld"; then
24428     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24429   else
24430     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24431     case $host_os in
24432       sco3.2v5*)
24433         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24434         ;;
24435     esac
24436   fi
24437   sys_lib_dlsearch_path_spec='/usr/lib'
24438   ;;
24439
24440 tpf*)
24441   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
24442   version_type=linux # correct to gnu/linux during the next big refactor
24443   need_lib_prefix=no
24444   need_version=no
24445   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24446   shlibpath_var=LD_LIBRARY_PATH
24447   shlibpath_overrides_runpath=no
24448   hardcode_into_libs=yes
24449   ;;
24450
24451 uts4*)
24452   version_type=linux # correct to gnu/linux during the next big refactor
24453   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24454   soname_spec='$libname$release$shared_ext$major'
24455   shlibpath_var=LD_LIBRARY_PATH
24456   ;;
24457
24458 *)
24459   dynamic_linker=no
24460   ;;
24461 esac
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24463 $as_echo "$dynamic_linker" >&6; }
24464 test no = "$dynamic_linker" && can_build_shared=no
24465
24466 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24467 if test yes = "$GCC"; then
24468   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24469 fi
24470
24471 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
24472   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
24473 fi
24474
24475 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
24476   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
24477 fi
24478
24479 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
24480 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
24481
24482 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
24483 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
24484
24485 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
24486 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24528 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24529 hardcode_action_FC=
24530 if test -n "$hardcode_libdir_flag_spec_FC" ||
24531    test -n "$runpath_var_FC" ||
24532    test yes = "$hardcode_automatic_FC"; then
24533
24534   # We can hardcode non-existent directories.
24535   if test no != "$hardcode_direct_FC" &&
24536      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24537      # have to relink, otherwise we might link with an installed library
24538      # when we should be linking with a yet-to-be-installed one
24539      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" &&
24540      test no != "$hardcode_minus_L_FC"; then
24541     # Linking always hardcodes the temporary library directory.
24542     hardcode_action_FC=relink
24543   else
24544     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24545     hardcode_action_FC=immediate
24546   fi
24547 else
24548   # We cannot hardcode anything, or else we can only hardcode existing
24549   # directories.
24550   hardcode_action_FC=unsupported
24551 fi
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
24553 $as_echo "$hardcode_action_FC" >&6; }
24554
24555 if test relink = "$hardcode_action_FC" ||
24556    test yes = "$inherit_rpath_FC"; then
24557   # Fast installation is not supported
24558   enable_fast_install=no
24559 elif test yes = "$shlibpath_overrides_runpath" ||
24560      test no = "$enable_shared"; then
24561   # Fast installation is not necessary
24562   enable_fast_install=needless
24563 fi
24564
24565
24566
24567
24568
24569
24570
24571   fi # test -n "$compiler"
24572
24573   GCC=$lt_save_GCC
24574   CC=$lt_save_CC
24575   CFLAGS=$lt_save_CFLAGS
24576 fi # test yes != "$_lt_disable_FC"
24577
24578 ac_ext=c
24579 ac_cpp='$CPP $CPPFLAGS'
24580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24583
24584
24585 if test -n "$ac_tool_prefix"; then
24586   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
24587 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24589 $as_echo_n "checking for $ac_word... " >&6; }
24590 if ${ac_cv_prog_GOC+:} false; then :
24591   $as_echo_n "(cached) " >&6
24592 else
24593   if test -n "$GOC"; then
24594   ac_cv_prog_GOC="$GOC" # Let the user override the test.
24595 else
24596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24597 for as_dir in $PATH
24598 do
24599   IFS=$as_save_IFS
24600   test -z "$as_dir" && as_dir=.
24601     for ac_exec_ext in '' $ac_executable_extensions; do
24602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24603     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
24604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24605     break 2
24606   fi
24607 done
24608   done
24609 IFS=$as_save_IFS
24610
24611 fi
24612 fi
24613 GOC=$ac_cv_prog_GOC
24614 if test -n "$GOC"; then
24615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
24616 $as_echo "$GOC" >&6; }
24617 else
24618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24619 $as_echo "no" >&6; }
24620 fi
24621
24622
24623 fi
24624 if test -z "$ac_cv_prog_GOC"; then
24625   ac_ct_GOC=$GOC
24626   # Extract the first word of "gccgo", so it can be a program name with args.
24627 set dummy gccgo; ac_word=$2
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24629 $as_echo_n "checking for $ac_word... " >&6; }
24630 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
24631   $as_echo_n "(cached) " >&6
24632 else
24633   if test -n "$ac_ct_GOC"; then
24634   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
24635 else
24636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24637 for as_dir in $PATH
24638 do
24639   IFS=$as_save_IFS
24640   test -z "$as_dir" && as_dir=.
24641     for ac_exec_ext in '' $ac_executable_extensions; do
24642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24643     ac_cv_prog_ac_ct_GOC="gccgo"
24644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24645     break 2
24646   fi
24647 done
24648   done
24649 IFS=$as_save_IFS
24650
24651 fi
24652 fi
24653 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
24654 if test -n "$ac_ct_GOC"; then
24655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
24656 $as_echo "$ac_ct_GOC" >&6; }
24657 else
24658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24659 $as_echo "no" >&6; }
24660 fi
24661
24662   if test "x$ac_ct_GOC" = x; then
24663     GOC=""
24664   else
24665     case $cross_compiling:$ac_tool_warned in
24666 yes:)
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24669 ac_tool_warned=yes ;;
24670 esac
24671     GOC=$ac_ct_GOC
24672   fi
24673 else
24674   GOC="$ac_cv_prog_GOC"
24675 fi
24676
24677
24678
24679
24680 # Source file extension for Go test sources.
24681 ac_ext=go
24682
24683 # Object file extension for compiled Go test sources.
24684 objext=o
24685 objext_GO=$objext
24686
24687 # Code to be used in simple compile tests
24688 lt_simple_compile_test_code="package main; func main() { }"
24689
24690 # Code to be used in simple link tests
24691 lt_simple_link_test_code='package main; func main() { }'
24692
24693 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24694
24695
24696
24697
24698
24699
24700 # If no C compiler was specified, use CC.
24701 LTCC=${LTCC-"$CC"}
24702
24703 # If no C compiler flags were specified, use CFLAGS.
24704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24705
24706 # Allow CC to be a program name with arguments.
24707 compiler=$CC
24708
24709
24710 # save warnings/boilerplate of simple test code
24711 ac_outfile=conftest.$ac_objext
24712 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24713 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24714 _lt_compiler_boilerplate=`cat conftest.err`
24715 $RM conftest*
24716
24717 ac_outfile=conftest.$ac_objext
24718 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24719 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24720 _lt_linker_boilerplate=`cat conftest.err`
24721 $RM -r conftest*
24722
24723
24724 # Allow CC to be a program name with arguments.
24725 lt_save_CC=$CC
24726 lt_save_CFLAGS=$CFLAGS
24727 lt_save_GCC=$GCC
24728 GCC=yes
24729 CC=${GOC-"gccgo"}
24730 CFLAGS=$GOFLAGS
24731 compiler=$CC
24732 compiler_GO=$CC
24733 LD_GO=$LD
24734 func_cc_basename $compiler
24735 cc_basename=$func_cc_basename_result
24736
24737
24738 # Go did not exist at the time GCC didn't implicitly link libc in.
24739 archive_cmds_need_lc_GO=no
24740
24741 old_archive_cmds_GO=$old_archive_cmds
24742 reload_flag_GO=$reload_flag
24743 reload_cmds_GO=$reload_cmds
24744
24745 ## CAVEAT EMPTOR:
24746 ## There is no encapsulation within the following macros, do not change
24747 ## the running order or otherwise move them around unless you know exactly
24748 ## what you are doing...
24749 if test -n "$compiler"; then
24750
24751 lt_prog_compiler_no_builtin_flag_GO=
24752
24753 if test yes = "$GCC"; then
24754   case $cc_basename in
24755   nvcc*)
24756     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
24757   *)
24758     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
24759   esac
24760
24761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24762 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
24763 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
24764   $as_echo_n "(cached) " >&6
24765 else
24766   lt_cv_prog_compiler_rtti_exceptions=no
24767    ac_outfile=conftest.$ac_objext
24768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24769    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
24770    # Insert the option either (1) after the last *FLAGS variable, or
24771    # (2) before a word containing "conftest.", or (3) at the end.
24772    # Note that $ac_compile itself does not contain backslashes and begins
24773    # with a dollar sign (not a hyphen), so the echo should work correctly.
24774    # The option is referenced via a variable to avoid confusing sed.
24775    lt_compile=`echo "$ac_compile" | $SED \
24776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24778    -e 's:$: $lt_compiler_flag:'`
24779    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24780    (eval "$lt_compile" 2>conftest.err)
24781    ac_status=$?
24782    cat conftest.err >&5
24783    echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784    if (exit $ac_status) && test -s "$ac_outfile"; then
24785      # The compiler can only warn and ignore the option if not recognized
24786      # So say no if there are warnings other than the usual output.
24787      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
24788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24790        lt_cv_prog_compiler_rtti_exceptions=yes
24791      fi
24792    fi
24793    $RM conftest*
24794
24795 fi
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24797 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24798
24799 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
24800     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
24801 else
24802     :
24803 fi
24804
24805 fi
24806
24807
24808
24809   lt_prog_compiler_wl_GO=
24810 lt_prog_compiler_pic_GO=
24811 lt_prog_compiler_static_GO=
24812
24813
24814   if test yes = "$GCC"; then
24815     lt_prog_compiler_wl_GO='-Wl,'
24816     lt_prog_compiler_static_GO='-static'
24817
24818     case $host_os in
24819       aix*)
24820       # All AIX code is PIC.
24821       if test ia64 = "$host_cpu"; then
24822         # AIX 5 now supports IA64 processor
24823         lt_prog_compiler_static_GO='-Bstatic'
24824       fi
24825       lt_prog_compiler_pic_GO='-fPIC'
24826       ;;
24827
24828     amigaos*)
24829       case $host_cpu in
24830       powerpc)
24831             # see comment about AmigaOS4 .so support
24832             lt_prog_compiler_pic_GO='-fPIC'
24833         ;;
24834       m68k)
24835             # FIXME: we need at least 68020 code to build shared libraries, but
24836             # adding the '-m68020' flag to GCC prevents building anything better,
24837             # like '-m68040'.
24838             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
24839         ;;
24840       esac
24841       ;;
24842
24843     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24844       # PIC is the default for these OSes.
24845       ;;
24846
24847     mingw* | cygwin* | pw32* | os2* | cegcc*)
24848       # This hack is so that the source file can tell whether it is being
24849       # built for inclusion in a dll (and should export symbols for example).
24850       # Although the cygwin gcc ignores -fPIC, still need this for old-style
24851       # (--disable-auto-import) libraries
24852       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
24853       case $host_os in
24854       os2*)
24855         lt_prog_compiler_static_GO='$wl-static'
24856         ;;
24857       esac
24858       ;;
24859
24860     darwin* | rhapsody*)
24861       # PIC is the default on this platform
24862       # Common symbols not allowed in MH_DYLIB files
24863       lt_prog_compiler_pic_GO='-fno-common'
24864       ;;
24865
24866     haiku*)
24867       # PIC is the default for Haiku.
24868       # The "-static" flag exists, but is broken.
24869       lt_prog_compiler_static_GO=
24870       ;;
24871
24872     hpux*)
24873       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
24874       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
24875       # sets the default TLS model and affects inlining.
24876       case $host_cpu in
24877       hppa*64*)
24878         # +Z the default
24879         ;;
24880       *)
24881         lt_prog_compiler_pic_GO='-fPIC'
24882         ;;
24883       esac
24884       ;;
24885
24886     interix[3-9]*)
24887       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24888       # Instead, we relocate shared libraries at runtime.
24889       ;;
24890
24891     msdosdjgpp*)
24892       # Just because we use GCC doesn't mean we suddenly get shared libraries
24893       # on systems that don't support them.
24894       lt_prog_compiler_can_build_shared_GO=no
24895       enable_shared=no
24896       ;;
24897
24898     *nto* | *qnx*)
24899       # QNX uses GNU C++, but need to define -shared option too, otherwise
24900       # it will coredump.
24901       lt_prog_compiler_pic_GO='-fPIC -shared'
24902       ;;
24903
24904     sysv4*MP*)
24905       if test -d /usr/nec; then
24906         lt_prog_compiler_pic_GO=-Kconform_pic
24907       fi
24908       ;;
24909
24910     *)
24911       lt_prog_compiler_pic_GO='-fPIC'
24912       ;;
24913     esac
24914
24915     case $cc_basename in
24916     nvcc*) # Cuda Compiler Driver 2.2
24917       lt_prog_compiler_wl_GO='-Xlinker '
24918       if test -n "$lt_prog_compiler_pic_GO"; then
24919         lt_prog_compiler_pic_GO="-Xcompiler $lt_prog_compiler_pic_GO"
24920       fi
24921       ;;
24922     esac
24923   else
24924     # PORTME Check for flag to pass linker flags through the system compiler.
24925     case $host_os in
24926     aix*)
24927       lt_prog_compiler_wl_GO='-Wl,'
24928       if test ia64 = "$host_cpu"; then
24929         # AIX 5 now supports IA64 processor
24930         lt_prog_compiler_static_GO='-Bstatic'
24931       else
24932         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
24933       fi
24934       ;;
24935
24936     darwin* | rhapsody*)
24937       # PIC is the default on this platform
24938       # Common symbols not allowed in MH_DYLIB files
24939       lt_prog_compiler_pic_GO='-fno-common'
24940       case $cc_basename in
24941       nagfor*)
24942         # NAG Fortran compiler
24943         lt_prog_compiler_wl_GO='-Wl,-Wl,,'
24944         lt_prog_compiler_pic_GO='-PIC'
24945         lt_prog_compiler_static_GO='-Bstatic'
24946         ;;
24947       esac
24948       ;;
24949
24950     mingw* | cygwin* | pw32* | os2* | cegcc*)
24951       # This hack is so that the source file can tell whether it is being
24952       # built for inclusion in a dll (and should export symbols for example).
24953       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
24954       case $host_os in
24955       os2*)
24956         lt_prog_compiler_static_GO='$wl-static'
24957         ;;
24958       esac
24959       ;;
24960
24961     hpux9* | hpux10* | hpux11*)
24962       lt_prog_compiler_wl_GO='-Wl,'
24963       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24964       # not for PA HP-UX.
24965       case $host_cpu in
24966       hppa*64*|ia64*)
24967         # +Z the default
24968         ;;
24969       *)
24970         lt_prog_compiler_pic_GO='+Z'
24971         ;;
24972       esac
24973       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24974       lt_prog_compiler_static_GO='$wl-a ${wl}archive'
24975       ;;
24976
24977     irix5* | irix6* | nonstopux*)
24978       lt_prog_compiler_wl_GO='-Wl,'
24979       # PIC (with -KPIC) is the default.
24980       lt_prog_compiler_static_GO='-non_shared'
24981       ;;
24982
24983     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24984       case $cc_basename in
24985       # old Intel for x86_64, which still supported -KPIC.
24986       ecc*)
24987         lt_prog_compiler_wl_GO='-Wl,'
24988         lt_prog_compiler_pic_GO='-KPIC'
24989         lt_prog_compiler_static_GO='-static'
24990         ;;
24991       # icc used to be incompatible with GCC.
24992       # ICC 10 doesn't accept -KPIC any more.
24993       icc* | ifort*)
24994         lt_prog_compiler_wl_GO='-Wl,'
24995         lt_prog_compiler_pic_GO='-fPIC'
24996         lt_prog_compiler_static_GO='-static'
24997         ;;
24998       # Lahey Fortran 8.1.
24999       lf95*)
25000         lt_prog_compiler_wl_GO='-Wl,'
25001         lt_prog_compiler_pic_GO='--shared'
25002         lt_prog_compiler_static_GO='--static'
25003         ;;
25004       nagfor*)
25005         # NAG Fortran compiler
25006         lt_prog_compiler_wl_GO='-Wl,-Wl,,'
25007         lt_prog_compiler_pic_GO='-PIC'
25008         lt_prog_compiler_static_GO='-Bstatic'
25009         ;;
25010       tcc*)
25011         # Fabrice Bellard et al's Tiny C Compiler
25012         lt_prog_compiler_wl_GO='-Wl,'
25013         lt_prog_compiler_pic_GO='-fPIC'
25014         lt_prog_compiler_static_GO='-static'
25015         ;;
25016       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
25017         # Portland Group compilers (*not* the Pentium gcc compiler,
25018         # which looks to be a dead project)
25019         lt_prog_compiler_wl_GO='-Wl,'
25020         lt_prog_compiler_pic_GO='-fpic'
25021         lt_prog_compiler_static_GO='-Bstatic'
25022         ;;
25023       ccc*)
25024         lt_prog_compiler_wl_GO='-Wl,'
25025         # All Alpha code is PIC.
25026         lt_prog_compiler_static_GO='-non_shared'
25027         ;;
25028       xl* | bgxl* | bgf* | mpixl*)
25029         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
25030         lt_prog_compiler_wl_GO='-Wl,'
25031         lt_prog_compiler_pic_GO='-qpic'
25032         lt_prog_compiler_static_GO='-qstaticlink'
25033         ;;
25034       *)
25035         case `$CC -V 2>&1 | $SED 5q` in
25036         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
25037           # Sun Fortran 8.3 passes all unrecognized flags to the linker
25038           lt_prog_compiler_pic_GO='-KPIC'
25039           lt_prog_compiler_static_GO='-Bstatic'
25040           lt_prog_compiler_wl_GO=''
25041           ;;
25042         *Sun\ F* | *Sun*Fortran*)
25043           lt_prog_compiler_pic_GO='-KPIC'
25044           lt_prog_compiler_static_GO='-Bstatic'
25045           lt_prog_compiler_wl_GO='-Qoption ld '
25046           ;;
25047         *Sun\ C*)
25048           # Sun C 5.9
25049           lt_prog_compiler_pic_GO='-KPIC'
25050           lt_prog_compiler_static_GO='-Bstatic'
25051           lt_prog_compiler_wl_GO='-Wl,'
25052           ;;
25053         *Intel*\ [CF]*Compiler*)
25054           lt_prog_compiler_wl_GO='-Wl,'
25055           lt_prog_compiler_pic_GO='-fPIC'
25056           lt_prog_compiler_static_GO='-static'
25057           ;;
25058         *Portland\ Group*)
25059           lt_prog_compiler_wl_GO='-Wl,'
25060           lt_prog_compiler_pic_GO='-fpic'
25061           lt_prog_compiler_static_GO='-Bstatic'
25062           ;;
25063         esac
25064         ;;
25065       esac
25066       ;;
25067
25068     newsos6)
25069       lt_prog_compiler_pic_GO='-KPIC'
25070       lt_prog_compiler_static_GO='-Bstatic'
25071       ;;
25072
25073     *nto* | *qnx*)
25074       # QNX uses GNU C++, but need to define -shared option too, otherwise
25075       # it will coredump.
25076       lt_prog_compiler_pic_GO='-fPIC -shared'
25077       ;;
25078
25079     osf3* | osf4* | osf5*)
25080       lt_prog_compiler_wl_GO='-Wl,'
25081       # All OSF/1 code is PIC.
25082       lt_prog_compiler_static_GO='-non_shared'
25083       ;;
25084
25085     rdos*)
25086       lt_prog_compiler_static_GO='-non_shared'
25087       ;;
25088
25089     solaris*)
25090       lt_prog_compiler_pic_GO='-KPIC'
25091       lt_prog_compiler_static_GO='-Bstatic'
25092       case $cc_basename in
25093       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
25094         lt_prog_compiler_wl_GO='-Qoption ld ';;
25095       *)
25096         lt_prog_compiler_wl_GO='-Wl,';;
25097       esac
25098       ;;
25099
25100     sunos4*)
25101       lt_prog_compiler_wl_GO='-Qoption ld '
25102       lt_prog_compiler_pic_GO='-PIC'
25103       lt_prog_compiler_static_GO='-Bstatic'
25104       ;;
25105
25106     sysv4 | sysv4.2uw2* | sysv4.3*)
25107       lt_prog_compiler_wl_GO='-Wl,'
25108       lt_prog_compiler_pic_GO='-KPIC'
25109       lt_prog_compiler_static_GO='-Bstatic'
25110       ;;
25111
25112     sysv4*MP*)
25113       if test -d /usr/nec; then
25114         lt_prog_compiler_pic_GO='-Kconform_pic'
25115         lt_prog_compiler_static_GO='-Bstatic'
25116       fi
25117       ;;
25118
25119     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25120       lt_prog_compiler_wl_GO='-Wl,'
25121       lt_prog_compiler_pic_GO='-KPIC'
25122       lt_prog_compiler_static_GO='-Bstatic'
25123       ;;
25124
25125     unicos*)
25126       lt_prog_compiler_wl_GO='-Wl,'
25127       lt_prog_compiler_can_build_shared_GO=no
25128       ;;
25129
25130     uts4*)
25131       lt_prog_compiler_pic_GO='-pic'
25132       lt_prog_compiler_static_GO='-Bstatic'
25133       ;;
25134
25135     *)
25136       lt_prog_compiler_can_build_shared_GO=no
25137       ;;
25138     esac
25139   fi
25140
25141 case $host_os in
25142   # For platforms that do not support PIC, -DPIC is meaningless:
25143   *djgpp*)
25144     lt_prog_compiler_pic_GO=
25145     ;;
25146   *)
25147     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
25148     ;;
25149 esac
25150
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
25152 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25153 if ${lt_cv_prog_compiler_pic_GO+:} false; then :
25154   $as_echo_n "(cached) " >&6
25155 else
25156   lt_cv_prog_compiler_pic_GO=$lt_prog_compiler_pic_GO
25157 fi
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_GO" >&5
25159 $as_echo "$lt_cv_prog_compiler_pic_GO" >&6; }
25160 lt_prog_compiler_pic_GO=$lt_cv_prog_compiler_pic_GO
25161
25162 #
25163 # Check to make sure the PIC flag actually works.
25164 #
25165 if test -n "$lt_prog_compiler_pic_GO"; then
25166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
25167 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
25168 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
25169   $as_echo_n "(cached) " >&6
25170 else
25171   lt_cv_prog_compiler_pic_works_GO=no
25172    ac_outfile=conftest.$ac_objext
25173    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25174    lt_compiler_flag="$lt_prog_compiler_pic_GO"  ## exclude from sc_useless_quotes_in_assignment
25175    # Insert the option either (1) after the last *FLAGS variable, or
25176    # (2) before a word containing "conftest.", or (3) at the end.
25177    # Note that $ac_compile itself does not contain backslashes and begins
25178    # with a dollar sign (not a hyphen), so the echo should work correctly.
25179    # The option is referenced via a variable to avoid confusing sed.
25180    lt_compile=`echo "$ac_compile" | $SED \
25181    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25183    -e 's:$: $lt_compiler_flag:'`
25184    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25185    (eval "$lt_compile" 2>conftest.err)
25186    ac_status=$?
25187    cat conftest.err >&5
25188    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189    if (exit $ac_status) && test -s "$ac_outfile"; then
25190      # The compiler can only warn and ignore the option if not recognized
25191      # So say no if there are warnings other than the usual output.
25192      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
25193      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25194      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25195        lt_cv_prog_compiler_pic_works_GO=yes
25196      fi
25197    fi
25198    $RM conftest*
25199
25200 fi
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
25202 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
25203
25204 if test yes = "$lt_cv_prog_compiler_pic_works_GO"; then
25205     case $lt_prog_compiler_pic_GO in
25206      "" | " "*) ;;
25207      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
25208      esac
25209 else
25210     lt_prog_compiler_pic_GO=
25211      lt_prog_compiler_can_build_shared_GO=no
25212 fi
25213
25214 fi
25215
25216
25217
25218
25219
25220 #
25221 # Check to make sure the static flag actually works.
25222 #
25223 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25225 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25226 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
25227   $as_echo_n "(cached) " >&6
25228 else
25229   lt_cv_prog_compiler_static_works_GO=no
25230    save_LDFLAGS=$LDFLAGS
25231    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25232    echo "$lt_simple_link_test_code" > conftest.$ac_ext
25233    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25234      # The linker can only warn and ignore the option if not recognized
25235      # So say no if there are warnings
25236      if test -s conftest.err; then
25237        # Append any errors to the config.log.
25238        cat conftest.err 1>&5
25239        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
25240        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25241        if diff conftest.exp conftest.er2 >/dev/null; then
25242          lt_cv_prog_compiler_static_works_GO=yes
25243        fi
25244      else
25245        lt_cv_prog_compiler_static_works_GO=yes
25246      fi
25247    fi
25248    $RM -r conftest*
25249    LDFLAGS=$save_LDFLAGS
25250
25251 fi
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
25253 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
25254
25255 if test yes = "$lt_cv_prog_compiler_static_works_GO"; then
25256     :
25257 else
25258     lt_prog_compiler_static_GO=
25259 fi
25260
25261
25262
25263
25264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25265 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25266 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
25267   $as_echo_n "(cached) " >&6
25268 else
25269   lt_cv_prog_compiler_c_o_GO=no
25270    $RM -r conftest 2>/dev/null
25271    mkdir conftest
25272    cd conftest
25273    mkdir out
25274    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25275
25276    lt_compiler_flag="-o out/conftest2.$ac_objext"
25277    # Insert the option either (1) after the last *FLAGS variable, or
25278    # (2) before a word containing "conftest.", or (3) at the end.
25279    # Note that $ac_compile itself does not contain backslashes and begins
25280    # with a dollar sign (not a hyphen), so the echo should work correctly.
25281    lt_compile=`echo "$ac_compile" | $SED \
25282    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25284    -e 's:$: $lt_compiler_flag:'`
25285    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25286    (eval "$lt_compile" 2>out/conftest.err)
25287    ac_status=$?
25288    cat out/conftest.err >&5
25289    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290    if (exit $ac_status) && test -s out/conftest2.$ac_objext
25291    then
25292      # The compiler can only warn and ignore the option if not recognized
25293      # So say no if there are warnings
25294      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25295      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25296      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25297        lt_cv_prog_compiler_c_o_GO=yes
25298      fi
25299    fi
25300    chmod u+w . 2>&5
25301    $RM conftest*
25302    # SGI C++ compiler will create directory out/ii_files/ for
25303    # template instantiation
25304    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25305    $RM out/* && rmdir out
25306    cd ..
25307    $RM -r conftest
25308    $RM conftest*
25309
25310 fi
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
25312 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
25313
25314
25315
25316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25318 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
25319   $as_echo_n "(cached) " >&6
25320 else
25321   lt_cv_prog_compiler_c_o_GO=no
25322    $RM -r conftest 2>/dev/null
25323    mkdir conftest
25324    cd conftest
25325    mkdir out
25326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25327
25328    lt_compiler_flag="-o out/conftest2.$ac_objext"
25329    # Insert the option either (1) after the last *FLAGS variable, or
25330    # (2) before a word containing "conftest.", or (3) at the end.
25331    # Note that $ac_compile itself does not contain backslashes and begins
25332    # with a dollar sign (not a hyphen), so the echo should work correctly.
25333    lt_compile=`echo "$ac_compile" | $SED \
25334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25336    -e 's:$: $lt_compiler_flag:'`
25337    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25338    (eval "$lt_compile" 2>out/conftest.err)
25339    ac_status=$?
25340    cat out/conftest.err >&5
25341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342    if (exit $ac_status) && test -s out/conftest2.$ac_objext
25343    then
25344      # The compiler can only warn and ignore the option if not recognized
25345      # So say no if there are warnings
25346      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25347      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25348      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25349        lt_cv_prog_compiler_c_o_GO=yes
25350      fi
25351    fi
25352    chmod u+w . 2>&5
25353    $RM conftest*
25354    # SGI C++ compiler will create directory out/ii_files/ for
25355    # template instantiation
25356    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25357    $RM out/* && rmdir out
25358    cd ..
25359    $RM -r conftest
25360    $RM conftest*
25361
25362 fi
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
25364 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
25365
25366
25367
25368
25369 hard_links=nottested
25370 if test no = "$lt_cv_prog_compiler_c_o_GO" && test no != "$need_locks"; then
25371   # do not overwrite the value of need_locks provided by the user
25372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
25373 $as_echo_n "checking if we can lock with hard links... " >&6; }
25374   hard_links=yes
25375   $RM conftest*
25376   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25377   touch conftest.a
25378   ln conftest.a conftest.b 2>&5 || hard_links=no
25379   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
25381 $as_echo "$hard_links" >&6; }
25382   if test no = "$hard_links"; then
25383     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
25384 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
25385     need_locks=warn
25386   fi
25387 else
25388   need_locks=no
25389 fi
25390
25391
25392
25393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25394 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25395
25396   runpath_var=
25397   allow_undefined_flag_GO=
25398   always_export_symbols_GO=no
25399   archive_cmds_GO=
25400   archive_expsym_cmds_GO=
25401   compiler_needs_object_GO=no
25402   enable_shared_with_static_runtimes_GO=no
25403   export_dynamic_flag_spec_GO=
25404   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25405   hardcode_automatic_GO=no
25406   hardcode_direct_GO=no
25407   hardcode_direct_absolute_GO=no
25408   hardcode_libdir_flag_spec_GO=
25409   hardcode_libdir_separator_GO=
25410   hardcode_minus_L_GO=no
25411   hardcode_shlibpath_var_GO=unsupported
25412   inherit_rpath_GO=no
25413   link_all_deplibs_GO=unknown
25414   module_cmds_GO=
25415   module_expsym_cmds_GO=
25416   old_archive_from_new_cmds_GO=
25417   old_archive_from_expsyms_cmds_GO=
25418   thread_safe_flag_spec_GO=
25419   whole_archive_flag_spec_GO=
25420   # include_expsyms should be a list of space-separated symbols to be *always*
25421   # included in the symbol list
25422   include_expsyms_GO=
25423   # exclude_expsyms can be an extended regexp of symbols to exclude
25424   # it will be wrapped by ' (' and ')$', so one must not match beginning or
25425   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
25426   # as well as any symbol that contains 'd'.
25427   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25428   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25429   # platforms (ab)use it in PIC code, but their linkers get confused if
25430   # the symbol is explicitly referenced.  Since portable code cannot
25431   # rely on this symbol name, it's probably fine to never include it in
25432   # preloaded symbol tables.
25433   # Exclude shared library initialization/finalization symbols.
25434   extract_expsyms_cmds=
25435
25436   case $host_os in
25437   cygwin* | mingw* | pw32* | cegcc*)
25438     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
25439     # When not using gcc, we currently assume that we are using
25440     # Microsoft Visual C++ or Intel C++ Compiler.
25441     if test yes != "$GCC"; then
25442       with_gnu_ld=no
25443     fi
25444     ;;
25445   interix*)
25446     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
25447     with_gnu_ld=yes
25448     ;;
25449   openbsd* | bitrig*)
25450     with_gnu_ld=no
25451     ;;
25452   esac
25453
25454   ld_shlibs_GO=yes
25455
25456   # On some targets, GNU ld is compatible enough with the native linker
25457   # that we're better off using the native interface for both.
25458   lt_use_gnu_ld_interface=no
25459   if test yes = "$with_gnu_ld"; then
25460     case $host_os in
25461       aix*)
25462         # The AIX port of GNU ld has always aspired to compatibility
25463         # with the native linker.  However, as the warning in the GNU ld
25464         # block says, versions before 2.19.5* couldn't really create working
25465         # shared libraries, regardless of the interface used.
25466         case `$LD -v 2>&1` in
25467           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
25468           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
25469           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
25470           *)
25471             lt_use_gnu_ld_interface=yes
25472             ;;
25473         esac
25474         ;;
25475       *)
25476         lt_use_gnu_ld_interface=yes
25477         ;;
25478     esac
25479   fi
25480
25481   if test yes = "$lt_use_gnu_ld_interface"; then
25482     # If archive_cmds runs LD, not CC, wlarc should be empty
25483     wlarc='$wl'
25484
25485     # Set some defaults for GNU ld with shared library support. These
25486     # are reset later if shared libraries are not supported. Putting them
25487     # here allows them to be overridden if necessary.
25488     runpath_var=LD_RUN_PATH
25489     hardcode_libdir_flag_spec_GO='$wl-rpath $wl$libdir'
25490     export_dynamic_flag_spec_GO='$wl--export-dynamic'
25491     # ancient GNU ld didn't support --whole-archive et. al.
25492     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
25493       whole_archive_flag_spec_GO=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
25494     else
25495       whole_archive_flag_spec_GO=
25496     fi
25497     supports_anon_versioning=no
25498     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
25499       *GNU\ gold*) supports_anon_versioning=yes ;;
25500       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25501       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25502       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25503       *\ 2.11.*) ;; # other 2.11 versions
25504       *) supports_anon_versioning=yes ;;
25505     esac
25506
25507     # See if GNU ld supports shared libraries.
25508     case $host_os in
25509     aix[3-9]*)
25510       # On AIX/PPC, the GNU linker is very broken
25511       if test ia64 != "$host_cpu"; then
25512         ld_shlibs_GO=no
25513         cat <<_LT_EOF 1>&2
25514
25515 *** Warning: the GNU linker, at least up to release 2.19, is reported
25516 *** to be unable to reliably create shared libraries on AIX.
25517 *** Therefore, libtool is disabling shared libraries support.  If you
25518 *** really care for shared libraries, you may want to install binutils
25519 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
25520 *** You will then need to restart the configuration process.
25521
25522 _LT_EOF
25523       fi
25524       ;;
25525
25526     amigaos*)
25527       case $host_cpu in
25528       powerpc)
25529             # see comment about AmigaOS4 .so support
25530             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25531             archive_expsym_cmds_GO=''
25532         ;;
25533       m68k)
25534             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)'
25535             hardcode_libdir_flag_spec_GO='-L$libdir'
25536             hardcode_minus_L_GO=yes
25537         ;;
25538       esac
25539       ;;
25540
25541     beos*)
25542       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25543         allow_undefined_flag_GO=unsupported
25544         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25545         # support --undefined.  This deserves some investigation.  FIXME
25546         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25547       else
25548         ld_shlibs_GO=no
25549       fi
25550       ;;
25551
25552     cygwin* | mingw* | pw32* | cegcc*)
25553       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
25554       # as there is no search path for DLLs.
25555       hardcode_libdir_flag_spec_GO='-L$libdir'
25556       export_dynamic_flag_spec_GO='$wl--export-all-symbols'
25557       allow_undefined_flag_GO=unsupported
25558       always_export_symbols_GO=no
25559       enable_shared_with_static_runtimes_GO=yes
25560       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'
25561       exclude_expsyms_GO='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
25562
25563       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
25564         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25565         # If the export-symbols file already is a .def file, use it as
25566         # is; otherwise, prepend EXPORTS...
25567         archive_expsym_cmds_GO='if   test DEF = "`$SED -n     -e '\''s/^[        ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
25568           cp $export_symbols $output_objdir/$soname.def;
25569         else
25570           echo EXPORTS > $output_objdir/$soname.def;
25571           cat $export_symbols >> $output_objdir/$soname.def;
25572         fi~
25573         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25574       else
25575         ld_shlibs_GO=no
25576       fi
25577       ;;
25578
25579     haiku*)
25580       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25581       link_all_deplibs_GO=yes
25582       ;;
25583
25584     os2*)
25585       hardcode_libdir_flag_spec_GO='-L$libdir'
25586       hardcode_minus_L_GO=yes
25587       allow_undefined_flag_GO=unsupported
25588       shrext_cmds=.dll
25589       archive_cmds_GO='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
25590         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
25591         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
25592         $ECHO EXPORTS >> $output_objdir/$libname.def~
25593         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
25594         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
25595         emximp -o $lib $output_objdir/$libname.def'
25596       archive_expsym_cmds_GO='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
25597         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
25598         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
25599         $ECHO EXPORTS >> $output_objdir/$libname.def~
25600         prefix_cmds="$SED"~
25601         if test EXPORTS = "`$SED 1q $export_symbols`"; then
25602           prefix_cmds="$prefix_cmds -e 1d";
25603         fi~
25604         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
25605         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
25606         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
25607         emximp -o $lib $output_objdir/$libname.def'
25608       old_archive_From_new_cmds_GO='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
25609       enable_shared_with_static_runtimes_GO=yes
25610       file_list_spec_GO='@'
25611       ;;
25612
25613     interix[3-9]*)
25614       hardcode_direct_GO=no
25615       hardcode_shlibpath_var_GO=no
25616       hardcode_libdir_flag_spec_GO='$wl-rpath,$libdir'
25617       export_dynamic_flag_spec_GO='$wl-E'
25618       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25619       # Instead, shared libraries are loaded at an image base (0x10000000 by
25620       # default) and relocated if they conflict, which is a slow very memory
25621       # consuming and fragmenting process.  To avoid this, we pick a random,
25622       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25623       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25624       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'
25625       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'
25626       ;;
25627
25628     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
25629       tmp_diet=no
25630       if test linux-dietlibc = "$host_os"; then
25631         case $cc_basename in
25632           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
25633         esac
25634       fi
25635       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
25636          && test no = "$tmp_diet"
25637       then
25638         tmp_addflag=' $pic_flag'
25639         tmp_sharedflag='-shared'
25640         case $cc_basename,$host_cpu in
25641         pgcc*)                          # Portland Group C compiler
25642           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'
25643           tmp_addflag=' $pic_flag'
25644           ;;
25645         pgf77* | pgf90* | pgf95* | pgfortran*)
25646                                         # Portland Group f77 and f90 compilers
25647           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'
25648           tmp_addflag=' $pic_flag -Mnomain' ;;
25649         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
25650           tmp_addflag=' -i_dynamic' ;;
25651         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25652           tmp_addflag=' -i_dynamic -nofor_main' ;;
25653         ifc* | ifort*)                  # Intel Fortran compiler
25654           tmp_addflag=' -nofor_main' ;;
25655         lf95*)                          # Lahey Fortran 8.1
25656           whole_archive_flag_spec_GO=
25657           tmp_sharedflag='--shared' ;;
25658         nagfor*)                        # NAGFOR 5.3
25659           tmp_sharedflag='-Wl,-shared' ;;
25660         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
25661           tmp_sharedflag='-qmkshrobj'
25662           tmp_addflag= ;;
25663         nvcc*)  # Cuda Compiler Driver 2.2
25664           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'
25665           compiler_needs_object_GO=yes
25666           ;;
25667         esac
25668         case `$CC -V 2>&1 | $SED 5q` in
25669         *Sun\ C*)                       # Sun C 5.9
25670           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'
25671           compiler_needs_object_GO=yes
25672           tmp_sharedflag='-G' ;;
25673         *Sun\ F*)                       # Sun Fortran 8.3
25674           tmp_sharedflag='-G' ;;
25675         esac
25676         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25677
25678         if test yes = "$supports_anon_versioning"; then
25679           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
25680             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25681             echo "local: *; };" >> $output_objdir/$libname.ver~
25682             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
25683         fi
25684
25685         case $cc_basename in
25686         tcc*)
25687           export_dynamic_flag_spec_GO='-rdynamic'
25688           ;;
25689         xlf* | bgf* | bgxlf* | mpixlf*)
25690           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
25691           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
25692           hardcode_libdir_flag_spec_GO='$wl-rpath $wl$libdir'
25693           archive_cmds_GO='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
25694           if test yes = "$supports_anon_versioning"; then
25695             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
25696               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25697               echo "local: *; };" >> $output_objdir/$libname.ver~
25698               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
25699           fi
25700           ;;
25701         esac
25702       else
25703         ld_shlibs_GO=no
25704       fi
25705       ;;
25706
25707     netbsd*)
25708       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25709         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25710         wlarc=
25711       else
25712         archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25713         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'
25714       fi
25715       ;;
25716
25717     solaris*)
25718       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
25719         ld_shlibs_GO=no
25720         cat <<_LT_EOF 1>&2
25721
25722 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25723 *** create shared libraries on Solaris systems.  Therefore, libtool
25724 *** is disabling shared libraries support.  We urge you to upgrade GNU
25725 *** binutils to release 2.9.1 or newer.  Another option is to modify
25726 *** your PATH or compiler configuration so that the native linker is
25727 *** used, and then restart.
25728
25729 _LT_EOF
25730       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25731         archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25732         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'
25733       else
25734         ld_shlibs_GO=no
25735       fi
25736       ;;
25737
25738     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25739       case `$LD -v 2>&1` in
25740         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25741         ld_shlibs_GO=no
25742         cat <<_LT_EOF 1>&2
25743
25744 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
25745 *** reliably create shared libraries on SCO systems.  Therefore, libtool
25746 *** is disabling shared libraries support.  We urge you to upgrade GNU
25747 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25748 *** your PATH or compiler configuration so that the native linker is
25749 *** used, and then restart.
25750
25751 _LT_EOF
25752         ;;
25753         *)
25754           # For security reasons, it is highly recommended that you always
25755           # use absolute paths for naming shared libraries, and exclude the
25756           # DT_RUNPATH tag from executables and libraries.  But doing so
25757           # requires that you compile everything twice, which is a pain.
25758           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25759             hardcode_libdir_flag_spec_GO='$wl-rpath $wl$libdir'
25760             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25761             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
25762           else
25763             ld_shlibs_GO=no
25764           fi
25765         ;;
25766       esac
25767       ;;
25768
25769     sunos4*)
25770       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25771       wlarc=
25772       hardcode_direct_GO=yes
25773       hardcode_shlibpath_var_GO=no
25774       ;;
25775
25776     *)
25777       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25778         archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
25779         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'
25780       else
25781         ld_shlibs_GO=no
25782       fi
25783       ;;
25784     esac
25785
25786     if test no = "$ld_shlibs_GO"; then
25787       runpath_var=
25788       hardcode_libdir_flag_spec_GO=
25789       export_dynamic_flag_spec_GO=
25790       whole_archive_flag_spec_GO=
25791     fi
25792   else
25793     # PORTME fill in a description of your system's linker (not GNU ld)
25794     case $host_os in
25795     aix3*)
25796       allow_undefined_flag_GO=unsupported
25797       always_export_symbols_GO=yes
25798       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'
25799       # Note: this linker hardcodes the directories in LIBPATH if there
25800       # are no directories specified by -L.
25801       hardcode_minus_L_GO=yes
25802       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
25803         # Neither direct hardcoding nor static linking is supported with a
25804         # broken collect2.
25805         hardcode_direct_GO=unsupported
25806       fi
25807       ;;
25808
25809     aix[4-9]*)
25810       if test ia64 = "$host_cpu"; then
25811         # On IA64, the linker does run time linking by default, so we don't
25812         # have to do anything special.
25813         aix_use_runtimelinking=no
25814         exp_sym_flag='-Bexport'
25815         no_entry_flag=
25816       else
25817         # If we're using GNU nm, then we don't want the "-C" option.
25818         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
25819         # Without the "-l" option, or with the "-B" option, AIX nm treats
25820         # weak defined symbols like other global defined symbols, whereas
25821         # GNU nm marks them as "W".
25822         # While the 'weak' keyword is ignored in the Export File, we need
25823         # it in the Import File for the 'aix-soname' feature, so we have
25824         # to replace the "-B" option with "-P" for AIX nm.
25825         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
25826           export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
25827         else
25828           export_symbols_cmds_GO='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
25829         fi
25830         aix_use_runtimelinking=no
25831
25832         # Test if we are trying to use run time linking or normal
25833         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25834         # have runtime linking enabled, and use it for executables.
25835         # For shared libraries, we enable/disable runtime linking
25836         # depending on the kind of the shared library created -
25837         # when "with_aix_soname,aix_use_runtimelinking" is:
25838         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
25839         # "aix,yes"  lib.so          shared, rtl:yes, for executables
25840         #            lib.a           static archive
25841         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
25842         #            lib.a(lib.so.V) shared, rtl:no,  for executables
25843         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
25844         #            lib.a(lib.so.V) shared, rtl:no
25845         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
25846         #            lib.a           static archive
25847         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
25848           for ld_flag in $LDFLAGS; do
25849           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
25850             aix_use_runtimelinking=yes
25851             break
25852           fi
25853           done
25854           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
25855             # With aix-soname=svr4, we create the lib.so.V shared archives only,
25856             # so we don't have lib.a shared libs to link our executables.
25857             # We have to force runtime linking in this case.
25858             aix_use_runtimelinking=yes
25859             LDFLAGS="$LDFLAGS -Wl,-brtl"
25860           fi
25861           ;;
25862         esac
25863
25864         exp_sym_flag='-bexport'
25865         no_entry_flag='-bnoentry'
25866       fi
25867
25868       # When large executables or shared objects are built, AIX ld can
25869       # have problems creating the table of contents.  If linking a library
25870       # or program results in "error TOC overflow" add -mminimal-toc to
25871       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25872       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25873
25874       archive_cmds_GO=''
25875       hardcode_direct_GO=yes
25876       hardcode_direct_absolute_GO=yes
25877       hardcode_libdir_separator_GO=':'
25878       link_all_deplibs_GO=yes
25879       file_list_spec_GO='$wl-f,'
25880       case $with_aix_soname,$aix_use_runtimelinking in
25881       aix,*) ;; # traditional, no import file
25882       svr4,* | *,yes) # use import file
25883         # The Import File defines what to hardcode.
25884         hardcode_direct_GO=no
25885         hardcode_direct_absolute_GO=no
25886         ;;
25887       esac
25888
25889       if test yes = "$GCC"; then
25890         case $host_os in aix4.[012]|aix4.[012].*)
25891         # We only want to do this on AIX 4.2 and lower, the check
25892         # below for broken collect2 doesn't work under 4.3+
25893           collect2name=`$CC -print-prog-name=collect2`
25894           if test -f "$collect2name" &&
25895            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
25896           then
25897           # We have reworked collect2
25898           :
25899           else
25900           # We have old collect2
25901           hardcode_direct_GO=unsupported
25902           # It fails to find uninstalled libraries when the uninstalled
25903           # path is not listed in the libpath.  Setting hardcode_minus_L
25904           # to unsupported forces relinking
25905           hardcode_minus_L_GO=yes
25906           hardcode_libdir_flag_spec_GO='-L$libdir'
25907           hardcode_libdir_separator_GO=
25908           fi
25909           ;;
25910         esac
25911         shared_flag='-shared'
25912         if test yes = "$aix_use_runtimelinking"; then
25913           shared_flag="$shared_flag "'$wl-G'
25914         fi
25915         # Need to ensure runtime linking is disabled for the traditional
25916         # shared library, or the linker may eventually find shared libraries
25917         # /with/ Import File - we do not want to mix them.
25918         shared_flag_aix='-shared'
25919         shared_flag_svr4='-shared $wl-G'
25920       else
25921         # not using gcc
25922         if test ia64 = "$host_cpu"; then
25923         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25924         # chokes on -Wl,-G. The following line is correct:
25925           shared_flag='-G'
25926         else
25927           if test yes = "$aix_use_runtimelinking"; then
25928             shared_flag='$wl-G'
25929           else
25930             shared_flag='$wl-bM:SRE'
25931           fi
25932           shared_flag_aix='$wl-bM:SRE'
25933           shared_flag_svr4='$wl-G'
25934         fi
25935       fi
25936
25937       export_dynamic_flag_spec_GO='$wl-bexpall'
25938       # It seems that -bexpall does not export symbols beginning with
25939       # underscore (_), so it is better to generate a list of symbols to export.
25940       always_export_symbols_GO=yes
25941       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
25942         # Warning - without using the other runtime loading flags (-brtl),
25943         # -berok will link without error, but may produce a broken library.
25944         allow_undefined_flag_GO='-berok'
25945         # Determine the default libpath from the value encoded in an
25946         # empty executable.
25947         if test set = "${lt_cv_aix_libpath+set}"; then
25948   aix_libpath=$lt_cv_aix_libpath
25949 else
25950   if ${lt_cv_aix_libpath__GO+:} false; then :
25951   $as_echo_n "(cached) " >&6
25952 else
25953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h.  */
25955
25956 int
25957 main ()
25958 {
25959
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 if ac_fn_c_try_link "$LINENO"; then :
25965
25966   lt_aix_libpath_sed='
25967       /Import File Strings/,/^$/ {
25968           /^0/ {
25969               s/^0  *\([^ ]*\) *$/\1/
25970               p
25971           }
25972       }'
25973   lt_cv_aix_libpath__GO=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25974   # Check for a 64-bit object if we didn't find anything.
25975   if test -z "$lt_cv_aix_libpath__GO"; then
25976     lt_cv_aix_libpath__GO=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25977   fi
25978 fi
25979 rm -f core conftest.err conftest.$ac_objext \
25980     conftest$ac_exeext conftest.$ac_ext
25981   if test -z "$lt_cv_aix_libpath__GO"; then
25982     lt_cv_aix_libpath__GO=/usr/lib:/lib
25983   fi
25984
25985 fi
25986
25987   aix_libpath=$lt_cv_aix_libpath__GO
25988 fi
25989
25990         hardcode_libdir_flag_spec_GO='$wl-blibpath:$libdir:'"$aix_libpath"
25991         archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
25992       else
25993         if test ia64 = "$host_cpu"; then
25994           hardcode_libdir_flag_spec_GO='$wl-R $libdir:/usr/lib:/lib'
25995           allow_undefined_flag_GO="-z nodefs"
25996           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"
25997         else
25998          # Determine the default libpath from the value encoded in an
25999          # empty executable.
26000          if test set = "${lt_cv_aix_libpath+set}"; then
26001   aix_libpath=$lt_cv_aix_libpath
26002 else
26003   if ${lt_cv_aix_libpath__GO+:} false; then :
26004   $as_echo_n "(cached) " >&6
26005 else
26006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h.  */
26008
26009 int
26010 main ()
26011 {
26012
26013   ;
26014   return 0;
26015 }
26016 _ACEOF
26017 if ac_fn_c_try_link "$LINENO"; then :
26018
26019   lt_aix_libpath_sed='
26020       /Import File Strings/,/^$/ {
26021           /^0/ {
26022               s/^0  *\([^ ]*\) *$/\1/
26023               p
26024           }
26025       }'
26026   lt_cv_aix_libpath__GO=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26027   # Check for a 64-bit object if we didn't find anything.
26028   if test -z "$lt_cv_aix_libpath__GO"; then
26029     lt_cv_aix_libpath__GO=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26030   fi
26031 fi
26032 rm -f core conftest.err conftest.$ac_objext \
26033     conftest$ac_exeext conftest.$ac_ext
26034   if test -z "$lt_cv_aix_libpath__GO"; then
26035     lt_cv_aix_libpath__GO=/usr/lib:/lib
26036   fi
26037
26038 fi
26039
26040   aix_libpath=$lt_cv_aix_libpath__GO
26041 fi
26042
26043          hardcode_libdir_flag_spec_GO='$wl-blibpath:$libdir:'"$aix_libpath"
26044           # Warning - without using the other run time loading flags,
26045           # -berok will link without error, but may produce a broken library.
26046           no_undefined_flag_GO=' $wl-bernotok'
26047           allow_undefined_flag_GO=' $wl-berok'
26048           if test yes = "$with_gnu_ld"; then
26049             # We only use this code for GNU lds that support --whole-archive.
26050             whole_archive_flag_spec_GO='$wl--whole-archive$convenience $wl--no-whole-archive'
26051           else
26052             # Exported symbols can be pulled into shared objects from archives
26053             whole_archive_flag_spec_GO='$convenience'
26054           fi
26055           archive_cmds_need_lc_GO=yes
26056           archive_expsym_cmds_GO='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
26057           # -brtl affects multiple linker settings, -berok does not and is overridden later
26058           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
26059           if test svr4 != "$with_aix_soname"; then
26060             # This is similar to how AIX traditionally builds its shared libraries.
26061             archive_expsym_cmds_GO="$archive_expsym_cmds_GO"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
26062           fi
26063           if test aix != "$with_aix_soname"; then
26064             archive_expsym_cmds_GO="$archive_expsym_cmds_GO"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
26065           else
26066             # used by -dlpreopen to get the symbols
26067             archive_expsym_cmds_GO="$archive_expsym_cmds_GO"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
26068           fi
26069           archive_expsym_cmds_GO="$archive_expsym_cmds_GO"'~$RM -r $output_objdir/$realname.d'
26070         fi
26071       fi
26072       ;;
26073
26074     amigaos*)
26075       case $host_cpu in
26076       powerpc)
26077             # see comment about AmigaOS4 .so support
26078             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
26079             archive_expsym_cmds_GO=''
26080         ;;
26081       m68k)
26082             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)'
26083             hardcode_libdir_flag_spec_GO='-L$libdir'
26084             hardcode_minus_L_GO=yes
26085         ;;
26086       esac
26087       ;;
26088
26089     bsdi[45]*)
26090       export_dynamic_flag_spec_GO=-rdynamic
26091       ;;
26092
26093     cygwin* | mingw* | pw32* | cegcc*)
26094       # When not using gcc, we currently assume that we are using
26095       # Microsoft Visual C++ or Intel C++ Compiler.
26096       # hardcode_libdir_flag_spec is actually meaningless, as there is
26097       # no search path for DLLs.
26098       case $cc_basename in
26099       cl* | icl*)
26100         # Native MSVC or ICC
26101         hardcode_libdir_flag_spec_GO=' '
26102         allow_undefined_flag_GO=unsupported
26103         always_export_symbols_GO=yes
26104         file_list_spec_GO='@'
26105         # Tell ltmain to make .lib files, not .a files.
26106         libext=lib
26107         # Tell ltmain to make .dll files, not .so files.
26108         shrext_cmds=.dll
26109         # FIXME: Setting linknames here is a bad hack.
26110         archive_cmds_GO='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
26111         archive_expsym_cmds_GO='if   test DEF = "`$SED -n     -e '\''s/^[        ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
26112             cp "$export_symbols" "$output_objdir/$soname.def";
26113             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
26114           else
26115             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
26116           fi~
26117           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
26118           linknames='
26119         # The linker will not automatically build a static lib if we build a DLL.
26120         # _LT_TAGVAR(old_archive_from_new_cmds, GO)='true'
26121         enable_shared_with_static_runtimes_GO=yes
26122         exclude_expsyms_GO='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
26123         export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
26124         # Don't use ranlib
26125         old_postinstall_cmds_GO='chmod 644 $oldlib'
26126         postlink_cmds_GO='lt_outputfile="@OUTPUT@"~
26127           lt_tool_outputfile="@TOOL_OUTPUT@"~
26128           case $lt_outputfile in
26129             *.exe|*.EXE) ;;
26130             *)
26131               lt_outputfile=$lt_outputfile.exe
26132               lt_tool_outputfile=$lt_tool_outputfile.exe
26133               ;;
26134           esac~
26135           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
26136             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
26137             $RM "$lt_outputfile.manifest";
26138           fi'
26139         ;;
26140       *)
26141         # Assume MSVC and ICC wrapper
26142         hardcode_libdir_flag_spec_GO=' '
26143         allow_undefined_flag_GO=unsupported
26144         # Tell ltmain to make .lib files, not .a files.
26145         libext=lib
26146         # Tell ltmain to make .dll files, not .so files.
26147         shrext_cmds=.dll
26148         # FIXME: Setting linknames here is a bad hack.
26149         archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
26150         # The linker will automatically build a .lib file if we build a DLL.
26151         old_archive_from_new_cmds_GO='true'
26152         # FIXME: Should let the user specify the lib program.
26153         old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
26154         enable_shared_with_static_runtimes_GO=yes
26155         ;;
26156       esac
26157       ;;
26158
26159     darwin* | rhapsody*)
26160
26161
26162   archive_cmds_need_lc_GO=no
26163   hardcode_direct_GO=no
26164   hardcode_automatic_GO=yes
26165   hardcode_shlibpath_var_GO=unsupported
26166   if test yes = "$lt_cv_ld_force_load"; then
26167     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\"`'
26168
26169   else
26170     whole_archive_flag_spec_GO=''
26171   fi
26172   link_all_deplibs_GO=yes
26173   allow_undefined_flag_GO=$_lt_dar_allow_undefined
26174   case $cc_basename in
26175      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
26176      *) _lt_dar_can_shared=$GCC ;;
26177   esac
26178   if test yes = "$_lt_dar_can_shared"; then
26179     output_verbose_link_cmd=func_echo_all
26180     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"
26181     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
26182     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"
26183     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"
26184
26185   else
26186   ld_shlibs_GO=no
26187   fi
26188
26189       ;;
26190
26191     dgux*)
26192       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26193       hardcode_libdir_flag_spec_GO='-L$libdir'
26194       hardcode_shlibpath_var_GO=no
26195       ;;
26196
26197     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26198     # support.  Future versions do this automatically, but an explicit c++rt0.o
26199     # does not break anything, and helps significantly (at the cost of a little
26200     # extra space).
26201     freebsd2.2*)
26202       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26203       hardcode_libdir_flag_spec_GO='-R$libdir'
26204       hardcode_direct_GO=yes
26205       hardcode_shlibpath_var_GO=no
26206       ;;
26207
26208     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26209     freebsd2.*)
26210       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26211       hardcode_direct_GO=yes
26212       hardcode_minus_L_GO=yes
26213       hardcode_shlibpath_var_GO=no
26214       ;;
26215
26216     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26217     freebsd* | dragonfly* | midnightbsd*)
26218       archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26219       hardcode_libdir_flag_spec_GO='-R$libdir'
26220       hardcode_direct_GO=yes
26221       hardcode_shlibpath_var_GO=no
26222       ;;
26223
26224     hpux9*)
26225       if test yes = "$GCC"; then
26226         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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
26227       else
26228         archive_cmds_GO='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
26229       fi
26230       hardcode_libdir_flag_spec_GO='$wl+b $wl$libdir'
26231       hardcode_libdir_separator_GO=:
26232       hardcode_direct_GO=yes
26233
26234       # hardcode_minus_L: Not really in the search PATH,
26235       # but as the default location of the library.
26236       hardcode_minus_L_GO=yes
26237       export_dynamic_flag_spec_GO='$wl-E'
26238       ;;
26239
26240     hpux10*)
26241       if test yes,no = "$GCC,$with_gnu_ld"; then
26242         archive_cmds_GO='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26243       else
26244         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26245       fi
26246       if test no = "$with_gnu_ld"; then
26247         hardcode_libdir_flag_spec_GO='$wl+b $wl$libdir'
26248         hardcode_libdir_separator_GO=:
26249         hardcode_direct_GO=yes
26250         hardcode_direct_absolute_GO=yes
26251         export_dynamic_flag_spec_GO='$wl-E'
26252         # hardcode_minus_L: Not really in the search PATH,
26253         # but as the default location of the library.
26254         hardcode_minus_L_GO=yes
26255       fi
26256       ;;
26257
26258     hpux11*)
26259       if test yes,no = "$GCC,$with_gnu_ld"; then
26260         case $host_cpu in
26261         hppa*64*)
26262           archive_cmds_GO='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
26263           ;;
26264         ia64*)
26265           archive_cmds_GO='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26266           ;;
26267         *)
26268           archive_cmds_GO='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26269           ;;
26270         esac
26271       else
26272         case $host_cpu in
26273         hppa*64*)
26274           archive_cmds_GO='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
26275           ;;
26276         ia64*)
26277           archive_cmds_GO='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26278           ;;
26279         *)
26280         archive_cmds_GO='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26281           ;;
26282         esac
26283       fi
26284       if test no = "$with_gnu_ld"; then
26285         hardcode_libdir_flag_spec_GO='$wl+b $wl$libdir'
26286         hardcode_libdir_separator_GO=:
26287
26288         case $host_cpu in
26289         hppa*64*|ia64*)
26290           hardcode_direct_GO=no
26291           hardcode_shlibpath_var_GO=no
26292           ;;
26293         *)
26294           hardcode_direct_GO=yes
26295           hardcode_direct_absolute_GO=yes
26296           export_dynamic_flag_spec_GO='$wl-E'
26297
26298           # hardcode_minus_L: Not really in the search PATH,
26299           # but as the default location of the library.
26300           hardcode_minus_L_GO=yes
26301           ;;
26302         esac
26303       fi
26304       ;;
26305
26306     irix5* | irix6* | nonstopux*)
26307       if test yes = "$GCC"; then
26308         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'
26309         # Try to use the -exported_symbol ld option, if it does not
26310         # work, assume that -exports_file does not work either and
26311         # implicitly export all symbols.
26312         # This should be the same for all languages, so no per-tag cache variable.
26313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
26314 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
26315 if ${lt_cv_irix_exported_symbol+:} false; then :
26316   $as_echo_n "(cached) " >&6
26317 else
26318   save_LDFLAGS=$LDFLAGS
26319            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
26320            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321 /* end confdefs.h.  */
26322 int foo (void) { return 0; }
26323 _ACEOF
26324 if ac_fn_c_try_link "$LINENO"; then :
26325   lt_cv_irix_exported_symbol=yes
26326 else
26327   lt_cv_irix_exported_symbol=no
26328 fi
26329 rm -f core conftest.err conftest.$ac_objext \
26330     conftest$ac_exeext conftest.$ac_ext
26331            LDFLAGS=$save_LDFLAGS
26332 fi
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
26334 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
26335         if test yes = "$lt_cv_irix_exported_symbol"; then
26336           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'
26337         fi
26338       else
26339         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'
26340         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'
26341       fi
26342       archive_cmds_need_lc_GO='no'
26343       hardcode_libdir_flag_spec_GO='$wl-rpath $wl$libdir'
26344       hardcode_libdir_separator_GO=:
26345       inherit_rpath_GO=yes
26346       link_all_deplibs_GO=yes
26347       ;;
26348
26349     linux*)
26350       case $cc_basename in
26351       tcc*)
26352         # Fabrice Bellard et al's Tiny C Compiler
26353         ld_shlibs_GO=yes
26354         archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26355         ;;
26356       esac
26357       ;;
26358
26359     netbsd*)
26360       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26361         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26362       else
26363         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
26364       fi
26365       hardcode_libdir_flag_spec_GO='-R$libdir'
26366       hardcode_direct_GO=yes
26367       hardcode_shlibpath_var_GO=no
26368       ;;
26369
26370     newsos6)
26371       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26372       hardcode_direct_GO=yes
26373       hardcode_libdir_flag_spec_GO='$wl-rpath $wl$libdir'
26374       hardcode_libdir_separator_GO=:
26375       hardcode_shlibpath_var_GO=no
26376       ;;
26377
26378     *nto* | *qnx*)
26379       ;;
26380
26381     openbsd* | bitrig*)
26382       if test -f /usr/libexec/ld.so; then
26383         hardcode_direct_GO=yes
26384         hardcode_shlibpath_var_GO=no
26385         hardcode_direct_absolute_GO=yes
26386         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
26387           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26388           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
26389           hardcode_libdir_flag_spec_GO='$wl-rpath,$libdir'
26390           export_dynamic_flag_spec_GO='$wl-E'
26391         else
26392           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26393           hardcode_libdir_flag_spec_GO='$wl-rpath,$libdir'
26394         fi
26395       else
26396         ld_shlibs_GO=no
26397       fi
26398       ;;
26399
26400     os2*)
26401       hardcode_libdir_flag_spec_GO='-L$libdir'
26402       hardcode_minus_L_GO=yes
26403       allow_undefined_flag_GO=unsupported
26404       shrext_cmds=.dll
26405       archive_cmds_GO='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
26406         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
26407         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
26408         $ECHO EXPORTS >> $output_objdir/$libname.def~
26409         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
26410         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
26411         emximp -o $lib $output_objdir/$libname.def'
26412       archive_expsym_cmds_GO='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
26413         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
26414         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
26415         $ECHO EXPORTS >> $output_objdir/$libname.def~
26416         prefix_cmds="$SED"~
26417         if test EXPORTS = "`$SED 1q $export_symbols`"; then
26418           prefix_cmds="$prefix_cmds -e 1d";
26419         fi~
26420         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
26421         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
26422         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
26423         emximp -o $lib $output_objdir/$libname.def'
26424       old_archive_From_new_cmds_GO='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
26425       enable_shared_with_static_runtimes_GO=yes
26426       file_list_spec_GO='@'
26427       ;;
26428
26429     osf3*)
26430       if test yes = "$GCC"; then
26431         allow_undefined_flag_GO=' $wl-expect_unresolved $wl\*'
26432         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'
26433       else
26434         allow_undefined_flag_GO=' -expect_unresolved \*'
26435         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'
26436       fi
26437       archive_cmds_need_lc_GO='no'
26438       hardcode_libdir_flag_spec_GO='$wl-rpath $wl$libdir'
26439       hardcode_libdir_separator_GO=:
26440       ;;
26441
26442     osf4* | osf5*)      # as osf3* with the addition of -msym flag
26443       if test yes = "$GCC"; then
26444         allow_undefined_flag_GO=' $wl-expect_unresolved $wl\*'
26445         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'
26446         hardcode_libdir_flag_spec_GO='$wl-rpath $wl$libdir'
26447       else
26448         allow_undefined_flag_GO=' -expect_unresolved \*'
26449         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'
26450         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~
26451           $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'
26452
26453         # Both c and cxx compiler support -rpath directly
26454         hardcode_libdir_flag_spec_GO='-rpath $libdir'
26455       fi
26456       archive_cmds_need_lc_GO='no'
26457       hardcode_libdir_separator_GO=:
26458       ;;
26459
26460     solaris*)
26461       no_undefined_flag_GO=' -z defs'
26462       if test yes = "$GCC"; then
26463         wlarc='$wl'
26464         archive_cmds_GO='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
26465         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26466           $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'
26467       else
26468         case `$CC -V 2>&1` in
26469         *"Compilers 5.0"*)
26470           wlarc=''
26471           archive_cmds_GO='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
26472           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26473             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
26474           ;;
26475         *)
26476           wlarc='$wl'
26477           archive_cmds_GO='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
26478           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26479             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26480           ;;
26481         esac
26482       fi
26483       hardcode_libdir_flag_spec_GO='-R$libdir'
26484       hardcode_shlibpath_var_GO=no
26485       case $host_os in
26486       solaris2.[0-5] | solaris2.[0-5].*) ;;
26487       *)
26488         # The compiler driver will combine and reorder linker options,
26489         # but understands '-z linker_flag'.  GCC discards it without '$wl',
26490         # but is careful enough not to reorder.
26491         # Supported since Solaris 2.6 (maybe 2.5.1?)
26492         if test yes = "$GCC"; then
26493           whole_archive_flag_spec_GO='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
26494         else
26495           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
26496         fi
26497         ;;
26498       esac
26499       link_all_deplibs_GO=yes
26500       ;;
26501
26502     sunos4*)
26503       if test sequent = "$host_vendor"; then
26504         # Use $CC to link under sequent, because it throws in some extra .o
26505         # files that make .init and .fini sections work.
26506         archive_cmds_GO='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26507       else
26508         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26509       fi
26510       hardcode_libdir_flag_spec_GO='-L$libdir'
26511       hardcode_direct_GO=yes
26512       hardcode_minus_L_GO=yes
26513       hardcode_shlibpath_var_GO=no
26514       ;;
26515
26516     sysv4)
26517       case $host_vendor in
26518         sni)
26519           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26520           hardcode_direct_GO=yes # is this really true???
26521         ;;
26522         siemens)
26523           ## LD is ld it makes a PLAMLIB
26524           ## CC just makes a GrossModule.
26525           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26526           reload_cmds_GO='$CC -r -o $output$reload_objs'
26527           hardcode_direct_GO=no
26528         ;;
26529         motorola)
26530           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26531           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
26532         ;;
26533       esac
26534       runpath_var='LD_RUN_PATH'
26535       hardcode_shlibpath_var_GO=no
26536       ;;
26537
26538     sysv4.3*)
26539       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26540       hardcode_shlibpath_var_GO=no
26541       export_dynamic_flag_spec_GO='-Bexport'
26542       ;;
26543
26544     sysv4*MP*)
26545       if test -d /usr/nec; then
26546         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26547         hardcode_shlibpath_var_GO=no
26548         runpath_var=LD_RUN_PATH
26549         hardcode_runpath_var=yes
26550         ld_shlibs_GO=yes
26551       fi
26552       ;;
26553
26554     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26555       no_undefined_flag_GO='$wl-z,text'
26556       archive_cmds_need_lc_GO=no
26557       hardcode_shlibpath_var_GO=no
26558       runpath_var='LD_RUN_PATH'
26559
26560       if test yes = "$GCC"; then
26561         archive_cmds_GO='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26562         archive_expsym_cmds_GO='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26563       else
26564         archive_cmds_GO='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26565         archive_expsym_cmds_GO='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26566       fi
26567       ;;
26568
26569     sysv5* | sco3.2v5* | sco5v6*)
26570       # Note: We CANNOT use -z defs as we might desire, because we do not
26571       # link with -lc, and that would cause any symbols used from libc to
26572       # always be unresolved, which means just about no library would
26573       # ever link correctly.  If we're not using GNU ld we use -z text
26574       # though, which does catch some bad symbols but isn't as heavy-handed
26575       # as -z defs.
26576       no_undefined_flag_GO='$wl-z,text'
26577       allow_undefined_flag_GO='$wl-z,nodefs'
26578       archive_cmds_need_lc_GO=no
26579       hardcode_shlibpath_var_GO=no
26580       hardcode_libdir_flag_spec_GO='$wl-R,$libdir'
26581       hardcode_libdir_separator_GO=':'
26582       link_all_deplibs_GO=yes
26583       export_dynamic_flag_spec_GO='$wl-Bexport'
26584       runpath_var='LD_RUN_PATH'
26585
26586       if test yes = "$GCC"; then
26587         archive_cmds_GO='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26588         archive_expsym_cmds_GO='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26589       else
26590         archive_cmds_GO='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26591         archive_expsym_cmds_GO='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26592       fi
26593       ;;
26594
26595     uts4*)
26596       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26597       hardcode_libdir_flag_spec_GO='-L$libdir'
26598       hardcode_shlibpath_var_GO=no
26599       ;;
26600
26601     *)
26602       ld_shlibs_GO=no
26603       ;;
26604     esac
26605
26606     if test sni = "$host_vendor"; then
26607       case $host in
26608       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26609         export_dynamic_flag_spec_GO='$wl-Blargedynsym'
26610         ;;
26611       esac
26612     fi
26613   fi
26614
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
26616 $as_echo "$ld_shlibs_GO" >&6; }
26617 test no = "$ld_shlibs_GO" && can_build_shared=no
26618
26619 with_gnu_ld_GO=$with_gnu_ld
26620
26621
26622
26623
26624
26625
26626 #
26627 # Do we need to explicitly link libc?
26628 #
26629 case "x$archive_cmds_need_lc_GO" in
26630 x|xyes)
26631   # Assume -lc should be added
26632   archive_cmds_need_lc_GO=yes
26633
26634   if test yes,yes = "$GCC,$enable_shared"; then
26635     case $archive_cmds_GO in
26636     *'~'*)
26637       # FIXME: we may have to deal with multi-command sequences.
26638       ;;
26639     '$CC '*)
26640       # Test whether the compiler implicitly links with -lc since on some
26641       # systems, -lgcc has to come before -lc. If gcc already passes -lc
26642       # to ld, don't add -lc before -lgcc.
26643       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
26644 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26645 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
26646   $as_echo_n "(cached) " >&6
26647 else
26648   $RM conftest*
26649         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26650
26651         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26652   (eval $ac_compile) 2>&5
26653   ac_status=$?
26654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655   test $ac_status = 0; } 2>conftest.err; then
26656           soname=conftest
26657           lib=conftest
26658           libobjs=conftest.$ac_objext
26659           deplibs=
26660           wl=$lt_prog_compiler_wl_GO
26661           pic_flag=$lt_prog_compiler_pic_GO
26662           compiler_flags=-v
26663           linker_flags=-v
26664           verstring=
26665           output_objdir=.
26666           libname=conftest
26667           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
26668           allow_undefined_flag_GO=
26669           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
26670   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
26671   ac_status=$?
26672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26673   test $ac_status = 0; }
26674           then
26675             lt_cv_archive_cmds_need_lc_GO=no
26676           else
26677             lt_cv_archive_cmds_need_lc_GO=yes
26678           fi
26679           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
26680         else
26681           cat conftest.err 1>&5
26682         fi
26683         $RM conftest*
26684
26685 fi
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
26687 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
26688       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
26689       ;;
26690     esac
26691   fi
26692   ;;
26693 esac
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
26757 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
26758 hardcode_action_GO=
26759 if test -n "$hardcode_libdir_flag_spec_GO" ||
26760    test -n "$runpath_var_GO" ||
26761    test yes = "$hardcode_automatic_GO"; then
26762
26763   # We can hardcode non-existent directories.
26764   if test no != "$hardcode_direct_GO" &&
26765      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26766      # have to relink, otherwise we might link with an installed library
26767      # when we should be linking with a yet-to-be-installed one
26768      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" &&
26769      test no != "$hardcode_minus_L_GO"; then
26770     # Linking always hardcodes the temporary library directory.
26771     hardcode_action_GO=relink
26772   else
26773     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26774     hardcode_action_GO=immediate
26775   fi
26776 else
26777   # We cannot hardcode anything, or else we can only hardcode existing
26778   # directories.
26779   hardcode_action_GO=unsupported
26780 fi
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
26782 $as_echo "$hardcode_action_GO" >&6; }
26783
26784 if test relink = "$hardcode_action_GO" ||
26785    test yes = "$inherit_rpath_GO"; then
26786   # Fast installation is not supported
26787   enable_fast_install=no
26788 elif test yes = "$shlibpath_overrides_runpath" ||
26789      test no = "$enable_shared"; then
26790   # Fast installation is not necessary
26791   enable_fast_install=needless
26792 fi
26793
26794
26795
26796
26797
26798
26799
26800 fi
26801
26802 ac_ext=c
26803 ac_cpp='$CPP $CPPFLAGS'
26804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26807
26808
26809 GCC=$lt_save_GCC
26810 CC=$lt_save_CC
26811 CFLAGS=$lt_save_CFLAGS
26812
26813 if test -n "$ac_tool_prefix"; then
26814   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
26815 set dummy ${ac_tool_prefix}gcj; ac_word=$2
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26817 $as_echo_n "checking for $ac_word... " >&6; }
26818 if ${ac_cv_prog_GCJ+:} false; then :
26819   $as_echo_n "(cached) " >&6
26820 else
26821   if test -n "$GCJ"; then
26822   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
26823 else
26824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26825 for as_dir in $PATH
26826 do
26827   IFS=$as_save_IFS
26828   test -z "$as_dir" && as_dir=.
26829     for ac_exec_ext in '' $ac_executable_extensions; do
26830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26831     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
26832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26833     break 2
26834   fi
26835 done
26836   done
26837 IFS=$as_save_IFS
26838
26839 fi
26840 fi
26841 GCJ=$ac_cv_prog_GCJ
26842 if test -n "$GCJ"; then
26843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
26844 $as_echo "$GCJ" >&6; }
26845 else
26846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26847 $as_echo "no" >&6; }
26848 fi
26849
26850
26851 fi
26852 if test -z "$ac_cv_prog_GCJ"; then
26853   ac_ct_GCJ=$GCJ
26854   # Extract the first word of "gcj", so it can be a program name with args.
26855 set dummy gcj; ac_word=$2
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26857 $as_echo_n "checking for $ac_word... " >&6; }
26858 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
26859   $as_echo_n "(cached) " >&6
26860 else
26861   if test -n "$ac_ct_GCJ"; then
26862   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
26863 else
26864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26865 for as_dir in $PATH
26866 do
26867   IFS=$as_save_IFS
26868   test -z "$as_dir" && as_dir=.
26869     for ac_exec_ext in '' $ac_executable_extensions; do
26870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26871     ac_cv_prog_ac_ct_GCJ="gcj"
26872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26873     break 2
26874   fi
26875 done
26876   done
26877 IFS=$as_save_IFS
26878
26879 fi
26880 fi
26881 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
26882 if test -n "$ac_ct_GCJ"; then
26883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
26884 $as_echo "$ac_ct_GCJ" >&6; }
26885 else
26886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26887 $as_echo "no" >&6; }
26888 fi
26889
26890   if test "x$ac_ct_GCJ" = x; then
26891     GCJ=""
26892   else
26893     case $cross_compiling:$ac_tool_warned in
26894 yes:)
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26897 ac_tool_warned=yes ;;
26898 esac
26899     GCJ=$ac_ct_GCJ
26900   fi
26901 else
26902   GCJ="$ac_cv_prog_GCJ"
26903 fi
26904
26905       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
26906
26907
26908
26909 # Source file extension for Java test sources.
26910 ac_ext=java
26911
26912 # Object file extension for compiled Java test sources.
26913 objext=o
26914 objext_GCJ=$objext
26915
26916 # Code to be used in simple compile tests
26917 lt_simple_compile_test_code="class foo {}"
26918
26919 # Code to be used in simple link tests
26920 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
26921
26922 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26923
26924
26925
26926
26927
26928
26929 # If no C compiler was specified, use CC.
26930 LTCC=${LTCC-"$CC"}
26931
26932 # If no C compiler flags were specified, use CFLAGS.
26933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26934
26935 # Allow CC to be a program name with arguments.
26936 compiler=$CC
26937
26938
26939 # save warnings/boilerplate of simple test code
26940 ac_outfile=conftest.$ac_objext
26941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
26942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26943 _lt_compiler_boilerplate=`cat conftest.err`
26944 $RM conftest*
26945
26946 ac_outfile=conftest.$ac_objext
26947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
26948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26949 _lt_linker_boilerplate=`cat conftest.err`
26950 $RM -r conftest*
26951
26952
26953 # Allow CC to be a program name with arguments.
26954 lt_save_CC=$CC
26955 lt_save_CFLAGS=$CFLAGS
26956 lt_save_GCC=$GCC
26957 GCC=yes
26958 CC=${GCJ-"gcj"}
26959 CFLAGS=$GCJFLAGS
26960 compiler=$CC
26961 compiler_GCJ=$CC
26962 LD_GCJ=$LD
26963 func_cc_basename $compiler
26964 cc_basename=$func_cc_basename_result
26965
26966
26967 # GCJ did not exist at the time GCC didn't implicitly link libc in.
26968 archive_cmds_need_lc_GCJ=no
26969
26970 old_archive_cmds_GCJ=$old_archive_cmds
26971 reload_flag_GCJ=$reload_flag
26972 reload_cmds_GCJ=$reload_cmds
26973
26974 ## CAVEAT EMPTOR:
26975 ## There is no encapsulation within the following macros, do not change
26976 ## the running order or otherwise move them around unless you know exactly
26977 ## what you are doing...
26978 if test -n "$compiler"; then
26979
26980 lt_prog_compiler_no_builtin_flag_GCJ=
26981
26982 if test yes = "$GCC"; then
26983   case $cc_basename in
26984   nvcc*)
26985     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
26986   *)
26987     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
26988   esac
26989
26990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26991 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
26992 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
26993   $as_echo_n "(cached) " >&6
26994 else
26995   lt_cv_prog_compiler_rtti_exceptions=no
26996    ac_outfile=conftest.$ac_objext
26997    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26998    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
26999    # Insert the option either (1) after the last *FLAGS variable, or
27000    # (2) before a word containing "conftest.", or (3) at the end.
27001    # Note that $ac_compile itself does not contain backslashes and begins
27002    # with a dollar sign (not a hyphen), so the echo should work correctly.
27003    # The option is referenced via a variable to avoid confusing sed.
27004    lt_compile=`echo "$ac_compile" | $SED \
27005    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27006    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27007    -e 's:$: $lt_compiler_flag:'`
27008    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27009    (eval "$lt_compile" 2>conftest.err)
27010    ac_status=$?
27011    cat conftest.err >&5
27012    echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013    if (exit $ac_status) && test -s "$ac_outfile"; then
27014      # The compiler can only warn and ignore the option if not recognized
27015      # So say no if there are warnings other than the usual output.
27016      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
27017      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
27018      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
27019        lt_cv_prog_compiler_rtti_exceptions=yes
27020      fi
27021    fi
27022    $RM conftest*
27023
27024 fi
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
27026 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
27027
27028 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
27029     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
27030 else
27031     :
27032 fi
27033
27034 fi
27035
27036
27037
27038   lt_prog_compiler_wl_GCJ=
27039 lt_prog_compiler_pic_GCJ=
27040 lt_prog_compiler_static_GCJ=
27041
27042
27043   if test yes = "$GCC"; then
27044     lt_prog_compiler_wl_GCJ='-Wl,'
27045     lt_prog_compiler_static_GCJ='-static'
27046
27047     case $host_os in
27048       aix*)
27049       # All AIX code is PIC.
27050       if test ia64 = "$host_cpu"; then
27051         # AIX 5 now supports IA64 processor
27052         lt_prog_compiler_static_GCJ='-Bstatic'
27053       fi
27054       lt_prog_compiler_pic_GCJ='-fPIC'
27055       ;;
27056
27057     amigaos*)
27058       case $host_cpu in
27059       powerpc)
27060             # see comment about AmigaOS4 .so support
27061             lt_prog_compiler_pic_GCJ='-fPIC'
27062         ;;
27063       m68k)
27064             # FIXME: we need at least 68020 code to build shared libraries, but
27065             # adding the '-m68020' flag to GCC prevents building anything better,
27066             # like '-m68040'.
27067             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
27068         ;;
27069       esac
27070       ;;
27071
27072     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
27073       # PIC is the default for these OSes.
27074       ;;
27075
27076     mingw* | cygwin* | pw32* | os2* | cegcc*)
27077       # This hack is so that the source file can tell whether it is being
27078       # built for inclusion in a dll (and should export symbols for example).
27079       # Although the cygwin gcc ignores -fPIC, still need this for old-style
27080       # (--disable-auto-import) libraries
27081
27082       case $host_os in
27083       os2*)
27084         lt_prog_compiler_static_GCJ='$wl-static'
27085         ;;
27086       esac
27087       ;;
27088
27089     darwin* | rhapsody*)
27090       # PIC is the default on this platform
27091       # Common symbols not allowed in MH_DYLIB files
27092       lt_prog_compiler_pic_GCJ='-fno-common'
27093       ;;
27094
27095     haiku*)
27096       # PIC is the default for Haiku.
27097       # The "-static" flag exists, but is broken.
27098       lt_prog_compiler_static_GCJ=
27099       ;;
27100
27101     hpux*)
27102       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
27103       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
27104       # sets the default TLS model and affects inlining.
27105       case $host_cpu in
27106       hppa*64*)
27107         # +Z the default
27108         ;;
27109       *)
27110         lt_prog_compiler_pic_GCJ='-fPIC'
27111         ;;
27112       esac
27113       ;;
27114
27115     interix[3-9]*)
27116       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
27117       # Instead, we relocate shared libraries at runtime.
27118       ;;
27119
27120     msdosdjgpp*)
27121       # Just because we use GCC doesn't mean we suddenly get shared libraries
27122       # on systems that don't support them.
27123       lt_prog_compiler_can_build_shared_GCJ=no
27124       enable_shared=no
27125       ;;
27126
27127     *nto* | *qnx*)
27128       # QNX uses GNU C++, but need to define -shared option too, otherwise
27129       # it will coredump.
27130       lt_prog_compiler_pic_GCJ='-fPIC -shared'
27131       ;;
27132
27133     sysv4*MP*)
27134       if test -d /usr/nec; then
27135         lt_prog_compiler_pic_GCJ=-Kconform_pic
27136       fi
27137       ;;
27138
27139     *)
27140       lt_prog_compiler_pic_GCJ='-fPIC'
27141       ;;
27142     esac
27143
27144     case $cc_basename in
27145     nvcc*) # Cuda Compiler Driver 2.2
27146       lt_prog_compiler_wl_GCJ='-Xlinker '
27147       if test -n "$lt_prog_compiler_pic_GCJ"; then
27148         lt_prog_compiler_pic_GCJ="-Xcompiler $lt_prog_compiler_pic_GCJ"
27149       fi
27150       ;;
27151     esac
27152   else
27153     # PORTME Check for flag to pass linker flags through the system compiler.
27154     case $host_os in
27155     aix*)
27156       lt_prog_compiler_wl_GCJ='-Wl,'
27157       if test ia64 = "$host_cpu"; then
27158         # AIX 5 now supports IA64 processor
27159         lt_prog_compiler_static_GCJ='-Bstatic'
27160       else
27161         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
27162       fi
27163       ;;
27164
27165     darwin* | rhapsody*)
27166       # PIC is the default on this platform
27167       # Common symbols not allowed in MH_DYLIB files
27168       lt_prog_compiler_pic_GCJ='-fno-common'
27169       case $cc_basename in
27170       nagfor*)
27171         # NAG Fortran compiler
27172         lt_prog_compiler_wl_GCJ='-Wl,-Wl,,'
27173         lt_prog_compiler_pic_GCJ='-PIC'
27174         lt_prog_compiler_static_GCJ='-Bstatic'
27175         ;;
27176       esac
27177       ;;
27178
27179     mingw* | cygwin* | pw32* | os2* | cegcc*)
27180       # This hack is so that the source file can tell whether it is being
27181       # built for inclusion in a dll (and should export symbols for example).
27182
27183       case $host_os in
27184       os2*)
27185         lt_prog_compiler_static_GCJ='$wl-static'
27186         ;;
27187       esac
27188       ;;
27189
27190     hpux9* | hpux10* | hpux11*)
27191       lt_prog_compiler_wl_GCJ='-Wl,'
27192       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
27193       # not for PA HP-UX.
27194       case $host_cpu in
27195       hppa*64*|ia64*)
27196         # +Z the default
27197         ;;
27198       *)
27199         lt_prog_compiler_pic_GCJ='+Z'
27200         ;;
27201       esac
27202       # Is there a better lt_prog_compiler_static that works with the bundled CC?
27203       lt_prog_compiler_static_GCJ='$wl-a ${wl}archive'
27204       ;;
27205
27206     irix5* | irix6* | nonstopux*)
27207       lt_prog_compiler_wl_GCJ='-Wl,'
27208       # PIC (with -KPIC) is the default.
27209       lt_prog_compiler_static_GCJ='-non_shared'
27210       ;;
27211
27212     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
27213       case $cc_basename in
27214       # old Intel for x86_64, which still supported -KPIC.
27215       ecc*)
27216         lt_prog_compiler_wl_GCJ='-Wl,'
27217         lt_prog_compiler_pic_GCJ='-KPIC'
27218         lt_prog_compiler_static_GCJ='-static'
27219         ;;
27220       # icc used to be incompatible with GCC.
27221       # ICC 10 doesn't accept -KPIC any more.
27222       icc* | ifort*)
27223         lt_prog_compiler_wl_GCJ='-Wl,'
27224         lt_prog_compiler_pic_GCJ='-fPIC'
27225         lt_prog_compiler_static_GCJ='-static'
27226         ;;
27227       # Lahey Fortran 8.1.
27228       lf95*)
27229         lt_prog_compiler_wl_GCJ='-Wl,'
27230         lt_prog_compiler_pic_GCJ='--shared'
27231         lt_prog_compiler_static_GCJ='--static'
27232         ;;
27233       nagfor*)
27234         # NAG Fortran compiler
27235         lt_prog_compiler_wl_GCJ='-Wl,-Wl,,'
27236         lt_prog_compiler_pic_GCJ='-PIC'
27237         lt_prog_compiler_static_GCJ='-Bstatic'
27238         ;;
27239       tcc*)
27240         # Fabrice Bellard et al's Tiny C Compiler
27241         lt_prog_compiler_wl_GCJ='-Wl,'
27242         lt_prog_compiler_pic_GCJ='-fPIC'
27243         lt_prog_compiler_static_GCJ='-static'
27244         ;;
27245       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
27246         # Portland Group compilers (*not* the Pentium gcc compiler,
27247         # which looks to be a dead project)
27248         lt_prog_compiler_wl_GCJ='-Wl,'
27249         lt_prog_compiler_pic_GCJ='-fpic'
27250         lt_prog_compiler_static_GCJ='-Bstatic'
27251         ;;
27252       ccc*)
27253         lt_prog_compiler_wl_GCJ='-Wl,'
27254         # All Alpha code is PIC.
27255         lt_prog_compiler_static_GCJ='-non_shared'
27256         ;;
27257       xl* | bgxl* | bgf* | mpixl*)
27258         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
27259         lt_prog_compiler_wl_GCJ='-Wl,'
27260         lt_prog_compiler_pic_GCJ='-qpic'
27261         lt_prog_compiler_static_GCJ='-qstaticlink'
27262         ;;
27263       *)
27264         case `$CC -V 2>&1 | $SED 5q` in
27265         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
27266           # Sun Fortran 8.3 passes all unrecognized flags to the linker
27267           lt_prog_compiler_pic_GCJ='-KPIC'
27268           lt_prog_compiler_static_GCJ='-Bstatic'
27269           lt_prog_compiler_wl_GCJ=''
27270           ;;
27271         *Sun\ F* | *Sun*Fortran*)
27272           lt_prog_compiler_pic_GCJ='-KPIC'
27273           lt_prog_compiler_static_GCJ='-Bstatic'
27274           lt_prog_compiler_wl_GCJ='-Qoption ld '
27275           ;;
27276         *Sun\ C*)
27277           # Sun C 5.9
27278           lt_prog_compiler_pic_GCJ='-KPIC'
27279           lt_prog_compiler_static_GCJ='-Bstatic'
27280           lt_prog_compiler_wl_GCJ='-Wl,'
27281           ;;
27282         *Intel*\ [CF]*Compiler*)
27283           lt_prog_compiler_wl_GCJ='-Wl,'
27284           lt_prog_compiler_pic_GCJ='-fPIC'
27285           lt_prog_compiler_static_GCJ='-static'
27286           ;;
27287         *Portland\ Group*)
27288           lt_prog_compiler_wl_GCJ='-Wl,'
27289           lt_prog_compiler_pic_GCJ='-fpic'
27290           lt_prog_compiler_static_GCJ='-Bstatic'
27291           ;;
27292         esac
27293         ;;
27294       esac
27295       ;;
27296
27297     newsos6)
27298       lt_prog_compiler_pic_GCJ='-KPIC'
27299       lt_prog_compiler_static_GCJ='-Bstatic'
27300       ;;
27301
27302     *nto* | *qnx*)
27303       # QNX uses GNU C++, but need to define -shared option too, otherwise
27304       # it will coredump.
27305       lt_prog_compiler_pic_GCJ='-fPIC -shared'
27306       ;;
27307
27308     osf3* | osf4* | osf5*)
27309       lt_prog_compiler_wl_GCJ='-Wl,'
27310       # All OSF/1 code is PIC.
27311       lt_prog_compiler_static_GCJ='-non_shared'
27312       ;;
27313
27314     rdos*)
27315       lt_prog_compiler_static_GCJ='-non_shared'
27316       ;;
27317
27318     solaris*)
27319       lt_prog_compiler_pic_GCJ='-KPIC'
27320       lt_prog_compiler_static_GCJ='-Bstatic'
27321       case $cc_basename in
27322       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
27323         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
27324       *)
27325         lt_prog_compiler_wl_GCJ='-Wl,';;
27326       esac
27327       ;;
27328
27329     sunos4*)
27330       lt_prog_compiler_wl_GCJ='-Qoption ld '
27331       lt_prog_compiler_pic_GCJ='-PIC'
27332       lt_prog_compiler_static_GCJ='-Bstatic'
27333       ;;
27334
27335     sysv4 | sysv4.2uw2* | sysv4.3*)
27336       lt_prog_compiler_wl_GCJ='-Wl,'
27337       lt_prog_compiler_pic_GCJ='-KPIC'
27338       lt_prog_compiler_static_GCJ='-Bstatic'
27339       ;;
27340
27341     sysv4*MP*)
27342       if test -d /usr/nec; then
27343         lt_prog_compiler_pic_GCJ='-Kconform_pic'
27344         lt_prog_compiler_static_GCJ='-Bstatic'
27345       fi
27346       ;;
27347
27348     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
27349       lt_prog_compiler_wl_GCJ='-Wl,'
27350       lt_prog_compiler_pic_GCJ='-KPIC'
27351       lt_prog_compiler_static_GCJ='-Bstatic'
27352       ;;
27353
27354     unicos*)
27355       lt_prog_compiler_wl_GCJ='-Wl,'
27356       lt_prog_compiler_can_build_shared_GCJ=no
27357       ;;
27358
27359     uts4*)
27360       lt_prog_compiler_pic_GCJ='-pic'
27361       lt_prog_compiler_static_GCJ='-Bstatic'
27362       ;;
27363
27364     *)
27365       lt_prog_compiler_can_build_shared_GCJ=no
27366       ;;
27367     esac
27368   fi
27369
27370 case $host_os in
27371   # For platforms that do not support PIC, -DPIC is meaningless:
27372   *djgpp*)
27373     lt_prog_compiler_pic_GCJ=
27374     ;;
27375   *)
27376     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
27377     ;;
27378 esac
27379
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
27381 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
27382 if ${lt_cv_prog_compiler_pic_GCJ+:} false; then :
27383   $as_echo_n "(cached) " >&6
27384 else
27385   lt_cv_prog_compiler_pic_GCJ=$lt_prog_compiler_pic_GCJ
27386 fi
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_GCJ" >&5
27388 $as_echo "$lt_cv_prog_compiler_pic_GCJ" >&6; }
27389 lt_prog_compiler_pic_GCJ=$lt_cv_prog_compiler_pic_GCJ
27390
27391 #
27392 # Check to make sure the PIC flag actually works.
27393 #
27394 if test -n "$lt_prog_compiler_pic_GCJ"; then
27395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
27396 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
27397 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
27398   $as_echo_n "(cached) " >&6
27399 else
27400   lt_cv_prog_compiler_pic_works_GCJ=no
27401    ac_outfile=conftest.$ac_objext
27402    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
27403    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"  ## exclude from sc_useless_quotes_in_assignment
27404    # Insert the option either (1) after the last *FLAGS variable, or
27405    # (2) before a word containing "conftest.", or (3) at the end.
27406    # Note that $ac_compile itself does not contain backslashes and begins
27407    # with a dollar sign (not a hyphen), so the echo should work correctly.
27408    # The option is referenced via a variable to avoid confusing sed.
27409    lt_compile=`echo "$ac_compile" | $SED \
27410    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27411    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27412    -e 's:$: $lt_compiler_flag:'`
27413    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27414    (eval "$lt_compile" 2>conftest.err)
27415    ac_status=$?
27416    cat conftest.err >&5
27417    echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418    if (exit $ac_status) && test -s "$ac_outfile"; then
27419      # The compiler can only warn and ignore the option if not recognized
27420      # So say no if there are warnings other than the usual output.
27421      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
27422      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
27423      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
27424        lt_cv_prog_compiler_pic_works_GCJ=yes
27425      fi
27426    fi
27427    $RM conftest*
27428
27429 fi
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
27431 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
27432
27433 if test yes = "$lt_cv_prog_compiler_pic_works_GCJ"; then
27434     case $lt_prog_compiler_pic_GCJ in
27435      "" | " "*) ;;
27436      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
27437      esac
27438 else
27439     lt_prog_compiler_pic_GCJ=
27440      lt_prog_compiler_can_build_shared_GCJ=no
27441 fi
27442
27443 fi
27444
27445
27446
27447
27448
27449 #
27450 # Check to make sure the static flag actually works.
27451 #
27452 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
27454 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
27455 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
27456   $as_echo_n "(cached) " >&6
27457 else
27458   lt_cv_prog_compiler_static_works_GCJ=no
27459    save_LDFLAGS=$LDFLAGS
27460    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
27461    echo "$lt_simple_link_test_code" > conftest.$ac_ext
27462    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
27463      # The linker can only warn and ignore the option if not recognized
27464      # So say no if there are warnings
27465      if test -s conftest.err; then
27466        # Append any errors to the config.log.
27467        cat conftest.err 1>&5
27468        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
27469        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
27470        if diff conftest.exp conftest.er2 >/dev/null; then
27471          lt_cv_prog_compiler_static_works_GCJ=yes
27472        fi
27473      else
27474        lt_cv_prog_compiler_static_works_GCJ=yes
27475      fi
27476    fi
27477    $RM -r conftest*
27478    LDFLAGS=$save_LDFLAGS
27479
27480 fi
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
27482 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
27483
27484 if test yes = "$lt_cv_prog_compiler_static_works_GCJ"; then
27485     :
27486 else
27487     lt_prog_compiler_static_GCJ=
27488 fi
27489
27490
27491
27492
27493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
27494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
27495 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
27496   $as_echo_n "(cached) " >&6
27497 else
27498   lt_cv_prog_compiler_c_o_GCJ=no
27499    $RM -r conftest 2>/dev/null
27500    mkdir conftest
27501    cd conftest
27502    mkdir out
27503    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
27504
27505    lt_compiler_flag="-o out/conftest2.$ac_objext"
27506    # Insert the option either (1) after the last *FLAGS variable, or
27507    # (2) before a word containing "conftest.", or (3) at the end.
27508    # Note that $ac_compile itself does not contain backslashes and begins
27509    # with a dollar sign (not a hyphen), so the echo should work correctly.
27510    lt_compile=`echo "$ac_compile" | $SED \
27511    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27513    -e 's:$: $lt_compiler_flag:'`
27514    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27515    (eval "$lt_compile" 2>out/conftest.err)
27516    ac_status=$?
27517    cat out/conftest.err >&5
27518    echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519    if (exit $ac_status) && test -s out/conftest2.$ac_objext
27520    then
27521      # The compiler can only warn and ignore the option if not recognized
27522      # So say no if there are warnings
27523      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
27524      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
27525      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27526        lt_cv_prog_compiler_c_o_GCJ=yes
27527      fi
27528    fi
27529    chmod u+w . 2>&5
27530    $RM conftest*
27531    # SGI C++ compiler will create directory out/ii_files/ for
27532    # template instantiation
27533    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
27534    $RM out/* && rmdir out
27535    cd ..
27536    $RM -r conftest
27537    $RM conftest*
27538
27539 fi
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
27541 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
27542
27543
27544
27545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
27546 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
27547 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
27548   $as_echo_n "(cached) " >&6
27549 else
27550   lt_cv_prog_compiler_c_o_GCJ=no
27551    $RM -r conftest 2>/dev/null
27552    mkdir conftest
27553    cd conftest
27554    mkdir out
27555    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
27556
27557    lt_compiler_flag="-o out/conftest2.$ac_objext"
27558    # Insert the option either (1) after the last *FLAGS variable, or
27559    # (2) before a word containing "conftest.", or (3) at the end.
27560    # Note that $ac_compile itself does not contain backslashes and begins
27561    # with a dollar sign (not a hyphen), so the echo should work correctly.
27562    lt_compile=`echo "$ac_compile" | $SED \
27563    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27565    -e 's:$: $lt_compiler_flag:'`
27566    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
27567    (eval "$lt_compile" 2>out/conftest.err)
27568    ac_status=$?
27569    cat out/conftest.err >&5
27570    echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571    if (exit $ac_status) && test -s out/conftest2.$ac_objext
27572    then
27573      # The compiler can only warn and ignore the option if not recognized
27574      # So say no if there are warnings
27575      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
27576      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
27577      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27578        lt_cv_prog_compiler_c_o_GCJ=yes
27579      fi
27580    fi
27581    chmod u+w . 2>&5
27582    $RM conftest*
27583    # SGI C++ compiler will create directory out/ii_files/ for
27584    # template instantiation
27585    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
27586    $RM out/* && rmdir out
27587    cd ..
27588    $RM -r conftest
27589    $RM conftest*
27590
27591 fi
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
27593 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
27594
27595
27596
27597
27598 hard_links=nottested
27599 if test no = "$lt_cv_prog_compiler_c_o_GCJ" && test no != "$need_locks"; then
27600   # do not overwrite the value of need_locks provided by the user
27601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
27602 $as_echo_n "checking if we can lock with hard links... " >&6; }
27603   hard_links=yes
27604   $RM conftest*
27605   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27606   touch conftest.a
27607   ln conftest.a conftest.b 2>&5 || hard_links=no
27608   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
27610 $as_echo "$hard_links" >&6; }
27611   if test no = "$hard_links"; then
27612     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
27613 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
27614     need_locks=warn
27615   fi
27616 else
27617   need_locks=no
27618 fi
27619
27620
27621
27622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27623 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
27624
27625   runpath_var=
27626   allow_undefined_flag_GCJ=
27627   always_export_symbols_GCJ=no
27628   archive_cmds_GCJ=
27629   archive_expsym_cmds_GCJ=
27630   compiler_needs_object_GCJ=no
27631   enable_shared_with_static_runtimes_GCJ=no
27632   export_dynamic_flag_spec_GCJ=
27633   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
27634   hardcode_automatic_GCJ=no
27635   hardcode_direct_GCJ=no
27636   hardcode_direct_absolute_GCJ=no
27637   hardcode_libdir_flag_spec_GCJ=
27638   hardcode_libdir_separator_GCJ=
27639   hardcode_minus_L_GCJ=no
27640   hardcode_shlibpath_var_GCJ=unsupported
27641   inherit_rpath_GCJ=no
27642   link_all_deplibs_GCJ=unknown
27643   module_cmds_GCJ=
27644   module_expsym_cmds_GCJ=
27645   old_archive_from_new_cmds_GCJ=
27646   old_archive_from_expsyms_cmds_GCJ=
27647   thread_safe_flag_spec_GCJ=
27648   whole_archive_flag_spec_GCJ=
27649   # include_expsyms should be a list of space-separated symbols to be *always*
27650   # included in the symbol list
27651   include_expsyms_GCJ=
27652   # exclude_expsyms can be an extended regexp of symbols to exclude
27653   # it will be wrapped by ' (' and ')$', so one must not match beginning or
27654   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
27655   # as well as any symbol that contains 'd'.
27656   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
27657   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
27658   # platforms (ab)use it in PIC code, but their linkers get confused if
27659   # the symbol is explicitly referenced.  Since portable code cannot
27660   # rely on this symbol name, it's probably fine to never include it in
27661   # preloaded symbol tables.
27662   # Exclude shared library initialization/finalization symbols.
27663   extract_expsyms_cmds=
27664
27665   case $host_os in
27666   cygwin* | mingw* | pw32* | cegcc*)
27667     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
27668     # When not using gcc, we currently assume that we are using
27669     # Microsoft Visual C++ or Intel C++ Compiler.
27670     if test yes != "$GCC"; then
27671       with_gnu_ld=no
27672     fi
27673     ;;
27674   interix*)
27675     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
27676     with_gnu_ld=yes
27677     ;;
27678   openbsd* | bitrig*)
27679     with_gnu_ld=no
27680     ;;
27681   esac
27682
27683   ld_shlibs_GCJ=yes
27684
27685   # On some targets, GNU ld is compatible enough with the native linker
27686   # that we're better off using the native interface for both.
27687   lt_use_gnu_ld_interface=no
27688   if test yes = "$with_gnu_ld"; then
27689     case $host_os in
27690       aix*)
27691         # The AIX port of GNU ld has always aspired to compatibility
27692         # with the native linker.  However, as the warning in the GNU ld
27693         # block says, versions before 2.19.5* couldn't really create working
27694         # shared libraries, regardless of the interface used.
27695         case `$LD -v 2>&1` in
27696           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
27697           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
27698           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
27699           *)
27700             lt_use_gnu_ld_interface=yes
27701             ;;
27702         esac
27703         ;;
27704       *)
27705         lt_use_gnu_ld_interface=yes
27706         ;;
27707     esac
27708   fi
27709
27710   if test yes = "$lt_use_gnu_ld_interface"; then
27711     # If archive_cmds runs LD, not CC, wlarc should be empty
27712     wlarc='$wl'
27713
27714     # Set some defaults for GNU ld with shared library support. These
27715     # are reset later if shared libraries are not supported. Putting them
27716     # here allows them to be overridden if necessary.
27717     runpath_var=LD_RUN_PATH
27718     hardcode_libdir_flag_spec_GCJ='$wl-rpath $wl$libdir'
27719     export_dynamic_flag_spec_GCJ='$wl--export-dynamic'
27720     # ancient GNU ld didn't support --whole-archive et. al.
27721     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
27722       whole_archive_flag_spec_GCJ=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
27723     else
27724       whole_archive_flag_spec_GCJ=
27725     fi
27726     supports_anon_versioning=no
27727     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
27728       *GNU\ gold*) supports_anon_versioning=yes ;;
27729       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27730       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27731       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27732       *\ 2.11.*) ;; # other 2.11 versions
27733       *) supports_anon_versioning=yes ;;
27734     esac
27735
27736     # See if GNU ld supports shared libraries.
27737     case $host_os in
27738     aix[3-9]*)
27739       # On AIX/PPC, the GNU linker is very broken
27740       if test ia64 != "$host_cpu"; then
27741         ld_shlibs_GCJ=no
27742         cat <<_LT_EOF 1>&2
27743
27744 *** Warning: the GNU linker, at least up to release 2.19, is reported
27745 *** to be unable to reliably create shared libraries on AIX.
27746 *** Therefore, libtool is disabling shared libraries support.  If you
27747 *** really care for shared libraries, you may want to install binutils
27748 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
27749 *** You will then need to restart the configuration process.
27750
27751 _LT_EOF
27752       fi
27753       ;;
27754
27755     amigaos*)
27756       case $host_cpu in
27757       powerpc)
27758             # see comment about AmigaOS4 .so support
27759             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27760             archive_expsym_cmds_GCJ=''
27761         ;;
27762       m68k)
27763             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)'
27764             hardcode_libdir_flag_spec_GCJ='-L$libdir'
27765             hardcode_minus_L_GCJ=yes
27766         ;;
27767       esac
27768       ;;
27769
27770     beos*)
27771       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
27772         allow_undefined_flag_GCJ=unsupported
27773         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27774         # support --undefined.  This deserves some investigation.  FIXME
27775         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27776       else
27777         ld_shlibs_GCJ=no
27778       fi
27779       ;;
27780
27781     cygwin* | mingw* | pw32* | cegcc*)
27782       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
27783       # as there is no search path for DLLs.
27784       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27785       export_dynamic_flag_spec_GCJ='$wl--export-all-symbols'
27786       allow_undefined_flag_GCJ=unsupported
27787       always_export_symbols_GCJ=no
27788       enable_shared_with_static_runtimes_GCJ=yes
27789       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'
27790       exclude_expsyms_GCJ='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
27791
27792       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
27793         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
27794         # If the export-symbols file already is a .def file, use it as
27795         # is; otherwise, prepend EXPORTS...
27796         archive_expsym_cmds_GCJ='if   test DEF = "`$SED -n     -e '\''s/^[       ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
27797           cp $export_symbols $output_objdir/$soname.def;
27798         else
27799           echo EXPORTS > $output_objdir/$soname.def;
27800           cat $export_symbols >> $output_objdir/$soname.def;
27801         fi~
27802         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
27803       else
27804         ld_shlibs_GCJ=no
27805       fi
27806       ;;
27807
27808     haiku*)
27809       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27810       link_all_deplibs_GCJ=yes
27811       ;;
27812
27813     os2*)
27814       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27815       hardcode_minus_L_GCJ=yes
27816       allow_undefined_flag_GCJ=unsupported
27817       shrext_cmds=.dll
27818       archive_cmds_GCJ='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
27819         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
27820         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
27821         $ECHO EXPORTS >> $output_objdir/$libname.def~
27822         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
27823         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
27824         emximp -o $lib $output_objdir/$libname.def'
27825       archive_expsym_cmds_GCJ='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
27826         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
27827         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
27828         $ECHO EXPORTS >> $output_objdir/$libname.def~
27829         prefix_cmds="$SED"~
27830         if test EXPORTS = "`$SED 1q $export_symbols`"; then
27831           prefix_cmds="$prefix_cmds -e 1d";
27832         fi~
27833         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
27834         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
27835         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
27836         emximp -o $lib $output_objdir/$libname.def'
27837       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
27838       enable_shared_with_static_runtimes_GCJ=yes
27839       file_list_spec_GCJ='@'
27840       ;;
27841
27842     interix[3-9]*)
27843       hardcode_direct_GCJ=no
27844       hardcode_shlibpath_var_GCJ=no
27845       hardcode_libdir_flag_spec_GCJ='$wl-rpath,$libdir'
27846       export_dynamic_flag_spec_GCJ='$wl-E'
27847       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
27848       # Instead, shared libraries are loaded at an image base (0x10000000 by
27849       # default) and relocated if they conflict, which is a slow very memory
27850       # consuming and fragmenting process.  To avoid this, we pick a random,
27851       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
27852       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
27853       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'
27854       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'
27855       ;;
27856
27857     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
27858       tmp_diet=no
27859       if test linux-dietlibc = "$host_os"; then
27860         case $cc_basename in
27861           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
27862         esac
27863       fi
27864       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
27865          && test no = "$tmp_diet"
27866       then
27867         tmp_addflag=' $pic_flag'
27868         tmp_sharedflag='-shared'
27869         case $cc_basename,$host_cpu in
27870         pgcc*)                          # Portland Group C compiler
27871           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'
27872           tmp_addflag=' $pic_flag'
27873           ;;
27874         pgf77* | pgf90* | pgf95* | pgfortran*)
27875                                         # Portland Group f77 and f90 compilers
27876           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'
27877           tmp_addflag=' $pic_flag -Mnomain' ;;
27878         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
27879           tmp_addflag=' -i_dynamic' ;;
27880         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
27881           tmp_addflag=' -i_dynamic -nofor_main' ;;
27882         ifc* | ifort*)                  # Intel Fortran compiler
27883           tmp_addflag=' -nofor_main' ;;
27884         lf95*)                          # Lahey Fortran 8.1
27885           whole_archive_flag_spec_GCJ=
27886           tmp_sharedflag='--shared' ;;
27887         nagfor*)                        # NAGFOR 5.3
27888           tmp_sharedflag='-Wl,-shared' ;;
27889         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
27890           tmp_sharedflag='-qmkshrobj'
27891           tmp_addflag= ;;
27892         nvcc*)  # Cuda Compiler Driver 2.2
27893           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'
27894           compiler_needs_object_GCJ=yes
27895           ;;
27896         esac
27897         case `$CC -V 2>&1 | $SED 5q` in
27898         *Sun\ C*)                       # Sun C 5.9
27899           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'
27900           compiler_needs_object_GCJ=yes
27901           tmp_sharedflag='-G' ;;
27902         *Sun\ F*)                       # Sun Fortran 8.3
27903           tmp_sharedflag='-G' ;;
27904         esac
27905         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27906
27907         if test yes = "$supports_anon_versioning"; then
27908           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
27909             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27910             echo "local: *; };" >> $output_objdir/$libname.ver~
27911             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
27912         fi
27913
27914         case $cc_basename in
27915         tcc*)
27916           export_dynamic_flag_spec_GCJ='-rdynamic'
27917           ;;
27918         xlf* | bgf* | bgxlf* | mpixlf*)
27919           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
27920           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
27921           hardcode_libdir_flag_spec_GCJ='$wl-rpath $wl$libdir'
27922           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
27923           if test yes = "$supports_anon_versioning"; then
27924             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
27925               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27926               echo "local: *; };" >> $output_objdir/$libname.ver~
27927               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
27928           fi
27929           ;;
27930         esac
27931       else
27932         ld_shlibs_GCJ=no
27933       fi
27934       ;;
27935
27936     netbsd*)
27937       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
27938         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
27939         wlarc=
27940       else
27941         archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27942         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'
27943       fi
27944       ;;
27945
27946     solaris*)
27947       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
27948         ld_shlibs_GCJ=no
27949         cat <<_LT_EOF 1>&2
27950
27951 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
27952 *** create shared libraries on Solaris systems.  Therefore, libtool
27953 *** is disabling shared libraries support.  We urge you to upgrade GNU
27954 *** binutils to release 2.9.1 or newer.  Another option is to modify
27955 *** your PATH or compiler configuration so that the native linker is
27956 *** used, and then restart.
27957
27958 _LT_EOF
27959       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
27960         archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27961         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'
27962       else
27963         ld_shlibs_GCJ=no
27964       fi
27965       ;;
27966
27967     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
27968       case `$LD -v 2>&1` in
27969         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
27970         ld_shlibs_GCJ=no
27971         cat <<_LT_EOF 1>&2
27972
27973 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
27974 *** reliably create shared libraries on SCO systems.  Therefore, libtool
27975 *** is disabling shared libraries support.  We urge you to upgrade GNU
27976 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
27977 *** your PATH or compiler configuration so that the native linker is
27978 *** used, and then restart.
27979
27980 _LT_EOF
27981         ;;
27982         *)
27983           # For security reasons, it is highly recommended that you always
27984           # use absolute paths for naming shared libraries, and exclude the
27985           # DT_RUNPATH tag from executables and libraries.  But doing so
27986           # requires that you compile everything twice, which is a pain.
27987           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
27988             hardcode_libdir_flag_spec_GCJ='$wl-rpath $wl$libdir'
27989             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
27990             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
27991           else
27992             ld_shlibs_GCJ=no
27993           fi
27994         ;;
27995       esac
27996       ;;
27997
27998     sunos4*)
27999       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28000       wlarc=
28001       hardcode_direct_GCJ=yes
28002       hardcode_shlibpath_var_GCJ=no
28003       ;;
28004
28005     *)
28006       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
28007         archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28008         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'
28009       else
28010         ld_shlibs_GCJ=no
28011       fi
28012       ;;
28013     esac
28014
28015     if test no = "$ld_shlibs_GCJ"; then
28016       runpath_var=
28017       hardcode_libdir_flag_spec_GCJ=
28018       export_dynamic_flag_spec_GCJ=
28019       whole_archive_flag_spec_GCJ=
28020     fi
28021   else
28022     # PORTME fill in a description of your system's linker (not GNU ld)
28023     case $host_os in
28024     aix3*)
28025       allow_undefined_flag_GCJ=unsupported
28026       always_export_symbols_GCJ=yes
28027       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'
28028       # Note: this linker hardcodes the directories in LIBPATH if there
28029       # are no directories specified by -L.
28030       hardcode_minus_L_GCJ=yes
28031       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
28032         # Neither direct hardcoding nor static linking is supported with a
28033         # broken collect2.
28034         hardcode_direct_GCJ=unsupported
28035       fi
28036       ;;
28037
28038     aix[4-9]*)
28039       if test ia64 = "$host_cpu"; then
28040         # On IA64, the linker does run time linking by default, so we don't
28041         # have to do anything special.
28042         aix_use_runtimelinking=no
28043         exp_sym_flag='-Bexport'
28044         no_entry_flag=
28045       else
28046         # If we're using GNU nm, then we don't want the "-C" option.
28047         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
28048         # Without the "-l" option, or with the "-B" option, AIX nm treats
28049         # weak defined symbols like other global defined symbols, whereas
28050         # GNU nm marks them as "W".
28051         # While the 'weak' keyword is ignored in the Export File, we need
28052         # it in the Import File for the 'aix-soname' feature, so we have
28053         # to replace the "-B" option with "-P" for AIX nm.
28054         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
28055           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
28056         else
28057           export_symbols_cmds_GCJ='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
28058         fi
28059         aix_use_runtimelinking=no
28060
28061         # Test if we are trying to use run time linking or normal
28062         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
28063         # have runtime linking enabled, and use it for executables.
28064         # For shared libraries, we enable/disable runtime linking
28065         # depending on the kind of the shared library created -
28066         # when "with_aix_soname,aix_use_runtimelinking" is:
28067         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
28068         # "aix,yes"  lib.so          shared, rtl:yes, for executables
28069         #            lib.a           static archive
28070         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
28071         #            lib.a(lib.so.V) shared, rtl:no,  for executables
28072         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
28073         #            lib.a(lib.so.V) shared, rtl:no
28074         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
28075         #            lib.a           static archive
28076         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
28077           for ld_flag in $LDFLAGS; do
28078           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
28079             aix_use_runtimelinking=yes
28080             break
28081           fi
28082           done
28083           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
28084             # With aix-soname=svr4, we create the lib.so.V shared archives only,
28085             # so we don't have lib.a shared libs to link our executables.
28086             # We have to force runtime linking in this case.
28087             aix_use_runtimelinking=yes
28088             LDFLAGS="$LDFLAGS -Wl,-brtl"
28089           fi
28090           ;;
28091         esac
28092
28093         exp_sym_flag='-bexport'
28094         no_entry_flag='-bnoentry'
28095       fi
28096
28097       # When large executables or shared objects are built, AIX ld can
28098       # have problems creating the table of contents.  If linking a library
28099       # or program results in "error TOC overflow" add -mminimal-toc to
28100       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
28101       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
28102
28103       archive_cmds_GCJ=''
28104       hardcode_direct_GCJ=yes
28105       hardcode_direct_absolute_GCJ=yes
28106       hardcode_libdir_separator_GCJ=':'
28107       link_all_deplibs_GCJ=yes
28108       file_list_spec_GCJ='$wl-f,'
28109       case $with_aix_soname,$aix_use_runtimelinking in
28110       aix,*) ;; # traditional, no import file
28111       svr4,* | *,yes) # use import file
28112         # The Import File defines what to hardcode.
28113         hardcode_direct_GCJ=no
28114         hardcode_direct_absolute_GCJ=no
28115         ;;
28116       esac
28117
28118       if test yes = "$GCC"; then
28119         case $host_os in aix4.[012]|aix4.[012].*)
28120         # We only want to do this on AIX 4.2 and lower, the check
28121         # below for broken collect2 doesn't work under 4.3+
28122           collect2name=`$CC -print-prog-name=collect2`
28123           if test -f "$collect2name" &&
28124            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
28125           then
28126           # We have reworked collect2
28127           :
28128           else
28129           # We have old collect2
28130           hardcode_direct_GCJ=unsupported
28131           # It fails to find uninstalled libraries when the uninstalled
28132           # path is not listed in the libpath.  Setting hardcode_minus_L
28133           # to unsupported forces relinking
28134           hardcode_minus_L_GCJ=yes
28135           hardcode_libdir_flag_spec_GCJ='-L$libdir'
28136           hardcode_libdir_separator_GCJ=
28137           fi
28138           ;;
28139         esac
28140         shared_flag='-shared'
28141         if test yes = "$aix_use_runtimelinking"; then
28142           shared_flag="$shared_flag "'$wl-G'
28143         fi
28144         # Need to ensure runtime linking is disabled for the traditional
28145         # shared library, or the linker may eventually find shared libraries
28146         # /with/ Import File - we do not want to mix them.
28147         shared_flag_aix='-shared'
28148         shared_flag_svr4='-shared $wl-G'
28149       else
28150         # not using gcc
28151         if test ia64 = "$host_cpu"; then
28152         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
28153         # chokes on -Wl,-G. The following line is correct:
28154           shared_flag='-G'
28155         else
28156           if test yes = "$aix_use_runtimelinking"; then
28157             shared_flag='$wl-G'
28158           else
28159             shared_flag='$wl-bM:SRE'
28160           fi
28161           shared_flag_aix='$wl-bM:SRE'
28162           shared_flag_svr4='$wl-G'
28163         fi
28164       fi
28165
28166       export_dynamic_flag_spec_GCJ='$wl-bexpall'
28167       # It seems that -bexpall does not export symbols beginning with
28168       # underscore (_), so it is better to generate a list of symbols to export.
28169       always_export_symbols_GCJ=yes
28170       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
28171         # Warning - without using the other runtime loading flags (-brtl),
28172         # -berok will link without error, but may produce a broken library.
28173         allow_undefined_flag_GCJ='-berok'
28174         # Determine the default libpath from the value encoded in an
28175         # empty executable.
28176         if test set = "${lt_cv_aix_libpath+set}"; then
28177   aix_libpath=$lt_cv_aix_libpath
28178 else
28179   if ${lt_cv_aix_libpath__GCJ+:} false; then :
28180   $as_echo_n "(cached) " >&6
28181 else
28182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28183 /* end confdefs.h.  */
28184
28185 int
28186 main ()
28187 {
28188
28189   ;
28190   return 0;
28191 }
28192 _ACEOF
28193 if ac_fn_c_try_link "$LINENO"; then :
28194
28195   lt_aix_libpath_sed='
28196       /Import File Strings/,/^$/ {
28197           /^0/ {
28198               s/^0  *\([^ ]*\) *$/\1/
28199               p
28200           }
28201       }'
28202   lt_cv_aix_libpath__GCJ=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28203   # Check for a 64-bit object if we didn't find anything.
28204   if test -z "$lt_cv_aix_libpath__GCJ"; then
28205     lt_cv_aix_libpath__GCJ=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28206   fi
28207 fi
28208 rm -f core conftest.err conftest.$ac_objext \
28209     conftest$ac_exeext conftest.$ac_ext
28210   if test -z "$lt_cv_aix_libpath__GCJ"; then
28211     lt_cv_aix_libpath__GCJ=/usr/lib:/lib
28212   fi
28213
28214 fi
28215
28216   aix_libpath=$lt_cv_aix_libpath__GCJ
28217 fi
28218
28219         hardcode_libdir_flag_spec_GCJ='$wl-blibpath:$libdir:'"$aix_libpath"
28220         archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
28221       else
28222         if test ia64 = "$host_cpu"; then
28223           hardcode_libdir_flag_spec_GCJ='$wl-R $libdir:/usr/lib:/lib'
28224           allow_undefined_flag_GCJ="-z nodefs"
28225           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"
28226         else
28227          # Determine the default libpath from the value encoded in an
28228          # empty executable.
28229          if test set = "${lt_cv_aix_libpath+set}"; then
28230   aix_libpath=$lt_cv_aix_libpath
28231 else
28232   if ${lt_cv_aix_libpath__GCJ+:} false; then :
28233   $as_echo_n "(cached) " >&6
28234 else
28235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28236 /* end confdefs.h.  */
28237
28238 int
28239 main ()
28240 {
28241
28242   ;
28243   return 0;
28244 }
28245 _ACEOF
28246 if ac_fn_c_try_link "$LINENO"; then :
28247
28248   lt_aix_libpath_sed='
28249       /Import File Strings/,/^$/ {
28250           /^0/ {
28251               s/^0  *\([^ ]*\) *$/\1/
28252               p
28253           }
28254       }'
28255   lt_cv_aix_libpath__GCJ=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28256   # Check for a 64-bit object if we didn't find anything.
28257   if test -z "$lt_cv_aix_libpath__GCJ"; then
28258     lt_cv_aix_libpath__GCJ=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
28259   fi
28260 fi
28261 rm -f core conftest.err conftest.$ac_objext \
28262     conftest$ac_exeext conftest.$ac_ext
28263   if test -z "$lt_cv_aix_libpath__GCJ"; then
28264     lt_cv_aix_libpath__GCJ=/usr/lib:/lib
28265   fi
28266
28267 fi
28268
28269   aix_libpath=$lt_cv_aix_libpath__GCJ
28270 fi
28271
28272          hardcode_libdir_flag_spec_GCJ='$wl-blibpath:$libdir:'"$aix_libpath"
28273           # Warning - without using the other run time loading flags,
28274           # -berok will link without error, but may produce a broken library.
28275           no_undefined_flag_GCJ=' $wl-bernotok'
28276           allow_undefined_flag_GCJ=' $wl-berok'
28277           if test yes = "$with_gnu_ld"; then
28278             # We only use this code for GNU lds that support --whole-archive.
28279             whole_archive_flag_spec_GCJ='$wl--whole-archive$convenience $wl--no-whole-archive'
28280           else
28281             # Exported symbols can be pulled into shared objects from archives
28282             whole_archive_flag_spec_GCJ='$convenience'
28283           fi
28284           archive_cmds_need_lc_GCJ=yes
28285           archive_expsym_cmds_GCJ='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
28286           # -brtl affects multiple linker settings, -berok does not and is overridden later
28287           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
28288           if test svr4 != "$with_aix_soname"; then
28289             # This is similar to how AIX traditionally builds its shared libraries.
28290             archive_expsym_cmds_GCJ="$archive_expsym_cmds_GCJ"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
28291           fi
28292           if test aix != "$with_aix_soname"; then
28293             archive_expsym_cmds_GCJ="$archive_expsym_cmds_GCJ"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
28294           else
28295             # used by -dlpreopen to get the symbols
28296             archive_expsym_cmds_GCJ="$archive_expsym_cmds_GCJ"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
28297           fi
28298           archive_expsym_cmds_GCJ="$archive_expsym_cmds_GCJ"'~$RM -r $output_objdir/$realname.d'
28299         fi
28300       fi
28301       ;;
28302
28303     amigaos*)
28304       case $host_cpu in
28305       powerpc)
28306             # see comment about AmigaOS4 .so support
28307             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
28308             archive_expsym_cmds_GCJ=''
28309         ;;
28310       m68k)
28311             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)'
28312             hardcode_libdir_flag_spec_GCJ='-L$libdir'
28313             hardcode_minus_L_GCJ=yes
28314         ;;
28315       esac
28316       ;;
28317
28318     bsdi[45]*)
28319       export_dynamic_flag_spec_GCJ=-rdynamic
28320       ;;
28321
28322     cygwin* | mingw* | pw32* | cegcc*)
28323       # When not using gcc, we currently assume that we are using
28324       # Microsoft Visual C++ or Intel C++ Compiler.
28325       # hardcode_libdir_flag_spec is actually meaningless, as there is
28326       # no search path for DLLs.
28327       case $cc_basename in
28328       cl* | icl*)
28329         # Native MSVC or ICC
28330         hardcode_libdir_flag_spec_GCJ=' '
28331         allow_undefined_flag_GCJ=unsupported
28332         always_export_symbols_GCJ=yes
28333         file_list_spec_GCJ='@'
28334         # Tell ltmain to make .lib files, not .a files.
28335         libext=lib
28336         # Tell ltmain to make .dll files, not .so files.
28337         shrext_cmds=.dll
28338         # FIXME: Setting linknames here is a bad hack.
28339         archive_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
28340         archive_expsym_cmds_GCJ='if   test DEF = "`$SED -n     -e '\''s/^[       ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
28341             cp "$export_symbols" "$output_objdir/$soname.def";
28342             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
28343           else
28344             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
28345           fi~
28346           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
28347           linknames='
28348         # The linker will not automatically build a static lib if we build a DLL.
28349         # _LT_TAGVAR(old_archive_from_new_cmds, GCJ)='true'
28350         enable_shared_with_static_runtimes_GCJ=yes
28351         exclude_expsyms_GCJ='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
28352         export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
28353         # Don't use ranlib
28354         old_postinstall_cmds_GCJ='chmod 644 $oldlib'
28355         postlink_cmds_GCJ='lt_outputfile="@OUTPUT@"~
28356           lt_tool_outputfile="@TOOL_OUTPUT@"~
28357           case $lt_outputfile in
28358             *.exe|*.EXE) ;;
28359             *)
28360               lt_outputfile=$lt_outputfile.exe
28361               lt_tool_outputfile=$lt_tool_outputfile.exe
28362               ;;
28363           esac~
28364           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
28365             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
28366             $RM "$lt_outputfile.manifest";
28367           fi'
28368         ;;
28369       *)
28370         # Assume MSVC and ICC wrapper
28371         hardcode_libdir_flag_spec_GCJ=' '
28372         allow_undefined_flag_GCJ=unsupported
28373         # Tell ltmain to make .lib files, not .a files.
28374         libext=lib
28375         # Tell ltmain to make .dll files, not .so files.
28376         shrext_cmds=.dll
28377         # FIXME: Setting linknames here is a bad hack.
28378         archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
28379         # The linker will automatically build a .lib file if we build a DLL.
28380         old_archive_from_new_cmds_GCJ='true'
28381         # FIXME: Should let the user specify the lib program.
28382         old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
28383         enable_shared_with_static_runtimes_GCJ=yes
28384         ;;
28385       esac
28386       ;;
28387
28388     darwin* | rhapsody*)
28389
28390
28391   archive_cmds_need_lc_GCJ=no
28392   hardcode_direct_GCJ=no
28393   hardcode_automatic_GCJ=yes
28394   hardcode_shlibpath_var_GCJ=unsupported
28395   if test yes = "$lt_cv_ld_force_load"; then
28396     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\"`'
28397
28398   else
28399     whole_archive_flag_spec_GCJ=''
28400   fi
28401   link_all_deplibs_GCJ=yes
28402   allow_undefined_flag_GCJ=$_lt_dar_allow_undefined
28403   case $cc_basename in
28404      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
28405      *) _lt_dar_can_shared=$GCC ;;
28406   esac
28407   if test yes = "$_lt_dar_can_shared"; then
28408     output_verbose_link_cmd=func_echo_all
28409     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"
28410     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
28411     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"
28412     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"
28413
28414   else
28415   ld_shlibs_GCJ=no
28416   fi
28417
28418       ;;
28419
28420     dgux*)
28421       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28422       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28423       hardcode_shlibpath_var_GCJ=no
28424       ;;
28425
28426     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
28427     # support.  Future versions do this automatically, but an explicit c++rt0.o
28428     # does not break anything, and helps significantly (at the cost of a little
28429     # extra space).
28430     freebsd2.2*)
28431       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
28432       hardcode_libdir_flag_spec_GCJ='-R$libdir'
28433       hardcode_direct_GCJ=yes
28434       hardcode_shlibpath_var_GCJ=no
28435       ;;
28436
28437     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
28438     freebsd2.*)
28439       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28440       hardcode_direct_GCJ=yes
28441       hardcode_minus_L_GCJ=yes
28442       hardcode_shlibpath_var_GCJ=no
28443       ;;
28444
28445     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
28446     freebsd* | dragonfly* | midnightbsd*)
28447       archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28448       hardcode_libdir_flag_spec_GCJ='-R$libdir'
28449       hardcode_direct_GCJ=yes
28450       hardcode_shlibpath_var_GCJ=no
28451       ;;
28452
28453     hpux9*)
28454       if test yes = "$GCC"; then
28455         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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
28456       else
28457         archive_cmds_GCJ='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
28458       fi
28459       hardcode_libdir_flag_spec_GCJ='$wl+b $wl$libdir'
28460       hardcode_libdir_separator_GCJ=:
28461       hardcode_direct_GCJ=yes
28462
28463       # hardcode_minus_L: Not really in the search PATH,
28464       # but as the default location of the library.
28465       hardcode_minus_L_GCJ=yes
28466       export_dynamic_flag_spec_GCJ='$wl-E'
28467       ;;
28468
28469     hpux10*)
28470       if test yes,no = "$GCC,$with_gnu_ld"; then
28471         archive_cmds_GCJ='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28472       else
28473         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
28474       fi
28475       if test no = "$with_gnu_ld"; then
28476         hardcode_libdir_flag_spec_GCJ='$wl+b $wl$libdir'
28477         hardcode_libdir_separator_GCJ=:
28478         hardcode_direct_GCJ=yes
28479         hardcode_direct_absolute_GCJ=yes
28480         export_dynamic_flag_spec_GCJ='$wl-E'
28481         # hardcode_minus_L: Not really in the search PATH,
28482         # but as the default location of the library.
28483         hardcode_minus_L_GCJ=yes
28484       fi
28485       ;;
28486
28487     hpux11*)
28488       if test yes,no = "$GCC,$with_gnu_ld"; then
28489         case $host_cpu in
28490         hppa*64*)
28491           archive_cmds_GCJ='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
28492           ;;
28493         ia64*)
28494           archive_cmds_GCJ='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
28495           ;;
28496         *)
28497           archive_cmds_GCJ='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28498           ;;
28499         esac
28500       else
28501         case $host_cpu in
28502         hppa*64*)
28503           archive_cmds_GCJ='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
28504           ;;
28505         ia64*)
28506           archive_cmds_GCJ='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
28507           ;;
28508         *)
28509         archive_cmds_GCJ='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28510           ;;
28511         esac
28512       fi
28513       if test no = "$with_gnu_ld"; then
28514         hardcode_libdir_flag_spec_GCJ='$wl+b $wl$libdir'
28515         hardcode_libdir_separator_GCJ=:
28516
28517         case $host_cpu in
28518         hppa*64*|ia64*)
28519           hardcode_direct_GCJ=no
28520           hardcode_shlibpath_var_GCJ=no
28521           ;;
28522         *)
28523           hardcode_direct_GCJ=yes
28524           hardcode_direct_absolute_GCJ=yes
28525           export_dynamic_flag_spec_GCJ='$wl-E'
28526
28527           # hardcode_minus_L: Not really in the search PATH,
28528           # but as the default location of the library.
28529           hardcode_minus_L_GCJ=yes
28530           ;;
28531         esac
28532       fi
28533       ;;
28534
28535     irix5* | irix6* | nonstopux*)
28536       if test yes = "$GCC"; then
28537         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'
28538         # Try to use the -exported_symbol ld option, if it does not
28539         # work, assume that -exports_file does not work either and
28540         # implicitly export all symbols.
28541         # This should be the same for all languages, so no per-tag cache variable.
28542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
28543 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
28544 if ${lt_cv_irix_exported_symbol+:} false; then :
28545   $as_echo_n "(cached) " >&6
28546 else
28547   save_LDFLAGS=$LDFLAGS
28548            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
28549            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28550 /* end confdefs.h.  */
28551 int foo (void) { return 0; }
28552 _ACEOF
28553 if ac_fn_c_try_link "$LINENO"; then :
28554   lt_cv_irix_exported_symbol=yes
28555 else
28556   lt_cv_irix_exported_symbol=no
28557 fi
28558 rm -f core conftest.err conftest.$ac_objext \
28559     conftest$ac_exeext conftest.$ac_ext
28560            LDFLAGS=$save_LDFLAGS
28561 fi
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
28563 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
28564         if test yes = "$lt_cv_irix_exported_symbol"; then
28565           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'
28566         fi
28567       else
28568         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'
28569         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'
28570       fi
28571       archive_cmds_need_lc_GCJ='no'
28572       hardcode_libdir_flag_spec_GCJ='$wl-rpath $wl$libdir'
28573       hardcode_libdir_separator_GCJ=:
28574       inherit_rpath_GCJ=yes
28575       link_all_deplibs_GCJ=yes
28576       ;;
28577
28578     linux*)
28579       case $cc_basename in
28580       tcc*)
28581         # Fabrice Bellard et al's Tiny C Compiler
28582         ld_shlibs_GCJ=yes
28583         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28584         ;;
28585       esac
28586       ;;
28587
28588     netbsd*)
28589       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28590         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
28591       else
28592         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
28593       fi
28594       hardcode_libdir_flag_spec_GCJ='-R$libdir'
28595       hardcode_direct_GCJ=yes
28596       hardcode_shlibpath_var_GCJ=no
28597       ;;
28598
28599     newsos6)
28600       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28601       hardcode_direct_GCJ=yes
28602       hardcode_libdir_flag_spec_GCJ='$wl-rpath $wl$libdir'
28603       hardcode_libdir_separator_GCJ=:
28604       hardcode_shlibpath_var_GCJ=no
28605       ;;
28606
28607     *nto* | *qnx*)
28608       ;;
28609
28610     openbsd* | bitrig*)
28611       if test -f /usr/libexec/ld.so; then
28612         hardcode_direct_GCJ=yes
28613         hardcode_shlibpath_var_GCJ=no
28614         hardcode_direct_absolute_GCJ=yes
28615         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
28616           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28617           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
28618           hardcode_libdir_flag_spec_GCJ='$wl-rpath,$libdir'
28619           export_dynamic_flag_spec_GCJ='$wl-E'
28620         else
28621           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28622           hardcode_libdir_flag_spec_GCJ='$wl-rpath,$libdir'
28623         fi
28624       else
28625         ld_shlibs_GCJ=no
28626       fi
28627       ;;
28628
28629     os2*)
28630       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28631       hardcode_minus_L_GCJ=yes
28632       allow_undefined_flag_GCJ=unsupported
28633       shrext_cmds=.dll
28634       archive_cmds_GCJ='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28635         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28636         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28637         $ECHO EXPORTS >> $output_objdir/$libname.def~
28638         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
28639         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28640         emximp -o $lib $output_objdir/$libname.def'
28641       archive_expsym_cmds_GCJ='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
28642         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
28643         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
28644         $ECHO EXPORTS >> $output_objdir/$libname.def~
28645         prefix_cmds="$SED"~
28646         if test EXPORTS = "`$SED 1q $export_symbols`"; then
28647           prefix_cmds="$prefix_cmds -e 1d";
28648         fi~
28649         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
28650         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
28651         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
28652         emximp -o $lib $output_objdir/$libname.def'
28653       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
28654       enable_shared_with_static_runtimes_GCJ=yes
28655       file_list_spec_GCJ='@'
28656       ;;
28657
28658     osf3*)
28659       if test yes = "$GCC"; then
28660         allow_undefined_flag_GCJ=' $wl-expect_unresolved $wl\*'
28661         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'
28662       else
28663         allow_undefined_flag_GCJ=' -expect_unresolved \*'
28664         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'
28665       fi
28666       archive_cmds_need_lc_GCJ='no'
28667       hardcode_libdir_flag_spec_GCJ='$wl-rpath $wl$libdir'
28668       hardcode_libdir_separator_GCJ=:
28669       ;;
28670
28671     osf4* | osf5*)      # as osf3* with the addition of -msym flag
28672       if test yes = "$GCC"; then
28673         allow_undefined_flag_GCJ=' $wl-expect_unresolved $wl\*'
28674         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'
28675         hardcode_libdir_flag_spec_GCJ='$wl-rpath $wl$libdir'
28676       else
28677         allow_undefined_flag_GCJ=' -expect_unresolved \*'
28678         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'
28679         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~
28680           $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'
28681
28682         # Both c and cxx compiler support -rpath directly
28683         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
28684       fi
28685       archive_cmds_need_lc_GCJ='no'
28686       hardcode_libdir_separator_GCJ=:
28687       ;;
28688
28689     solaris*)
28690       no_undefined_flag_GCJ=' -z defs'
28691       if test yes = "$GCC"; then
28692         wlarc='$wl'
28693         archive_cmds_GCJ='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
28694         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28695           $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'
28696       else
28697         case `$CC -V 2>&1` in
28698         *"Compilers 5.0"*)
28699           wlarc=''
28700           archive_cmds_GCJ='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
28701           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28702             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
28703           ;;
28704         *)
28705           wlarc='$wl'
28706           archive_cmds_GCJ='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
28707           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28708             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
28709           ;;
28710         esac
28711       fi
28712       hardcode_libdir_flag_spec_GCJ='-R$libdir'
28713       hardcode_shlibpath_var_GCJ=no
28714       case $host_os in
28715       solaris2.[0-5] | solaris2.[0-5].*) ;;
28716       *)
28717         # The compiler driver will combine and reorder linker options,
28718         # but understands '-z linker_flag'.  GCC discards it without '$wl',
28719         # but is careful enough not to reorder.
28720         # Supported since Solaris 2.6 (maybe 2.5.1?)
28721         if test yes = "$GCC"; then
28722           whole_archive_flag_spec_GCJ='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
28723         else
28724           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
28725         fi
28726         ;;
28727       esac
28728       link_all_deplibs_GCJ=yes
28729       ;;
28730
28731     sunos4*)
28732       if test sequent = "$host_vendor"; then
28733         # Use $CC to link under sequent, because it throws in some extra .o
28734         # files that make .init and .fini sections work.
28735         archive_cmds_GCJ='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
28736       else
28737         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
28738       fi
28739       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28740       hardcode_direct_GCJ=yes
28741       hardcode_minus_L_GCJ=yes
28742       hardcode_shlibpath_var_GCJ=no
28743       ;;
28744
28745     sysv4)
28746       case $host_vendor in
28747         sni)
28748           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28749           hardcode_direct_GCJ=yes # is this really true???
28750         ;;
28751         siemens)
28752           ## LD is ld it makes a PLAMLIB
28753           ## CC just makes a GrossModule.
28754           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28755           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
28756           hardcode_direct_GCJ=no
28757         ;;
28758         motorola)
28759           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28760           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
28761         ;;
28762       esac
28763       runpath_var='LD_RUN_PATH'
28764       hardcode_shlibpath_var_GCJ=no
28765       ;;
28766
28767     sysv4.3*)
28768       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28769       hardcode_shlibpath_var_GCJ=no
28770       export_dynamic_flag_spec_GCJ='-Bexport'
28771       ;;
28772
28773     sysv4*MP*)
28774       if test -d /usr/nec; then
28775         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28776         hardcode_shlibpath_var_GCJ=no
28777         runpath_var=LD_RUN_PATH
28778         hardcode_runpath_var=yes
28779         ld_shlibs_GCJ=yes
28780       fi
28781       ;;
28782
28783     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
28784       no_undefined_flag_GCJ='$wl-z,text'
28785       archive_cmds_need_lc_GCJ=no
28786       hardcode_shlibpath_var_GCJ=no
28787       runpath_var='LD_RUN_PATH'
28788
28789       if test yes = "$GCC"; then
28790         archive_cmds_GCJ='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28791         archive_expsym_cmds_GCJ='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28792       else
28793         archive_cmds_GCJ='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28794         archive_expsym_cmds_GCJ='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28795       fi
28796       ;;
28797
28798     sysv5* | sco3.2v5* | sco5v6*)
28799       # Note: We CANNOT use -z defs as we might desire, because we do not
28800       # link with -lc, and that would cause any symbols used from libc to
28801       # always be unresolved, which means just about no library would
28802       # ever link correctly.  If we're not using GNU ld we use -z text
28803       # though, which does catch some bad symbols but isn't as heavy-handed
28804       # as -z defs.
28805       no_undefined_flag_GCJ='$wl-z,text'
28806       allow_undefined_flag_GCJ='$wl-z,nodefs'
28807       archive_cmds_need_lc_GCJ=no
28808       hardcode_shlibpath_var_GCJ=no
28809       hardcode_libdir_flag_spec_GCJ='$wl-R,$libdir'
28810       hardcode_libdir_separator_GCJ=':'
28811       link_all_deplibs_GCJ=yes
28812       export_dynamic_flag_spec_GCJ='$wl-Bexport'
28813       runpath_var='LD_RUN_PATH'
28814
28815       if test yes = "$GCC"; then
28816         archive_cmds_GCJ='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28817         archive_expsym_cmds_GCJ='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28818       else
28819         archive_cmds_GCJ='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28820         archive_expsym_cmds_GCJ='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28821       fi
28822       ;;
28823
28824     uts4*)
28825       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28826       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28827       hardcode_shlibpath_var_GCJ=no
28828       ;;
28829
28830     *)
28831       ld_shlibs_GCJ=no
28832       ;;
28833     esac
28834
28835     if test sni = "$host_vendor"; then
28836       case $host in
28837       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28838         export_dynamic_flag_spec_GCJ='$wl-Blargedynsym'
28839         ;;
28840       esac
28841     fi
28842   fi
28843
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
28845 $as_echo "$ld_shlibs_GCJ" >&6; }
28846 test no = "$ld_shlibs_GCJ" && can_build_shared=no
28847
28848 with_gnu_ld_GCJ=$with_gnu_ld
28849
28850
28851
28852
28853
28854
28855 #
28856 # Do we need to explicitly link libc?
28857 #
28858 case "x$archive_cmds_need_lc_GCJ" in
28859 x|xyes)
28860   # Assume -lc should be added
28861   archive_cmds_need_lc_GCJ=yes
28862
28863   if test yes,yes = "$GCC,$enable_shared"; then
28864     case $archive_cmds_GCJ in
28865     *'~'*)
28866       # FIXME: we may have to deal with multi-command sequences.
28867       ;;
28868     '$CC '*)
28869       # Test whether the compiler implicitly links with -lc since on some
28870       # systems, -lgcc has to come before -lc. If gcc already passes -lc
28871       # to ld, don't add -lc before -lgcc.
28872       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
28873 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
28874 if ${lt_cv_archive_cmds_need_lc_GCJ+:} false; then :
28875   $as_echo_n "(cached) " >&6
28876 else
28877   $RM conftest*
28878         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
28879
28880         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
28881   (eval $ac_compile) 2>&5
28882   ac_status=$?
28883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28884   test $ac_status = 0; } 2>conftest.err; then
28885           soname=conftest
28886           lib=conftest
28887           libobjs=conftest.$ac_objext
28888           deplibs=
28889           wl=$lt_prog_compiler_wl_GCJ
28890           pic_flag=$lt_prog_compiler_pic_GCJ
28891           compiler_flags=-v
28892           linker_flags=-v
28893           verstring=
28894           output_objdir=.
28895           libname=conftest
28896           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
28897           allow_undefined_flag_GCJ=
28898           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
28899   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
28900   ac_status=$?
28901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28902   test $ac_status = 0; }
28903           then
28904             lt_cv_archive_cmds_need_lc_GCJ=no
28905           else
28906             lt_cv_archive_cmds_need_lc_GCJ=yes
28907           fi
28908           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
28909         else
28910           cat conftest.err 1>&5
28911         fi
28912         $RM conftest*
28913
28914 fi
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
28916 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
28917       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
28918       ;;
28919     esac
28920   fi
28921   ;;
28922 esac
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
28986 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
28987 hardcode_action_GCJ=
28988 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
28989    test -n "$runpath_var_GCJ" ||
28990    test yes = "$hardcode_automatic_GCJ"; then
28991
28992   # We can hardcode non-existent directories.
28993   if test no != "$hardcode_direct_GCJ" &&
28994      # If the only mechanism to avoid hardcoding is shlibpath_var, we
28995      # have to relink, otherwise we might link with an installed library
28996      # when we should be linking with a yet-to-be-installed one
28997      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" &&
28998      test no != "$hardcode_minus_L_GCJ"; then
28999     # Linking always hardcodes the temporary library directory.
29000     hardcode_action_GCJ=relink
29001   else
29002     # We can link without hardcoding, and we can hardcode nonexisting dirs.
29003     hardcode_action_GCJ=immediate
29004   fi
29005 else
29006   # We cannot hardcode anything, or else we can only hardcode existing
29007   # directories.
29008   hardcode_action_GCJ=unsupported
29009 fi
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
29011 $as_echo "$hardcode_action_GCJ" >&6; }
29012
29013 if test relink = "$hardcode_action_GCJ" ||
29014    test yes = "$inherit_rpath_GCJ"; then
29015   # Fast installation is not supported
29016   enable_fast_install=no
29017 elif test yes = "$shlibpath_overrides_runpath" ||
29018      test no = "$enable_shared"; then
29019   # Fast installation is not necessary
29020   enable_fast_install=needless
29021 fi
29022
29023
29024
29025
29026
29027
29028
29029 fi
29030
29031 ac_ext=c
29032 ac_cpp='$CPP $CPPFLAGS'
29033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29036
29037
29038 GCC=$lt_save_GCC
29039 CC=$lt_save_CC
29040 CFLAGS=$lt_save_CFLAGS
29041
29042 if test -n "$ac_tool_prefix"; then
29043   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
29044 set dummy ${ac_tool_prefix}windres; ac_word=$2
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29046 $as_echo_n "checking for $ac_word... " >&6; }
29047 if ${ac_cv_prog_RC+:} false; then :
29048   $as_echo_n "(cached) " >&6
29049 else
29050   if test -n "$RC"; then
29051   ac_cv_prog_RC="$RC" # Let the user override the test.
29052 else
29053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29054 for as_dir in $PATH
29055 do
29056   IFS=$as_save_IFS
29057   test -z "$as_dir" && as_dir=.
29058     for ac_exec_ext in '' $ac_executable_extensions; do
29059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29060     ac_cv_prog_RC="${ac_tool_prefix}windres"
29061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29062     break 2
29063   fi
29064 done
29065   done
29066 IFS=$as_save_IFS
29067
29068 fi
29069 fi
29070 RC=$ac_cv_prog_RC
29071 if test -n "$RC"; then
29072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
29073 $as_echo "$RC" >&6; }
29074 else
29075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29076 $as_echo "no" >&6; }
29077 fi
29078
29079
29080 fi
29081 if test -z "$ac_cv_prog_RC"; then
29082   ac_ct_RC=$RC
29083   # Extract the first word of "windres", so it can be a program name with args.
29084 set dummy windres; ac_word=$2
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29086 $as_echo_n "checking for $ac_word... " >&6; }
29087 if ${ac_cv_prog_ac_ct_RC+:} false; then :
29088   $as_echo_n "(cached) " >&6
29089 else
29090   if test -n "$ac_ct_RC"; then
29091   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
29092 else
29093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29094 for as_dir in $PATH
29095 do
29096   IFS=$as_save_IFS
29097   test -z "$as_dir" && as_dir=.
29098     for ac_exec_ext in '' $ac_executable_extensions; do
29099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29100     ac_cv_prog_ac_ct_RC="windres"
29101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29102     break 2
29103   fi
29104 done
29105   done
29106 IFS=$as_save_IFS
29107
29108 fi
29109 fi
29110 ac_ct_RC=$ac_cv_prog_ac_ct_RC
29111 if test -n "$ac_ct_RC"; then
29112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
29113 $as_echo "$ac_ct_RC" >&6; }
29114 else
29115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29116 $as_echo "no" >&6; }
29117 fi
29118
29119   if test "x$ac_ct_RC" = x; then
29120     RC=""
29121   else
29122     case $cross_compiling:$ac_tool_warned in
29123 yes:)
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29126 ac_tool_warned=yes ;;
29127 esac
29128     RC=$ac_ct_RC
29129   fi
29130 else
29131   RC="$ac_cv_prog_RC"
29132 fi
29133
29134
29135
29136
29137 # Source file extension for RC test sources.
29138 ac_ext=rc
29139
29140 # Object file extension for compiled RC test sources.
29141 objext=o
29142 objext_RC=$objext
29143
29144 # Code to be used in simple compile tests
29145 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
29146
29147 # Code to be used in simple link tests
29148 lt_simple_link_test_code=$lt_simple_compile_test_code
29149
29150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
29151
29152
29153
29154
29155
29156
29157 # If no C compiler was specified, use CC.
29158 LTCC=${LTCC-"$CC"}
29159
29160 # If no C compiler flags were specified, use CFLAGS.
29161 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
29162
29163 # Allow CC to be a program name with arguments.
29164 compiler=$CC
29165
29166
29167 # save warnings/boilerplate of simple test code
29168 ac_outfile=conftest.$ac_objext
29169 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
29170 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
29171 _lt_compiler_boilerplate=`cat conftest.err`
29172 $RM conftest*
29173
29174 ac_outfile=conftest.$ac_objext
29175 echo "$lt_simple_link_test_code" >conftest.$ac_ext
29176 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
29177 _lt_linker_boilerplate=`cat conftest.err`
29178 $RM -r conftest*
29179
29180
29181 # Allow CC to be a program name with arguments.
29182 lt_save_CC=$CC
29183 lt_save_CFLAGS=$CFLAGS
29184 lt_save_GCC=$GCC
29185 GCC=
29186 CC=${RC-"windres"}
29187 CFLAGS=
29188 compiler=$CC
29189 compiler_RC=$CC
29190 func_cc_basename $compiler
29191 cc_basename=$func_cc_basename_result
29192
29193 lt_cv_prog_compiler_c_o_RC=yes
29194
29195 if test -n "$compiler"; then
29196   :
29197
29198
29199
29200 fi
29201
29202 GCC=$lt_save_GCC
29203 ac_ext=c
29204 ac_cpp='$CPP $CPPFLAGS'
29205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29208
29209 CC=$lt_save_CC
29210 CFLAGS=$lt_save_CFLAGS
29211
29212
29213 # Ensure the correct file name (and path) conversion function
29214 # is available to the test suite.
29215
29216 # Propagate --with-aix-soname option to the testsuite.
29217
29218 ## ---------------------- ##
29219 ## Gnulib initialisation. ##
29220 ## ---------------------- ##
29221
29222
29223
29224
29225
29226
29227
29228
29229                         # Check whether --enable-cross-guesses was given.
29230 if test "${enable_cross_guesses+set}" = set; then :
29231   enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
29232        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
29233 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
29234        enableval=conservative
29235      fi
29236      gl_cross_guesses="$enableval"
29237 else
29238   gl_cross_guesses=conservative
29239 fi
29240
29241   if test $gl_cross_guesses = risky; then
29242     gl_cross_guess_normal="guessing yes"
29243     gl_cross_guess_inverted="guessing no"
29244   else
29245     gl_cross_guess_normal="guessing no"
29246     gl_cross_guess_inverted="guessing yes"
29247   fi
29248           LIBC_FATAL_STDERR_=1
29249   export LIBC_FATAL_STDERR_
29250
29251
29252
29253
29254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
29255 $as_echo_n "checking for C compiler option to allow warnings... " >&6; }
29256 if ${gl_cv_cc_wallow+:} false; then :
29257   $as_echo_n "(cached) " >&6
29258 else
29259   rm -f conftest*
29260      echo 'int dummy;' > conftest.c
29261      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
29262   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29263   (eval $ac_try) 2>&5
29264   ac_status=$?
29265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29266   test $ac_status = 0; }; } >/dev/null
29267      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
29268   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29269   (eval $ac_try) 2>&5
29270   ac_status=$?
29271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29272   test $ac_status = 0; }; } >/dev/null
29273                          if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
29274        gl_cv_cc_wallow='-Wno-error'
29275      else
29276        gl_cv_cc_wallow=none
29277      fi
29278      rm -f conftest*
29279
29280 fi
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
29282 $as_echo "$gl_cv_cc_wallow" >&6; }
29283   case "$gl_cv_cc_wallow" in
29284     none) GL_CFLAG_ALLOW_WARNINGS='' ;;
29285     *)    GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
29286   esac
29287
29288
29289
29290     if test -n "$CXX" && test "$CXX" != no; then
29291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler option to allow warnings" >&5
29292 $as_echo_n "checking for C++ compiler option to allow warnings... " >&6; }
29293 if ${gl_cv_cxx_wallow+:} false; then :
29294   $as_echo_n "(cached) " >&6
29295 else
29296   rm -f conftest*
29297        echo 'int dummy;' > conftest.cc
29298        { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err'
29299   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29300   (eval $ac_try) 2>&5
29301   ac_status=$?
29302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29303   test $ac_status = 0; }; } >/dev/null
29304        { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err'
29305   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29306   (eval $ac_try) 2>&5
29307   ac_status=$?
29308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29309   test $ac_status = 0; }; } >/dev/null
29310                                    if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
29311          gl_cv_cxx_wallow='-Wno-error'
29312        else
29313          gl_cv_cxx_wallow=none
29314        fi
29315        rm -f conftest*
29316
29317 fi
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cxx_wallow" >&5
29319 $as_echo "$gl_cv_cxx_wallow" >&6; }
29320     case "$gl_cv_cxx_wallow" in
29321       none) GL_CXXFLAG_ALLOW_WARNINGS='' ;;
29322       *)    GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;;
29323     esac
29324   else
29325     GL_CXXFLAG_ALLOW_WARNINGS=''
29326   fi
29327
29328
29329
29330
29331       GL_CFLAG_GNULIB_WARNINGS=''
29332   if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
29333                                                                         cat > conftest.c <<\EOF
29334       #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
29335       -Wno-cast-qual
29336       -Wno-conversion
29337       -Wno-float-equal
29338       -Wno-sign-compare
29339       -Wno-undef
29340       -Wno-unused-function
29341       -Wno-unused-parameter
29342       #endif
29343       #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
29344       -Wno-float-conversion
29345       #endif
29346       #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
29347       -Wimplicit-fallthrough
29348       #endif
29349       #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
29350       -Wno-pedantic
29351       #endif
29352       #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
29353       -Wno-sign-conversion
29354       -Wno-type-limits
29355       #endif
29356       #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
29357       -Wno-unsuffixed-float-constants
29358       #endif
29359 EOF
29360     gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
29361     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
29362   (eval $gl_command) 2>&5
29363   ac_status=$?
29364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29365   test $ac_status = 0; }; then
29366       gl_options=`grep -v '#' conftest.out`
29367       for word in $gl_options; do
29368         GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
29369       done
29370     fi
29371     rm -f conftest.c conftest.out
29372   fi
29373
29374
29375
29376    if true; then
29377   GL_COND_LIBTOOL_TRUE=
29378   GL_COND_LIBTOOL_FALSE='#'
29379 else
29380   GL_COND_LIBTOOL_TRUE='#'
29381   GL_COND_LIBTOOL_FALSE=
29382 fi
29383
29384   gl_cond_libtool=true
29385   gl_m4_base='m4'
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398   gl_source_base='lib'
29399   gl_source_base_prefix=
29400   # Autoconf 2.61a.99 and earlier don't support linking a file only
29401   # in VPATH builds.  But since GNUmakefile is for maintainer use
29402   # only, it does not matter if we skip the link with older autoconf.
29403   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
29404   # builds, so use a shell variable to bypass this.
29405   GNUmakefile=GNUmakefile
29406   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
29407
29408
29409
29410
29411   # End of code from modules
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421   gltests_libdeps=
29422   gltests_ltlibdeps=
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437   gl_source_base='gnulib-tests'
29438   gl_source_base_prefix=
29439   GLtests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
29440
29441   gl_module_indicator_condition=$GLtests_WITNESS
29442
29443   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
29444
29445   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460 ## ------------- ##
29461 ## Documentation ##
29462 ## ------------- ##
29463
29464 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
29465
29466
29467 ## -------- ##
29468 ## Outputs. ##
29469 ## -------- ##
29470 ac_config_files="$ac_config_files Makefile gnulib-tests/Makefile"
29471
29472 cat >confcache <<\_ACEOF
29473 # This file is a shell script that caches the results of configure
29474 # tests run on this system so they can be shared between configure
29475 # scripts and configure runs, see configure's option --config-cache.
29476 # It is not useful on other systems.  If it contains results you don't
29477 # want to keep, you may remove or edit it.
29478 #
29479 # config.status only pays attention to the cache file if you give it
29480 # the --recheck option to rerun configure.
29481 #
29482 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29483 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29484 # following values.
29485
29486 _ACEOF
29487
29488 # The following way of writing the cache mishandles newlines in values,
29489 # but we know of no workaround that is simple, portable, and efficient.
29490 # So, we kill variables containing newlines.
29491 # Ultrix sh set writes to stderr and can't be redirected directly,
29492 # and sets the high bit in the cache file unless we assign to the vars.
29493 (
29494   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29495     eval ac_val=\$$ac_var
29496     case $ac_val in #(
29497     *${as_nl}*)
29498       case $ac_var in #(
29499       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29500 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29501       esac
29502       case $ac_var in #(
29503       _ | IFS | as_nl) ;; #(
29504       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29505       *) { eval $ac_var=; unset $ac_var;} ;;
29506       esac ;;
29507     esac
29508   done
29509
29510   (set) 2>&1 |
29511     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29512     *${as_nl}ac_space=\ *)
29513       # `set' does not quote correctly, so add quotes: double-quote
29514       # substitution turns \\\\ into \\, and sed turns \\ into \.
29515       sed -n \
29516         "s/'/'\\\\''/g;
29517           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29518       ;; #(
29519     *)
29520       # `set' quotes correctly as required by POSIX, so do not add quotes.
29521       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29522       ;;
29523     esac |
29524     sort
29525 ) |
29526   sed '
29527      /^ac_cv_env_/b end
29528      t clear
29529      :clear
29530      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29531      t end
29532      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29533      :end' >>confcache
29534 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29535   if test -w "$cache_file"; then
29536     if test "x$cache_file" != "x/dev/null"; then
29537       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29538 $as_echo "$as_me: updating cache $cache_file" >&6;}
29539       if test ! -f "$cache_file" || test -h "$cache_file"; then
29540         cat confcache >"$cache_file"
29541       else
29542         case $cache_file in #(
29543         */* | ?:*)
29544           mv -f confcache "$cache_file"$$ &&
29545           mv -f "$cache_file"$$ "$cache_file" ;; #(
29546         *)
29547           mv -f confcache "$cache_file" ;;
29548         esac
29549       fi
29550     fi
29551   else
29552     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29553 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29554   fi
29555 fi
29556 rm -f confcache
29557
29558 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29559 # Let make expand exec_prefix.
29560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29561
29562 DEFS=-DHAVE_CONFIG_H
29563
29564 ac_libobjs=
29565 ac_ltlibobjs=
29566 U=
29567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29568   # 1. Remove the extension, and $U if already installed.
29569   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29570   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29571   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29572   #    will be set to the directory where LIBOBJS objects are built.
29573   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29574   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29575 done
29576 LIBOBJS=$ac_libobjs
29577
29578 LTLIBOBJS=$ac_ltlibobjs
29579
29580
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
29582 $as_echo_n "checking that generated files are newer than configure... " >&6; }
29583    if test -n "$am_sleep_pid"; then
29584      # Hide warnings about reused PIDs.
29585      wait $am_sleep_pid 2>/dev/null
29586    fi
29587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
29588 $as_echo "done" >&6; }
29589  if test -n "$EXEEXT"; then
29590   am__EXEEXT_TRUE=
29591   am__EXEEXT_FALSE='#'
29592 else
29593   am__EXEEXT_TRUE='#'
29594   am__EXEEXT_FALSE=
29595 fi
29596
29597 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29598   as_fn_error $? "conditional \"AMDEP\" was never defined.
29599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29600 fi
29601 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29602   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29604 fi
29605 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29606   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
29607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29608 fi
29609 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29610   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
29611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29612 fi
29613 LT_CONFIG_H=config.h
29614 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29615   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
29616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29617 fi
29618 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29619   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
29620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29621 fi
29622 CONFIG_INCLUDE=config.h
29623
29624
29625     GL_libobjs=
29626     GL_ltlibobjs=
29627     GL_libobjdeps=
29628     if test -n "$GL_LIBOBJS"; then
29629       # Remove the extension.
29630       sed_drop_objext='s/\.o$//;s/\.obj$//'
29631       sed_dirname1='s,//*,/,g'
29632       sed_dirname2='s,\(.\)/$,\1,'
29633       sed_dirname3='s,^[^/]*$,.,'
29634       sed_dirname4='s,\(.\)/[^/]*$,\1,'
29635       sed_basename1='s,.*/,,'
29636       for i in `for i in $GL_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29637         GL_libobjs="$GL_libobjs $i.$ac_objext"
29638         GL_ltlibobjs="$GL_ltlibobjs $i.lo"
29639         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
29640         i_base=`echo "$i" | sed -e "$sed_basename1"`
29641         GL_libobjdeps="$GL_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
29642       done
29643     fi
29644     GL_LIBOBJS=$GL_libobjs
29645
29646     GL_LTLIBOBJS=$GL_ltlibobjs
29647
29648     GL_LIBOBJDEPS=$GL_libobjdeps
29649
29650
29651
29652     GLtests_libobjs=
29653     GLtests_ltlibobjs=
29654     GLtests_libobjdeps=
29655     if test -n "$GLtests_LIBOBJS"; then
29656       # Remove the extension.
29657       sed_drop_objext='s/\.o$//;s/\.obj$//'
29658       sed_dirname1='s,//*,/,g'
29659       sed_dirname2='s,\(.\)/$,\1,'
29660       sed_dirname3='s,^[^/]*$,.,'
29661       sed_dirname4='s,\(.\)/[^/]*$,\1,'
29662       sed_basename1='s,.*/,,'
29663       for i in `for i in $GLtests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29664         GLtests_libobjs="$GLtests_libobjs $i.$ac_objext"
29665         GLtests_ltlibobjs="$GLtests_ltlibobjs $i.lo"
29666         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
29667         i_base=`echo "$i" | sed -e "$sed_basename1"`
29668         GLtests_libobjdeps="$GLtests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
29669       done
29670     fi
29671     GLtests_LIBOBJS=$GLtests_libobjs
29672
29673     GLtests_LTLIBOBJS=$GLtests_ltlibobjs
29674
29675     GLtests_LIBOBJDEPS=$GLtests_libobjdeps
29676
29677
29678
29679 : "${CONFIG_STATUS=./config.status}"
29680 ac_write_fail=0
29681 ac_clean_files_save=$ac_clean_files
29682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29684 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29685 as_write_fail=0
29686 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29687 #! $SHELL
29688 # Generated by $as_me.
29689 # Run this file to recreate the current configuration.
29690 # Compiler output produced by configure, useful for debugging
29691 # configure, is in config.log if it exists.
29692
29693 debug=false
29694 ac_cs_recheck=false
29695 ac_cs_silent=false
29696
29697 SHELL=\${CONFIG_SHELL-$SHELL}
29698 export SHELL
29699 _ASEOF
29700 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29701 ## -------------------- ##
29702 ## M4sh Initialization. ##
29703 ## -------------------- ##
29704
29705 # Be more Bourne compatible
29706 DUALCASE=1; export DUALCASE # for MKS sh
29707 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29708   emulate sh
29709   NULLCMD=:
29710   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29711   # is contrary to our usage.  Disable this feature.
29712   alias -g '${1+"$@"}'='"$@"'
29713   setopt NO_GLOB_SUBST
29714 else
29715   case `(set -o) 2>/dev/null` in #(
29716   *posix*) :
29717     set -o posix ;; #(
29718   *) :
29719      ;;
29720 esac
29721 fi
29722
29723
29724 as_nl='
29725 '
29726 export as_nl
29727 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29728 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29731 # Prefer a ksh shell builtin over an external printf program on Solaris,
29732 # but without wasting forks for bash or zsh.
29733 if test -z "$BASH_VERSION$ZSH_VERSION" \
29734     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29735   as_echo='print -r --'
29736   as_echo_n='print -rn --'
29737 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29738   as_echo='printf %s\n'
29739   as_echo_n='printf %s'
29740 else
29741   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29742     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29743     as_echo_n='/usr/ucb/echo -n'
29744   else
29745     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29746     as_echo_n_body='eval
29747       arg=$1;
29748       case $arg in #(
29749       *"$as_nl"*)
29750         expr "X$arg" : "X\\(.*\\)$as_nl";
29751         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29752       esac;
29753       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29754     '
29755     export as_echo_n_body
29756     as_echo_n='sh -c $as_echo_n_body as_echo'
29757   fi
29758   export as_echo_body
29759   as_echo='sh -c $as_echo_body as_echo'
29760 fi
29761
29762 # The user is always right.
29763 if test "${PATH_SEPARATOR+set}" != set; then
29764   PATH_SEPARATOR=:
29765   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29766     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29767       PATH_SEPARATOR=';'
29768   }
29769 fi
29770
29771
29772 # IFS
29773 # We need space, tab and new line, in precisely that order.  Quoting is
29774 # there to prevent editors from complaining about space-tab.
29775 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29776 # splitting by setting IFS to empty value.)
29777 IFS=" ""        $as_nl"
29778
29779 # Find who we are.  Look in the path if we contain no directory separator.
29780 as_myself=
29781 case $0 in #((
29782   *[\\/]* ) as_myself=$0 ;;
29783   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29784 for as_dir in $PATH
29785 do
29786   IFS=$as_save_IFS
29787   test -z "$as_dir" && as_dir=.
29788     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29789   done
29790 IFS=$as_save_IFS
29791
29792      ;;
29793 esac
29794 # We did not find ourselves, most probably we were run as `sh COMMAND'
29795 # in which case we are not to be found in the path.
29796 if test "x$as_myself" = x; then
29797   as_myself=$0
29798 fi
29799 if test ! -f "$as_myself"; then
29800   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29801   exit 1
29802 fi
29803
29804 # Unset variables that we do not need and which cause bugs (e.g. in
29805 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29806 # suppresses any "Segmentation fault" message there.  '((' could
29807 # trigger a bug in pdksh 5.2.14.
29808 for as_var in BASH_ENV ENV MAIL MAILPATH
29809 do eval test x\${$as_var+set} = xset \
29810   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29811 done
29812 PS1='$ '
29813 PS2='> '
29814 PS4='+ '
29815
29816 # NLS nuisances.
29817 LC_ALL=C
29818 export LC_ALL
29819 LANGUAGE=C
29820 export LANGUAGE
29821
29822 # CDPATH.
29823 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29824
29825
29826 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29827 # ----------------------------------------
29828 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29829 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29830 # script with STATUS, using 1 if that was 0.
29831 as_fn_error ()
29832 {
29833   as_status=$1; test $as_status -eq 0 && as_status=1
29834   if test "$4"; then
29835     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29836     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29837   fi
29838   $as_echo "$as_me: error: $2" >&2
29839   as_fn_exit $as_status
29840 } # as_fn_error
29841
29842
29843 # as_fn_set_status STATUS
29844 # -----------------------
29845 # Set $? to STATUS, without forking.
29846 as_fn_set_status ()
29847 {
29848   return $1
29849 } # as_fn_set_status
29850
29851 # as_fn_exit STATUS
29852 # -----------------
29853 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29854 as_fn_exit ()
29855 {
29856   set +e
29857   as_fn_set_status $1
29858   exit $1
29859 } # as_fn_exit
29860
29861 # as_fn_unset VAR
29862 # ---------------
29863 # Portably unset VAR.
29864 as_fn_unset ()
29865 {
29866   { eval $1=; unset $1;}
29867 }
29868 as_unset=as_fn_unset
29869 # as_fn_append VAR VALUE
29870 # ----------------------
29871 # Append the text in VALUE to the end of the definition contained in VAR. Take
29872 # advantage of any shell optimizations that allow amortized linear growth over
29873 # repeated appends, instead of the typical quadratic growth present in naive
29874 # implementations.
29875 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29876   eval 'as_fn_append ()
29877   {
29878     eval $1+=\$2
29879   }'
29880 else
29881   as_fn_append ()
29882   {
29883     eval $1=\$$1\$2
29884   }
29885 fi # as_fn_append
29886
29887 # as_fn_arith ARG...
29888 # ------------------
29889 # Perform arithmetic evaluation on the ARGs, and store the result in the
29890 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29891 # must be portable across $(()) and expr.
29892 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29893   eval 'as_fn_arith ()
29894   {
29895     as_val=$(( $* ))
29896   }'
29897 else
29898   as_fn_arith ()
29899   {
29900     as_val=`expr "$@" || test $? -eq 1`
29901   }
29902 fi # as_fn_arith
29903
29904
29905 if expr a : '\(a\)' >/dev/null 2>&1 &&
29906    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29907   as_expr=expr
29908 else
29909   as_expr=false
29910 fi
29911
29912 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29913   as_basename=basename
29914 else
29915   as_basename=false
29916 fi
29917
29918 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29919   as_dirname=dirname
29920 else
29921   as_dirname=false
29922 fi
29923
29924 as_me=`$as_basename -- "$0" ||
29925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29926          X"$0" : 'X\(//\)$' \| \
29927          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29928 $as_echo X/"$0" |
29929     sed '/^.*\/\([^/][^/]*\)\/*$/{
29930             s//\1/
29931             q
29932           }
29933           /^X\/\(\/\/\)$/{
29934             s//\1/
29935             q
29936           }
29937           /^X\/\(\/\).*/{
29938             s//\1/
29939             q
29940           }
29941           s/.*/./; q'`
29942
29943 # Avoid depending upon Character Ranges.
29944 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29945 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29946 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29947 as_cr_digits='0123456789'
29948 as_cr_alnum=$as_cr_Letters$as_cr_digits
29949
29950 ECHO_C= ECHO_N= ECHO_T=
29951 case `echo -n x` in #(((((
29952 -n*)
29953   case `echo 'xy\c'` in
29954   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29955   xy)  ECHO_C='\c';;
29956   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29957        ECHO_T=' ';;
29958   esac;;
29959 *)
29960   ECHO_N='-n';;
29961 esac
29962
29963 rm -f conf$$ conf$$.exe conf$$.file
29964 if test -d conf$$.dir; then
29965   rm -f conf$$.dir/conf$$.file
29966 else
29967   rm -f conf$$.dir
29968   mkdir conf$$.dir 2>/dev/null
29969 fi
29970 if (echo >conf$$.file) 2>/dev/null; then
29971   if ln -s conf$$.file conf$$ 2>/dev/null; then
29972     as_ln_s='ln -s'
29973     # ... but there are two gotchas:
29974     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29975     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29976     # In both cases, we have to default to `cp -pR'.
29977     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29978       as_ln_s='cp -pR'
29979   elif ln conf$$.file conf$$ 2>/dev/null; then
29980     as_ln_s=ln
29981   else
29982     as_ln_s='cp -pR'
29983   fi
29984 else
29985   as_ln_s='cp -pR'
29986 fi
29987 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29988 rmdir conf$$.dir 2>/dev/null
29989
29990
29991 # as_fn_mkdir_p
29992 # -------------
29993 # Create "$as_dir" as a directory, including parents if necessary.
29994 as_fn_mkdir_p ()
29995 {
29996
29997   case $as_dir in #(
29998   -*) as_dir=./$as_dir;;
29999   esac
30000   test -d "$as_dir" || eval $as_mkdir_p || {
30001     as_dirs=
30002     while :; do
30003       case $as_dir in #(
30004       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30005       *) as_qdir=$as_dir;;
30006       esac
30007       as_dirs="'$as_qdir' $as_dirs"
30008       as_dir=`$as_dirname -- "$as_dir" ||
30009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30010          X"$as_dir" : 'X\(//\)[^/]' \| \
30011          X"$as_dir" : 'X\(//\)$' \| \
30012          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30013 $as_echo X"$as_dir" |
30014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30015             s//\1/
30016             q
30017           }
30018           /^X\(\/\/\)[^/].*/{
30019             s//\1/
30020             q
30021           }
30022           /^X\(\/\/\)$/{
30023             s//\1/
30024             q
30025           }
30026           /^X\(\/\).*/{
30027             s//\1/
30028             q
30029           }
30030           s/.*/./; q'`
30031       test -d "$as_dir" && break
30032     done
30033     test -z "$as_dirs" || eval "mkdir $as_dirs"
30034   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30035
30036
30037 } # as_fn_mkdir_p
30038 if mkdir -p . 2>/dev/null; then
30039   as_mkdir_p='mkdir -p "$as_dir"'
30040 else
30041   test -d ./-p && rmdir ./-p
30042   as_mkdir_p=false
30043 fi
30044
30045
30046 # as_fn_executable_p FILE
30047 # -----------------------
30048 # Test if FILE is an executable regular file.
30049 as_fn_executable_p ()
30050 {
30051   test -f "$1" && test -x "$1"
30052 } # as_fn_executable_p
30053 as_test_x='test -x'
30054 as_executable_p=as_fn_executable_p
30055
30056 # Sed expression to map a string onto a valid CPP name.
30057 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30058
30059 # Sed expression to map a string onto a valid variable name.
30060 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30061
30062
30063 exec 6>&1
30064 ## ----------------------------------- ##
30065 ## Main body of $CONFIG_STATUS script. ##
30066 ## ----------------------------------- ##
30067 _ASEOF
30068 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30069
30070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30071 # Save the log message, to keep $0 and so on meaningful, and to
30072 # report actual input values of CONFIG_FILES etc. instead of their
30073 # values after options handling.
30074 ac_log="
30075 This file was extended by GNU Libtool $as_me 2.4.7, which was
30076 generated by GNU Autoconf 2.69.  Invocation command line was
30077
30078   CONFIG_FILES    = $CONFIG_FILES
30079   CONFIG_HEADERS  = $CONFIG_HEADERS
30080   CONFIG_LINKS    = $CONFIG_LINKS
30081   CONFIG_COMMANDS = $CONFIG_COMMANDS
30082   $ $0 $@
30083
30084 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30085 "
30086
30087 _ACEOF
30088
30089 case $ac_config_files in *"
30090 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30091 esac
30092
30093 case $ac_config_headers in *"
30094 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30095 esac
30096
30097
30098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30099 # Files that config.status was made for.
30100 config_files="$ac_config_files"
30101 config_headers="$ac_config_headers"
30102 config_links="$ac_config_links"
30103 config_commands="$ac_config_commands"
30104
30105 _ACEOF
30106
30107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30108 ac_cs_usage="\
30109 \`$as_me' instantiates files and other configuration actions
30110 from templates according to the current configuration.  Unless the files
30111 and actions are specified as TAGs, all are instantiated by default.
30112
30113 Usage: $0 [OPTION]... [TAG]...
30114
30115   -h, --help       print this help, then exit
30116   -V, --version    print version number and configuration settings, then exit
30117       --config     print configuration, then exit
30118   -q, --quiet, --silent
30119                    do not print progress messages
30120   -d, --debug      don't remove temporary files
30121       --recheck    update $as_me by reconfiguring in the same conditions
30122       --file=FILE[:TEMPLATE]
30123                    instantiate the configuration file FILE
30124       --header=FILE[:TEMPLATE]
30125                    instantiate the configuration header FILE
30126
30127 Configuration files:
30128 $config_files
30129
30130 Configuration headers:
30131 $config_headers
30132
30133 Configuration links:
30134 $config_links
30135
30136 Configuration commands:
30137 $config_commands
30138
30139 Report bugs to <bug-libtool@gnu.org>.
30140 GNU Libtool home page: <http://www.gnu.org/software/libtool/>.
30141 General help using GNU software: <http://www.gnu.org/gethelp/>."
30142
30143 _ACEOF
30144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30145 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30146 ac_cs_version="\\
30147 GNU Libtool config.status 2.4.7
30148 configured by $0, generated by GNU Autoconf 2.69,
30149   with options \\"\$ac_cs_config\\"
30150
30151 Copyright (C) 2012 Free Software Foundation, Inc.
30152 This config.status script is free software; the Free Software Foundation
30153 gives unlimited permission to copy, distribute and modify it."
30154
30155 ac_pwd='$ac_pwd'
30156 srcdir='$srcdir'
30157 INSTALL='$INSTALL'
30158 MKDIR_P='$MKDIR_P'
30159 AWK='$AWK'
30160 test -n "\$AWK" || AWK=awk
30161 _ACEOF
30162
30163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30164 # The default lists apply if the user does not specify any file.
30165 ac_need_defaults=:
30166 while test $# != 0
30167 do
30168   case $1 in
30169   --*=?*)
30170     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30171     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30172     ac_shift=:
30173     ;;
30174   --*=)
30175     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30176     ac_optarg=
30177     ac_shift=:
30178     ;;
30179   *)
30180     ac_option=$1
30181     ac_optarg=$2
30182     ac_shift=shift
30183     ;;
30184   esac
30185
30186   case $ac_option in
30187   # Handling of the options.
30188   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30189     ac_cs_recheck=: ;;
30190   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30191     $as_echo "$ac_cs_version"; exit ;;
30192   --config | --confi | --conf | --con | --co | --c )
30193     $as_echo "$ac_cs_config"; exit ;;
30194   --debug | --debu | --deb | --de | --d | -d )
30195     debug=: ;;
30196   --file | --fil | --fi | --f )
30197     $ac_shift
30198     case $ac_optarg in
30199     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30200     '') as_fn_error $? "missing file argument" ;;
30201     esac
30202     as_fn_append CONFIG_FILES " '$ac_optarg'"
30203     ac_need_defaults=false;;
30204   --header | --heade | --head | --hea )
30205     $ac_shift
30206     case $ac_optarg in
30207     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30208     esac
30209     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30210     ac_need_defaults=false;;
30211   --he | --h)
30212     # Conflict between --help and --header
30213     as_fn_error $? "ambiguous option: \`$1'
30214 Try \`$0 --help' for more information.";;
30215   --help | --hel | -h )
30216     $as_echo "$ac_cs_usage"; exit ;;
30217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30218   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30219     ac_cs_silent=: ;;
30220
30221   # This is an error.
30222   -*) as_fn_error $? "unrecognized option: \`$1'
30223 Try \`$0 --help' for more information." ;;
30224
30225   *) as_fn_append ac_config_targets " $1"
30226      ac_need_defaults=false ;;
30227
30228   esac
30229   shift
30230 done
30231
30232 ac_configure_extra_args=
30233
30234 if $ac_cs_silent; then
30235   exec 6>/dev/null
30236   ac_configure_extra_args="$ac_configure_extra_args --silent"
30237 fi
30238
30239 _ACEOF
30240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30241 if \$ac_cs_recheck; then
30242   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30243   shift
30244   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30245   CONFIG_SHELL='$SHELL'
30246   export CONFIG_SHELL
30247   exec "\$@"
30248 fi
30249
30250 _ACEOF
30251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30252 exec 5>>config.log
30253 {
30254   echo
30255   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30256 ## Running $as_me. ##
30257 _ASBOX
30258   $as_echo "$ac_log"
30259 } >&5
30260
30261 _ACEOF
30262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30263 #
30264 # INIT-COMMANDS
30265 #
30266
30267 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
30268
30269
30270 # The HP-UX ksh and POSIX shell print the target directory to stdout
30271 # if CDPATH is set.
30272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30273
30274 sed_quote_subst='$sed_quote_subst'
30275 double_quote_subst='$double_quote_subst'
30276 delay_variable_subst='$delay_variable_subst'
30277 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30278 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30279 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
30280 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30281 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30282 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30283 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30284 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30285 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30286 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
30287 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30288 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30289 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30290 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30291 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30292 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30293 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30294 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30295 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30296 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30297 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30298 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30299 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30300 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30301 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30302 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30303 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30304 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30305 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30306 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30307 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30308 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30309 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30310 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30311 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30312 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30313 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30314 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
30315 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30316 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30317 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30318 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30319 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30321 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
30322 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30323 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30324 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30325 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30326 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30327 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30328 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30329 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30330 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30331 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30332 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30333 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30334 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30335 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30336 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
30337 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30338 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"`'
30339 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
30340 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30341 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30342 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
30343 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30344 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30345 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30346 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30347 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30348 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30349 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30350 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30351 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30352 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30353 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30354 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30355 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30356 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30357 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30358 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30359 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30360 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30361 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30362 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30363 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30364 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30365 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30366 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30367 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30368 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30369 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30370 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30371 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30372 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30373 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30374 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30375 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30376 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30377 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30378 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30379 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30380 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30381 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30382 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30383 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30384 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30385 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30386 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30387 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30388 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30389 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30390 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30391 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30392 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30393 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30394 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30395 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30396 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30397 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30398 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30399 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30400 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30401 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30402 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30403 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30404 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30405 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30406 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30407 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
30408 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
30409 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30410 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30411 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30412 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30413 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30414 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30415 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
30416 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
30417 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
30418 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
30419 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
30420 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
30421 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
30422 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
30423 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
30424 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
30425 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
30426 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
30427 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
30428 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
30429 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
30430 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
30431 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
30432 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
30433 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30434 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
30435 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
30436 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
30437 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30438 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
30439 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30440 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30441 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
30442 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
30443 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30444 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
30445 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
30446 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
30447 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
30448 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
30449 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
30450 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
30451 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
30452 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
30453 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
30454 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
30455 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
30456 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
30457 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
30458 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
30459 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
30460 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
30461 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
30462 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
30463 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
30464 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
30465 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
30466 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
30467 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
30468 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
30469 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
30470 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
30471 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
30472 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
30473 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
30474 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
30475 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
30476 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
30477 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
30478 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
30479 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
30480 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
30481 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
30482 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
30483 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
30484 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
30485 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
30486 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
30487 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
30488 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
30489 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
30490 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
30491 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
30492 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
30493 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
30494 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
30495 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
30496 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
30497 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
30498 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
30499 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30500 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30501 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
30502 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
30503 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
30504 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
30505 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30506 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30507 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
30508 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
30509 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
30510 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
30511 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
30512 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
30513 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
30514 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
30515 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
30516 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
30517 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30518 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
30519 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
30520 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
30521 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30522 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
30523 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30524 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
30525 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
30526 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
30527 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30528 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
30529 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30530 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
30531 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
30532 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
30533 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30534 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
30535 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30536 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30537 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
30538 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
30539 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30540 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
30541 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30542 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
30543 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
30544 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
30545 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30546 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
30547 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30548 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
30549 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
30550 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
30551 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30552 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
30553 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
30554 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
30555 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
30556 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
30557 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
30558 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
30559 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30560 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30561 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
30562 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
30563 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
30564 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
30565 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
30566 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
30567 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
30568 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
30569 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
30570 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
30571 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
30572 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
30573 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
30574 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
30575 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
30576 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
30577 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
30578 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
30579 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
30580 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
30581 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
30582 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
30583 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
30584 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
30585 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
30586 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
30587 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
30588 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
30589 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
30590 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
30591 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
30592 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
30593 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
30594 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
30595 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
30596 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
30597 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
30598 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
30599 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
30600 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
30601 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
30602 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
30603 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
30604 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
30605 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
30606 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
30607 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
30608 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
30609 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
30610 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
30611 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
30612 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
30613 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
30614 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
30615 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
30616 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
30617 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
30618 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
30619 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
30620 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
30621 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
30622 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
30623 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
30624 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
30625 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
30626 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
30627 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
30628 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
30629 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
30630 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
30631 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30632 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
30633 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
30634 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
30635 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30636 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
30637 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30638 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30639 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
30640 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
30641 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
30642 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
30643 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
30644 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
30645 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
30646 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
30647 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
30648 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
30649 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30650 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30651 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
30652 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
30653 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30654 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
30655 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
30656 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
30657 postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
30658 postlink_cmds_GO='`$ECHO "$postlink_cmds_GO" | $SED "$delay_single_quote_subst"`'
30659 postlink_cmds_GCJ='`$ECHO "$postlink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
30660 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
30661 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
30662 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
30663 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
30664 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
30665 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
30666 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
30667 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
30668 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
30669 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
30670 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
30671 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
30672 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
30673 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
30674 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
30675 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
30676 compiler_lib_search_dirs_GO='`$ECHO "$compiler_lib_search_dirs_GO" | $SED "$delay_single_quote_subst"`'
30677 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
30678 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
30679 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30680 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
30681 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
30682 predep_objects_GO='`$ECHO "$predep_objects_GO" | $SED "$delay_single_quote_subst"`'
30683 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
30684 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
30685 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
30686 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
30687 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
30688 postdep_objects_GO='`$ECHO "$postdep_objects_GO" | $SED "$delay_single_quote_subst"`'
30689 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
30690 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
30691 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
30692 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
30693 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
30694 predeps_GO='`$ECHO "$predeps_GO" | $SED "$delay_single_quote_subst"`'
30695 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
30696 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
30697 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
30698 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
30699 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
30700 postdeps_GO='`$ECHO "$postdeps_GO" | $SED "$delay_single_quote_subst"`'
30701 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
30702 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
30703 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
30704 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
30705 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
30706 compiler_lib_search_path_GO='`$ECHO "$compiler_lib_search_path_GO" | $SED "$delay_single_quote_subst"`'
30707 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
30708 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
30709
30710 LTCC='$LTCC'
30711 LTCFLAGS='$LTCFLAGS'
30712 compiler='$compiler_DEFAULT'
30713
30714 # A function that is used when there is no print builtin or printf.
30715 func_fallback_echo ()
30716 {
30717   eval 'cat <<_LTECHO_EOF
30718 \$1
30719 _LTECHO_EOF'
30720 }
30721
30722 # Quote evaled strings.
30723 for var in AS \
30724 DLLTOOL \
30725 OBJDUMP \
30726 SHELL \
30727 ECHO \
30728 PATH_SEPARATOR \
30729 SED \
30730 GREP \
30731 EGREP \
30732 FGREP \
30733 LD \
30734 NM \
30735 LN_S \
30736 lt_SP2NL \
30737 lt_NL2SP \
30738 reload_flag \
30739 FILECMD \
30740 deplibs_check_method \
30741 file_magic_cmd \
30742 file_magic_glob \
30743 want_nocaseglob \
30744 sharedlib_from_linklib_cmd \
30745 AR \
30746 archiver_list_spec \
30747 STRIP \
30748 RANLIB \
30749 CC \
30750 CFLAGS \
30751 compiler \
30752 lt_cv_sys_global_symbol_pipe \
30753 lt_cv_sys_global_symbol_to_cdecl \
30754 lt_cv_sys_global_symbol_to_import \
30755 lt_cv_sys_global_symbol_to_c_name_address \
30756 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30757 lt_cv_nm_interface \
30758 nm_file_list_spec \
30759 lt_cv_truncate_bin \
30760 lt_prog_compiler_no_builtin_flag \
30761 lt_prog_compiler_pic \
30762 lt_prog_compiler_wl \
30763 lt_prog_compiler_static \
30764 lt_cv_prog_compiler_c_o \
30765 need_locks \
30766 MANIFEST_TOOL \
30767 DSYMUTIL \
30768 NMEDIT \
30769 LIPO \
30770 OTOOL \
30771 OTOOL64 \
30772 shrext_cmds \
30773 export_dynamic_flag_spec \
30774 whole_archive_flag_spec \
30775 compiler_needs_object \
30776 with_gnu_ld \
30777 allow_undefined_flag \
30778 no_undefined_flag \
30779 hardcode_libdir_flag_spec \
30780 hardcode_libdir_separator \
30781 exclude_expsyms \
30782 include_expsyms \
30783 file_list_spec \
30784 variables_saved_for_relink \
30785 libname_spec \
30786 library_names_spec \
30787 soname_spec \
30788 install_override_mode \
30789 finish_eval \
30790 old_striplib \
30791 striplib \
30792 compiler_lib_search_dirs \
30793 predep_objects \
30794 postdep_objects \
30795 predeps \
30796 postdeps \
30797 compiler_lib_search_path \
30798 LD_CXX \
30799 LD_F77 \
30800 LD_FC \
30801 LD_GO \
30802 LD_GCJ \
30803 LD_RC \
30804 reload_flag_CXX \
30805 reload_flag_F77 \
30806 reload_flag_FC \
30807 reload_flag_GO \
30808 reload_flag_GCJ \
30809 reload_flag_RC \
30810 compiler_CXX \
30811 compiler_F77 \
30812 compiler_FC \
30813 compiler_GO \
30814 compiler_GCJ \
30815 compiler_RC \
30816 lt_prog_compiler_no_builtin_flag_CXX \
30817 lt_prog_compiler_no_builtin_flag_F77 \
30818 lt_prog_compiler_no_builtin_flag_FC \
30819 lt_prog_compiler_no_builtin_flag_GO \
30820 lt_prog_compiler_no_builtin_flag_GCJ \
30821 lt_prog_compiler_no_builtin_flag_RC \
30822 lt_prog_compiler_pic_CXX \
30823 lt_prog_compiler_pic_F77 \
30824 lt_prog_compiler_pic_FC \
30825 lt_prog_compiler_pic_GO \
30826 lt_prog_compiler_pic_GCJ \
30827 lt_prog_compiler_pic_RC \
30828 lt_prog_compiler_wl_CXX \
30829 lt_prog_compiler_wl_F77 \
30830 lt_prog_compiler_wl_FC \
30831 lt_prog_compiler_wl_GO \
30832 lt_prog_compiler_wl_GCJ \
30833 lt_prog_compiler_wl_RC \
30834 lt_prog_compiler_static_CXX \
30835 lt_prog_compiler_static_F77 \
30836 lt_prog_compiler_static_FC \
30837 lt_prog_compiler_static_GO \
30838 lt_prog_compiler_static_GCJ \
30839 lt_prog_compiler_static_RC \
30840 lt_cv_prog_compiler_c_o_CXX \
30841 lt_cv_prog_compiler_c_o_F77 \
30842 lt_cv_prog_compiler_c_o_FC \
30843 lt_cv_prog_compiler_c_o_GO \
30844 lt_cv_prog_compiler_c_o_GCJ \
30845 lt_cv_prog_compiler_c_o_RC \
30846 export_dynamic_flag_spec_CXX \
30847 export_dynamic_flag_spec_F77 \
30848 export_dynamic_flag_spec_FC \
30849 export_dynamic_flag_spec_GO \
30850 export_dynamic_flag_spec_GCJ \
30851 export_dynamic_flag_spec_RC \
30852 whole_archive_flag_spec_CXX \
30853 whole_archive_flag_spec_F77 \
30854 whole_archive_flag_spec_FC \
30855 whole_archive_flag_spec_GO \
30856 whole_archive_flag_spec_GCJ \
30857 whole_archive_flag_spec_RC \
30858 compiler_needs_object_CXX \
30859 compiler_needs_object_F77 \
30860 compiler_needs_object_FC \
30861 compiler_needs_object_GO \
30862 compiler_needs_object_GCJ \
30863 compiler_needs_object_RC \
30864 with_gnu_ld_CXX \
30865 with_gnu_ld_F77 \
30866 with_gnu_ld_FC \
30867 with_gnu_ld_GO \
30868 with_gnu_ld_GCJ \
30869 with_gnu_ld_RC \
30870 allow_undefined_flag_CXX \
30871 allow_undefined_flag_F77 \
30872 allow_undefined_flag_FC \
30873 allow_undefined_flag_GO \
30874 allow_undefined_flag_GCJ \
30875 allow_undefined_flag_RC \
30876 no_undefined_flag_CXX \
30877 no_undefined_flag_F77 \
30878 no_undefined_flag_FC \
30879 no_undefined_flag_GO \
30880 no_undefined_flag_GCJ \
30881 no_undefined_flag_RC \
30882 hardcode_libdir_flag_spec_CXX \
30883 hardcode_libdir_flag_spec_F77 \
30884 hardcode_libdir_flag_spec_FC \
30885 hardcode_libdir_flag_spec_GO \
30886 hardcode_libdir_flag_spec_GCJ \
30887 hardcode_libdir_flag_spec_RC \
30888 hardcode_libdir_separator_CXX \
30889 hardcode_libdir_separator_F77 \
30890 hardcode_libdir_separator_FC \
30891 hardcode_libdir_separator_GO \
30892 hardcode_libdir_separator_GCJ \
30893 hardcode_libdir_separator_RC \
30894 exclude_expsyms_CXX \
30895 exclude_expsyms_F77 \
30896 exclude_expsyms_FC \
30897 exclude_expsyms_GO \
30898 exclude_expsyms_GCJ \
30899 exclude_expsyms_RC \
30900 include_expsyms_CXX \
30901 include_expsyms_F77 \
30902 include_expsyms_FC \
30903 include_expsyms_GO \
30904 include_expsyms_GCJ \
30905 include_expsyms_RC \
30906 file_list_spec_CXX \
30907 file_list_spec_F77 \
30908 file_list_spec_FC \
30909 file_list_spec_GO \
30910 file_list_spec_GCJ \
30911 file_list_spec_RC \
30912 compiler_lib_search_dirs_CXX \
30913 compiler_lib_search_dirs_F77 \
30914 compiler_lib_search_dirs_FC \
30915 compiler_lib_search_dirs_GO \
30916 compiler_lib_search_dirs_GCJ \
30917 compiler_lib_search_dirs_RC \
30918 predep_objects_CXX \
30919 predep_objects_F77 \
30920 predep_objects_FC \
30921 predep_objects_GO \
30922 predep_objects_GCJ \
30923 predep_objects_RC \
30924 postdep_objects_CXX \
30925 postdep_objects_F77 \
30926 postdep_objects_FC \
30927 postdep_objects_GO \
30928 postdep_objects_GCJ \
30929 postdep_objects_RC \
30930 predeps_CXX \
30931 predeps_F77 \
30932 predeps_FC \
30933 predeps_GO \
30934 predeps_GCJ \
30935 predeps_RC \
30936 postdeps_CXX \
30937 postdeps_F77 \
30938 postdeps_FC \
30939 postdeps_GO \
30940 postdeps_GCJ \
30941 postdeps_RC \
30942 compiler_lib_search_path_CXX \
30943 compiler_lib_search_path_F77 \
30944 compiler_lib_search_path_FC \
30945 compiler_lib_search_path_GO \
30946 compiler_lib_search_path_GCJ \
30947 compiler_lib_search_path_RC; do
30948     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30949     *[\\\\\\\`\\"\\\$]*)
30950       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
30951       ;;
30952     *)
30953       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30954       ;;
30955     esac
30956 done
30957
30958 # Double-quote double-evaled strings.
30959 for var in reload_cmds \
30960 old_postinstall_cmds \
30961 old_postuninstall_cmds \
30962 old_archive_cmds \
30963 extract_expsyms_cmds \
30964 old_archive_from_new_cmds \
30965 old_archive_from_expsyms_cmds \
30966 archive_cmds \
30967 archive_expsym_cmds \
30968 module_cmds \
30969 module_expsym_cmds \
30970 export_symbols_cmds \
30971 prelink_cmds \
30972 postlink_cmds \
30973 postinstall_cmds \
30974 postuninstall_cmds \
30975 finish_cmds \
30976 sys_lib_search_path_spec \
30977 configure_time_dlsearch_path \
30978 configure_time_lt_sys_library_path \
30979 reload_cmds_CXX \
30980 reload_cmds_F77 \
30981 reload_cmds_FC \
30982 reload_cmds_GO \
30983 reload_cmds_GCJ \
30984 reload_cmds_RC \
30985 old_archive_cmds_CXX \
30986 old_archive_cmds_F77 \
30987 old_archive_cmds_FC \
30988 old_archive_cmds_GO \
30989 old_archive_cmds_GCJ \
30990 old_archive_cmds_RC \
30991 old_archive_from_new_cmds_CXX \
30992 old_archive_from_new_cmds_F77 \
30993 old_archive_from_new_cmds_FC \
30994 old_archive_from_new_cmds_GO \
30995 old_archive_from_new_cmds_GCJ \
30996 old_archive_from_new_cmds_RC \
30997 old_archive_from_expsyms_cmds_CXX \
30998 old_archive_from_expsyms_cmds_F77 \
30999 old_archive_from_expsyms_cmds_FC \
31000 old_archive_from_expsyms_cmds_GO \
31001 old_archive_from_expsyms_cmds_GCJ \
31002 old_archive_from_expsyms_cmds_RC \
31003 archive_cmds_CXX \
31004 archive_cmds_F77 \
31005 archive_cmds_FC \
31006 archive_cmds_GO \
31007 archive_cmds_GCJ \
31008 archive_cmds_RC \
31009 archive_expsym_cmds_CXX \
31010 archive_expsym_cmds_F77 \
31011 archive_expsym_cmds_FC \
31012 archive_expsym_cmds_GO \
31013 archive_expsym_cmds_GCJ \
31014 archive_expsym_cmds_RC \
31015 module_cmds_CXX \
31016 module_cmds_F77 \
31017 module_cmds_FC \
31018 module_cmds_GO \
31019 module_cmds_GCJ \
31020 module_cmds_RC \
31021 module_expsym_cmds_CXX \
31022 module_expsym_cmds_F77 \
31023 module_expsym_cmds_FC \
31024 module_expsym_cmds_GO \
31025 module_expsym_cmds_GCJ \
31026 module_expsym_cmds_RC \
31027 export_symbols_cmds_CXX \
31028 export_symbols_cmds_F77 \
31029 export_symbols_cmds_FC \
31030 export_symbols_cmds_GO \
31031 export_symbols_cmds_GCJ \
31032 export_symbols_cmds_RC \
31033 prelink_cmds_CXX \
31034 prelink_cmds_F77 \
31035 prelink_cmds_FC \
31036 prelink_cmds_GO \
31037 prelink_cmds_GCJ \
31038 prelink_cmds_RC \
31039 postlink_cmds_CXX \
31040 postlink_cmds_F77 \
31041 postlink_cmds_FC \
31042 postlink_cmds_GO \
31043 postlink_cmds_GCJ \
31044 postlink_cmds_RC; do
31045     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31046     *[\\\\\\\`\\"\\\$]*)
31047       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
31048       ;;
31049     *)
31050       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31051       ;;
31052     esac
31053 done
31054
31055 ac_aux_dir='$ac_aux_dir'
31056
31057 # See if we are running on zsh, and set the options that allow our
31058 # commands through without removal of \ escapes INIT.
31059 if test -n "\${ZSH_VERSION+set}"; then
31060    setopt NO_GLOB_SUBST
31061 fi
31062
31063
31064     PACKAGE='$PACKAGE'
31065     VERSION='$VERSION'
31066     RM='$RM'
31067     ofile='$ofile'
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083 GNUmakefile=$GNUmakefile
31084
31085 _ACEOF
31086
31087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31088
31089 # Handling of arguments.
31090 for ac_config_target in $ac_config_targets
31091 do
31092   case $ac_config_target in
31093     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
31094     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
31095     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31096     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31097     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
31098     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31099     "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
31100
31101   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31102   esac
31103 done
31104
31105
31106 # If the user did not use the arguments to specify the items to instantiate,
31107 # then the envvar interface is used.  Set only those that are not.
31108 # We use the long form for the default assignment because of an extremely
31109 # bizarre bug on SunOS 4.1.3.
31110 if $ac_need_defaults; then
31111   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31112   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31113   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31114   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31115 fi
31116
31117 # Have a temporary directory for convenience.  Make it in the build tree
31118 # simply because there is no reason against having it here, and in addition,
31119 # creating and moving files from /tmp can sometimes cause problems.
31120 # Hook for its removal unless debugging.
31121 # Note that there is a small window in which the directory will not be cleaned:
31122 # after its creation but before its name has been assigned to `$tmp'.
31123 $debug ||
31124 {
31125   tmp= ac_tmp=
31126   trap 'exit_status=$?
31127   : "${ac_tmp:=$tmp}"
31128   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31129 ' 0
31130   trap 'as_fn_exit 1' 1 2 13 15
31131 }
31132 # Create a (secure) tmp directory for tmp files.
31133
31134 {
31135   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31136   test -d "$tmp"
31137 }  ||
31138 {
31139   tmp=./conf$$-$RANDOM
31140   (umask 077 && mkdir "$tmp")
31141 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31142 ac_tmp=$tmp
31143
31144 # Set up the scripts for CONFIG_FILES section.
31145 # No need to generate them if there are no CONFIG_FILES.
31146 # This happens for instance with `./config.status config.h'.
31147 if test -n "$CONFIG_FILES"; then
31148
31149
31150 ac_cr=`echo X | tr X '\015'`
31151 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31152 # But we know of no other shell where ac_cr would be empty at this
31153 # point, so we can use a bashism as a fallback.
31154 if test "x$ac_cr" = x; then
31155   eval ac_cr=\$\'\\r\'
31156 fi
31157 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31158 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31159   ac_cs_awk_cr='\\r'
31160 else
31161   ac_cs_awk_cr=$ac_cr
31162 fi
31163
31164 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31165 _ACEOF
31166
31167
31168 {
31169   echo "cat >conf$$subs.awk <<_ACEOF" &&
31170   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31171   echo "_ACEOF"
31172 } >conf$$subs.sh ||
31173   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31174 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31175 ac_delim='%!_!# '
31176 for ac_last_try in false false false false false :; do
31177   . ./conf$$subs.sh ||
31178     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31179
31180   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31181   if test $ac_delim_n = $ac_delim_num; then
31182     break
31183   elif $ac_last_try; then
31184     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31185   else
31186     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31187   fi
31188 done
31189 rm -f conf$$subs.sh
31190
31191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31192 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31193 _ACEOF
31194 sed -n '
31195 h
31196 s/^/S["/; s/!.*/"]=/
31197 p
31198 g
31199 s/^[^!]*!//
31200 :repl
31201 t repl
31202 s/'"$ac_delim"'$//
31203 t delim
31204 :nl
31205 h
31206 s/\(.\{148\}\)..*/\1/
31207 t more1
31208 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31209 p
31210 n
31211 b repl
31212 :more1
31213 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31214 p
31215 g
31216 s/.\{148\}//
31217 t nl
31218 :delim
31219 h
31220 s/\(.\{148\}\)..*/\1/
31221 t more2
31222 s/["\\]/\\&/g; s/^/"/; s/$/"/
31223 p
31224 b
31225 :more2
31226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31227 p
31228 g
31229 s/.\{148\}//
31230 t delim
31231 ' <conf$$subs.awk | sed '
31232 /^[^""]/{
31233   N
31234   s/\n//
31235 }
31236 ' >>$CONFIG_STATUS || ac_write_fail=1
31237 rm -f conf$$subs.awk
31238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31239 _ACAWK
31240 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31241   for (key in S) S_is_set[key] = 1
31242   FS = "\a"
31243
31244 }
31245 {
31246   line = $ 0
31247   nfields = split(line, field, "@")
31248   substed = 0
31249   len = length(field[1])
31250   for (i = 2; i < nfields; i++) {
31251     key = field[i]
31252     keylen = length(key)
31253     if (S_is_set[key]) {
31254       value = S[key]
31255       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31256       len += length(value) + length(field[++i])
31257       substed = 1
31258     } else
31259       len += 1 + keylen
31260   }
31261
31262   print line
31263 }
31264
31265 _ACAWK
31266 _ACEOF
31267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31268 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31269   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31270 else
31271   cat
31272 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31273   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31274 _ACEOF
31275
31276 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31277 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31278 # trailing colons and then remove the whole line if VPATH becomes empty
31279 # (actually we leave an empty line to preserve line numbers).
31280 if test "x$srcdir" = x.; then
31281   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31282 h
31283 s///
31284 s/^/:/
31285 s/[      ]*$/:/
31286 s/:\$(srcdir):/:/g
31287 s/:\${srcdir}:/:/g
31288 s/:@srcdir@:/:/g
31289 s/^:*//
31290 s/:*$//
31291 x
31292 s/\(=[   ]*\).*/\1/
31293 G
31294 s/\n//
31295 s/^[^=]*=[       ]*$//
31296 }'
31297 fi
31298
31299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31300 fi # test -n "$CONFIG_FILES"
31301
31302 # Set up the scripts for CONFIG_HEADERS section.
31303 # No need to generate them if there are no CONFIG_HEADERS.
31304 # This happens for instance with `./config.status Makefile'.
31305 if test -n "$CONFIG_HEADERS"; then
31306 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31307 BEGIN {
31308 _ACEOF
31309
31310 # Transform confdefs.h into an awk script `defines.awk', embedded as
31311 # here-document in config.status, that substitutes the proper values into
31312 # config.h.in to produce config.h.
31313
31314 # Create a delimiter string that does not exist in confdefs.h, to ease
31315 # handling of long lines.
31316 ac_delim='%!_!# '
31317 for ac_last_try in false false :; do
31318   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31319   if test -z "$ac_tt"; then
31320     break
31321   elif $ac_last_try; then
31322     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31323   else
31324     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31325   fi
31326 done
31327
31328 # For the awk script, D is an array of macro values keyed by name,
31329 # likewise P contains macro parameters if any.  Preserve backslash
31330 # newline sequences.
31331
31332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31333 sed -n '
31334 s/.\{148\}/&'"$ac_delim"'/g
31335 t rset
31336 :rset
31337 s/^[     ]*#[    ]*define[       ][      ]*/ /
31338 t def
31339 d
31340 :def
31341 s/\\$//
31342 t bsnl
31343 s/["\\]/\\&/g
31344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31345 D["\1"]=" \3"/p
31346 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31347 d
31348 :bsnl
31349 s/["\\]/\\&/g
31350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31351 D["\1"]=" \3\\\\\\n"\\/p
31352 t cont
31353 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31354 t cont
31355 d
31356 :cont
31357 n
31358 s/.\{148\}/&'"$ac_delim"'/g
31359 t clear
31360 :clear
31361 s/\\$//
31362 t bsnlc
31363 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31364 d
31365 :bsnlc
31366 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31367 b cont
31368 ' <confdefs.h | sed '
31369 s/'"$ac_delim"'/"\\\
31370 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31371
31372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31373   for (key in D) D_is_set[key] = 1
31374   FS = "\a"
31375 }
31376 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31377   line = \$ 0
31378   split(line, arg, " ")
31379   if (arg[1] == "#") {
31380     defundef = arg[2]
31381     mac1 = arg[3]
31382   } else {
31383     defundef = substr(arg[1], 2)
31384     mac1 = arg[2]
31385   }
31386   split(mac1, mac2, "(") #)
31387   macro = mac2[1]
31388   prefix = substr(line, 1, index(line, defundef) - 1)
31389   if (D_is_set[macro]) {
31390     # Preserve the white space surrounding the "#".
31391     print prefix "define", macro P[macro] D[macro]
31392     next
31393   } else {
31394     # Replace #undef with comments.  This is necessary, for example,
31395     # in the case of _POSIX_SOURCE, which is predefined and required
31396     # on some systems where configure will not decide to define it.
31397     if (defundef == "undef") {
31398       print "/*", prefix defundef, macro, "*/"
31399       next
31400     }
31401   }
31402 }
31403 { print }
31404 _ACAWK
31405 _ACEOF
31406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31407   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31408 fi # test -n "$CONFIG_HEADERS"
31409
31410
31411 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31412 shift
31413 for ac_tag
31414 do
31415   case $ac_tag in
31416   :[FHLC]) ac_mode=$ac_tag; continue;;
31417   esac
31418   case $ac_mode$ac_tag in
31419   :[FHL]*:*);;
31420   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31421   :[FH]-) ac_tag=-:-;;
31422   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31423   esac
31424   ac_save_IFS=$IFS
31425   IFS=:
31426   set x $ac_tag
31427   IFS=$ac_save_IFS
31428   shift
31429   ac_file=$1
31430   shift
31431
31432   case $ac_mode in
31433   :L) ac_source=$1;;
31434   :[FH])
31435     ac_file_inputs=
31436     for ac_f
31437     do
31438       case $ac_f in
31439       -) ac_f="$ac_tmp/stdin";;
31440       *) # Look for the file first in the build tree, then in the source tree
31441          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31442          # because $ac_f cannot contain `:'.
31443          test -f "$ac_f" ||
31444            case $ac_f in
31445            [\\/$]*) false;;
31446            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31447            esac ||
31448            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31449       esac
31450       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31451       as_fn_append ac_file_inputs " '$ac_f'"
31452     done
31453
31454     # Let's still pretend it is `configure' which instantiates (i.e., don't
31455     # use $as_me), people would be surprised to read:
31456     #    /* config.h.  Generated by config.status.  */
31457     configure_input='Generated from '`
31458           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31459         `' by configure.'
31460     if test x"$ac_file" != x-; then
31461       configure_input="$ac_file.  $configure_input"
31462       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31463 $as_echo "$as_me: creating $ac_file" >&6;}
31464     fi
31465     # Neutralize special characters interpreted by sed in replacement strings.
31466     case $configure_input in #(
31467     *\&* | *\|* | *\\* )
31468        ac_sed_conf_input=`$as_echo "$configure_input" |
31469        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31470     *) ac_sed_conf_input=$configure_input;;
31471     esac
31472
31473     case $ac_tag in
31474     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31475       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31476     esac
31477     ;;
31478   esac
31479
31480   ac_dir=`$as_dirname -- "$ac_file" ||
31481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31482          X"$ac_file" : 'X\(//\)[^/]' \| \
31483          X"$ac_file" : 'X\(//\)$' \| \
31484          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31485 $as_echo X"$ac_file" |
31486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31487             s//\1/
31488             q
31489           }
31490           /^X\(\/\/\)[^/].*/{
31491             s//\1/
31492             q
31493           }
31494           /^X\(\/\/\)$/{
31495             s//\1/
31496             q
31497           }
31498           /^X\(\/\).*/{
31499             s//\1/
31500             q
31501           }
31502           s/.*/./; q'`
31503   as_dir="$ac_dir"; as_fn_mkdir_p
31504   ac_builddir=.
31505
31506 case "$ac_dir" in
31507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31508 *)
31509   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31510   # A ".." for each directory in $ac_dir_suffix.
31511   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31512   case $ac_top_builddir_sub in
31513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31515   esac ;;
31516 esac
31517 ac_abs_top_builddir=$ac_pwd
31518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31519 # for backward compatibility:
31520 ac_top_builddir=$ac_top_build_prefix
31521
31522 case $srcdir in
31523   .)  # We are building in place.
31524     ac_srcdir=.
31525     ac_top_srcdir=$ac_top_builddir_sub
31526     ac_abs_top_srcdir=$ac_pwd ;;
31527   [\\/]* | ?:[\\/]* )  # Absolute name.
31528     ac_srcdir=$srcdir$ac_dir_suffix;
31529     ac_top_srcdir=$srcdir
31530     ac_abs_top_srcdir=$srcdir ;;
31531   *) # Relative name.
31532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31533     ac_top_srcdir=$ac_top_build_prefix$srcdir
31534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31535 esac
31536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31537
31538
31539   case $ac_mode in
31540   :F)
31541   #
31542   # CONFIG_FILE
31543   #
31544
31545   case $INSTALL in
31546   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31547   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31548   esac
31549   ac_MKDIR_P=$MKDIR_P
31550   case $MKDIR_P in
31551   [\\/$]* | ?:[\\/]* ) ;;
31552   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31553   esac
31554 _ACEOF
31555
31556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31557 # If the template does not know about datarootdir, expand it.
31558 # FIXME: This hack should be removed a few years after 2.60.
31559 ac_datarootdir_hack=; ac_datarootdir_seen=
31560 ac_sed_dataroot='
31561 /datarootdir/ {
31562   p
31563   q
31564 }
31565 /@datadir@/p
31566 /@docdir@/p
31567 /@infodir@/p
31568 /@localedir@/p
31569 /@mandir@/p'
31570 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31571 *datarootdir*) ac_datarootdir_seen=yes;;
31572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31573   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31574 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31575 _ACEOF
31576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31577   ac_datarootdir_hack='
31578   s&@datadir@&$datadir&g
31579   s&@docdir@&$docdir&g
31580   s&@infodir@&$infodir&g
31581   s&@localedir@&$localedir&g
31582   s&@mandir@&$mandir&g
31583   s&\\\${datarootdir}&$datarootdir&g' ;;
31584 esac
31585 _ACEOF
31586
31587 # Neutralize VPATH when `$srcdir' = `.'.
31588 # Shell code in configure.ac might set extrasub.
31589 # FIXME: do we really want to maintain this feature?
31590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31591 ac_sed_extra="$ac_vpsub
31592 $extrasub
31593 _ACEOF
31594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31595 :t
31596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31597 s|@configure_input@|$ac_sed_conf_input|;t t
31598 s&@top_builddir@&$ac_top_builddir_sub&;t t
31599 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31600 s&@srcdir@&$ac_srcdir&;t t
31601 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31602 s&@top_srcdir@&$ac_top_srcdir&;t t
31603 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31604 s&@builddir@&$ac_builddir&;t t
31605 s&@abs_builddir@&$ac_abs_builddir&;t t
31606 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31607 s&@INSTALL@&$ac_INSTALL&;t t
31608 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31609 $ac_datarootdir_hack
31610 "
31611 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31612   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31613
31614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31615   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31616   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31617       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31618   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31619 which seems to be undefined.  Please make sure it is defined" >&5
31620 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31621 which seems to be undefined.  Please make sure it is defined" >&2;}
31622
31623   rm -f "$ac_tmp/stdin"
31624   case $ac_file in
31625   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31626   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31627   esac \
31628   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31629  ;;
31630   :H)
31631   #
31632   # CONFIG_HEADER
31633   #
31634   if test x"$ac_file" != x-; then
31635     {
31636       $as_echo "/* $configure_input  */" \
31637       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31638     } >"$ac_tmp/config.h" \
31639       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31640     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31641       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31642 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31643     else
31644       rm -f "$ac_file"
31645       mv "$ac_tmp/config.h" "$ac_file" \
31646         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31647     fi
31648   else
31649     $as_echo "/* $configure_input  */" \
31650       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31651       || as_fn_error $? "could not create -" "$LINENO" 5
31652   fi
31653 # Compute "$ac_file"'s index in $config_headers.
31654 _am_arg="$ac_file"
31655 _am_stamp_count=1
31656 for _am_header in $config_headers :; do
31657   case $_am_header in
31658     $_am_arg | $_am_arg:* )
31659       break ;;
31660     * )
31661       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31662   esac
31663 done
31664 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31665 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31666          X"$_am_arg" : 'X\(//\)[^/]' \| \
31667          X"$_am_arg" : 'X\(//\)$' \| \
31668          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31669 $as_echo X"$_am_arg" |
31670     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31671             s//\1/
31672             q
31673           }
31674           /^X\(\/\/\)[^/].*/{
31675             s//\1/
31676             q
31677           }
31678           /^X\(\/\/\)$/{
31679             s//\1/
31680             q
31681           }
31682           /^X\(\/\).*/{
31683             s//\1/
31684             q
31685           }
31686           s/.*/./; q'`/stamp-h$_am_stamp_count
31687  ;;
31688   :L)
31689   #
31690   # CONFIG_LINK
31691   #
31692
31693   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31694     :
31695   else
31696     # Prefer the file from the source tree if names are identical.
31697     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31698       ac_source=$srcdir/$ac_source
31699     fi
31700
31701     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31702 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31703
31704     if test ! -r "$ac_source"; then
31705       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31706     fi
31707     rm -f "$ac_file"
31708
31709     # Try a relative symlink, then a hard link, then a copy.
31710     case $ac_source in
31711     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31712         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31713     esac
31714     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31715       ln "$ac_source" "$ac_file" 2>/dev/null ||
31716       cp -p "$ac_source" "$ac_file" ||
31717       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31718   fi
31719  ;;
31720   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31721 $as_echo "$as_me: executing $ac_file commands" >&6;}
31722  ;;
31723   esac
31724
31725
31726   case $ac_file$ac_mode in
31727     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
31728 # Configurable variable values for building test suites.
31729 # Generated by $0.
31730 # Copyright (C) 2012 Free Software Foundation, Inc.
31731
31732 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
31733 at_testdir='tests'
31734 abs_builddir='$ac_abs_builddir'
31735 at_srcdir='$ac_srcdir'
31736 abs_srcdir='$ac_abs_srcdir'
31737 at_top_srcdir='$ac_top_srcdir'
31738 abs_top_srcdir='$ac_abs_top_srcdir'
31739 at_top_build_prefix='$ac_top_build_prefix'
31740 abs_top_builddir='$ac_abs_top_builddir'
31741
31742 # Backward compatibility with Autotest <= 2.59b:
31743 at_top_builddir=\$at_top_build_prefix
31744
31745 AUTOTEST_PATH='tests'
31746
31747 SHELL=\${CONFIG_SHELL-'$SHELL'}
31748 ATEOF
31749  ;;
31750     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31751   # Older Autoconf quotes --file arguments for eval, but not when files
31752   # are listed without --file.  Let's play safe and only enable the eval
31753   # if we detect the quoting.
31754   # TODO: see whether this extra hack can be removed once we start
31755   # requiring Autoconf 2.70 or later.
31756   case $CONFIG_FILES in #(
31757   *\'*) :
31758     eval set x "$CONFIG_FILES" ;; #(
31759   *) :
31760     set x $CONFIG_FILES ;; #(
31761   *) :
31762      ;;
31763 esac
31764   shift
31765   # Used to flag and report bootstrapping failures.
31766   am_rc=0
31767   for am_mf
31768   do
31769     # Strip MF so we end up with the name of the file.
31770     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
31771     # Check whether this is an Automake generated Makefile which includes
31772     # dependency-tracking related rules and includes.
31773     # Grep'ing the whole file directly is not great: AIX grep has a line
31774     # limit of 2048, but all sed's we know have understand at least 4000.
31775     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
31776       || continue
31777     am_dirpart=`$as_dirname -- "$am_mf" ||
31778 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31779          X"$am_mf" : 'X\(//\)[^/]' \| \
31780          X"$am_mf" : 'X\(//\)$' \| \
31781          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31782 $as_echo X"$am_mf" |
31783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31784             s//\1/
31785             q
31786           }
31787           /^X\(\/\/\)[^/].*/{
31788             s//\1/
31789             q
31790           }
31791           /^X\(\/\/\)$/{
31792             s//\1/
31793             q
31794           }
31795           /^X\(\/\).*/{
31796             s//\1/
31797             q
31798           }
31799           s/.*/./; q'`
31800     am_filepart=`$as_basename -- "$am_mf" ||
31801 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
31802          X"$am_mf" : 'X\(//\)$' \| \
31803          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31804 $as_echo X/"$am_mf" |
31805     sed '/^.*\/\([^/][^/]*\)\/*$/{
31806             s//\1/
31807             q
31808           }
31809           /^X\/\(\/\/\)$/{
31810             s//\1/
31811             q
31812           }
31813           /^X\/\(\/\).*/{
31814             s//\1/
31815             q
31816           }
31817           s/.*/./; q'`
31818     { echo "$as_me:$LINENO: cd "$am_dirpart" \
31819       && sed -e '/# am--include-marker/d' "$am_filepart" \
31820         | $MAKE -f - am--depfiles" >&5
31821    (cd "$am_dirpart" \
31822       && sed -e '/# am--include-marker/d' "$am_filepart" \
31823         | $MAKE -f - am--depfiles) >&5 2>&5
31824    ac_status=$?
31825    echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826    (exit $ac_status); } || am_rc=$?
31827   done
31828   if test $am_rc -ne 0; then
31829     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31831 as_fn_error $? "Something went wrong bootstrapping makefile fragments
31832     for automatic dependency tracking.  If GNU make was not used, consider
31833     re-running the configure script with MAKE=\"gmake\" (or whatever is
31834     necessary).  You can also try re-running configure with the
31835     '--disable-dependency-tracking' option to at least be able to build
31836     the package (albeit without support for automatic dependency tracking).
31837 See \`config.log' for more details" "$LINENO" 5; }
31838   fi
31839   { am_dirpart=; unset am_dirpart;}
31840   { am_filepart=; unset am_filepart;}
31841   { am_mf=; unset am_mf;}
31842   { am_rc=; unset am_rc;}
31843   rm -f conftest-deps.mk
31844 }
31845  ;;
31846     "libtool":C)
31847
31848     # See if we are running on zsh, and set the options that allow our
31849     # commands through without removal of \ escapes.
31850     if test -n "${ZSH_VERSION+set}"; then
31851       setopt NO_GLOB_SUBST
31852     fi
31853
31854     cfgfile=${ofile}T
31855     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31856     $RM "$cfgfile"
31857
31858     cat <<_LT_EOF >> "$cfgfile"
31859 #! $SHELL
31860 # Generated automatically by $as_me ($PACKAGE) $VERSION
31861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31862 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31863
31864 # Provide generalized library-building support services.
31865 # Written by Gordon Matzigkeit, 1996
31866
31867 # Copyright (C) 2014 Free Software Foundation, Inc.
31868 # This is free software; see the source for copying conditions.  There is NO
31869 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
31870
31871 # GNU Libtool is free software; you can redistribute it and/or modify
31872 # it under the terms of the GNU General Public License as published by
31873 # the Free Software Foundation; either version 2 of of the License, or
31874 # (at your option) any later version.
31875 #
31876 # As a special exception to the GNU General Public License, if you
31877 # distribute this file as part of a program or library that is built
31878 # using GNU Libtool, you may include this file under the  same
31879 # distribution terms that you use for the rest of that program.
31880 #
31881 # GNU Libtool is distributed in the hope that it will be useful, but
31882 # WITHOUT ANY WARRANTY; without even the implied warranty of
31883 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31884 # GNU General Public License for more details.
31885 #
31886 # You should have received a copy of the GNU General Public License
31887 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
31888
31889
31890 # The names of the tagged configurations supported by this script.
31891 available_tags='CXX F77 FC GO GCJ RC '
31892
31893 # Configured defaults for sys_lib_dlsearch_path munging.
31894 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
31895
31896 # ### BEGIN LIBTOOL CONFIG
31897
31898 # Which release of libtool.m4 was used?
31899 macro_version=$macro_version
31900 macro_revision=$macro_revision
31901
31902 # Assembler program.
31903 AS=$lt_AS
31904
31905 # DLL creation program.
31906 DLLTOOL=$lt_DLLTOOL
31907
31908 # Object dumper program.
31909 OBJDUMP=$lt_OBJDUMP
31910
31911 # Whether or not to build shared libraries.
31912 build_libtool_libs=$enable_shared
31913
31914 # Whether or not to build static libraries.
31915 build_old_libs=$enable_static
31916
31917 # What type of objects to build.
31918 pic_mode=$pic_mode
31919
31920 # Whether or not to optimize for fast installation.
31921 fast_install=$enable_fast_install
31922
31923 # Shared archive member basename,for filename based shared library versioning on AIX.
31924 shared_archive_member_spec=$shared_archive_member_spec
31925
31926 # Shell to use when invoking shell scripts.
31927 SHELL=$lt_SHELL
31928
31929 # An echo program that protects backslashes.
31930 ECHO=$lt_ECHO
31931
31932 # The PATH separator for the build system.
31933 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31934
31935 # The host system.
31936 host_alias=$host_alias
31937 host=$host
31938 host_os=$host_os
31939
31940 # The build system.
31941 build_alias=$build_alias
31942 build=$build
31943 build_os=$build_os
31944
31945 # A sed program that does not truncate output.
31946 SED=$lt_SED
31947
31948 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31949 Xsed="\$SED -e 1s/^X//"
31950
31951 # A grep program that handles long lines.
31952 GREP=$lt_GREP
31953
31954 # An ERE matcher.
31955 EGREP=$lt_EGREP
31956
31957 # A literal string matcher.
31958 FGREP=$lt_FGREP
31959
31960 # A BSD- or MS-compatible name lister.
31961 NM=$lt_NM
31962
31963 # Whether we need soft or hard links.
31964 LN_S=$lt_LN_S
31965
31966 # What is the maximum length of a command?
31967 max_cmd_len=$max_cmd_len
31968
31969 # Object file suffix (normally "o").
31970 objext=$ac_objext
31971
31972 # Executable file suffix (normally "").
31973 exeext=$exeext
31974
31975 # whether the shell understands "unset".
31976 lt_unset=$lt_unset
31977
31978 # turn spaces into newlines.
31979 SP2NL=$lt_lt_SP2NL
31980
31981 # turn newlines into spaces.
31982 NL2SP=$lt_lt_NL2SP
31983
31984 # convert \$build file names to \$host format.
31985 to_host_file_cmd=$lt_cv_to_host_file_cmd
31986
31987 # convert \$build files to toolchain format.
31988 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31989
31990 # A file(cmd) program that detects file types.
31991 FILECMD=$lt_FILECMD
31992
31993 # Method to check whether dependent libraries are shared objects.
31994 deplibs_check_method=$lt_deplibs_check_method
31995
31996 # Command to use when deplibs_check_method = "file_magic".
31997 file_magic_cmd=$lt_file_magic_cmd
31998
31999 # How to find potential files when deplibs_check_method = "file_magic".
32000 file_magic_glob=$lt_file_magic_glob
32001
32002 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32003 want_nocaseglob=$lt_want_nocaseglob
32004
32005 # Command to associate shared and link libraries.
32006 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32007
32008 # The archiver.
32009 AR=$lt_AR
32010
32011 # Flags to create an archive (by configure).
32012 lt_ar_flags=$lt_ar_flags
32013
32014 # Flags to create an archive.
32015 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
32016
32017 # How to feed a file listing to the archiver.
32018 archiver_list_spec=$lt_archiver_list_spec
32019
32020 # A symbol stripping program.
32021 STRIP=$lt_STRIP
32022
32023 # Commands used to install an old-style archive.
32024 RANLIB=$lt_RANLIB
32025 old_postinstall_cmds=$lt_old_postinstall_cmds
32026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32027
32028 # Whether to use a lock for old archive extraction.
32029 lock_old_archive_extraction=$lock_old_archive_extraction
32030
32031 # A C compiler.
32032 LTCC=$lt_CC
32033
32034 # LTCC compiler flags.
32035 LTCFLAGS=$lt_CFLAGS
32036
32037 # Take the output of nm and produce a listing of raw symbols and C names.
32038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32039
32040 # Transform the output of nm in a proper C declaration.
32041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32042
32043 # Transform the output of nm into a list of symbols to manually relocate.
32044 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
32045
32046 # Transform the output of nm in a C name address pair.
32047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32048
32049 # Transform the output of nm in a C name address pair when lib prefix is needed.
32050 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32051
32052 # The name lister interface.
32053 nm_interface=$lt_lt_cv_nm_interface
32054
32055 # Specify filename containing input files for \$NM.
32056 nm_file_list_spec=$lt_nm_file_list_spec
32057
32058 # The root where to search for dependent libraries,and where our libraries should be installed.
32059 lt_sysroot=$lt_sysroot
32060
32061 # Command to truncate a binary pipe.
32062 lt_truncate_bin=$lt_lt_cv_truncate_bin
32063
32064 # The name of the directory that contains temporary libtool files.
32065 objdir=$objdir
32066
32067 # Used to examine libraries when file_magic_cmd begins with "file".
32068 MAGIC_CMD=$MAGIC_CMD
32069
32070 # Must we lock files when doing compilation?
32071 need_locks=$lt_need_locks
32072
32073 # Manifest tool.
32074 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32075
32076 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32077 DSYMUTIL=$lt_DSYMUTIL
32078
32079 # Tool to change global to local symbols on Mac OS X.
32080 NMEDIT=$lt_NMEDIT
32081
32082 # Tool to manipulate fat objects and archives on Mac OS X.
32083 LIPO=$lt_LIPO
32084
32085 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32086 OTOOL=$lt_OTOOL
32087
32088 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32089 OTOOL64=$lt_OTOOL64
32090
32091 # Old archive suffix (normally "a").
32092 libext=$libext
32093
32094 # Shared library suffix (normally ".so").
32095 shrext_cmds=$lt_shrext_cmds
32096
32097 # The commands to extract the exported symbol list from a shared archive.
32098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32099
32100 # Variables whose values should be saved in libtool wrapper scripts and
32101 # restored at link time.
32102 variables_saved_for_relink=$lt_variables_saved_for_relink
32103
32104 # Do we need the "lib" prefix for modules?
32105 need_lib_prefix=$need_lib_prefix
32106
32107 # Do we need a version for libraries?
32108 need_version=$need_version
32109
32110 # Library versioning type.
32111 version_type=$version_type
32112
32113 # Shared library runtime path variable.
32114 runpath_var=$runpath_var
32115
32116 # Shared library path variable.
32117 shlibpath_var=$shlibpath_var
32118
32119 # Is shlibpath searched before the hard-coded library search path?
32120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32121
32122 # Format of library name prefix.
32123 libname_spec=$lt_libname_spec
32124
32125 # List of archive names.  First name is the real one, the rest are links.
32126 # The last name is the one that the linker finds with -lNAME
32127 library_names_spec=$lt_library_names_spec
32128
32129 # The coded name of the library, if different from the real name.
32130 soname_spec=$lt_soname_spec
32131
32132 # Permission mode override for installation of shared libraries.
32133 install_override_mode=$lt_install_override_mode
32134
32135 # Command to use after installation of a shared archive.
32136 postinstall_cmds=$lt_postinstall_cmds
32137
32138 # Command to use after uninstallation of a shared archive.
32139 postuninstall_cmds=$lt_postuninstall_cmds
32140
32141 # Commands used to finish a libtool library installation in a directory.
32142 finish_cmds=$lt_finish_cmds
32143
32144 # As "finish_cmds", except a single script fragment to be evaled but
32145 # not shown.
32146 finish_eval=$lt_finish_eval
32147
32148 # Whether we should hardcode library paths into libraries.
32149 hardcode_into_libs=$hardcode_into_libs
32150
32151 # Compile-time system search path for libraries.
32152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32153
32154 # Detected run-time system search path for libraries.
32155 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
32156
32157 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
32158 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
32159
32160 # Whether dlopen is supported.
32161 dlopen_support=$enable_dlopen
32162
32163 # Whether dlopen of programs is supported.
32164 dlopen_self=$enable_dlopen_self
32165
32166 # Whether dlopen of statically linked programs is supported.
32167 dlopen_self_static=$enable_dlopen_self_static
32168
32169 # Commands to strip libraries.
32170 old_striplib=$lt_old_striplib
32171 striplib=$lt_striplib
32172
32173
32174 # The linker used to build libraries.
32175 LD=$lt_LD
32176
32177 # How to create reloadable object files.
32178 reload_flag=$lt_reload_flag
32179 reload_cmds=$lt_reload_cmds
32180
32181 # Commands used to build an old-style archive.
32182 old_archive_cmds=$lt_old_archive_cmds
32183
32184 # A language specific compiler.
32185 CC=$lt_compiler
32186
32187 # Is the compiler the GNU compiler?
32188 with_gcc=$GCC
32189
32190 # Compiler flag to turn off builtin functions.
32191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32192
32193 # Additional compiler flags for building library objects.
32194 pic_flag=$lt_lt_prog_compiler_pic
32195
32196 # How to pass a linker flag through the compiler.
32197 wl=$lt_lt_prog_compiler_wl
32198
32199 # Compiler flag to prevent dynamic linking.
32200 link_static_flag=$lt_lt_prog_compiler_static
32201
32202 # Does compiler simultaneously support -c and -o options?
32203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32204
32205 # Whether or not to add -lc for building shared libraries.
32206 build_libtool_need_lc=$archive_cmds_need_lc
32207
32208 # Whether or not to disallow shared libs when runtime libs are static.
32209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32210
32211 # Compiler flag to allow reflexive dlopens.
32212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32213
32214 # Compiler flag to generate shared objects directly from archives.
32215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32216
32217 # Whether the compiler copes with passing no objects directly.
32218 compiler_needs_object=$lt_compiler_needs_object
32219
32220 # Create an old-style archive from a shared archive.
32221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32222
32223 # Create a temporary old-style archive to link instead of a shared archive.
32224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32225
32226 # Commands used to build a shared archive.
32227 archive_cmds=$lt_archive_cmds
32228 archive_expsym_cmds=$lt_archive_expsym_cmds
32229
32230 # Commands used to build a loadable module if different from building
32231 # a shared archive.
32232 module_cmds=$lt_module_cmds
32233 module_expsym_cmds=$lt_module_expsym_cmds
32234
32235 # Whether we are building with GNU ld or not.
32236 with_gnu_ld=$lt_with_gnu_ld
32237
32238 # Flag that allows shared libraries with undefined symbols to be built.
32239 allow_undefined_flag=$lt_allow_undefined_flag
32240
32241 # Flag that enforces no undefined symbols.
32242 no_undefined_flag=$lt_no_undefined_flag
32243
32244 # Flag to hardcode \$libdir into a binary during linking.
32245 # This must work even if \$libdir does not exist
32246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32247
32248 # Whether we need a single "-rpath" flag with a separated argument.
32249 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32250
32251 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32252 # DIR into the resulting binary.
32253 hardcode_direct=$hardcode_direct
32254
32255 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32256 # DIR into the resulting binary and the resulting library dependency is
32257 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32258 # library is relocated.
32259 hardcode_direct_absolute=$hardcode_direct_absolute
32260
32261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32262 # into the resulting binary.
32263 hardcode_minus_L=$hardcode_minus_L
32264
32265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32266 # into the resulting binary.
32267 hardcode_shlibpath_var=$hardcode_shlibpath_var
32268
32269 # Set to "yes" if building a shared library automatically hardcodes DIR
32270 # into the library and all subsequent libraries and executables linked
32271 # against it.
32272 hardcode_automatic=$hardcode_automatic
32273
32274 # Set to yes if linker adds runtime paths of dependent libraries
32275 # to runtime path list.
32276 inherit_rpath=$inherit_rpath
32277
32278 # Whether libtool must link a program against all its dependency libraries.
32279 link_all_deplibs=$link_all_deplibs
32280
32281 # Set to "yes" if exported symbols are required.
32282 always_export_symbols=$always_export_symbols
32283
32284 # The commands to list exported symbols.
32285 export_symbols_cmds=$lt_export_symbols_cmds
32286
32287 # Symbols that should not be listed in the preloaded symbols.
32288 exclude_expsyms=$lt_exclude_expsyms
32289
32290 # Symbols that must always be exported.
32291 include_expsyms=$lt_include_expsyms
32292
32293 # Commands necessary for linking programs (against libraries) with templates.
32294 prelink_cmds=$lt_prelink_cmds
32295
32296 # Commands necessary for finishing linking programs.
32297 postlink_cmds=$lt_postlink_cmds
32298
32299 # Specify filename containing input files.
32300 file_list_spec=$lt_file_list_spec
32301
32302 # How to hardcode a shared library path into an executable.
32303 hardcode_action=$hardcode_action
32304
32305 # The directories searched by this compiler when creating a shared library.
32306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32307
32308 # Dependencies to place before and after the objects being linked to
32309 # create a shared library.
32310 predep_objects=$lt_predep_objects
32311 postdep_objects=$lt_postdep_objects
32312 predeps=$lt_predeps
32313 postdeps=$lt_postdeps
32314
32315 # The library search path used internally by the compiler when linking
32316 # a shared library.
32317 compiler_lib_search_path=$lt_compiler_lib_search_path
32318
32319 # ### END LIBTOOL CONFIG
32320
32321 _LT_EOF
32322
32323     cat <<'_LT_EOF' >> "$cfgfile"
32324
32325 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
32326
32327 # func_munge_path_list VARIABLE PATH
32328 # -----------------------------------
32329 # VARIABLE is name of variable containing _space_ separated list of
32330 # directories to be munged by the contents of PATH, which is string
32331 # having a format:
32332 # "DIR[:DIR]:"
32333 #       string "DIR[ DIR]" will be prepended to VARIABLE
32334 # ":DIR[:DIR]"
32335 #       string "DIR[ DIR]" will be appended to VARIABLE
32336 # "DIRP[:DIRP]::[DIRA:]DIRA"
32337 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
32338 #       "DIRA[ DIRA]" will be appended to VARIABLE
32339 # "DIR[:DIR]"
32340 #       VARIABLE will be replaced by "DIR[ DIR]"
32341 func_munge_path_list ()
32342 {
32343     case x$2 in
32344     x)
32345         ;;
32346     *:)
32347         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
32348         ;;
32349     x:*)
32350         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
32351         ;;
32352     *::*)
32353         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
32354         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
32355         ;;
32356     *)
32357         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
32358         ;;
32359     esac
32360 }
32361
32362
32363 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
32364 func_cc_basename ()
32365 {
32366     for cc_temp in $*""; do
32367       case $cc_temp in
32368         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32369         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32370         \-*) ;;
32371         *) break;;
32372       esac
32373     done
32374     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32375 }
32376
32377
32378 # ### END FUNCTIONS SHARED WITH CONFIGURE
32379
32380 _LT_EOF
32381
32382   case $host_os in
32383   aix3*)
32384     cat <<\_LT_EOF >> "$cfgfile"
32385 # AIX sometimes has problems with the GCC collect2 program.  For some
32386 # reason, if we set the COLLECT_NAMES environment variable, the problems
32387 # vanish in a puff of smoke.
32388 if test set != "${COLLECT_NAMES+set}"; then
32389   COLLECT_NAMES=
32390   export COLLECT_NAMES
32391 fi
32392 _LT_EOF
32393     ;;
32394   esac
32395
32396
32397 ltmain=$ac_aux_dir/ltmain.sh
32398
32399
32400   # We use sed instead of cat because bash on DJGPP gets confused if
32401   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32402   # text mode, it properly converts lines to CR/LF.  This bash problem
32403   # is reportedly fixed, but why not run on old versions too?
32404   $SED '$q' "$ltmain" >> "$cfgfile" \
32405      || (rm -f "$cfgfile"; exit 1)
32406
32407    mv -f "$cfgfile" "$ofile" ||
32408     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32409   chmod +x "$ofile"
32410
32411
32412     cat <<_LT_EOF >> "$ofile"
32413
32414 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32415
32416 # The linker used to build libraries.
32417 LD=$lt_LD_CXX
32418
32419 # How to create reloadable object files.
32420 reload_flag=$lt_reload_flag_CXX
32421 reload_cmds=$lt_reload_cmds_CXX
32422
32423 # Commands used to build an old-style archive.
32424 old_archive_cmds=$lt_old_archive_cmds_CXX
32425
32426 # A language specific compiler.
32427 CC=$lt_compiler_CXX
32428
32429 # Is the compiler the GNU compiler?
32430 with_gcc=$GCC_CXX
32431
32432 # Compiler flag to turn off builtin functions.
32433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32434
32435 # Additional compiler flags for building library objects.
32436 pic_flag=$lt_lt_prog_compiler_pic_CXX
32437
32438 # How to pass a linker flag through the compiler.
32439 wl=$lt_lt_prog_compiler_wl_CXX
32440
32441 # Compiler flag to prevent dynamic linking.
32442 link_static_flag=$lt_lt_prog_compiler_static_CXX
32443
32444 # Does compiler simultaneously support -c and -o options?
32445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32446
32447 # Whether or not to add -lc for building shared libraries.
32448 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32449
32450 # Whether or not to disallow shared libs when runtime libs are static.
32451 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32452
32453 # Compiler flag to allow reflexive dlopens.
32454 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32455
32456 # Compiler flag to generate shared objects directly from archives.
32457 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32458
32459 # Whether the compiler copes with passing no objects directly.
32460 compiler_needs_object=$lt_compiler_needs_object_CXX
32461
32462 # Create an old-style archive from a shared archive.
32463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32464
32465 # Create a temporary old-style archive to link instead of a shared archive.
32466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32467
32468 # Commands used to build a shared archive.
32469 archive_cmds=$lt_archive_cmds_CXX
32470 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32471
32472 # Commands used to build a loadable module if different from building
32473 # a shared archive.
32474 module_cmds=$lt_module_cmds_CXX
32475 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32476
32477 # Whether we are building with GNU ld or not.
32478 with_gnu_ld=$lt_with_gnu_ld_CXX
32479
32480 # Flag that allows shared libraries with undefined symbols to be built.
32481 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32482
32483 # Flag that enforces no undefined symbols.
32484 no_undefined_flag=$lt_no_undefined_flag_CXX
32485
32486 # Flag to hardcode \$libdir into a binary during linking.
32487 # This must work even if \$libdir does not exist
32488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32489
32490 # Whether we need a single "-rpath" flag with a separated argument.
32491 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32492
32493 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32494 # DIR into the resulting binary.
32495 hardcode_direct=$hardcode_direct_CXX
32496
32497 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32498 # DIR into the resulting binary and the resulting library dependency is
32499 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32500 # library is relocated.
32501 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32502
32503 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32504 # into the resulting binary.
32505 hardcode_minus_L=$hardcode_minus_L_CXX
32506
32507 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32508 # into the resulting binary.
32509 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32510
32511 # Set to "yes" if building a shared library automatically hardcodes DIR
32512 # into the library and all subsequent libraries and executables linked
32513 # against it.
32514 hardcode_automatic=$hardcode_automatic_CXX
32515
32516 # Set to yes if linker adds runtime paths of dependent libraries
32517 # to runtime path list.
32518 inherit_rpath=$inherit_rpath_CXX
32519
32520 # Whether libtool must link a program against all its dependency libraries.
32521 link_all_deplibs=$link_all_deplibs_CXX
32522
32523 # Set to "yes" if exported symbols are required.
32524 always_export_symbols=$always_export_symbols_CXX
32525
32526 # The commands to list exported symbols.
32527 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32528
32529 # Symbols that should not be listed in the preloaded symbols.
32530 exclude_expsyms=$lt_exclude_expsyms_CXX
32531
32532 # Symbols that must always be exported.
32533 include_expsyms=$lt_include_expsyms_CXX
32534
32535 # Commands necessary for linking programs (against libraries) with templates.
32536 prelink_cmds=$lt_prelink_cmds_CXX
32537
32538 # Commands necessary for finishing linking programs.
32539 postlink_cmds=$lt_postlink_cmds_CXX
32540
32541 # Specify filename containing input files.
32542 file_list_spec=$lt_file_list_spec_CXX
32543
32544 # How to hardcode a shared library path into an executable.
32545 hardcode_action=$hardcode_action_CXX
32546
32547 # The directories searched by this compiler when creating a shared library.
32548 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32549
32550 # Dependencies to place before and after the objects being linked to
32551 # create a shared library.
32552 predep_objects=$lt_predep_objects_CXX
32553 postdep_objects=$lt_postdep_objects_CXX
32554 predeps=$lt_predeps_CXX
32555 postdeps=$lt_postdeps_CXX
32556
32557 # The library search path used internally by the compiler when linking
32558 # a shared library.
32559 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32560
32561 # ### END LIBTOOL TAG CONFIG: CXX
32562 _LT_EOF
32563
32564
32565     cat <<_LT_EOF >> "$ofile"
32566
32567 # ### BEGIN LIBTOOL TAG CONFIG: F77
32568
32569 # The linker used to build libraries.
32570 LD=$lt_LD_F77
32571
32572 # How to create reloadable object files.
32573 reload_flag=$lt_reload_flag_F77
32574 reload_cmds=$lt_reload_cmds_F77
32575
32576 # Commands used to build an old-style archive.
32577 old_archive_cmds=$lt_old_archive_cmds_F77
32578
32579 # A language specific compiler.
32580 CC=$lt_compiler_F77
32581
32582 # Is the compiler the GNU compiler?
32583 with_gcc=$GCC_F77
32584
32585 # Compiler flag to turn off builtin functions.
32586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
32587
32588 # Additional compiler flags for building library objects.
32589 pic_flag=$lt_lt_prog_compiler_pic_F77
32590
32591 # How to pass a linker flag through the compiler.
32592 wl=$lt_lt_prog_compiler_wl_F77
32593
32594 # Compiler flag to prevent dynamic linking.
32595 link_static_flag=$lt_lt_prog_compiler_static_F77
32596
32597 # Does compiler simultaneously support -c and -o options?
32598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
32599
32600 # Whether or not to add -lc for building shared libraries.
32601 build_libtool_need_lc=$archive_cmds_need_lc_F77
32602
32603 # Whether or not to disallow shared libs when runtime libs are static.
32604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
32605
32606 # Compiler flag to allow reflexive dlopens.
32607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
32608
32609 # Compiler flag to generate shared objects directly from archives.
32610 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
32611
32612 # Whether the compiler copes with passing no objects directly.
32613 compiler_needs_object=$lt_compiler_needs_object_F77
32614
32615 # Create an old-style archive from a shared archive.
32616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
32617
32618 # Create a temporary old-style archive to link instead of a shared archive.
32619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
32620
32621 # Commands used to build a shared archive.
32622 archive_cmds=$lt_archive_cmds_F77
32623 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
32624
32625 # Commands used to build a loadable module if different from building
32626 # a shared archive.
32627 module_cmds=$lt_module_cmds_F77
32628 module_expsym_cmds=$lt_module_expsym_cmds_F77
32629
32630 # Whether we are building with GNU ld or not.
32631 with_gnu_ld=$lt_with_gnu_ld_F77
32632
32633 # Flag that allows shared libraries with undefined symbols to be built.
32634 allow_undefined_flag=$lt_allow_undefined_flag_F77
32635
32636 # Flag that enforces no undefined symbols.
32637 no_undefined_flag=$lt_no_undefined_flag_F77
32638
32639 # Flag to hardcode \$libdir into a binary during linking.
32640 # This must work even if \$libdir does not exist
32641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
32642
32643 # Whether we need a single "-rpath" flag with a separated argument.
32644 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
32645
32646 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32647 # DIR into the resulting binary.
32648 hardcode_direct=$hardcode_direct_F77
32649
32650 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32651 # DIR into the resulting binary and the resulting library dependency is
32652 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32653 # library is relocated.
32654 hardcode_direct_absolute=$hardcode_direct_absolute_F77
32655
32656 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32657 # into the resulting binary.
32658 hardcode_minus_L=$hardcode_minus_L_F77
32659
32660 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32661 # into the resulting binary.
32662 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
32663
32664 # Set to "yes" if building a shared library automatically hardcodes DIR
32665 # into the library and all subsequent libraries and executables linked
32666 # against it.
32667 hardcode_automatic=$hardcode_automatic_F77
32668
32669 # Set to yes if linker adds runtime paths of dependent libraries
32670 # to runtime path list.
32671 inherit_rpath=$inherit_rpath_F77
32672
32673 # Whether libtool must link a program against all its dependency libraries.
32674 link_all_deplibs=$link_all_deplibs_F77
32675
32676 # Set to "yes" if exported symbols are required.
32677 always_export_symbols=$always_export_symbols_F77
32678
32679 # The commands to list exported symbols.
32680 export_symbols_cmds=$lt_export_symbols_cmds_F77
32681
32682 # Symbols that should not be listed in the preloaded symbols.
32683 exclude_expsyms=$lt_exclude_expsyms_F77
32684
32685 # Symbols that must always be exported.
32686 include_expsyms=$lt_include_expsyms_F77
32687
32688 # Commands necessary for linking programs (against libraries) with templates.
32689 prelink_cmds=$lt_prelink_cmds_F77
32690
32691 # Commands necessary for finishing linking programs.
32692 postlink_cmds=$lt_postlink_cmds_F77
32693
32694 # Specify filename containing input files.
32695 file_list_spec=$lt_file_list_spec_F77
32696
32697 # How to hardcode a shared library path into an executable.
32698 hardcode_action=$hardcode_action_F77
32699
32700 # The directories searched by this compiler when creating a shared library.
32701 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
32702
32703 # Dependencies to place before and after the objects being linked to
32704 # create a shared library.
32705 predep_objects=$lt_predep_objects_F77
32706 postdep_objects=$lt_postdep_objects_F77
32707 predeps=$lt_predeps_F77
32708 postdeps=$lt_postdeps_F77
32709
32710 # The library search path used internally by the compiler when linking
32711 # a shared library.
32712 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
32713
32714 # ### END LIBTOOL TAG CONFIG: F77
32715 _LT_EOF
32716
32717
32718     cat <<_LT_EOF >> "$ofile"
32719
32720 # ### BEGIN LIBTOOL TAG CONFIG: FC
32721
32722 # The linker used to build libraries.
32723 LD=$lt_LD_FC
32724
32725 # How to create reloadable object files.
32726 reload_flag=$lt_reload_flag_FC
32727 reload_cmds=$lt_reload_cmds_FC
32728
32729 # Commands used to build an old-style archive.
32730 old_archive_cmds=$lt_old_archive_cmds_FC
32731
32732 # A language specific compiler.
32733 CC=$lt_compiler_FC
32734
32735 # Is the compiler the GNU compiler?
32736 with_gcc=$GCC_FC
32737
32738 # Compiler flag to turn off builtin functions.
32739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
32740
32741 # Additional compiler flags for building library objects.
32742 pic_flag=$lt_lt_prog_compiler_pic_FC
32743
32744 # How to pass a linker flag through the compiler.
32745 wl=$lt_lt_prog_compiler_wl_FC
32746
32747 # Compiler flag to prevent dynamic linking.
32748 link_static_flag=$lt_lt_prog_compiler_static_FC
32749
32750 # Does compiler simultaneously support -c and -o options?
32751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
32752
32753 # Whether or not to add -lc for building shared libraries.
32754 build_libtool_need_lc=$archive_cmds_need_lc_FC
32755
32756 # Whether or not to disallow shared libs when runtime libs are static.
32757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
32758
32759 # Compiler flag to allow reflexive dlopens.
32760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
32761
32762 # Compiler flag to generate shared objects directly from archives.
32763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
32764
32765 # Whether the compiler copes with passing no objects directly.
32766 compiler_needs_object=$lt_compiler_needs_object_FC
32767
32768 # Create an old-style archive from a shared archive.
32769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
32770
32771 # Create a temporary old-style archive to link instead of a shared archive.
32772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
32773
32774 # Commands used to build a shared archive.
32775 archive_cmds=$lt_archive_cmds_FC
32776 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
32777
32778 # Commands used to build a loadable module if different from building
32779 # a shared archive.
32780 module_cmds=$lt_module_cmds_FC
32781 module_expsym_cmds=$lt_module_expsym_cmds_FC
32782
32783 # Whether we are building with GNU ld or not.
32784 with_gnu_ld=$lt_with_gnu_ld_FC
32785
32786 # Flag that allows shared libraries with undefined symbols to be built.
32787 allow_undefined_flag=$lt_allow_undefined_flag_FC
32788
32789 # Flag that enforces no undefined symbols.
32790 no_undefined_flag=$lt_no_undefined_flag_FC
32791
32792 # Flag to hardcode \$libdir into a binary during linking.
32793 # This must work even if \$libdir does not exist
32794 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
32795
32796 # Whether we need a single "-rpath" flag with a separated argument.
32797 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
32798
32799 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32800 # DIR into the resulting binary.
32801 hardcode_direct=$hardcode_direct_FC
32802
32803 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32804 # DIR into the resulting binary and the resulting library dependency is
32805 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32806 # library is relocated.
32807 hardcode_direct_absolute=$hardcode_direct_absolute_FC
32808
32809 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32810 # into the resulting binary.
32811 hardcode_minus_L=$hardcode_minus_L_FC
32812
32813 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32814 # into the resulting binary.
32815 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
32816
32817 # Set to "yes" if building a shared library automatically hardcodes DIR
32818 # into the library and all subsequent libraries and executables linked
32819 # against it.
32820 hardcode_automatic=$hardcode_automatic_FC
32821
32822 # Set to yes if linker adds runtime paths of dependent libraries
32823 # to runtime path list.
32824 inherit_rpath=$inherit_rpath_FC
32825
32826 # Whether libtool must link a program against all its dependency libraries.
32827 link_all_deplibs=$link_all_deplibs_FC
32828
32829 # Set to "yes" if exported symbols are required.
32830 always_export_symbols=$always_export_symbols_FC
32831
32832 # The commands to list exported symbols.
32833 export_symbols_cmds=$lt_export_symbols_cmds_FC
32834
32835 # Symbols that should not be listed in the preloaded symbols.
32836 exclude_expsyms=$lt_exclude_expsyms_FC
32837
32838 # Symbols that must always be exported.
32839 include_expsyms=$lt_include_expsyms_FC
32840
32841 # Commands necessary for linking programs (against libraries) with templates.
32842 prelink_cmds=$lt_prelink_cmds_FC
32843
32844 # Commands necessary for finishing linking programs.
32845 postlink_cmds=$lt_postlink_cmds_FC
32846
32847 # Specify filename containing input files.
32848 file_list_spec=$lt_file_list_spec_FC
32849
32850 # How to hardcode a shared library path into an executable.
32851 hardcode_action=$hardcode_action_FC
32852
32853 # The directories searched by this compiler when creating a shared library.
32854 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
32855
32856 # Dependencies to place before and after the objects being linked to
32857 # create a shared library.
32858 predep_objects=$lt_predep_objects_FC
32859 postdep_objects=$lt_postdep_objects_FC
32860 predeps=$lt_predeps_FC
32861 postdeps=$lt_postdeps_FC
32862
32863 # The library search path used internally by the compiler when linking
32864 # a shared library.
32865 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
32866
32867 # ### END LIBTOOL TAG CONFIG: FC
32868 _LT_EOF
32869
32870
32871     cat <<_LT_EOF >> "$ofile"
32872
32873 # ### BEGIN LIBTOOL TAG CONFIG: GO
32874
32875 # The linker used to build libraries.
32876 LD=$lt_LD_GO
32877
32878 # How to create reloadable object files.
32879 reload_flag=$lt_reload_flag_GO
32880 reload_cmds=$lt_reload_cmds_GO
32881
32882 # Commands used to build an old-style archive.
32883 old_archive_cmds=$lt_old_archive_cmds_GO
32884
32885 # A language specific compiler.
32886 CC=$lt_compiler_GO
32887
32888 # Is the compiler the GNU compiler?
32889 with_gcc=$GCC_GO
32890
32891 # Compiler flag to turn off builtin functions.
32892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
32893
32894 # Additional compiler flags for building library objects.
32895 pic_flag=$lt_lt_prog_compiler_pic_GO
32896
32897 # How to pass a linker flag through the compiler.
32898 wl=$lt_lt_prog_compiler_wl_GO
32899
32900 # Compiler flag to prevent dynamic linking.
32901 link_static_flag=$lt_lt_prog_compiler_static_GO
32902
32903 # Does compiler simultaneously support -c and -o options?
32904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
32905
32906 # Whether or not to add -lc for building shared libraries.
32907 build_libtool_need_lc=$archive_cmds_need_lc_GO
32908
32909 # Whether or not to disallow shared libs when runtime libs are static.
32910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
32911
32912 # Compiler flag to allow reflexive dlopens.
32913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
32914
32915 # Compiler flag to generate shared objects directly from archives.
32916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
32917
32918 # Whether the compiler copes with passing no objects directly.
32919 compiler_needs_object=$lt_compiler_needs_object_GO
32920
32921 # Create an old-style archive from a shared archive.
32922 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
32923
32924 # Create a temporary old-style archive to link instead of a shared archive.
32925 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
32926
32927 # Commands used to build a shared archive.
32928 archive_cmds=$lt_archive_cmds_GO
32929 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
32930
32931 # Commands used to build a loadable module if different from building
32932 # a shared archive.
32933 module_cmds=$lt_module_cmds_GO
32934 module_expsym_cmds=$lt_module_expsym_cmds_GO
32935
32936 # Whether we are building with GNU ld or not.
32937 with_gnu_ld=$lt_with_gnu_ld_GO
32938
32939 # Flag that allows shared libraries with undefined symbols to be built.
32940 allow_undefined_flag=$lt_allow_undefined_flag_GO
32941
32942 # Flag that enforces no undefined symbols.
32943 no_undefined_flag=$lt_no_undefined_flag_GO
32944
32945 # Flag to hardcode \$libdir into a binary during linking.
32946 # This must work even if \$libdir does not exist
32947 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
32948
32949 # Whether we need a single "-rpath" flag with a separated argument.
32950 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
32951
32952 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32953 # DIR into the resulting binary.
32954 hardcode_direct=$hardcode_direct_GO
32955
32956 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32957 # DIR into the resulting binary and the resulting library dependency is
32958 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32959 # library is relocated.
32960 hardcode_direct_absolute=$hardcode_direct_absolute_GO
32961
32962 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32963 # into the resulting binary.
32964 hardcode_minus_L=$hardcode_minus_L_GO
32965
32966 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32967 # into the resulting binary.
32968 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
32969
32970 # Set to "yes" if building a shared library automatically hardcodes DIR
32971 # into the library and all subsequent libraries and executables linked
32972 # against it.
32973 hardcode_automatic=$hardcode_automatic_GO
32974
32975 # Set to yes if linker adds runtime paths of dependent libraries
32976 # to runtime path list.
32977 inherit_rpath=$inherit_rpath_GO
32978
32979 # Whether libtool must link a program against all its dependency libraries.
32980 link_all_deplibs=$link_all_deplibs_GO
32981
32982 # Set to "yes" if exported symbols are required.
32983 always_export_symbols=$always_export_symbols_GO
32984
32985 # The commands to list exported symbols.
32986 export_symbols_cmds=$lt_export_symbols_cmds_GO
32987
32988 # Symbols that should not be listed in the preloaded symbols.
32989 exclude_expsyms=$lt_exclude_expsyms_GO
32990
32991 # Symbols that must always be exported.
32992 include_expsyms=$lt_include_expsyms_GO
32993
32994 # Commands necessary for linking programs (against libraries) with templates.
32995 prelink_cmds=$lt_prelink_cmds_GO
32996
32997 # Commands necessary for finishing linking programs.
32998 postlink_cmds=$lt_postlink_cmds_GO
32999
33000 # Specify filename containing input files.
33001 file_list_spec=$lt_file_list_spec_GO
33002
33003 # How to hardcode a shared library path into an executable.
33004 hardcode_action=$hardcode_action_GO
33005
33006 # The directories searched by this compiler when creating a shared library.
33007 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GO
33008
33009 # Dependencies to place before and after the objects being linked to
33010 # create a shared library.
33011 predep_objects=$lt_predep_objects_GO
33012 postdep_objects=$lt_postdep_objects_GO
33013 predeps=$lt_predeps_GO
33014 postdeps=$lt_postdeps_GO
33015
33016 # The library search path used internally by the compiler when linking
33017 # a shared library.
33018 compiler_lib_search_path=$lt_compiler_lib_search_path_GO
33019
33020 # ### END LIBTOOL TAG CONFIG: GO
33021 _LT_EOF
33022
33023
33024     cat <<_LT_EOF >> "$ofile"
33025
33026 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
33027
33028 # The linker used to build libraries.
33029 LD=$lt_LD_GCJ
33030
33031 # How to create reloadable object files.
33032 reload_flag=$lt_reload_flag_GCJ
33033 reload_cmds=$lt_reload_cmds_GCJ
33034
33035 # Commands used to build an old-style archive.
33036 old_archive_cmds=$lt_old_archive_cmds_GCJ
33037
33038 # A language specific compiler.
33039 CC=$lt_compiler_GCJ
33040
33041 # Is the compiler the GNU compiler?
33042 with_gcc=$GCC_GCJ
33043
33044 # Compiler flag to turn off builtin functions.
33045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
33046
33047 # Additional compiler flags for building library objects.
33048 pic_flag=$lt_lt_prog_compiler_pic_GCJ
33049
33050 # How to pass a linker flag through the compiler.
33051 wl=$lt_lt_prog_compiler_wl_GCJ
33052
33053 # Compiler flag to prevent dynamic linking.
33054 link_static_flag=$lt_lt_prog_compiler_static_GCJ
33055
33056 # Does compiler simultaneously support -c and -o options?
33057 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
33058
33059 # Whether or not to add -lc for building shared libraries.
33060 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
33061
33062 # Whether or not to disallow shared libs when runtime libs are static.
33063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
33064
33065 # Compiler flag to allow reflexive dlopens.
33066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
33067
33068 # Compiler flag to generate shared objects directly from archives.
33069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
33070
33071 # Whether the compiler copes with passing no objects directly.
33072 compiler_needs_object=$lt_compiler_needs_object_GCJ
33073
33074 # Create an old-style archive from a shared archive.
33075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
33076
33077 # Create a temporary old-style archive to link instead of a shared archive.
33078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
33079
33080 # Commands used to build a shared archive.
33081 archive_cmds=$lt_archive_cmds_GCJ
33082 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
33083
33084 # Commands used to build a loadable module if different from building
33085 # a shared archive.
33086 module_cmds=$lt_module_cmds_GCJ
33087 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
33088
33089 # Whether we are building with GNU ld or not.
33090 with_gnu_ld=$lt_with_gnu_ld_GCJ
33091
33092 # Flag that allows shared libraries with undefined symbols to be built.
33093 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
33094
33095 # Flag that enforces no undefined symbols.
33096 no_undefined_flag=$lt_no_undefined_flag_GCJ
33097
33098 # Flag to hardcode \$libdir into a binary during linking.
33099 # This must work even if \$libdir does not exist
33100 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
33101
33102 # Whether we need a single "-rpath" flag with a separated argument.
33103 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
33104
33105 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33106 # DIR into the resulting binary.
33107 hardcode_direct=$hardcode_direct_GCJ
33108
33109 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33110 # DIR into the resulting binary and the resulting library dependency is
33111 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
33112 # library is relocated.
33113 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
33114
33115 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33116 # into the resulting binary.
33117 hardcode_minus_L=$hardcode_minus_L_GCJ
33118
33119 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33120 # into the resulting binary.
33121 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
33122
33123 # Set to "yes" if building a shared library automatically hardcodes DIR
33124 # into the library and all subsequent libraries and executables linked
33125 # against it.
33126 hardcode_automatic=$hardcode_automatic_GCJ
33127
33128 # Set to yes if linker adds runtime paths of dependent libraries
33129 # to runtime path list.
33130 inherit_rpath=$inherit_rpath_GCJ
33131
33132 # Whether libtool must link a program against all its dependency libraries.
33133 link_all_deplibs=$link_all_deplibs_GCJ
33134
33135 # Set to "yes" if exported symbols are required.
33136 always_export_symbols=$always_export_symbols_GCJ
33137
33138 # The commands to list exported symbols.
33139 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
33140
33141 # Symbols that should not be listed in the preloaded symbols.
33142 exclude_expsyms=$lt_exclude_expsyms_GCJ
33143
33144 # Symbols that must always be exported.
33145 include_expsyms=$lt_include_expsyms_GCJ
33146
33147 # Commands necessary for linking programs (against libraries) with templates.
33148 prelink_cmds=$lt_prelink_cmds_GCJ
33149
33150 # Commands necessary for finishing linking programs.
33151 postlink_cmds=$lt_postlink_cmds_GCJ
33152
33153 # Specify filename containing input files.
33154 file_list_spec=$lt_file_list_spec_GCJ
33155
33156 # How to hardcode a shared library path into an executable.
33157 hardcode_action=$hardcode_action_GCJ
33158
33159 # The directories searched by this compiler when creating a shared library.
33160 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
33161
33162 # Dependencies to place before and after the objects being linked to
33163 # create a shared library.
33164 predep_objects=$lt_predep_objects_GCJ
33165 postdep_objects=$lt_postdep_objects_GCJ
33166 predeps=$lt_predeps_GCJ
33167 postdeps=$lt_postdeps_GCJ
33168
33169 # The library search path used internally by the compiler when linking
33170 # a shared library.
33171 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
33172
33173 # ### END LIBTOOL TAG CONFIG: GCJ
33174 _LT_EOF
33175
33176
33177     cat <<_LT_EOF >> "$ofile"
33178
33179 # ### BEGIN LIBTOOL TAG CONFIG: RC
33180
33181 # The linker used to build libraries.
33182 LD=$lt_LD_RC
33183
33184 # How to create reloadable object files.
33185 reload_flag=$lt_reload_flag_RC
33186 reload_cmds=$lt_reload_cmds_RC
33187
33188 # Commands used to build an old-style archive.
33189 old_archive_cmds=$lt_old_archive_cmds_RC
33190
33191 # A language specific compiler.
33192 CC=$lt_compiler_RC
33193
33194 # Is the compiler the GNU compiler?
33195 with_gcc=$GCC_RC
33196
33197 # Compiler flag to turn off builtin functions.
33198 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
33199
33200 # Additional compiler flags for building library objects.
33201 pic_flag=$lt_lt_prog_compiler_pic_RC
33202
33203 # How to pass a linker flag through the compiler.
33204 wl=$lt_lt_prog_compiler_wl_RC
33205
33206 # Compiler flag to prevent dynamic linking.
33207 link_static_flag=$lt_lt_prog_compiler_static_RC
33208
33209 # Does compiler simultaneously support -c and -o options?
33210 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
33211
33212 # Whether or not to add -lc for building shared libraries.
33213 build_libtool_need_lc=$archive_cmds_need_lc_RC
33214
33215 # Whether or not to disallow shared libs when runtime libs are static.
33216 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
33217
33218 # Compiler flag to allow reflexive dlopens.
33219 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
33220
33221 # Compiler flag to generate shared objects directly from archives.
33222 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
33223
33224 # Whether the compiler copes with passing no objects directly.
33225 compiler_needs_object=$lt_compiler_needs_object_RC
33226
33227 # Create an old-style archive from a shared archive.
33228 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
33229
33230 # Create a temporary old-style archive to link instead of a shared archive.
33231 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
33232
33233 # Commands used to build a shared archive.
33234 archive_cmds=$lt_archive_cmds_RC
33235 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
33236
33237 # Commands used to build a loadable module if different from building
33238 # a shared archive.
33239 module_cmds=$lt_module_cmds_RC
33240 module_expsym_cmds=$lt_module_expsym_cmds_RC
33241
33242 # Whether we are building with GNU ld or not.
33243 with_gnu_ld=$lt_with_gnu_ld_RC
33244
33245 # Flag that allows shared libraries with undefined symbols to be built.
33246 allow_undefined_flag=$lt_allow_undefined_flag_RC
33247
33248 # Flag that enforces no undefined symbols.
33249 no_undefined_flag=$lt_no_undefined_flag_RC
33250
33251 # Flag to hardcode \$libdir into a binary during linking.
33252 # This must work even if \$libdir does not exist
33253 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
33254
33255 # Whether we need a single "-rpath" flag with a separated argument.
33256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
33257
33258 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33259 # DIR into the resulting binary.
33260 hardcode_direct=$hardcode_direct_RC
33261
33262 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33263 # DIR into the resulting binary and the resulting library dependency is
33264 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
33265 # library is relocated.
33266 hardcode_direct_absolute=$hardcode_direct_absolute_RC
33267
33268 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33269 # into the resulting binary.
33270 hardcode_minus_L=$hardcode_minus_L_RC
33271
33272 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33273 # into the resulting binary.
33274 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
33275
33276 # Set to "yes" if building a shared library automatically hardcodes DIR
33277 # into the library and all subsequent libraries and executables linked
33278 # against it.
33279 hardcode_automatic=$hardcode_automatic_RC
33280
33281 # Set to yes if linker adds runtime paths of dependent libraries
33282 # to runtime path list.
33283 inherit_rpath=$inherit_rpath_RC
33284
33285 # Whether libtool must link a program against all its dependency libraries.
33286 link_all_deplibs=$link_all_deplibs_RC
33287
33288 # Set to "yes" if exported symbols are required.
33289 always_export_symbols=$always_export_symbols_RC
33290
33291 # The commands to list exported symbols.
33292 export_symbols_cmds=$lt_export_symbols_cmds_RC
33293
33294 # Symbols that should not be listed in the preloaded symbols.
33295 exclude_expsyms=$lt_exclude_expsyms_RC
33296
33297 # Symbols that must always be exported.
33298 include_expsyms=$lt_include_expsyms_RC
33299
33300 # Commands necessary for linking programs (against libraries) with templates.
33301 prelink_cmds=$lt_prelink_cmds_RC
33302
33303 # Commands necessary for finishing linking programs.
33304 postlink_cmds=$lt_postlink_cmds_RC
33305
33306 # Specify filename containing input files.
33307 file_list_spec=$lt_file_list_spec_RC
33308
33309 # How to hardcode a shared library path into an executable.
33310 hardcode_action=$hardcode_action_RC
33311
33312 # The directories searched by this compiler when creating a shared library.
33313 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
33314
33315 # Dependencies to place before and after the objects being linked to
33316 # create a shared library.
33317 predep_objects=$lt_predep_objects_RC
33318 postdep_objects=$lt_postdep_objects_RC
33319 predeps=$lt_predeps_RC
33320 postdeps=$lt_postdeps_RC
33321
33322 # The library search path used internally by the compiler when linking
33323 # a shared library.
33324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
33325
33326 # ### END LIBTOOL TAG CONFIG: RC
33327 _LT_EOF
33328
33329  ;;
33330
33331   esac
33332 done # for ac_tag
33333
33334
33335 as_fn_exit 0
33336 _ACEOF
33337 ac_clean_files=$ac_clean_files_save
33338
33339 test $ac_write_fail = 0 ||
33340   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33341
33342
33343 # configure is writing to config.log, and then calls config.status.
33344 # config.status does its own redirection, appending to config.log.
33345 # Unfortunately, on DOS this fails, as config.log is still kept open
33346 # by configure, so config.status won't be able to write to it; its
33347 # output is simply discarded.  So we exec the FD to /dev/null,
33348 # effectively closing config.log, so it can be properly (re)opened and
33349 # appended to by config.status.  When coming back to configure, we
33350 # need to make the FD available again.
33351 if test "$no_create" != yes; then
33352   ac_cs_success=:
33353   ac_config_status_args=
33354   test "$silent" = yes &&
33355     ac_config_status_args="$ac_config_status_args --quiet"
33356   exec 5>/dev/null
33357   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33358   exec 5>>config.log
33359   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33360   # would make configure fail if this is the last instruction.
33361   $ac_cs_success || as_fn_exit 1
33362 fi
33363 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33364   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33365 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33366 fi
33367