Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / fcdemo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for fcdemo 1.0.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='fcdemo'
572 PACKAGE_TARNAME='fcdemo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='fcdemo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="foof.f90"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 LIBTOOL_DEPS
620 CPP
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 MANIFEST_TOOL
627 RANLIB
628 ac_ct_AR
629 AR
630 DLLTOOL
631 OBJDUMP
632 LN_S
633 NM
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LD
637 FGREP
638 EGREP
639 GREP
640 SED
641 host_os
642 host_vendor
643 host_cpu
644 host
645 build_os
646 build_vendor
647 build_cpu
648 build
649 LIBTOOL
650 FCFLAGS_f90
651 FCLIBS
652 ac_ct_FC
653 FCFLAGS
654 FC
655 am__fastdepCC_FALSE
656 am__fastdepCC_TRUE
657 CCDEPMODE
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
676 AWK
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 with_dist
736 enable_dependency_tracking
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 with_gnu_ld
742 with_sysroot
743 enable_libtool_lock
744 '
745       ac_precious_vars='build_alias
746 host_alias
747 target_alias
748 CC
749 CFLAGS
750 LDFLAGS
751 LIBS
752 CPPFLAGS
753 FC
754 FCFLAGS
755 CPP'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
805
806 ac_prev=
807 ac_dashdash=
808 for ac_option
809 do
810   # If the previous option needs an argument, assign it.
811   if test -n "$ac_prev"; then
812     eval $ac_prev=\$ac_option
813     ac_prev=
814     continue
815   fi
816
817   case $ac_option in
818   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819   *=)   ac_optarg= ;;
820   *)    ac_optarg=yes ;;
821   esac
822
823   # Accept the important Cygnus configure options, so we can diagnose typos.
824
825   case $ac_dashdash$ac_option in
826   --)
827     ac_dashdash=yes ;;
828
829   -bindir | --bindir | --bindi | --bind | --bin | --bi)
830     ac_prev=bindir ;;
831   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832     bindir=$ac_optarg ;;
833
834   -build | --build | --buil | --bui | --bu)
835     ac_prev=build_alias ;;
836   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837     build_alias=$ac_optarg ;;
838
839   -cache-file | --cache-file | --cache-fil | --cache-fi \
840   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841     ac_prev=cache_file ;;
842   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844     cache_file=$ac_optarg ;;
845
846   --config-cache | -C)
847     cache_file=config.cache ;;
848
849   -datadir | --datadir | --datadi | --datad)
850     ac_prev=datadir ;;
851   -datadir=* | --datadir=* | --datadi=* | --datad=*)
852     datadir=$ac_optarg ;;
853
854   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855   | --dataroo | --dataro | --datar)
856     ac_prev=datarootdir ;;
857   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859     datarootdir=$ac_optarg ;;
860
861   -disable-* | --disable-*)
862     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863     # Reject names that are not valid shell variable names.
864     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865       as_fn_error $? "invalid feature name: $ac_useropt"
866     ac_useropt_orig=$ac_useropt
867     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868     case $ac_user_opts in
869       *"
870 "enable_$ac_useropt"
871 "*) ;;
872       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873          ac_unrecognized_sep=', ';;
874     esac
875     eval enable_$ac_useropt=no ;;
876
877   -docdir | --docdir | --docdi | --doc | --do)
878     ac_prev=docdir ;;
879   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880     docdir=$ac_optarg ;;
881
882   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883     ac_prev=dvidir ;;
884   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885     dvidir=$ac_optarg ;;
886
887   -enable-* | --enable-*)
888     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889     # Reject names that are not valid shell variable names.
890     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891       as_fn_error $? "invalid feature name: $ac_useropt"
892     ac_useropt_orig=$ac_useropt
893     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894     case $ac_user_opts in
895       *"
896 "enable_$ac_useropt"
897 "*) ;;
898       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899          ac_unrecognized_sep=', ';;
900     esac
901     eval enable_$ac_useropt=\$ac_optarg ;;
902
903   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905   | --exec | --exe | --ex)
906     ac_prev=exec_prefix ;;
907   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909   | --exec=* | --exe=* | --ex=*)
910     exec_prefix=$ac_optarg ;;
911
912   -gas | --gas | --ga | --g)
913     # Obsolete; use --with-gas.
914     with_gas=yes ;;
915
916   -help | --help | --hel | --he | -h)
917     ac_init_help=long ;;
918   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919     ac_init_help=recursive ;;
920   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921     ac_init_help=short ;;
922
923   -host | --host | --hos | --ho)
924     ac_prev=host_alias ;;
925   -host=* | --host=* | --hos=* | --ho=*)
926     host_alias=$ac_optarg ;;
927
928   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929     ac_prev=htmldir ;;
930   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931   | --ht=*)
932     htmldir=$ac_optarg ;;
933
934   -includedir | --includedir | --includedi | --included | --include \
935   | --includ | --inclu | --incl | --inc)
936     ac_prev=includedir ;;
937   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938   | --includ=* | --inclu=* | --incl=* | --inc=*)
939     includedir=$ac_optarg ;;
940
941   -infodir | --infodir | --infodi | --infod | --info | --inf)
942     ac_prev=infodir ;;
943   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944     infodir=$ac_optarg ;;
945
946   -libdir | --libdir | --libdi | --libd)
947     ac_prev=libdir ;;
948   -libdir=* | --libdir=* | --libdi=* | --libd=*)
949     libdir=$ac_optarg ;;
950
951   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952   | --libexe | --libex | --libe)
953     ac_prev=libexecdir ;;
954   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955   | --libexe=* | --libex=* | --libe=*)
956     libexecdir=$ac_optarg ;;
957
958   -localedir | --localedir | --localedi | --localed | --locale)
959     ac_prev=localedir ;;
960   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961     localedir=$ac_optarg ;;
962
963   -localstatedir | --localstatedir | --localstatedi | --localstated \
964   | --localstate | --localstat | --localsta | --localst | --locals)
965     ac_prev=localstatedir ;;
966   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968     localstatedir=$ac_optarg ;;
969
970   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971     ac_prev=mandir ;;
972   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973     mandir=$ac_optarg ;;
974
975   -nfp | --nfp | --nf)
976     # Obsolete; use --without-fp.
977     with_fp=no ;;
978
979   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980   | --no-cr | --no-c | -n)
981     no_create=yes ;;
982
983   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985     no_recursion=yes ;;
986
987   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989   | --oldin | --oldi | --old | --ol | --o)
990     ac_prev=oldincludedir ;;
991   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994     oldincludedir=$ac_optarg ;;
995
996   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997     ac_prev=prefix ;;
998   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999     prefix=$ac_optarg ;;
1000
1001   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002   | --program-pre | --program-pr | --program-p)
1003     ac_prev=program_prefix ;;
1004   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006     program_prefix=$ac_optarg ;;
1007
1008   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009   | --program-suf | --program-su | --program-s)
1010     ac_prev=program_suffix ;;
1011   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013     program_suffix=$ac_optarg ;;
1014
1015   -program-transform-name | --program-transform-name \
1016   | --program-transform-nam | --program-transform-na \
1017   | --program-transform-n | --program-transform- \
1018   | --program-transform | --program-transfor \
1019   | --program-transfo | --program-transf \
1020   | --program-trans | --program-tran \
1021   | --progr-tra | --program-tr | --program-t)
1022     ac_prev=program_transform_name ;;
1023   -program-transform-name=* | --program-transform-name=* \
1024   | --program-transform-nam=* | --program-transform-na=* \
1025   | --program-transform-n=* | --program-transform-=* \
1026   | --program-transform=* | --program-transfor=* \
1027   | --program-transfo=* | --program-transf=* \
1028   | --program-trans=* | --program-tran=* \
1029   | --progr-tra=* | --program-tr=* | --program-t=*)
1030     program_transform_name=$ac_optarg ;;
1031
1032   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033     ac_prev=pdfdir ;;
1034   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035     pdfdir=$ac_optarg ;;
1036
1037   -psdir | --psdir | --psdi | --psd | --ps)
1038     ac_prev=psdir ;;
1039   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040     psdir=$ac_optarg ;;
1041
1042   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043   | -silent | --silent | --silen | --sile | --sil)
1044     silent=yes ;;
1045
1046   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047     ac_prev=sbindir ;;
1048   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049   | --sbi=* | --sb=*)
1050     sbindir=$ac_optarg ;;
1051
1052   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054   | --sharedst | --shareds | --shared | --share | --shar \
1055   | --sha | --sh)
1056     ac_prev=sharedstatedir ;;
1057   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060   | --sha=* | --sh=*)
1061     sharedstatedir=$ac_optarg ;;
1062
1063   -site | --site | --sit)
1064     ac_prev=site ;;
1065   -site=* | --site=* | --sit=*)
1066     site=$ac_optarg ;;
1067
1068   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069     ac_prev=srcdir ;;
1070   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071     srcdir=$ac_optarg ;;
1072
1073   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074   | --syscon | --sysco | --sysc | --sys | --sy)
1075     ac_prev=sysconfdir ;;
1076   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078     sysconfdir=$ac_optarg ;;
1079
1080   -target | --target | --targe | --targ | --tar | --ta | --t)
1081     ac_prev=target_alias ;;
1082   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083     target_alias=$ac_optarg ;;
1084
1085   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086     verbose=yes ;;
1087
1088   -version | --version | --versio | --versi | --vers | -V)
1089     ac_init_version=: ;;
1090
1091   -with-* | --with-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       as_fn_error $? "invalid package name: $ac_useropt"
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval with_$ac_useropt=\$ac_optarg ;;
1106
1107   -without-* | --without-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error $? "invalid package name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=no ;;
1122
1123   --x)
1124     # Obsolete; use --with-x.
1125     with_x=yes ;;
1126
1127   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128   | --x-incl | --x-inc | --x-in | --x-i)
1129     ac_prev=x_includes ;;
1130   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132     x_includes=$ac_optarg ;;
1133
1134   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136     ac_prev=x_libraries ;;
1137   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139     x_libraries=$ac_optarg ;;
1140
1141   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1143     ;;
1144
1145   *=*)
1146     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147     # Reject names that are not valid shell variable names.
1148     case $ac_envvar in #(
1149       '' | [0-9]* | *[!_$as_cr_alnum]* )
1150       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151     esac
1152     eval $ac_envvar=\$ac_optarg
1153     export $ac_envvar ;;
1154
1155   *)
1156     # FIXME: should be removed in autoconf 3.0.
1157     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161     ;;
1162
1163   esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168   as_fn_error $? "missing argument to $ac_option"
1169 fi
1170
1171 if test -n "$ac_unrecognized_opts"; then
1172   case $enable_option_checking in
1173     no) ;;
1174     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176   esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   # Remove trailing slashes.
1187   case $ac_val in
1188     */ )
1189       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190       eval $ac_var=\$ac_val;;
1191   esac
1192   # Be sure to have absolute directory names.
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209   if test "x$build_alias" = x; then
1210     cross_compiling=maybe
1211     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212     If a cross compiler is detected then cross compile mode will be used" >&2
1213   elif test "x$build_alias" != "x$host_alias"; then
1214     cross_compiling=yes
1215   fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227   as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229   as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$as_myself" : 'X\(//\)[^/]' \| \
1239          X"$as_myself" : 'X\(//\)$' \| \
1240          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 fi
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273         pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276   srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_env_${ac_var}_value=\$${ac_var}
1287   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295   # Omit some internal or obsolete options to make the list less imposing.
1296   # This message is too long to be a string in the A/UX 3.1 sh.
1297   cat <<_ACEOF
1298 \`configure' configures fcdemo 1.0 to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308   -h, --help              display this help and exit
1309       --help=short        display options specific to this package
1310       --help=recursive    display the short help of all the included packages
1311   -V, --version           display version information and exit
1312   -q, --quiet, --silent   do not print \`checking ...' messages
1313       --cache-file=FILE   cache test results in FILE [disabled]
1314   -C, --config-cache      alias for \`--cache-file=config.cache'
1315   -n, --no-create         do not create output files
1316       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319   --prefix=PREFIX         install architecture-independent files in PREFIX
1320                           [$ac_default_prefix]
1321   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                           [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332   --bindir=DIR            user executables [EPREFIX/bin]
1333   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334   --libexecdir=DIR        program executables [EPREFIX/libexec]
1335   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338   --libdir=DIR            object code libraries [EPREFIX/lib]
1339   --includedir=DIR        C header files [PREFIX/include]
1340   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343   --infodir=DIR           info documentation [DATAROOTDIR/info]
1344   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345   --mandir=DIR            man documentation [DATAROOTDIR/man]
1346   --docdir=DIR            documentation root [DATAROOTDIR/doc/fcdemo]
1347   --htmldir=DIR           html documentation [DOCDIR]
1348   --dvidir=DIR            dvi documentation [DOCDIR]
1349   --pdfdir=DIR            pdf documentation [DOCDIR]
1350   --psdir=DIR             ps documentation [DOCDIR]
1351 _ACEOF
1352
1353   cat <<\_ACEOF
1354
1355 Program names:
1356   --program-prefix=PREFIX            prepend PREFIX to installed program names
1357   --program-suffix=SUFFIX            append SUFFIX to installed program names
1358   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360 System types:
1361   --build=BUILD     configure for building on BUILD [guessed]
1362   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363 _ACEOF
1364 fi
1365
1366 if test -n "$ac_init_help"; then
1367   case $ac_init_help in
1368      short | recursive ) echo "Configuration of fcdemo 1.0:";;
1369    esac
1370   cat <<\_ACEOF
1371
1372 Optional Features:
1373   --disable-option-checking  ignore unrecognized --enable/--with options
1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376   --disable-dependency-tracking  speeds up one-time build
1377   --enable-dependency-tracking   do not reject slow dependency extractors
1378   --enable-shared[=PKGS]  build shared libraries [default=yes]
1379   --enable-static[=PKGS]  build static libraries [default=yes]
1380   --enable-fast-install[=PKGS]
1381                           optimize for fast installation [default=yes]
1382   --disable-libtool-lock  avoid locking (might break parallel builds)
1383
1384 Optional Packages:
1385   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1386   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1387   --with-dist             ignore errors not affecting `make dist'
1388   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1389                           both]
1390   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1391   --with-sysroot=DIR Search for dependent libraries within DIR
1392                         (or the compiler's sysroot if not specified).
1393
1394 Some influential environment variables:
1395   CC          C compiler command
1396   CFLAGS      C compiler flags
1397   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398               nonstandard directory <lib dir>
1399   LIBS        libraries to pass to the linker, e.g. -l<library>
1400   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401               you have headers in a nonstandard directory <include dir>
1402   FC          Fortran compiler command
1403   FCFLAGS     Fortran compiler flags
1404   CPP         C preprocessor
1405
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1408
1409 Report bugs to <bug-libtool@gnu.org>.
1410 _ACEOF
1411 ac_status=$?
1412 fi
1413
1414 if test "$ac_init_help" = "recursive"; then
1415   # If there are subdirs, report their specific --help.
1416   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417     test -d "$ac_dir" ||
1418       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419       continue
1420     ac_builddir=.
1421
1422 case "$ac_dir" in
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *)
1425   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1426   # A ".." for each directory in $ac_dir_suffix.
1427   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1428   case $ac_top_builddir_sub in
1429   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431   esac ;;
1432 esac
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1437
1438 case $srcdir in
1439   .)  # We are building in place.
1440     ac_srcdir=.
1441     ac_top_srcdir=$ac_top_builddir_sub
1442     ac_abs_top_srcdir=$ac_pwd ;;
1443   [\\/]* | ?:[\\/]* )  # Absolute name.
1444     ac_srcdir=$srcdir$ac_dir_suffix;
1445     ac_top_srcdir=$srcdir
1446     ac_abs_top_srcdir=$srcdir ;;
1447   *) # Relative name.
1448     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449     ac_top_srcdir=$ac_top_build_prefix$srcdir
1450     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 esac
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453
1454     cd "$ac_dir" || { ac_status=$?; continue; }
1455     # Check for guested configure.
1456     if test -f "$ac_srcdir/configure.gnu"; then
1457       echo &&
1458       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459     elif test -f "$ac_srcdir/configure"; then
1460       echo &&
1461       $SHELL "$ac_srcdir/configure" --help=recursive
1462     else
1463       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464     fi || ac_status=$?
1465     cd "$ac_pwd" || { ac_status=$?; break; }
1466   done
1467 fi
1468
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1471   cat <<\_ACEOF
1472 fcdemo configure 1.0
1473 generated by GNU Autoconf 2.68
1474
1475 Copyright (C) 2010 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1478 _ACEOF
1479   exit
1480 fi
1481
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1485
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
1490 {
1491   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492   rm -f conftest.$ac_objext
1493   if { { ac_try="$ac_compile"
1494 case "(($ac_try" in
1495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496   *) ac_try_echo=$ac_try;;
1497 esac
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500   (eval "$ac_compile") 2>conftest.err
1501   ac_status=$?
1502   if test -s conftest.err; then
1503     grep -v '^ *+' conftest.err >conftest.er1
1504     cat conftest.er1 >&5
1505     mv -f conftest.er1 conftest.err
1506   fi
1507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508   test $ac_status = 0; } && {
1509          test -z "$ac_c_werror_flag" ||
1510          test ! -s conftest.err
1511        } && test -s conftest.$ac_objext; then :
1512   ac_retval=0
1513 else
1514   $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1516
1517         ac_retval=1
1518 fi
1519   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520   as_fn_set_status $ac_retval
1521
1522 } # ac_fn_c_try_compile
1523
1524 # ac_fn_fc_try_compile LINENO
1525 # ---------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_fc_try_compile ()
1528 {
1529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530   rm -f conftest.$ac_objext
1531   if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534   *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538   (eval "$ac_compile") 2>conftest.err
1539   ac_status=$?
1540   if test -s conftest.err; then
1541     grep -v '^ *+' conftest.err >conftest.er1
1542     cat conftest.er1 >&5
1543     mv -f conftest.er1 conftest.err
1544   fi
1545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546   test $ac_status = 0; } && {
1547          test -z "$ac_fc_werror_flag" ||
1548          test ! -s conftest.err
1549        } && test -s conftest.$ac_objext; then :
1550   ac_retval=0
1551 else
1552   $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555         ac_retval=1
1556 fi
1557   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558   as_fn_set_status $ac_retval
1559
1560 } # ac_fn_fc_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568   rm -f conftest.$ac_objext conftest$ac_exeext
1569   if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572   *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576   (eval "$ac_link") 2>conftest.err
1577   ac_status=$?
1578   if test -s conftest.err; then
1579     grep -v '^ *+' conftest.err >conftest.er1
1580     cat conftest.er1 >&5
1581     mv -f conftest.er1 conftest.err
1582   fi
1583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584   test $ac_status = 0; } && {
1585          test -z "$ac_c_werror_flag" ||
1586          test ! -s conftest.err
1587        } && test -s conftest$ac_exeext && {
1588          test "$cross_compiling" = yes ||
1589          $as_test_x conftest$ac_exeext
1590        }; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596         ac_retval=1
1597 fi
1598   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600   # interfere with the next link command; also delete a directory that is
1601   # left behind by Apple's compiler.  We do this before executing the actions.
1602   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604   as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1613 {
1614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618   $as_echo_n "(cached) " >&6
1619 else
1620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h.  */
1622 $4
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626   eval "$3=yes"
1627 else
1628   eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 fi
1632 eval ac_res=\$$3
1633                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637 } # ac_fn_c_check_header_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } > conftest.i && {
1661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669     ac_retval=1
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_link") 2>&5
1691   ac_status=$?
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694   { { case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_try") 2>&5
1701   ac_status=$?
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; }; }; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: program exited with status $ac_status" >&5
1707        $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710        ac_retval=$ac_status
1711 fi
1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727   $as_echo_n "(cached) " >&6
1728 else
1729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h.  */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1733 #define $2 innocuous_$2
1734
1735 /* System header to define __stub macros and hopefully few prototypes,
1736     which can conflict with char $2 (); below.
1737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738     <limits.h> exists even on freestanding compilers.  */
1739
1740 #ifdef __STDC__
1741 # include <limits.h>
1742 #else
1743 # include <assert.h>
1744 #endif
1745
1746 #undef $2
1747
1748 /* Override any GCC internal prototype to avoid an error.
1749    Use char because int might match the return type of a GCC
1750    builtin and then its argument prototype would still apply.  */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756     to always fail with ENOSYS.  Some functions are actually named
1757     something starting with __ and the normal name is an alias.  */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1761
1762 #ifdef FC_DUMMY_MAIN
1763 #ifndef FC_DUMMY_MAIN_EQ_F77
1764 #  ifdef __cplusplus
1765      extern "C"
1766 #  endif
1767    int FC_DUMMY_MAIN() { return 1; }
1768 #endif
1769 #endif
1770 int
1771 main ()
1772 {
1773 return $2 ();
1774   ;
1775   return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"; then :
1779   eval "$3=yes"
1780 else
1781   eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext \
1784     conftest$ac_exeext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_func
1792
1793 # ac_fn_fc_try_link LINENO
1794 # ------------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_fc_try_link ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   rm -f conftest.$ac_objext conftest$ac_exeext
1800   if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803   *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807   (eval "$ac_link") 2>conftest.err
1808   ac_status=$?
1809   if test -s conftest.err; then
1810     grep -v '^ *+' conftest.err >conftest.er1
1811     cat conftest.er1 >&5
1812     mv -f conftest.er1 conftest.err
1813   fi
1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815   test $ac_status = 0; } && {
1816          test -z "$ac_fc_werror_flag" ||
1817          test ! -s conftest.err
1818        } && test -s conftest$ac_exeext && {
1819          test "$cross_compiling" = yes ||
1820          $as_test_x conftest$ac_exeext
1821        }; then :
1822   ac_retval=0
1823 else
1824   $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827         ac_retval=1
1828 fi
1829   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831   # interfere with the next link command; also delete a directory that is
1832   # left behind by Apple's compiler.  We do this before executing the actions.
1833   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835   as_fn_set_status $ac_retval
1836
1837 } # ac_fn_fc_try_link
1838 cat >config.log <<_ACEOF
1839 This file contains any messages produced by compilers while
1840 running configure, to aid debugging if configure makes a mistake.
1841
1842 It was created by fcdemo $as_me 1.0, which was
1843 generated by GNU Autoconf 2.68.  Invocation command line was
1844
1845   $ $0 $@
1846
1847 _ACEOF
1848 exec 5>>config.log
1849 {
1850 cat <<_ASUNAME
1851 ## --------- ##
1852 ## Platform. ##
1853 ## --------- ##
1854
1855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860
1861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1863
1864 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1865 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1868 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1869 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1870 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1871
1872 _ASUNAME
1873
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879     $as_echo "PATH: $as_dir"
1880   done
1881 IFS=$as_save_IFS
1882
1883 } >&5
1884
1885 cat >&5 <<_ACEOF
1886
1887
1888 ## ----------- ##
1889 ## Core tests. ##
1890 ## ----------- ##
1891
1892 _ACEOF
1893
1894
1895 # Keep a trace of the command line.
1896 # Strip out --no-create and --no-recursion so they do not pile up.
1897 # Strip out --silent because we don't want to record it for future runs.
1898 # Also quote any args containing shell meta-characters.
1899 # Make two passes to allow for proper duplicate-argument suppression.
1900 ac_configure_args=
1901 ac_configure_args0=
1902 ac_configure_args1=
1903 ac_must_keep_next=false
1904 for ac_pass in 1 2
1905 do
1906   for ac_arg
1907   do
1908     case $ac_arg in
1909     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911     | -silent | --silent | --silen | --sile | --sil)
1912       continue ;;
1913     *\'*)
1914       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915     esac
1916     case $ac_pass in
1917     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1918     2)
1919       as_fn_append ac_configure_args1 " '$ac_arg'"
1920       if test $ac_must_keep_next = true; then
1921         ac_must_keep_next=false # Got value, back to normal.
1922       else
1923         case $ac_arg in
1924           *=* | --config-cache | -C | -disable-* | --disable-* \
1925           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927           | -with-* | --with-* | -without-* | --without-* | --x)
1928             case "$ac_configure_args0 " in
1929               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930             esac
1931             ;;
1932           -* ) ac_must_keep_next=true ;;
1933         esac
1934       fi
1935       as_fn_append ac_configure_args " '$ac_arg'"
1936       ;;
1937     esac
1938   done
1939 done
1940 { ac_configure_args0=; unset ac_configure_args0;}
1941 { ac_configure_args1=; unset ac_configure_args1;}
1942
1943 # When interrupted or exit'd, cleanup temporary files, and complete
1944 # config.log.  We remove comments because anyway the quotes in there
1945 # would cause problems or look ugly.
1946 # WARNING: Use '\'' to represent an apostrophe within the trap.
1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948 trap 'exit_status=$?
1949   # Save into config.log some information that might help in debugging.
1950   {
1951     echo
1952
1953     $as_echo "## ---------------- ##
1954 ## Cache variables. ##
1955 ## ---------------- ##"
1956     echo
1957     # The following way of writing the cache mishandles newlines in values,
1958 (
1959   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960     eval ac_val=\$$ac_var
1961     case $ac_val in #(
1962     *${as_nl}*)
1963       case $ac_var in #(
1964       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1966       esac
1967       case $ac_var in #(
1968       _ | IFS | as_nl) ;; #(
1969       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970       *) { eval $ac_var=; unset $ac_var;} ;;
1971       esac ;;
1972     esac
1973   done
1974   (set) 2>&1 |
1975     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976     *${as_nl}ac_space=\ *)
1977       sed -n \
1978         "s/'\''/'\''\\\\'\'''\''/g;
1979           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1980       ;; #(
1981     *)
1982       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1983       ;;
1984     esac |
1985     sort
1986 )
1987     echo
1988
1989     $as_echo "## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##"
1992     echo
1993     for ac_var in $ac_subst_vars
1994     do
1995       eval ac_val=\$$ac_var
1996       case $ac_val in
1997       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998       esac
1999       $as_echo "$ac_var='\''$ac_val'\''"
2000     done | sort
2001     echo
2002
2003     if test -n "$ac_subst_files"; then
2004       $as_echo "## ------------------- ##
2005 ## File substitutions. ##
2006 ## ------------------- ##"
2007       echo
2008       for ac_var in $ac_subst_files
2009       do
2010         eval ac_val=\$$ac_var
2011         case $ac_val in
2012         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013         esac
2014         $as_echo "$ac_var='\''$ac_val'\''"
2015       done | sort
2016       echo
2017     fi
2018
2019     if test -s confdefs.h; then
2020       $as_echo "## ----------- ##
2021 ## confdefs.h. ##
2022 ## ----------- ##"
2023       echo
2024       cat confdefs.h
2025       echo
2026     fi
2027     test "$ac_signal" != 0 &&
2028       $as_echo "$as_me: caught signal $ac_signal"
2029     $as_echo "$as_me: exit $exit_status"
2030   } >&5
2031   rm -f core *.core core.conftest.* &&
2032     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2033     exit $exit_status
2034 ' 0
2035 for ac_signal in 1 2 13 15; do
2036   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2037 done
2038 ac_signal=0
2039
2040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2041 rm -f -r conftest* confdefs.h
2042
2043 $as_echo "/* confdefs.h */" > confdefs.h
2044
2045 # Predefined preprocessor variables.
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_NAME "$PACKAGE_NAME"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_STRING "$PACKAGE_STRING"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_URL "$PACKAGE_URL"
2069 _ACEOF
2070
2071
2072 # Let the site file select an alternate cache file if it wants to.
2073 # Prefer an explicitly selected file to automatically selected ones.
2074 ac_site_file1=NONE
2075 ac_site_file2=NONE
2076 if test -n "$CONFIG_SITE"; then
2077   # We do not want a PATH search for config.site.
2078   case $CONFIG_SITE in #((
2079     -*)  ac_site_file1=./$CONFIG_SITE;;
2080     */*) ac_site_file1=$CONFIG_SITE;;
2081     *)   ac_site_file1=./$CONFIG_SITE;;
2082   esac
2083 elif test "x$prefix" != xNONE; then
2084   ac_site_file1=$prefix/share/config.site
2085   ac_site_file2=$prefix/etc/config.site
2086 else
2087   ac_site_file1=$ac_default_prefix/share/config.site
2088   ac_site_file2=$ac_default_prefix/etc/config.site
2089 fi
2090 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2091 do
2092   test "x$ac_site_file" = xNONE && continue
2093   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2094     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2095 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2096     sed 's/^/| /' "$ac_site_file" >&5
2097     . "$ac_site_file" \
2098       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 as_fn_error $? "failed to load site script $ac_site_file
2101 See \`config.log' for more details" "$LINENO" 5; }
2102   fi
2103 done
2104
2105 if test -r "$cache_file"; then
2106   # Some versions of bash will fail to source /dev/null (special files
2107   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2108   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2109     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 $as_echo "$as_me: loading cache $cache_file" >&6;}
2111     case $cache_file in
2112       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113       *)                      . "./$cache_file";;
2114     esac
2115   fi
2116 else
2117   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 $as_echo "$as_me: creating cache $cache_file" >&6;}
2119   >$cache_file
2120 fi
2121
2122 # Check that the precious variables saved in the cache have kept the same
2123 # value.
2124 ac_cache_corrupted=false
2125 for ac_var in $ac_precious_vars; do
2126   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127   eval ac_new_set=\$ac_env_${ac_var}_set
2128   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129   eval ac_new_val=\$ac_env_${ac_var}_value
2130   case $ac_old_set,$ac_new_set in
2131     set,)
2132       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134       ac_cache_corrupted=: ;;
2135     ,set)
2136       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138       ac_cache_corrupted=: ;;
2139     ,);;
2140     *)
2141       if test "x$ac_old_val" != "x$ac_new_val"; then
2142         # differences in whitespace do not lead to failure.
2143         ac_old_val_w=`echo x $ac_old_val`
2144         ac_new_val_w=`echo x $ac_new_val`
2145         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148           ac_cache_corrupted=:
2149         else
2150           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152           eval $ac_var=\$ac_old_val
2153         fi
2154         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2155 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2156         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2157 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2158       fi;;
2159   esac
2160   # Pass precious variables to config.status.
2161   if test "$ac_new_set" = set; then
2162     case $ac_new_val in
2163     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164     *) ac_arg=$ac_var=$ac_new_val ;;
2165     esac
2166     case " $ac_configure_args " in
2167       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2168       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2169     esac
2170   fi
2171 done
2172 if $ac_cache_corrupted; then
2173   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2178 fi
2179 ## -------------------- ##
2180 ## Main body of script. ##
2181 ## -------------------- ##
2182
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
2189
2190 ac_config_headers="$ac_config_headers config.h:config-h.in"
2191
2192
2193 ac_aux_dir=
2194 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2195   if test -f "$ac_dir/install-sh"; then
2196     ac_aux_dir=$ac_dir
2197     ac_install_sh="$ac_aux_dir/install-sh -c"
2198     break
2199   elif test -f "$ac_dir/install.sh"; then
2200     ac_aux_dir=$ac_dir
2201     ac_install_sh="$ac_aux_dir/install.sh -c"
2202     break
2203   elif test -f "$ac_dir/shtool"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/shtool install -c"
2206     break
2207   fi
2208 done
2209 if test -z "$ac_aux_dir"; then
2210   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2211 fi
2212
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222
2223
2224 # Check whether --with-dist was given.
2225 if test "${with_dist+set}" = set; then :
2226   withval=$with_dist;
2227 fi
2228
2229
2230 ## ------------------------ ##
2231 ## Automake Initialisation. ##
2232 ## ------------------------ ##
2233 am__api_version='1.11'
2234
2235 # Find a good install program.  We prefer a C program (faster),
2236 # so one script is as good as another.  But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2241 # AIX /bin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 # Reject install programs that cannot install multiple files.
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2251 if test -z "$INSTALL"; then
2252 if ${ac_cv_path_install+:} false; then :
2253   $as_echo_n "(cached) " >&6
2254 else
2255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260     # Account for people who put trailing slashes in PATH elements.
2261 case $as_dir/ in #((
2262   ./ | .// | /[cC]/* | \
2263   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265   /usr/ucb/* ) ;;
2266   *)
2267     # OSF1 and SCO ODT 3.0 have their own names for install.
2268     # Don't use installbsd from OSF since it installs stuff as root
2269     # by default.
2270     for ac_prog in ginstall scoinst install; do
2271       for ac_exec_ext in '' $ac_executable_extensions; do
2272         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2273           if test $ac_prog = install &&
2274             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275             # AIX install.  It has an incompatible calling convention.
2276             :
2277           elif test $ac_prog = install &&
2278             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279             # program-specific install script used by HP pwplus--don't use.
2280             :
2281           else
2282             rm -rf conftest.one conftest.two conftest.dir
2283             echo one > conftest.one
2284             echo two > conftest.two
2285             mkdir conftest.dir
2286             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287               test -s conftest.one && test -s conftest.two &&
2288               test -s conftest.dir/conftest.one &&
2289               test -s conftest.dir/conftest.two
2290             then
2291               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292               break 3
2293             fi
2294           fi
2295         fi
2296       done
2297     done
2298     ;;
2299 esac
2300
2301   done
2302 IFS=$as_save_IFS
2303
2304 rm -rf conftest.one conftest.two conftest.dir
2305
2306 fi
2307   if test "${ac_cv_path_install+set}" = set; then
2308     INSTALL=$ac_cv_path_install
2309   else
2310     # As a last resort, use the slow shell script.  Don't cache a
2311     # value for INSTALL within a source directory, because that will
2312     # break other packages using the cache if that directory is
2313     # removed, or if the value is a relative name.
2314     INSTALL=$ac_install_sh
2315   fi
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318 $as_echo "$INSTALL" >&6; }
2319
2320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321 # It thinks the first close brace ends the variable substitution.
2322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329 $as_echo_n "checking whether build environment is sane... " >&6; }
2330 # Just in case
2331 sleep 1
2332 echo timestamp > conftest.file
2333 # Reject unsafe characters in $srcdir or the absolute working directory
2334 # name.  Accept space and tab only in the latter.
2335 am_lf='
2336 '
2337 case `pwd` in
2338   *[\\\"\#\$\&\'\`$am_lf]*)
2339     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2340 esac
2341 case $srcdir in
2342   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2343     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2344 esac
2345
2346 # Do `set' in a subshell so we don't clobber the current shell's
2347 # arguments.  Must try -L first in case configure is actually a
2348 # symlink; some systems play weird games with the mod time of symlinks
2349 # (eg FreeBSD returns the mod time of the symlink's containing
2350 # directory).
2351 if (
2352    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353    if test "$*" = "X"; then
2354       # -L didn't work.
2355       set X `ls -t "$srcdir/configure" conftest.file`
2356    fi
2357    rm -f conftest.file
2358    if test "$*" != "X $srcdir/configure conftest.file" \
2359       && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361       # If neither matched, then we have a broken ls.  This can happen
2362       # if, for instance, CONFIG_SHELL is bash and it inherits a
2363       # broken ls alias from the environment.  This has actually
2364       # happened.  Such a system could not be considered "sane".
2365       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2366 alias in your environment" "$LINENO" 5
2367    fi
2368
2369    test "$2" = conftest.file
2370    )
2371 then
2372    # Ok.
2373    :
2374 else
2375    as_fn_error $? "newly created file is older than distributed files!
2376 Check your system clock" "$LINENO" 5
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379 $as_echo "yes" >&6; }
2380 test "$program_prefix" != NONE &&
2381   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $.
2386 # By default was `s,x,x', remove it if useless.
2387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389
2390 # expand $ac_aux_dir to an absolute path
2391 am_aux_dir=`cd $ac_aux_dir && pwd`
2392
2393 if test x"${MISSING+set}" != xset; then
2394   case $am_aux_dir in
2395   *\ * | *\     *)
2396     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397   *)
2398     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399   esac
2400 fi
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403   am_missing_run="$MISSING --run "
2404 else
2405   am_missing_run=
2406   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408 fi
2409
2410 if test x"${install_sh}" != xset; then
2411   case $am_aux_dir in
2412   *\ * | *\     *)
2413     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414   *)
2415     install_sh="\${SHELL} $am_aux_dir/install-sh"
2416   esac
2417 fi
2418
2419 # Installed binaries are usually stripped using `strip' when the user
2420 # run `make install-strip'.  However `strip' might not be the right
2421 # tool to use in cross-compilation environments, therefore Automake
2422 # will honor the `STRIP' environment variable to overrule this program.
2423 if test "$cross_compiling" != no; then
2424   if test -n "$ac_tool_prefix"; then
2425   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_STRIP+:} false; then :
2430   $as_echo_n "(cached) " >&6
2431 else
2432   if test -n "$STRIP"; then
2433   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440     for ac_exec_ext in '' $ac_executable_extensions; do
2441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447   done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 STRIP=$ac_cv_prog_STRIP
2453 if test -n "$STRIP"; then
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455 $as_echo "$STRIP" >&6; }
2456 else
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461
2462 fi
2463 if test -z "$ac_cv_prog_STRIP"; then
2464   ac_ct_STRIP=$STRIP
2465   # Extract the first word of "strip", so it can be a program name with args.
2466 set dummy strip; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470   $as_echo_n "(cached) " >&6
2471 else
2472   if test -n "$ac_ct_STRIP"; then
2473   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478   IFS=$as_save_IFS
2479   test -z "$as_dir" && as_dir=.
2480     for ac_exec_ext in '' $ac_executable_extensions; do
2481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482     ac_cv_prog_ac_ct_STRIP="strip"
2483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484     break 2
2485   fi
2486 done
2487   done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493 if test -n "$ac_ct_STRIP"; then
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495 $as_echo "$ac_ct_STRIP" >&6; }
2496 else
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501   if test "x$ac_ct_STRIP" = x; then
2502     STRIP=":"
2503   else
2504     case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510     STRIP=$ac_ct_STRIP
2511   fi
2512 else
2513   STRIP="$ac_cv_prog_STRIP"
2514 fi
2515
2516 fi
2517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521 if test -z "$MKDIR_P"; then
2522   if ${ac_cv_path_mkdir+:} false; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530     for ac_prog in mkdir gmkdir; do
2531          for ac_exec_ext in '' $ac_executable_extensions; do
2532            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2533            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534              'mkdir (GNU coreutils) '* | \
2535              'mkdir (coreutils) '* | \
2536              'mkdir (fileutils) '4.1*)
2537                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538                break 3;;
2539            esac
2540          done
2541        done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546
2547   test -d ./--version && rmdir ./--version
2548   if test "${ac_cv_path_mkdir+set}" = set; then
2549     MKDIR_P="$ac_cv_path_mkdir -p"
2550   else
2551     # As a last resort, use the slow shell script.  Don't cache a
2552     # value for MKDIR_P within a source directory, because that will
2553     # break other packages using the cache if that directory is
2554     # removed, or if the value is a relative name.
2555     MKDIR_P="$ac_install_sh -d"
2556   fi
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559 $as_echo "$MKDIR_P" >&6; }
2560
2561 mkdir_p="$MKDIR_P"
2562 case $mkdir_p in
2563   [\\/$]* | ?:[\\/]*) ;;
2564   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565 esac
2566
2567 for ac_prog in gawk mawk nawk awk
2568 do
2569   # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_AWK+:} false; then :
2574   $as_echo_n "(cached) " >&6
2575 else
2576   if test -n "$AWK"; then
2577   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584     for ac_exec_ext in '' $ac_executable_extensions; do
2585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586     ac_cv_prog_AWK="$ac_prog"
2587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591   done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 AWK=$ac_cv_prog_AWK
2597 if test -n "$AWK"; then
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2600 else
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606   test -n "$AWK" && break
2607 done
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611 set x ${MAKE-make}
2612 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2614   $as_echo_n "(cached) " >&6
2615 else
2616   cat >conftest.make <<\_ACEOF
2617 SHELL = /bin/sh
2618 all:
2619         @echo '@@@%%%=$(MAKE)=@@@%%%'
2620 _ACEOF
2621 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2622 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623   *@@@%%%=?*=@@@%%%*)
2624     eval ac_cv_prog_make_${ac_make}_set=yes;;
2625   *)
2626     eval ac_cv_prog_make_${ac_make}_set=no;;
2627 esac
2628 rm -f conftest.make
2629 fi
2630 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633   SET_MAKE=
2634 else
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637   SET_MAKE="MAKE=${MAKE-make}"
2638 fi
2639
2640 rm -rf .tst 2>/dev/null
2641 mkdir .tst 2>/dev/null
2642 if test -d .tst; then
2643   am__leading_dot=.
2644 else
2645   am__leading_dot=_
2646 fi
2647 rmdir .tst 2>/dev/null
2648
2649 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651   # is not polluted with repeated "-I."
2652   am__isrc=' -I$(srcdir)'
2653   # test to see if srcdir already configured
2654   if test -f $srcdir/config.status; then
2655     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2656   fi
2657 fi
2658
2659 # test whether we have cygpath
2660 if test -z "$CYGPATH_W"; then
2661   if (cygpath --version) >/dev/null 2>/dev/null; then
2662     CYGPATH_W='cygpath -w'
2663   else
2664     CYGPATH_W=echo
2665   fi
2666 fi
2667
2668
2669 # Define the identity of the package.
2670  PACKAGE='fcdemo'
2671  VERSION='1.0'
2672
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE "$PACKAGE"
2676 _ACEOF
2677
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define VERSION "$VERSION"
2681 _ACEOF
2682
2683 # Some tools Automake needs.
2684
2685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
2699 # We need awk for the "check" target.  The system "awk" is bad on
2700 # some platforms.
2701 # Always define AMTAR for backward compatibility.
2702
2703 AMTAR=${AMTAR-"${am_missing_run}tar"}
2704
2705 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2706
2707
2708
2709
2710
2711
2712
2713 ## ------------------ ##
2714 ## C compiler checks. ##
2715 ## ------------------ ##
2716 ac_ext=c
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 if test -n "$ac_tool_prefix"; then
2722   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_CC+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test -n "$CC"; then
2730   ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759 fi
2760 if test -z "$ac_cv_prog_CC"; then
2761   ac_ct_CC=$CC
2762   # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2767   $as_echo_n "(cached) " >&6
2768 else
2769   if test -n "$ac_ct_CC"; then
2770   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777     for ac_exec_ext in '' $ac_executable_extensions; do
2778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779     ac_cv_prog_ac_ct_CC="gcc"
2780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784   done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2792 $as_echo "$ac_ct_CC" >&6; }
2793 else
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798   if test "x$ac_ct_CC" = x; then
2799     CC=""
2800   else
2801     case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2806 esac
2807     CC=$ac_ct_CC
2808   fi
2809 else
2810   CC="$ac_cv_prog_CC"
2811 fi
2812
2813 if test -z "$CC"; then
2814           if test -n "$ac_tool_prefix"; then
2815     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}cc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test -n "$CC"; then
2823   ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830     for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_CC="${ac_tool_prefix}cc"
2833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837   done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852   fi
2853 fi
2854 if test -z "$CC"; then
2855   # Extract the first word of "cc", so it can be a program name with args.
2856 set dummy cc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$CC"; then
2863   ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865   ac_prog_rejected=no
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871     for ac_exec_ext in '' $ac_executable_extensions; do
2872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874        ac_prog_rejected=yes
2875        continue
2876      fi
2877     ac_cv_prog_CC="cc"
2878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882   done
2883 IFS=$as_save_IFS
2884
2885 if test $ac_prog_rejected = yes; then
2886   # We found a bogon in the path, so make sure we never use it.
2887   set dummy $ac_cv_prog_CC
2888   shift
2889   if test $# != 0; then
2890     # We chose a different compiler from the bogus one.
2891     # However, it has the same basename, so the bogon will be chosen
2892     # first if we set CC to just the basename; use the full file name.
2893     shift
2894     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2895   fi
2896 fi
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$CC"; then
2911   if test -n "$ac_tool_prefix"; then
2912   for ac_prog in cl.exe
2913   do
2914     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_CC+:} false; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test -n "$CC"; then
2922   ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929     for ac_exec_ext in '' $ac_executable_extensions; do
2930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936   done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951     test -n "$CC" && break
2952   done
2953 fi
2954 if test -z "$CC"; then
2955   ac_ct_CC=$CC
2956   for ac_prog in cl.exe
2957 do
2958   # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963   $as_echo_n "(cached) " >&6
2964 else
2965   if test -n "$ac_ct_CC"; then
2966   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971   IFS=$as_save_IFS
2972   test -z "$as_dir" && as_dir=.
2973     for ac_exec_ext in '' $ac_executable_extensions; do
2974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975     ac_cv_prog_ac_ct_CC="$ac_prog"
2976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977     break 2
2978   fi
2979 done
2980   done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988 $as_echo "$ac_ct_CC" >&6; }
2989 else
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995   test -n "$ac_ct_CC" && break
2996 done
2997
2998   if test "x$ac_ct_CC" = x; then
2999     CC=""
3000   else
3001     case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007     CC=$ac_ct_CC
3008   fi
3009 fi
3010
3011 fi
3012
3013
3014 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 as_fn_error $? "no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details" "$LINENO" 5; }
3018
3019 # Provide some information about the compiler.
3020 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3021 set X $ac_compile
3022 ac_compiler=$2
3023 for ac_option in --version -v -V -qversion; do
3024   { { ac_try="$ac_compiler $ac_option >&5"
3025 case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3032   ac_status=$?
3033   if test -s conftest.err; then
3034     sed '10a\
3035 ... rest of stderr output deleted ...
3036          10q' conftest.err >conftest.er1
3037     cat conftest.er1 >&5
3038   fi
3039   rm -f conftest.er1 conftest.err
3040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041   test $ac_status = 0; }
3042 done
3043
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h.  */
3046
3047 int
3048 main ()
3049 {
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 ac_clean_files_save=$ac_clean_files
3056 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3057 # Try to create an executable without -o first, disregard a.out.
3058 # It will help us diagnose broken compilers, and finding out an intuition
3059 # of exeext.
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3061 $as_echo_n "checking whether the C compiler works... " >&6; }
3062 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063
3064 # The possible output files:
3065 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3066
3067 ac_rmfiles=
3068 for ac_file in $ac_files
3069 do
3070   case $ac_file in
3071     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073   esac
3074 done
3075 rm -f $ac_rmfiles
3076
3077 if { { ac_try="$ac_link_default"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084   (eval "$ac_link_default") 2>&5
3085   ac_status=$?
3086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087   test $ac_status = 0; }; then :
3088   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3089 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3090 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3091 # so that the user can short-circuit this test for compilers unknown to
3092 # Autoconf.
3093 for ac_file in $ac_files ''
3094 do
3095   test -f "$ac_file" || continue
3096   case $ac_file in
3097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3098         ;;
3099     [ab].out )
3100         # We found the default executable, but exeext='' is most
3101         # certainly right.
3102         break;;
3103     *.* )
3104         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3105         then :; else
3106            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107         fi
3108         # We set ac_cv_exeext here because the later test for it is not
3109         # safe: cross compilers may not add the suffix if given an `-o'
3110         # argument, so we may need to know it at that point already.
3111         # Even if this section looks crufty: it has the advantage of
3112         # actually working.
3113         break;;
3114     * )
3115         break;;
3116   esac
3117 done
3118 test "$ac_cv_exeext" = no && ac_cv_exeext=
3119
3120 else
3121   ac_file=''
3122 fi
3123 if test -z "$ac_file"; then :
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 $as_echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error 77 "C compiler cannot create executables
3132 See \`config.log' for more details" "$LINENO" 5; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3138 $as_echo_n "checking for C compiler default output file name... " >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3140 $as_echo "$ac_file" >&6; }
3141 ac_exeext=$ac_cv_exeext
3142
3143 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3144 ac_clean_files=$ac_clean_files_save
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3146 $as_echo_n "checking for suffix of executables... " >&6; }
3147 if { { ac_try="$ac_link"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154   (eval "$ac_link") 2>&5
3155   ac_status=$?
3156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157   test $ac_status = 0; }; then :
3158   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3161 # `rm'.
3162 for ac_file in conftest.exe conftest conftest.*; do
3163   test -f "$ac_file" || continue
3164   case $ac_file in
3165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167           break;;
3168     * ) break;;
3169   esac
3170 done
3171 else
3172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details" "$LINENO" 5; }
3176 fi
3177 rm -f conftest conftest$ac_cv_exeext
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3179 $as_echo "$ac_cv_exeext" >&6; }
3180
3181 rm -f conftest.$ac_ext
3182 EXEEXT=$ac_cv_exeext
3183 ac_exeext=$EXEEXT
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h.  */
3186 #include <stdio.h>
3187 int
3188 main ()
3189 {
3190 FILE *f = fopen ("conftest.out", "w");
3191  return ferror (f) || fclose (f) != 0;
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 ac_clean_files="$ac_clean_files conftest.out"
3198 # Check that the compiler produces executables we can run.  If not, either
3199 # the compiler is broken, or we cross compile.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3201 $as_echo_n "checking whether we are cross compiling... " >&6; }
3202 if test "$cross_compiling" != yes; then
3203   { { ac_try="$ac_link"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210   (eval "$ac_link") 2>&5
3211   ac_status=$?
3212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213   test $ac_status = 0; }
3214   if { ac_try='./conftest$ac_cv_exeext'
3215   { { case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221   (eval "$ac_try") 2>&5
3222   ac_status=$?
3223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224   test $ac_status = 0; }; }; then
3225     cross_compiling=no
3226   else
3227     if test "$cross_compiling" = maybe; then
3228         cross_compiling=yes
3229     else
3230         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error $? "cannot run C compiled programs.
3233 If you meant to cross compile, use \`--host'.
3234 See \`config.log' for more details" "$LINENO" 5; }
3235     fi
3236   fi
3237 fi
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3239 $as_echo "$cross_compiling" >&6; }
3240
3241 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3242 ac_clean_files=$ac_clean_files_save
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3244 $as_echo_n "checking for suffix of object files... " >&6; }
3245 if ${ac_cv_objext+:} false; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h.  */
3250
3251 int
3252 main ()
3253 {
3254
3255   ;
3256   return 0;
3257 }
3258 _ACEOF
3259 rm -f conftest.o conftest.obj
3260 if { { ac_try="$ac_compile"
3261 case "(($ac_try" in
3262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263   *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267   (eval "$ac_compile") 2>&5
3268   ac_status=$?
3269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270   test $ac_status = 0; }; then :
3271   for ac_file in conftest.o conftest.obj conftest.*; do
3272   test -f "$ac_file" || continue;
3273   case $ac_file in
3274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3275     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276        break;;
3277   esac
3278 done
3279 else
3280   $as_echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details" "$LINENO" 5; }
3287 fi
3288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3291 $as_echo "$ac_cv_objext" >&6; }
3292 OBJEXT=$ac_cv_objext
3293 ac_objext=$OBJEXT
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3296 if ${ac_cv_c_compiler_gnu+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h.  */
3301
3302 int
3303 main ()
3304 {
3305 #ifndef __GNUC__
3306        choke me
3307 #endif
3308
3309   ;
3310   return 0;
3311 }
3312 _ACEOF
3313 if ac_fn_c_try_compile "$LINENO"; then :
3314   ac_compiler_gnu=yes
3315 else
3316   ac_compiler_gnu=no
3317 fi
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3320
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3324 if test $ac_compiler_gnu = yes; then
3325   GCC=yes
3326 else
3327   GCC=
3328 fi
3329 ac_test_CFLAGS=${CFLAGS+set}
3330 ac_save_CFLAGS=$CFLAGS
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3333 if ${ac_cv_prog_cc_g+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   ac_save_c_werror_flag=$ac_c_werror_flag
3337    ac_c_werror_flag=yes
3338    ac_cv_prog_cc_g=no
3339    CFLAGS="-g"
3340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h.  */
3342
3343 int
3344 main ()
3345 {
3346
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 if ac_fn_c_try_compile "$LINENO"; then :
3352   ac_cv_prog_cc_g=yes
3353 else
3354   CFLAGS=""
3355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357
3358 int
3359 main ()
3360 {
3361
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367
3368 else
3369   ac_c_werror_flag=$ac_save_c_werror_flag
3370          CFLAGS="-g"
3371          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h.  */
3373
3374 int
3375 main ()
3376 {
3377
3378   ;
3379   return 0;
3380 }
3381 _ACEOF
3382 if ac_fn_c_try_compile "$LINENO"; then :
3383   ac_cv_prog_cc_g=yes
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390    ac_c_werror_flag=$ac_save_c_werror_flag
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3393 $as_echo "$ac_cv_prog_cc_g" >&6; }
3394 if test "$ac_test_CFLAGS" = set; then
3395   CFLAGS=$ac_save_CFLAGS
3396 elif test $ac_cv_prog_cc_g = yes; then
3397   if test "$GCC" = yes; then
3398     CFLAGS="-g -O2"
3399   else
3400     CFLAGS="-g"
3401   fi
3402 else
3403   if test "$GCC" = yes; then
3404     CFLAGS="-O2"
3405   else
3406     CFLAGS=
3407   fi
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3411 if ${ac_cv_prog_cc_c89+:} false; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414   ac_cv_prog_cc_c89=no
3415 ac_save_CC=$CC
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418 #include <stdarg.h>
3419 #include <stdio.h>
3420 #include <sys/types.h>
3421 #include <sys/stat.h>
3422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3423 struct buf { int x; };
3424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425 static char *e (p, i)
3426      char **p;
3427      int i;
3428 {
3429   return p[i];
3430 }
3431 static char *f (char * (*g) (char **, int), char **p, ...)
3432 {
3433   char *s;
3434   va_list v;
3435   va_start (v,p);
3436   s = g (p, va_arg (v,int));
3437   va_end (v);
3438   return s;
3439 }
3440
3441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3442    function prototypes and stuff, but not '\xHH' hex character constants.
3443    These don't provoke an error unfortunately, instead are silently treated
3444    as 'x'.  The following induces an error, until -std is added to get
3445    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3446    array size at least.  It's necessary to write '\x00'==0 to get something
3447    that's true only with -std.  */
3448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3449
3450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3451    inside strings and character constants.  */
3452 #define FOO(x) 'x'
3453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3454
3455 int test (int i, double x);
3456 struct s1 {int (*f) (int a);};
3457 struct s2 {int (*f) (double a);};
3458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459 int argc;
3460 char **argv;
3461 int
3462 main ()
3463 {
3464 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3465   ;
3466   return 0;
3467 }
3468 _ACEOF
3469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3470         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3471 do
3472   CC="$ac_save_CC $ac_arg"
3473   if ac_fn_c_try_compile "$LINENO"; then :
3474   ac_cv_prog_cc_c89=$ac_arg
3475 fi
3476 rm -f core conftest.err conftest.$ac_objext
3477   test "x$ac_cv_prog_cc_c89" != "xno" && break
3478 done
3479 rm -f conftest.$ac_ext
3480 CC=$ac_save_CC
3481
3482 fi
3483 # AC_CACHE_VAL
3484 case "x$ac_cv_prog_cc_c89" in
3485   x)
3486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3487 $as_echo "none needed" >&6; } ;;
3488   xno)
3489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3490 $as_echo "unsupported" >&6; } ;;
3491   *)
3492     CC="$CC $ac_cv_prog_cc_c89"
3493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3495 esac
3496 if test "x$ac_cv_prog_cc_c89" != xno; then :
3497
3498 fi
3499
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 DEPDIR="${am__leading_dot}deps"
3506
3507 ac_config_commands="$ac_config_commands depfiles"
3508
3509
3510 am_make=${MAKE-make}
3511 cat > confinc << 'END'
3512 am__doit:
3513         @echo this is the am__doit target
3514 .PHONY: am__doit
3515 END
3516 # If we don't find an include directive, just comment out the code.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3519 am__include="#"
3520 am__quote=
3521 _am_result=none
3522 # First try GNU make style include.
3523 echo "include confinc" > confmf
3524 # Ignore all kinds of additional output from `make'.
3525 case `$am_make -s -f confmf 2> /dev/null` in #(
3526 *the\ am__doit\ target*)
3527   am__include=include
3528   am__quote=
3529   _am_result=GNU
3530   ;;
3531 esac
3532 # Now try BSD make style include.
3533 if test "$am__include" = "#"; then
3534    echo '.include "confinc"' > confmf
3535    case `$am_make -s -f confmf 2> /dev/null` in #(
3536    *the\ am__doit\ target*)
3537      am__include=.include
3538      am__quote="\""
3539      _am_result=BSD
3540      ;;
3541    esac
3542 fi
3543
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546 $as_echo "$_am_result" >&6; }
3547 rm -f confinc confmf
3548
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551   enableval=$enable_dependency_tracking;
3552 fi
3553
3554 if test "x$enable_dependency_tracking" != xno; then
3555   am_depcomp="$ac_aux_dir/depcomp"
3556   AMDEPBACKSLASH='\'
3557 fi
3558  if test "x$enable_dependency_tracking" != xno; then
3559   AMDEP_TRUE=
3560   AMDEP_FALSE='#'
3561 else
3562   AMDEP_TRUE='#'
3563   AMDEP_FALSE=
3564 fi
3565
3566
3567
3568 depcc="$CC"   am_compiler_list=
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571 $as_echo_n "checking dependency style of $depcc... " >&6; }
3572 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3573   $as_echo_n "(cached) " >&6
3574 else
3575   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576   # We make a subdir and do the tests there.  Otherwise we can end up
3577   # making bogus files that we don't know about and never remove.  For
3578   # instance it was reported that on HP-UX the gcc test will end up
3579   # making a dummy file named `D' -- because `-MD' means `put the output
3580   # in D'.
3581   mkdir conftest.dir
3582   # Copy depcomp to subdir because otherwise we won't find it if we're
3583   # using a relative directory.
3584   cp "$am_depcomp" conftest.dir
3585   cd conftest.dir
3586   # We will build objects and dependencies in a subdirectory because
3587   # it helps to detect inapplicable dependency modes.  For instance
3588   # both Tru64's cc and ICC support -MD to output dependencies as a
3589   # side effect of compilation, but ICC will put the dependencies in
3590   # the current directory while Tru64 will put them in the object
3591   # directory.
3592   mkdir sub
3593
3594   am_cv_CC_dependencies_compiler_type=none
3595   if test "$am_compiler_list" = ""; then
3596      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597   fi
3598   am__universal=false
3599   case " $depcc " in #(
3600      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3601      esac
3602
3603   for depmode in $am_compiler_list; do
3604     # Setup a source with many dependencies, because some compilers
3605     # like to wrap large dependency lists on column 80 (with \), and
3606     # we should not choose a depcomp mode which is confused by this.
3607     #
3608     # We need to recreate these files for each test, as the compiler may
3609     # overwrite some of them when testing with obscure command lines.
3610     # This happens at least with the AIX C compiler.
3611     : > sub/conftest.c
3612     for i in 1 2 3 4 5 6; do
3613       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615       # Solaris 8's {/usr,}/bin/sh.
3616       touch sub/conftst$i.h
3617     done
3618     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619
3620     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621     # mode.  It turns out that the SunPro C++ compiler does not properly
3622     # handle `-M -o', and we need to detect this.  Also, some Intel
3623     # versions had trouble with output in subdirs
3624     am__obj=sub/conftest.${OBJEXT-o}
3625     am__minus_obj="-o $am__obj"
3626     case $depmode in
3627     gcc)
3628       # This depmode causes a compiler race in universal mode.
3629       test "$am__universal" = false || continue
3630       ;;
3631     nosideeffect)
3632       # after this tag, mechanisms are not by side-effect, so they'll
3633       # only be used when explicitly requested
3634       if test "x$enable_dependency_tracking" = xyes; then
3635         continue
3636       else
3637         break
3638       fi
3639       ;;
3640     msvisualcpp | msvcmsys)
3641       # This compiler won't grok `-c -o', but also, the minuso test has
3642       # not run yet.  These depmodes are late enough in the game, and
3643       # so weak that their functioning should not be impacted.
3644       am__obj=conftest.${OBJEXT-o}
3645       am__minus_obj=
3646       ;;
3647     none) break ;;
3648     esac
3649     if depmode=$depmode \
3650        source=sub/conftest.c object=$am__obj \
3651        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3653          >/dev/null 2>conftest.err &&
3654        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3657        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658       # icc doesn't choke on unknown options, it will just issue warnings
3659       # or remarks (even with -Werror).  So we grep stderr for any message
3660       # that says an option was ignored or not supported.
3661       # When given -MP, icc 7.0 and 7.1 complain thusly:
3662       #   icc: Command line warning: ignoring option '-M'; no argument required
3663       # The diagnosis changed in icc 8.0:
3664       #   icc: Command line remark: option '-MP' not supported
3665       if (grep 'ignoring option' conftest.err ||
3666           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667         am_cv_CC_dependencies_compiler_type=$depmode
3668         break
3669       fi
3670     fi
3671   done
3672
3673   cd ..
3674   rm -rf conftest.dir
3675 else
3676   am_cv_CC_dependencies_compiler_type=none
3677 fi
3678
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3683
3684  if
3685   test "x$enable_dependency_tracking" != xno \
3686   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3687   am__fastdepCC_TRUE=
3688   am__fastdepCC_FALSE='#'
3689 else
3690   am__fastdepCC_TRUE='#'
3691   am__fastdepCC_FALSE=
3692 fi
3693
3694
3695
3696 ## ------------------------ ##
3697 ## Fortran compiler checks. ##
3698 ## ------------------------ ##
3699 ac_ext=${ac_fc_srcext-f}
3700 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3701 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3703
3704 ac_ext=${ac_fc_srcext-f}
3705 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3706 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3708 if test -n "$ac_tool_prefix"; then
3709   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3710   do
3711     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if ${ac_cv_prog_FC+:} false; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   if test -n "$FC"; then
3719   ac_cv_prog_FC="$FC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726     for ac_exec_ext in '' $ac_executable_extensions; do
3727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733   done
3734 IFS=$as_save_IFS
3735
3736 fi
3737 fi
3738 FC=$ac_cv_prog_FC
3739 if test -n "$FC"; then
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3741 $as_echo "$FC" >&6; }
3742 else
3743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748     test -n "$FC" && break
3749   done
3750 fi
3751 if test -z "$FC"; then
3752   ac_ct_FC=$FC
3753   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3754 do
3755   # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if ${ac_cv_prog_ac_ct_FC+:} false; then :
3760   $as_echo_n "(cached) " >&6
3761 else
3762   if test -n "$ac_ct_FC"; then
3763   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770     for ac_exec_ext in '' $ac_executable_extensions; do
3771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772     ac_cv_prog_ac_ct_FC="$ac_prog"
3773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777   done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 ac_ct_FC=$ac_cv_prog_ac_ct_FC
3783 if test -n "$ac_ct_FC"; then
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3785 $as_echo "$ac_ct_FC" >&6; }
3786 else
3787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 fi
3790
3791
3792   test -n "$ac_ct_FC" && break
3793 done
3794
3795   if test "x$ac_ct_FC" = x; then
3796     FC=""
3797   else
3798     case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3803 esac
3804     FC=$ac_ct_FC
3805   fi
3806 fi
3807
3808
3809 # Provide some information about the compiler.
3810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
3811 set X $ac_compile
3812 ac_compiler=$2
3813 for ac_option in --version -v -V -qversion; do
3814   { { ac_try="$ac_compiler $ac_option >&5"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3822   ac_status=$?
3823   if test -s conftest.err; then
3824     sed '10a\
3825 ... rest of stderr output deleted ...
3826          10q' conftest.err >conftest.er1
3827     cat conftest.er1 >&5
3828   fi
3829   rm -f conftest.er1 conftest.err
3830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831   test $ac_status = 0; }
3832 done
3833 rm -f a.out
3834
3835 # If we don't use `.F' as extension, the preprocessor is not run on the
3836 # input file.  (Note that this only needs to work for GNU compilers.)
3837 ac_save_ext=$ac_ext
3838 ac_ext=F
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
3840 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
3841 if ${ac_cv_fc_compiler_gnu+:} false; then :
3842   $as_echo_n "(cached) " >&6
3843 else
3844   cat > conftest.$ac_ext <<_ACEOF
3845       program main
3846 #ifndef __GNUC__
3847        choke me
3848 #endif
3849
3850       end
3851 _ACEOF
3852 if ac_fn_fc_try_compile "$LINENO"; then :
3853   ac_compiler_gnu=yes
3854 else
3855   ac_compiler_gnu=no
3856 fi
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3859
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
3862 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
3863 ac_ext=$ac_save_ext
3864 ac_test_FCFLAGS=${FCFLAGS+set}
3865 ac_save_FCFLAGS=$FCFLAGS
3866 FCFLAGS=
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
3868 $as_echo_n "checking whether $FC accepts -g... " >&6; }
3869 if ${ac_cv_prog_fc_g+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   FCFLAGS=-g
3873 cat > conftest.$ac_ext <<_ACEOF
3874       program main
3875
3876       end
3877 _ACEOF
3878 if ac_fn_fc_try_compile "$LINENO"; then :
3879   ac_cv_prog_fc_g=yes
3880 else
3881   ac_cv_prog_fc_g=no
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
3887 $as_echo "$ac_cv_prog_fc_g" >&6; }
3888 if test "$ac_test_FCFLAGS" = set; then
3889   FCFLAGS=$ac_save_FCFLAGS
3890 elif test $ac_cv_prog_fc_g = yes; then
3891   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3892     FCFLAGS="-g -O2"
3893   else
3894     FCFLAGS="-g"
3895   fi
3896 else
3897   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3898     FCFLAGS="-O2"
3899   else
3900     FCFLAGS=
3901   fi
3902 fi
3903
3904 ac_ext=${ac_fc_srcext-f}
3905 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3906 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3908
3909 if test -z "$with_dist"; then
3910
3911 ac_ext=${ac_fc_srcext-f}
3912 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3913 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
3916 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
3917 if ${ac_cv_prog_fc_v+:} false; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   cat > conftest.$ac_ext <<_ACEOF
3921       program main
3922
3923       end
3924 _ACEOF
3925 if ac_fn_fc_try_compile "$LINENO"; then :
3926   ac_cv_prog_fc_v=
3927 # Try some options frequently used verbose output
3928 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3929   cat > conftest.$ac_ext <<_ACEOF
3930       program main
3931
3932       end
3933 _ACEOF
3934
3935 # Compile and link our simple test program by passing a flag (argument
3936 # 1 to this macro) to the Fortran compiler in order to get
3937 # "verbose" output that we can then parse for the Fortran linker
3938 # flags.
3939 ac_save_FCFLAGS=$FCFLAGS
3940 FCFLAGS="$FCFLAGS $ac_verb"
3941 eval "set x $ac_link"
3942 shift
3943 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
3944 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
3945 # LIBRARY_PATH; skip all such settings.
3946 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
3947   sed '/^Driving:/d; /^Configured with:/d;
3948       '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
3949 $as_echo "$ac_fc_v_output" >&5
3950 FCFLAGS=$ac_save_FCFLAGS
3951
3952 rm -rf conftest*
3953
3954 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3955 # /foo, /bar, and /baz are search directories for the Fortran linker.
3956 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3957 ac_fc_v_output="`echo $ac_fc_v_output |
3958         grep 'LPATH is:' |
3959         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
3960
3961 # FIXME: we keep getting bitten by quoted arguments; a more general fix
3962 #        that detects unbalanced quotes in FLIBS should be implemented
3963 #        and (ugh) tested at some point.
3964 case $ac_fc_v_output in
3965   # If we are using xlf then replace all the commas with spaces.
3966   *xlfentry*)
3967     ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
3968
3969   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3970   # $LIBS confuse us, and the libraries appear later in the output anyway).
3971   *mGLOB_options_string*)
3972     ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
3973
3974   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
3975   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
3976   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
3977   *-cmdline\ * | *-ignore\ * | *-def\ *)
3978     ac_fc_v_output=`echo $ac_fc_v_output | sed "\
3979         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
3980         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
3981         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
3982
3983   # If we are using Cray Fortran then delete quotes.
3984   *cft90*)
3985     ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
3986 esac
3987
3988
3989   # look for -l* and *.a constructs in the output
3990   for ac_arg in $ac_fc_v_output; do
3991      case $ac_arg in
3992         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3993           ac_cv_prog_fc_v=$ac_verb
3994           break 2 ;;
3995      esac
3996   done
3997 done
3998 if test -z "$ac_cv_prog_fc_v"; then
3999    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
4000 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
4001 fi
4002 else
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
4004 $as_echo "$as_me: WARNING: compilation failed" >&2;}
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
4010 $as_echo "$ac_cv_prog_fc_v" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
4012 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
4013 if ${ac_cv_fc_libs+:} false; then :
4014   $as_echo_n "(cached) " >&6
4015 else
4016   if test "x$FCLIBS" != "x"; then
4017   ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
4018 else
4019
4020 cat > conftest.$ac_ext <<_ACEOF
4021       program main
4022
4023       end
4024 _ACEOF
4025
4026 # Compile and link our simple test program by passing a flag (argument
4027 # 1 to this macro) to the Fortran compiler in order to get
4028 # "verbose" output that we can then parse for the Fortran linker
4029 # flags.
4030 ac_save_FCFLAGS=$FCFLAGS
4031 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4032 eval "set x $ac_link"
4033 shift
4034 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
4035 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
4036 # LIBRARY_PATH; skip all such settings.
4037 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
4038   sed '/^Driving:/d; /^Configured with:/d;
4039       '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
4040 $as_echo "$ac_fc_v_output" >&5
4041 FCFLAGS=$ac_save_FCFLAGS
4042
4043 rm -rf conftest*
4044
4045 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4046 # /foo, /bar, and /baz are search directories for the Fortran linker.
4047 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4048 ac_fc_v_output="`echo $ac_fc_v_output |
4049         grep 'LPATH is:' |
4050         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
4051
4052 # FIXME: we keep getting bitten by quoted arguments; a more general fix
4053 #        that detects unbalanced quotes in FLIBS should be implemented
4054 #        and (ugh) tested at some point.
4055 case $ac_fc_v_output in
4056   # If we are using xlf then replace all the commas with spaces.
4057   *xlfentry*)
4058     ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4059
4060   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4061   # $LIBS confuse us, and the libraries appear later in the output anyway).
4062   *mGLOB_options_string*)
4063     ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4064
4065   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4066   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4067   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4068   *-cmdline\ * | *-ignore\ * | *-def\ *)
4069     ac_fc_v_output=`echo $ac_fc_v_output | sed "\
4070         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
4071         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
4072         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
4073
4074   # If we are using Cray Fortran then delete quotes.
4075   *cft90*)
4076     ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
4077 esac
4078
4079
4080
4081 ac_cv_fc_libs=
4082
4083 # Save positional arguments (if any)
4084 ac_save_positional="$@"
4085
4086 set X $ac_fc_v_output
4087 while test $# != 1; do
4088   shift
4089   ac_arg=$1
4090   case $ac_arg in
4091         [\\/]*.a | ?:[\\/]*.a)
4092             ac_exists=false
4093   for ac_i in $ac_cv_fc_libs; do
4094     if test x"$ac_arg" = x"$ac_i"; then
4095       ac_exists=true
4096       break
4097     fi
4098   done
4099
4100   if test x"$ac_exists" = xtrue; then :
4101
4102 else
4103   ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4104 fi
4105           ;;
4106         -bI:*)
4107             ac_exists=false
4108   for ac_i in $ac_cv_fc_libs; do
4109     if test x"$ac_arg" = x"$ac_i"; then
4110       ac_exists=true
4111       break
4112     fi
4113   done
4114
4115   if test x"$ac_exists" = xtrue; then :
4116
4117 else
4118   if test "$ac_compiler_gnu" = yes; then
4119   for ac_link_opt in $ac_arg; do
4120     ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4121   done
4122 else
4123   ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4124 fi
4125 fi
4126           ;;
4127           # Ignore these flags.
4128         -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
4129           |-LANG:=* | -LIST:* | -LNO:* | -link)
4130           ;;
4131         -lkernel32)
4132           test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4133           ;;
4134         -[LRuYz])
4135           # These flags, when seen by themselves, take an argument.
4136           # We remove the space between option and argument and re-iterate
4137           # unless we find an empty arg or a new option (starting with -)
4138           case $2 in
4139              "" | -*);;
4140              *)
4141                 ac_arg="$ac_arg$2"
4142                 shift; shift
4143                 set X $ac_arg "$@"
4144                 ;;
4145           esac
4146           ;;
4147         -YP,*)
4148           for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4149               ac_exists=false
4150   for ac_i in $ac_cv_fc_libs; do
4151     if test x"$ac_j" = x"$ac_i"; then
4152       ac_exists=true
4153       break
4154     fi
4155   done
4156
4157   if test x"$ac_exists" = xtrue; then :
4158
4159 else
4160   ac_arg="$ac_arg $ac_j"
4161                                ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
4162 fi
4163           done
4164           ;;
4165         -[lLR]*)
4166             ac_exists=false
4167   for ac_i in $ac_cv_fc_libs; do
4168     if test x"$ac_arg" = x"$ac_i"; then
4169       ac_exists=true
4170       break
4171     fi
4172   done
4173
4174   if test x"$ac_exists" = xtrue; then :
4175
4176 else
4177   ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4178 fi
4179           ;;
4180         -zallextract*| -zdefaultextract)
4181           ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4182           ;;
4183           # Ignore everything else.
4184   esac
4185 done
4186 # restore positional arguments
4187 set X $ac_save_positional; shift
4188
4189 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4190 # then we insist that the "run path" must be an absolute path (i.e. it
4191 # must begin with a "/").
4192 case `(uname -sr) 2>/dev/null` in
4193    "SunOS 5"*)
4194       ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
4195                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4196       test "x$ac_ld_run_path" != x &&
4197         if test "$ac_compiler_gnu" = yes; then
4198   for ac_link_opt in $ac_ld_run_path; do
4199     ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4200   done
4201 else
4202   ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
4203 fi
4204       ;;
4205 esac
4206 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4207
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
4210 $as_echo "$ac_cv_fc_libs" >&6; }
4211 FCLIBS="$ac_cv_fc_libs"
4212
4213
4214 ac_ext=${ac_fc_srcext-f}
4215 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4216 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4218
4219
4220 ac_ext=${ac_fc_srcext-f}
4221 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4222 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
4226 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
4227 if ${ac_cv_fc_dummy_main+:} false; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   ac_fc_dm_save_LIBS=$LIBS
4231  LIBS="$LIBS $FCLIBS"
4232  ac_fortran_dm_var=FC_DUMMY_MAIN
4233  ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239  # First, try linking without a dummy main:
4240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242
4243 #ifdef FC_DUMMY_MAIN
4244 #ifndef FC_DUMMY_MAIN_EQ_F77
4245 #  ifdef __cplusplus
4246      extern "C"
4247 #  endif
4248    int FC_DUMMY_MAIN() { return 1; }
4249 #endif
4250 #endif
4251 int
4252 main ()
4253 {
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_link "$LINENO"; then :
4260   ac_cv_fortran_dummy_main=none
4261 else
4262   ac_cv_fortran_dummy_main=unknown
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext \
4265     conftest$ac_exeext conftest.$ac_ext
4266
4267  if test $ac_cv_fortran_dummy_main = unknown; then
4268    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h.  */
4271 #define $ac_fortran_dm_var $ac_func
4272 #ifdef FC_DUMMY_MAIN
4273 #ifndef FC_DUMMY_MAIN_EQ_F77
4274 #  ifdef __cplusplus
4275      extern "C"
4276 #  endif
4277    int FC_DUMMY_MAIN() { return 1; }
4278 #endif
4279 #endif
4280 int
4281 main ()
4282 {
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_link "$LINENO"; then :
4289   ac_cv_fortran_dummy_main=$ac_func; break
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext \
4292     conftest$ac_exeext conftest.$ac_ext
4293    done
4294  fi
4295  ac_ext=${ac_fc_srcext-f}
4296 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4297 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4299  ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
4300  rm -rf conftest*
4301  LIBS=$ac_fc_dm_save_LIBS
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
4305 $as_echo "$ac_cv_fc_dummy_main" >&6; }
4306 FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
4307 if test "$FC_DUMMY_MAIN" != unknown; then :
4308   if test $FC_DUMMY_MAIN != none; then
4309
4310 cat >>confdefs.h <<_ACEOF
4311 #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
4312 _ACEOF
4313
4314   if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4315
4316 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
4317
4318   fi
4319 fi
4320 else
4321   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error $? "linking to Fortran libraries from C fails
4324 See \`config.log' for more details" "$LINENO" 5; }
4325 fi
4326
4327 ac_ext=${ac_fc_srcext-f}
4328 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4329 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4331
4332 ac_ext=${ac_fc_srcext-f}
4333 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4334 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
4337 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
4338 if ${ac_cv_fc_mangling+:} false; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341   cat > conftest.$ac_ext <<_ACEOF
4342       subroutine foobar()
4343       return
4344       end
4345       subroutine foo_bar()
4346       return
4347       end
4348 _ACEOF
4349 if ac_fn_fc_try_compile "$LINENO"; then :
4350   mv conftest.$ac_objext cfortran_test.$ac_objext
4351
4352   ac_save_LIBS=$LIBS
4353   LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
4354
4355   ac_ext=c
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360   ac_success=no
4361   for ac_foobar in foobar FOOBAR; do
4362     for ac_underscore in "" "_"; do
4363       ac_func="$ac_foobar$ac_underscore"
4364       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366
4367 /* Override any GCC internal prototype to avoid an error.
4368    Use char because int might match the return type of a GCC
4369    builtin and then its argument prototype would still apply.  */
4370 #ifdef __cplusplus
4371 extern "C"
4372 #endif
4373 char $ac_func ();
4374 #ifdef FC_DUMMY_MAIN
4375 #ifndef FC_DUMMY_MAIN_EQ_F77
4376 #  ifdef __cplusplus
4377      extern "C"
4378 #  endif
4379    int FC_DUMMY_MAIN() { return 1; }
4380 #endif
4381 #endif
4382 int
4383 main ()
4384 {
4385 return $ac_func ();
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_link "$LINENO"; then :
4391   ac_success=yes; break 2
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext \
4394     conftest$ac_exeext conftest.$ac_ext
4395     done
4396   done
4397   ac_ext=${ac_fc_srcext-f}
4398 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4399 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4401
4402   if test "$ac_success" = "yes"; then
4403      case $ac_foobar in
4404         foobar)
4405            ac_case=lower
4406            ac_foo_bar=foo_bar
4407            ;;
4408         FOOBAR)
4409            ac_case=upper
4410            ac_foo_bar=FOO_BAR
4411            ;;
4412      esac
4413
4414      ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419      ac_success_extra=no
4420      for ac_extra in "" "_"; do
4421         ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4422         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h.  */
4424
4425 /* Override any GCC internal prototype to avoid an error.
4426    Use char because int might match the return type of a GCC
4427    builtin and then its argument prototype would still apply.  */
4428 #ifdef __cplusplus
4429 extern "C"
4430 #endif
4431 char $ac_func ();
4432 #ifdef FC_DUMMY_MAIN
4433 #ifndef FC_DUMMY_MAIN_EQ_F77
4434 #  ifdef __cplusplus
4435      extern "C"
4436 #  endif
4437    int FC_DUMMY_MAIN() { return 1; }
4438 #endif
4439 #endif
4440 int
4441 main ()
4442 {
4443 return $ac_func ();
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 if ac_fn_c_try_link "$LINENO"; then :
4449   ac_success_extra=yes; break
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext \
4452     conftest$ac_exeext conftest.$ac_ext
4453      done
4454      ac_ext=${ac_fc_srcext-f}
4455 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4456 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4458
4459      if test "$ac_success_extra" = "yes"; then
4460         ac_cv_fc_mangling="$ac_case case"
4461         if test -z "$ac_underscore"; then
4462            ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
4463         else
4464            ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
4465         fi
4466         if test -z "$ac_extra"; then
4467            ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
4468         else
4469            ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
4470         fi
4471       else
4472         ac_cv_fc_mangling="unknown"
4473       fi
4474   else
4475      ac_cv_fc_mangling="unknown"
4476   fi
4477
4478   LIBS=$ac_save_LIBS
4479   rm -rf conftest*
4480   rm -f cfortran_test*
4481 else
4482   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $? "cannot compile a simple Fortran program
4485 See \`config.log' for more details" "$LINENO" 5; }
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
4491 $as_echo "$ac_cv_fc_mangling" >&6; }
4492
4493 ac_ext=${ac_fc_srcext-f}
4494 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4495 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4497
4498 ac_ext=${ac_fc_srcext-f}
4499 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4500 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4502 case $ac_cv_fc_mangling in
4503   "lower case, no underscore, no extra underscore")
4504           $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
4505
4506           $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
4507  ;;
4508   "lower case, no underscore, extra underscore")
4509           $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
4510
4511           $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
4512  ;;
4513   "lower case, underscore, no extra underscore")
4514           $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
4515
4516           $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
4517  ;;
4518   "lower case, underscore, extra underscore")
4519           $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
4520
4521           $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
4522  ;;
4523   "upper case, no underscore, no extra underscore")
4524           $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
4525
4526           $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
4527  ;;
4528   "upper case, no underscore, extra underscore")
4529           $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
4530
4531           $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4532  ;;
4533   "upper case, underscore, no extra underscore")
4534           $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
4535
4536           $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4537  ;;
4538   "upper case, underscore, extra underscore")
4539           $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
4540
4541           $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
4542  ;;
4543   *)
4544           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
4545 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4546           ;;
4547 esac
4548
4549 ac_ext=${ac_fc_srcext-f}
4550 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4551 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4553
4554       ac_ext=${ac_fc_srcext-f}
4555 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4556 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5
4559 $as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
4560 if ${ac_cv_fc_srcext_f90+:} false; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   ac_ext=f90
4564 ac_fcflags_srcext_save=$ac_fcflags_srcext
4565 ac_fcflags_srcext=
4566 ac_cv_fc_srcext_f90=unknown
4567 for ac_flag in none -qsuffix=f=f90 -Tf; do
4568   test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
4569   cat > conftest.$ac_ext <<_ACEOF
4570       program main
4571
4572       end
4573 _ACEOF
4574 if ac_fn_fc_try_compile "$LINENO"; then :
4575   ac_cv_fc_srcext_f90=$ac_flag; break
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 done
4579 rm -f conftest.$ac_objext conftest.f90
4580 ac_fcflags_srcext=$ac_fcflags_srcext_save
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5
4584 $as_echo "$ac_cv_fc_srcext_f90" >&6; }
4585 if test "x$ac_cv_fc_srcext_f90" = xunknown; then
4586   as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5
4587 else
4588   ac_fc_srcext=f90
4589   if test "x$ac_cv_fc_srcext_f90" = xnone; then
4590     ac_fcflags_srcext=""
4591     FCFLAGS_f90=""
4592   else
4593     ac_fcflags_srcext=$ac_cv_fc_srcext_f90
4594     FCFLAGS_f90=$ac_cv_fc_srcext_f90
4595   fi
4596
4597
4598 fi
4599 ac_ext=${ac_fc_srcext-f}
4600 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4601 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4603
4604     ac_ext=${ac_fc_srcext-f}
4605 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4606 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept free-form source" >&5
4609 $as_echo_n "checking for Fortran flag needed to accept free-form source... " >&6; }
4610 if ${ac_cv_fc_freeform+:} false; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   ac_cv_fc_freeform=unknown
4614 ac_fc_freeform_FCFLAGS_save=$FCFLAGS
4615 for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform \
4616                -freeform "-f free" +source=free -nfix
4617 do
4618   test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_freeform_FCFLAGS_save $ac_flag"
4619   cat > conftest.$ac_ext <<_ACEOF
4620
4621   program freeform
4622        ! FIXME: how to best confuse non-freeform compilers?
4623        print *, 'Hello ', &
4624           'world.'
4625        end
4626 _ACEOF
4627 if ac_fn_fc_try_compile "$LINENO"; then :
4628   ac_cv_fc_freeform=$ac_flag; break
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 done
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 FCFLAGS=$ac_fc_freeform_FCFLAGS_save
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5
4637 $as_echo "$ac_cv_fc_freeform" >&6; }
4638 if test "x$ac_cv_fc_freeform" = xunknown; then
4639   as_fn_error 77 "Fortran does not accept free-form source" "$LINENO" 5
4640 else
4641   if test "x$ac_cv_fc_freeform" != xnone; then
4642     FCFLAGS="$FCFLAGS $ac_cv_fc_freeform"
4643   fi
4644
4645 fi
4646 ac_ext=${ac_fc_srcext-f}
4647 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4648 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4650
4651 fi
4652 ac_ext=c
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657
4658
4659 ## ----------------------- ##
4660 ## Libtool initialisation. ##
4661 ## ----------------------- ##
4662 case `pwd` in
4663   *\ * | *\     *)
4664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4665 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4666 esac
4667
4668
4669
4670 macro_version='2.4.2'
4671 macro_revision='1.3337'
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685 ltmain="$ac_aux_dir/ltmain.sh"
4686
4687 # Make sure we can run config.sub.
4688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4689   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4692 $as_echo_n "checking build system type... " >&6; }
4693 if ${ac_cv_build+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   ac_build_alias=$build_alias
4697 test "x$ac_build_alias" = x &&
4698   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4699 test "x$ac_build_alias" = x &&
4700   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4702   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4703
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4706 $as_echo "$ac_cv_build" >&6; }
4707 case $ac_cv_build in
4708 *-*-*) ;;
4709 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4710 esac
4711 build=$ac_cv_build
4712 ac_save_IFS=$IFS; IFS='-'
4713 set x $ac_cv_build
4714 shift
4715 build_cpu=$1
4716 build_vendor=$2
4717 shift; shift
4718 # Remember, the first character of IFS is used to create $*,
4719 # except with old shells:
4720 build_os=$*
4721 IFS=$ac_save_IFS
4722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4723
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4726 $as_echo_n "checking host system type... " >&6; }
4727 if ${ac_cv_host+:} false; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if test "x$host_alias" = x; then
4731   ac_cv_host=$ac_cv_build
4732 else
4733   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4734     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4735 fi
4736
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4739 $as_echo "$ac_cv_host" >&6; }
4740 case $ac_cv_host in
4741 *-*-*) ;;
4742 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4743 esac
4744 host=$ac_cv_host
4745 ac_save_IFS=$IFS; IFS='-'
4746 set x $ac_cv_host
4747 shift
4748 host_cpu=$1
4749 host_vendor=$2
4750 shift; shift
4751 # Remember, the first character of IFS is used to create $*,
4752 # except with old shells:
4753 host_os=$*
4754 IFS=$ac_save_IFS
4755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4756
4757
4758 # Backslashify metacharacters that are still active within
4759 # double-quoted strings.
4760 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4761
4762 # Same as above, but do not quote variable references.
4763 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4764
4765 # Sed substitution to delay expansion of an escaped shell variable in a
4766 # double_quote_subst'ed string.
4767 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4768
4769 # Sed substitution to delay expansion of an escaped single quote.
4770 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4771
4772 # Sed substitution to avoid accidental globbing in evaled expressions
4773 no_glob_subst='s/\*/\\\*/g'
4774
4775 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4776 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4777 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4780 $as_echo_n "checking how to print strings... " >&6; }
4781 # Test print first, because it will be a builtin if present.
4782 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4783    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4784   ECHO='print -r --'
4785 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4786   ECHO='printf %s\n'
4787 else
4788   # Use this function as a fallback that always works.
4789   func_fallback_echo ()
4790   {
4791     eval 'cat <<_LTECHO_EOF
4792 $1
4793 _LTECHO_EOF'
4794   }
4795   ECHO='func_fallback_echo'
4796 fi
4797
4798 # func_echo_all arg...
4799 # Invoke $ECHO with all args, space-separated.
4800 func_echo_all ()
4801 {
4802     $ECHO ""
4803 }
4804
4805 case "$ECHO" in
4806   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4807 $as_echo "printf" >&6; } ;;
4808   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4809 $as_echo "print -r" >&6; } ;;
4810   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4811 $as_echo "cat" >&6; } ;;
4812 esac
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4828 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4829 if ${ac_cv_path_SED+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4833      for ac_i in 1 2 3 4 5 6 7; do
4834        ac_script="$ac_script$as_nl$ac_script"
4835      done
4836      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4837      { ac_script=; unset ac_script;}
4838      if test -z "$SED"; then
4839   ac_path_SED_found=false
4840   # Loop through the user's path and test for each of PROGNAME-LIST
4841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844   IFS=$as_save_IFS
4845   test -z "$as_dir" && as_dir=.
4846     for ac_prog in sed gsed; do
4847     for ac_exec_ext in '' $ac_executable_extensions; do
4848       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4849       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4850 # Check for GNU ac_path_SED and select it if it is found.
4851   # Check for GNU $ac_path_SED
4852 case `"$ac_path_SED" --version 2>&1` in
4853 *GNU*)
4854   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4855 *)
4856   ac_count=0
4857   $as_echo_n 0123456789 >"conftest.in"
4858   while :
4859   do
4860     cat "conftest.in" "conftest.in" >"conftest.tmp"
4861     mv "conftest.tmp" "conftest.in"
4862     cp "conftest.in" "conftest.nl"
4863     $as_echo '' >> "conftest.nl"
4864     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4865     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4866     as_fn_arith $ac_count + 1 && ac_count=$as_val
4867     if test $ac_count -gt ${ac_path_SED_max-0}; then
4868       # Best one so far, save it but keep looking for a better one
4869       ac_cv_path_SED="$ac_path_SED"
4870       ac_path_SED_max=$ac_count
4871     fi
4872     # 10*(2^10) chars as input seems more than enough
4873     test $ac_count -gt 10 && break
4874   done
4875   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4876 esac
4877
4878       $ac_path_SED_found && break 3
4879     done
4880   done
4881   done
4882 IFS=$as_save_IFS
4883   if test -z "$ac_cv_path_SED"; then
4884     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4885   fi
4886 else
4887   ac_cv_path_SED=$SED
4888 fi
4889
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4892 $as_echo "$ac_cv_path_SED" >&6; }
4893  SED="$ac_cv_path_SED"
4894   rm -f conftest.sed
4895
4896 test -z "$SED" && SED=sed
4897 Xsed="$SED -e 1s/^X//"
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4911 if ${ac_cv_path_GREP+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   if test -z "$GREP"; then
4915   ac_path_GREP_found=false
4916   # Loop through the user's path and test for each of PROGNAME-LIST
4917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_prog in grep ggrep; do
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4925       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4926 # Check for GNU ac_path_GREP and select it if it is found.
4927   # Check for GNU $ac_path_GREP
4928 case `"$ac_path_GREP" --version 2>&1` in
4929 *GNU*)
4930   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4931 *)
4932   ac_count=0
4933   $as_echo_n 0123456789 >"conftest.in"
4934   while :
4935   do
4936     cat "conftest.in" "conftest.in" >"conftest.tmp"
4937     mv "conftest.tmp" "conftest.in"
4938     cp "conftest.in" "conftest.nl"
4939     $as_echo 'GREP' >> "conftest.nl"
4940     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942     as_fn_arith $ac_count + 1 && ac_count=$as_val
4943     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4944       # Best one so far, save it but keep looking for a better one
4945       ac_cv_path_GREP="$ac_path_GREP"
4946       ac_path_GREP_max=$ac_count
4947     fi
4948     # 10*(2^10) chars as input seems more than enough
4949     test $ac_count -gt 10 && break
4950   done
4951   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952 esac
4953
4954       $ac_path_GREP_found && break 3
4955     done
4956   done
4957   done
4958 IFS=$as_save_IFS
4959   if test -z "$ac_cv_path_GREP"; then
4960     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4961   fi
4962 else
4963   ac_cv_path_GREP=$GREP
4964 fi
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4968 $as_echo "$ac_cv_path_GREP" >&6; }
4969  GREP="$ac_cv_path_GREP"
4970
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4973 $as_echo_n "checking for egrep... " >&6; }
4974 if ${ac_cv_path_EGREP+:} false; then :
4975   $as_echo_n "(cached) " >&6
4976 else
4977   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4978    then ac_cv_path_EGREP="$GREP -E"
4979    else
4980      if test -z "$EGREP"; then
4981   ac_path_EGREP_found=false
4982   # Loop through the user's path and test for each of PROGNAME-LIST
4983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988     for ac_prog in egrep; do
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4991       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4992 # Check for GNU ac_path_EGREP and select it if it is found.
4993   # Check for GNU $ac_path_EGREP
4994 case `"$ac_path_EGREP" --version 2>&1` in
4995 *GNU*)
4996   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4997 *)
4998   ac_count=0
4999   $as_echo_n 0123456789 >"conftest.in"
5000   while :
5001   do
5002     cat "conftest.in" "conftest.in" >"conftest.tmp"
5003     mv "conftest.tmp" "conftest.in"
5004     cp "conftest.in" "conftest.nl"
5005     $as_echo 'EGREP' >> "conftest.nl"
5006     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5007     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5008     as_fn_arith $ac_count + 1 && ac_count=$as_val
5009     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5010       # Best one so far, save it but keep looking for a better one
5011       ac_cv_path_EGREP="$ac_path_EGREP"
5012       ac_path_EGREP_max=$ac_count
5013     fi
5014     # 10*(2^10) chars as input seems more than enough
5015     test $ac_count -gt 10 && break
5016   done
5017   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5018 esac
5019
5020       $ac_path_EGREP_found && break 3
5021     done
5022   done
5023   done
5024 IFS=$as_save_IFS
5025   if test -z "$ac_cv_path_EGREP"; then
5026     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5027   fi
5028 else
5029   ac_cv_path_EGREP=$EGREP
5030 fi
5031
5032    fi
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5035 $as_echo "$ac_cv_path_EGREP" >&6; }
5036  EGREP="$ac_cv_path_EGREP"
5037
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5040 $as_echo_n "checking for fgrep... " >&6; }
5041 if ${ac_cv_path_FGREP+:} false; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5045    then ac_cv_path_FGREP="$GREP -F"
5046    else
5047      if test -z "$FGREP"; then
5048   ac_path_FGREP_found=false
5049   # Loop through the user's path and test for each of PROGNAME-LIST
5050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_prog in fgrep; do
5056     for ac_exec_ext in '' $ac_executable_extensions; do
5057       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5058       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5059 # Check for GNU ac_path_FGREP and select it if it is found.
5060   # Check for GNU $ac_path_FGREP
5061 case `"$ac_path_FGREP" --version 2>&1` in
5062 *GNU*)
5063   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5064 *)
5065   ac_count=0
5066   $as_echo_n 0123456789 >"conftest.in"
5067   while :
5068   do
5069     cat "conftest.in" "conftest.in" >"conftest.tmp"
5070     mv "conftest.tmp" "conftest.in"
5071     cp "conftest.in" "conftest.nl"
5072     $as_echo 'FGREP' >> "conftest.nl"
5073     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075     as_fn_arith $ac_count + 1 && ac_count=$as_val
5076     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5077       # Best one so far, save it but keep looking for a better one
5078       ac_cv_path_FGREP="$ac_path_FGREP"
5079       ac_path_FGREP_max=$ac_count
5080     fi
5081     # 10*(2^10) chars as input seems more than enough
5082     test $ac_count -gt 10 && break
5083   done
5084   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085 esac
5086
5087       $ac_path_FGREP_found && break 3
5088     done
5089   done
5090   done
5091 IFS=$as_save_IFS
5092   if test -z "$ac_cv_path_FGREP"; then
5093     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094   fi
5095 else
5096   ac_cv_path_FGREP=$FGREP
5097 fi
5098
5099    fi
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5102 $as_echo "$ac_cv_path_FGREP" >&6; }
5103  FGREP="$ac_cv_path_FGREP"
5104
5105
5106 test -z "$GREP" && GREP=grep
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126 # Check whether --with-gnu-ld was given.
5127 if test "${with_gnu_ld+set}" = set; then :
5128   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5129 else
5130   with_gnu_ld=no
5131 fi
5132
5133 ac_prog=ld
5134 if test "$GCC" = yes; then
5135   # Check if gcc -print-prog-name=ld gives a path.
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5137 $as_echo_n "checking for ld used by $CC... " >&6; }
5138   case $host in
5139   *-*-mingw*)
5140     # gcc leaves a trailing carriage return which upsets mingw
5141     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5142   *)
5143     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5144   esac
5145   case $ac_prog in
5146     # Accept absolute paths.
5147     [\\/]* | ?:[\\/]*)
5148       re_direlt='/[^/][^/]*/\.\./'
5149       # Canonicalize the pathname of ld
5150       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5151       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5152         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5153       done
5154       test -z "$LD" && LD="$ac_prog"
5155       ;;
5156   "")
5157     # If it fails, then pretend we aren't using GCC.
5158     ac_prog=ld
5159     ;;
5160   *)
5161     # If it is relative, then search for the first ld in PATH.
5162     with_gnu_ld=unknown
5163     ;;
5164   esac
5165 elif test "$with_gnu_ld" = yes; then
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5167 $as_echo_n "checking for GNU ld... " >&6; }
5168 else
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5170 $as_echo_n "checking for non-GNU ld... " >&6; }
5171 fi
5172 if ${lt_cv_path_LD+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   if test -z "$LD"; then
5176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177   for ac_dir in $PATH; do
5178     IFS="$lt_save_ifs"
5179     test -z "$ac_dir" && ac_dir=.
5180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181       lt_cv_path_LD="$ac_dir/$ac_prog"
5182       # Check to see if the program is GNU ld.  I'd rather use --version,
5183       # but apparently some variants of GNU ld only accept -v.
5184       # Break only if it was the GNU/non-GNU ld that we prefer.
5185       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5186       *GNU* | *'with BFD'*)
5187         test "$with_gnu_ld" != no && break
5188         ;;
5189       *)
5190         test "$with_gnu_ld" != yes && break
5191         ;;
5192       esac
5193     fi
5194   done
5195   IFS="$lt_save_ifs"
5196 else
5197   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5198 fi
5199 fi
5200
5201 LD="$lt_cv_path_LD"
5202 if test -n "$LD"; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5204 $as_echo "$LD" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5211 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5212 if ${lt_cv_prog_gnu_ld+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218   lt_cv_prog_gnu_ld=yes
5219   ;;
5220 *)
5221   lt_cv_prog_gnu_ld=no
5222   ;;
5223 esac
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5226 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5227 with_gnu_ld=$lt_cv_prog_gnu_ld
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5238 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5239 if ${lt_cv_path_NM+:} false; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   if test -n "$NM"; then
5243   # Let the user override the test.
5244   lt_cv_path_NM="$NM"
5245 else
5246   lt_nm_to_check="${ac_tool_prefix}nm"
5247   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5248     lt_nm_to_check="$lt_nm_to_check nm"
5249   fi
5250   for lt_tmp_nm in $lt_nm_to_check; do
5251     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5252     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5253       IFS="$lt_save_ifs"
5254       test -z "$ac_dir" && ac_dir=.
5255       tmp_nm="$ac_dir/$lt_tmp_nm"
5256       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5257         # Check to see if the nm accepts a BSD-compat flag.
5258         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5259         #   nm: unknown option "B" ignored
5260         # Tru64's nm complains that /dev/null is an invalid object file
5261         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5262         */dev/null* | *'Invalid file or object type'*)
5263           lt_cv_path_NM="$tmp_nm -B"
5264           break
5265           ;;
5266         *)
5267           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5268           */dev/null*)
5269             lt_cv_path_NM="$tmp_nm -p"
5270             break
5271             ;;
5272           *)
5273             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5274             continue # so that we can try to find one that supports BSD flags
5275             ;;
5276           esac
5277           ;;
5278         esac
5279       fi
5280     done
5281     IFS="$lt_save_ifs"
5282   done
5283   : ${lt_cv_path_NM=no}
5284 fi
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5287 $as_echo "$lt_cv_path_NM" >&6; }
5288 if test "$lt_cv_path_NM" != "no"; then
5289   NM="$lt_cv_path_NM"
5290 else
5291   # Didn't find any BSD compatible name lister, look for dumpbin.
5292   if test -n "$DUMPBIN"; then :
5293     # Let the user override the test.
5294   else
5295     if test -n "$ac_tool_prefix"; then
5296   for ac_prog in dumpbin "link -dump"
5297   do
5298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_DUMPBIN+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   if test -n "$DUMPBIN"; then
5306   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320   done
5321 IFS=$as_save_IFS
5322
5323 fi
5324 fi
5325 DUMPBIN=$ac_cv_prog_DUMPBIN
5326 if test -n "$DUMPBIN"; then
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5328 $as_echo "$DUMPBIN" >&6; }
5329 else
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334
5335     test -n "$DUMPBIN" && break
5336   done
5337 fi
5338 if test -z "$DUMPBIN"; then
5339   ac_ct_DUMPBIN=$DUMPBIN
5340   for ac_prog in dumpbin "link -dump"
5341 do
5342   # Extract the first word of "$ac_prog", so it can be a program name with args.
5343 set dummy $ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   if test -n "$ac_ct_DUMPBIN"; then
5350   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364   done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5370 if test -n "$ac_ct_DUMPBIN"; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5372 $as_echo "$ac_ct_DUMPBIN" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379   test -n "$ac_ct_DUMPBIN" && break
5380 done
5381
5382   if test "x$ac_ct_DUMPBIN" = x; then
5383     DUMPBIN=":"
5384   else
5385     case $cross_compiling:$ac_tool_warned in
5386 yes:)
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5389 ac_tool_warned=yes ;;
5390 esac
5391     DUMPBIN=$ac_ct_DUMPBIN
5392   fi
5393 fi
5394
5395     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5396     *COFF*)
5397       DUMPBIN="$DUMPBIN -symbols"
5398       ;;
5399     *)
5400       DUMPBIN=:
5401       ;;
5402     esac
5403   fi
5404
5405   if test "$DUMPBIN" != ":"; then
5406     NM="$DUMPBIN"
5407   fi
5408 fi
5409 test -z "$NM" && NM=nm
5410
5411
5412
5413
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5417 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5418 if ${lt_cv_nm_interface+:} false; then :
5419   $as_echo_n "(cached) " >&6
5420 else
5421   lt_cv_nm_interface="BSD nm"
5422   echo "int some_variable = 0;" > conftest.$ac_ext
5423   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5424   (eval "$ac_compile" 2>conftest.err)
5425   cat conftest.err >&5
5426   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5427   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5428   cat conftest.err >&5
5429   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5430   cat conftest.out >&5
5431   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5432     lt_cv_nm_interface="MS dumpbin"
5433   fi
5434   rm -f conftest*
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5437 $as_echo "$lt_cv_nm_interface" >&6; }
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5440 $as_echo_n "checking whether ln -s works... " >&6; }
5441 LN_S=$as_ln_s
5442 if test "$LN_S" = "ln -s"; then
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5444 $as_echo "yes" >&6; }
5445 else
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5447 $as_echo "no, using $LN_S" >&6; }
5448 fi
5449
5450 # find the maximum length of command line arguments
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5452 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5453 if ${lt_cv_sys_max_cmd_len+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456     i=0
5457   teststring="ABCD"
5458
5459   case $build_os in
5460   msdosdjgpp*)
5461     # On DJGPP, this test can blow up pretty badly due to problems in libc
5462     # (any single argument exceeding 2000 bytes causes a buffer overrun
5463     # during glob expansion).  Even if it were fixed, the result of this
5464     # check would be larger than it should be.
5465     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5466     ;;
5467
5468   gnu*)
5469     # Under GNU Hurd, this test is not required because there is
5470     # no limit to the length of command line arguments.
5471     # Libtool will interpret -1 as no limit whatsoever
5472     lt_cv_sys_max_cmd_len=-1;
5473     ;;
5474
5475   cygwin* | mingw* | cegcc*)
5476     # On Win9x/ME, this test blows up -- it succeeds, but takes
5477     # about 5 minutes as the teststring grows exponentially.
5478     # Worse, since 9x/ME are not pre-emptively multitasking,
5479     # you end up with a "frozen" computer, even though with patience
5480     # the test eventually succeeds (with a max line length of 256k).
5481     # Instead, let's just punt: use the minimum linelength reported by
5482     # all of the supported platforms: 8192 (on NT/2K/XP).
5483     lt_cv_sys_max_cmd_len=8192;
5484     ;;
5485
5486   mint*)
5487     # On MiNT this can take a long time and run out of memory.
5488     lt_cv_sys_max_cmd_len=8192;
5489     ;;
5490
5491   amigaos*)
5492     # On AmigaOS with pdksh, this test takes hours, literally.
5493     # So we just punt and use a minimum line length of 8192.
5494     lt_cv_sys_max_cmd_len=8192;
5495     ;;
5496
5497   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5498     # This has been around since 386BSD, at least.  Likely further.
5499     if test -x /sbin/sysctl; then
5500       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5501     elif test -x /usr/sbin/sysctl; then
5502       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5503     else
5504       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5505     fi
5506     # And add a safety zone
5507     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5508     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5509     ;;
5510
5511   interix*)
5512     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5513     lt_cv_sys_max_cmd_len=196608
5514     ;;
5515
5516   os2*)
5517     # The test takes a long time on OS/2.
5518     lt_cv_sys_max_cmd_len=8192
5519     ;;
5520
5521   osf*)
5522     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5523     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5524     # nice to cause kernel panics so lets avoid the loop below.
5525     # First set a reasonable default.
5526     lt_cv_sys_max_cmd_len=16384
5527     #
5528     if test -x /sbin/sysconfig; then
5529       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5530         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5531       esac
5532     fi
5533     ;;
5534   sco3.2v5*)
5535     lt_cv_sys_max_cmd_len=102400
5536     ;;
5537   sysv5* | sco5v6* | sysv4.2uw2*)
5538     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5539     if test -n "$kargmax"; then
5540       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5541     else
5542       lt_cv_sys_max_cmd_len=32768
5543     fi
5544     ;;
5545   *)
5546     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5547     if test -n "$lt_cv_sys_max_cmd_len"; then
5548       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5549       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5550     else
5551       # Make teststring a little bigger before we do anything with it.
5552       # a 1K string should be a reasonable start.
5553       for i in 1 2 3 4 5 6 7 8 ; do
5554         teststring=$teststring$teststring
5555       done
5556       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5557       # If test is not a shell built-in, we'll probably end up computing a
5558       # maximum length that is only half of the actual maximum length, but
5559       # we can't tell.
5560       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5561                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5562               test $i != 17 # 1/2 MB should be enough
5563       do
5564         i=`expr $i + 1`
5565         teststring=$teststring$teststring
5566       done
5567       # Only check the string length outside the loop.
5568       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5569       teststring=
5570       # Add a significant safety factor because C++ compilers can tack on
5571       # massive amounts of additional arguments before passing them to the
5572       # linker.  It appears as though 1/2 is a usable value.
5573       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5574     fi
5575     ;;
5576   esac
5577
5578 fi
5579
5580 if test -n $lt_cv_sys_max_cmd_len ; then
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5582 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5583 else
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5585 $as_echo "none" >&6; }
5586 fi
5587 max_cmd_len=$lt_cv_sys_max_cmd_len
5588
5589
5590
5591
5592
5593
5594 : ${CP="cp -f"}
5595 : ${MV="mv -f"}
5596 : ${RM="rm -f"}
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5599 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5600 # Try some XSI features
5601 xsi_shell=no
5602 ( _lt_dummy="a/b/c"
5603   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5604       = c,a/b,b/c, \
5605     && eval 'test $(( 1 + 1 )) -eq 2 \
5606     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5607   && xsi_shell=yes
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5609 $as_echo "$xsi_shell" >&6; }
5610
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5613 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5614 lt_shell_append=no
5615 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5616     >/dev/null 2>&1 \
5617   && lt_shell_append=yes
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5619 $as_echo "$lt_shell_append" >&6; }
5620
5621
5622 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5623   lt_unset=unset
5624 else
5625   lt_unset=false
5626 fi
5627
5628
5629
5630
5631
5632 # test EBCDIC or ASCII
5633 case `echo X|tr X '\101'` in
5634  A) # ASCII based system
5635     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5636   lt_SP2NL='tr \040 \012'
5637   lt_NL2SP='tr \015\012 \040\040'
5638   ;;
5639  *) # EBCDIC based system
5640   lt_SP2NL='tr \100 \n'
5641   lt_NL2SP='tr \r\n \100\100'
5642   ;;
5643 esac
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5654 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5655 if ${lt_cv_to_host_file_cmd+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   case $host in
5659   *-*-mingw* )
5660     case $build in
5661       *-*-mingw* ) # actually msys
5662         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5663         ;;
5664       *-*-cygwin* )
5665         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5666         ;;
5667       * ) # otherwise, assume *nix
5668         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5669         ;;
5670     esac
5671     ;;
5672   *-*-cygwin* )
5673     case $build in
5674       *-*-mingw* ) # actually msys
5675         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5676         ;;
5677       *-*-cygwin* )
5678         lt_cv_to_host_file_cmd=func_convert_file_noop
5679         ;;
5680       * ) # otherwise, assume *nix
5681         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5682         ;;
5683     esac
5684     ;;
5685   * ) # unhandled hosts (and "normal" native builds)
5686     lt_cv_to_host_file_cmd=func_convert_file_noop
5687     ;;
5688 esac
5689
5690 fi
5691
5692 to_host_file_cmd=$lt_cv_to_host_file_cmd
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5694 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5695
5696
5697
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5701 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5702 if ${lt_cv_to_tool_file_cmd+:} false; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   #assume ordinary cross tools, or native build.
5706 lt_cv_to_tool_file_cmd=func_convert_file_noop
5707 case $host in
5708   *-*-mingw* )
5709     case $build in
5710       *-*-mingw* ) # actually msys
5711         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5712         ;;
5713     esac
5714     ;;
5715 esac
5716
5717 fi
5718
5719 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5721 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5722
5723
5724
5725
5726
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5728 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5729 if ${lt_cv_ld_reload_flag+:} false; then :
5730   $as_echo_n "(cached) " >&6
5731 else
5732   lt_cv_ld_reload_flag='-r'
5733 fi
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5735 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5736 reload_flag=$lt_cv_ld_reload_flag
5737 case $reload_flag in
5738 "" | " "*) ;;
5739 *) reload_flag=" $reload_flag" ;;
5740 esac
5741 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5742 case $host_os in
5743   cygwin* | mingw* | pw32* | cegcc*)
5744     if test "$GCC" != yes; then
5745       reload_cmds=false
5746     fi
5747     ;;
5748   darwin*)
5749     if test "$GCC" = yes; then
5750       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5751     else
5752       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5753     fi
5754     ;;
5755 esac
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 if test -n "$ac_tool_prefix"; then
5766   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if ${ac_cv_prog_OBJDUMP+:} false; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   if test -n "$OBJDUMP"; then
5774   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788   done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 OBJDUMP=$ac_cv_prog_OBJDUMP
5794 if test -n "$OBJDUMP"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5796 $as_echo "$OBJDUMP" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802
5803 fi
5804 if test -z "$ac_cv_prog_OBJDUMP"; then
5805   ac_ct_OBJDUMP=$OBJDUMP
5806   # Extract the first word of "objdump", so it can be a program name with args.
5807 set dummy objdump; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   if test -n "$ac_ct_OBJDUMP"; then
5814   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821     for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828   done
5829 IFS=$as_save_IFS
5830
5831 fi
5832 fi
5833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5834 if test -n "$ac_ct_OBJDUMP"; then
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5836 $as_echo "$ac_ct_OBJDUMP" >&6; }
5837 else
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 fi
5841
5842   if test "x$ac_ct_OBJDUMP" = x; then
5843     OBJDUMP="false"
5844   else
5845     case $cross_compiling:$ac_tool_warned in
5846 yes:)
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849 ac_tool_warned=yes ;;
5850 esac
5851     OBJDUMP=$ac_ct_OBJDUMP
5852   fi
5853 else
5854   OBJDUMP="$ac_cv_prog_OBJDUMP"
5855 fi
5856
5857 test -z "$OBJDUMP" && OBJDUMP=objdump
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5868 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5869 if ${lt_cv_deplibs_check_method+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   lt_cv_file_magic_cmd='$MAGIC_CMD'
5873 lt_cv_file_magic_test_file=
5874 lt_cv_deplibs_check_method='unknown'
5875 # Need to set the preceding variable on all platforms that support
5876 # interlibrary dependencies.
5877 # 'none' -- dependencies not supported.
5878 # `unknown' -- same as none, but documents that we really don't know.
5879 # 'pass_all' -- all dependencies passed with no checks.
5880 # 'test_compile' -- check by making test program.
5881 # 'file_magic [[regex]]' -- check by looking for files in library path
5882 # which responds to the $file_magic_cmd with a given extended regex.
5883 # If you have `file' or equivalent on your system and you're not sure
5884 # whether `pass_all' will *always* work, you probably want this one.
5885
5886 case $host_os in
5887 aix[4-9]*)
5888   lt_cv_deplibs_check_method=pass_all
5889   ;;
5890
5891 beos*)
5892   lt_cv_deplibs_check_method=pass_all
5893   ;;
5894
5895 bsdi[45]*)
5896   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5897   lt_cv_file_magic_cmd='/usr/bin/file -L'
5898   lt_cv_file_magic_test_file=/shlib/libc.so
5899   ;;
5900
5901 cygwin*)
5902   # func_win32_libid is a shell function defined in ltmain.sh
5903   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5904   lt_cv_file_magic_cmd='func_win32_libid'
5905   ;;
5906
5907 mingw* | pw32*)
5908   # Base MSYS/MinGW do not provide the 'file' command needed by
5909   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5910   # unless we find 'file', for example because we are cross-compiling.
5911   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5912   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5913     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5914     lt_cv_file_magic_cmd='func_win32_libid'
5915   else
5916     # Keep this pattern in sync with the one in func_win32_libid.
5917     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5918     lt_cv_file_magic_cmd='$OBJDUMP -f'
5919   fi
5920   ;;
5921
5922 cegcc*)
5923   # use the weaker test based on 'objdump'. See mingw*.
5924   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5925   lt_cv_file_magic_cmd='$OBJDUMP -f'
5926   ;;
5927
5928 darwin* | rhapsody*)
5929   lt_cv_deplibs_check_method=pass_all
5930   ;;
5931
5932 freebsd* | dragonfly*)
5933   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5934     case $host_cpu in
5935     i*86 )
5936       # Not sure whether the presence of OpenBSD here was a mistake.
5937       # Let's accept both of them until this is cleared up.
5938       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5939       lt_cv_file_magic_cmd=/usr/bin/file
5940       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5941       ;;
5942     esac
5943   else
5944     lt_cv_deplibs_check_method=pass_all
5945   fi
5946   ;;
5947
5948 gnu*)
5949   lt_cv_deplibs_check_method=pass_all
5950   ;;
5951
5952 haiku*)
5953   lt_cv_deplibs_check_method=pass_all
5954   ;;
5955
5956 hpux10.20* | hpux11*)
5957   lt_cv_file_magic_cmd=/usr/bin/file
5958   case $host_cpu in
5959   ia64*)
5960     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5961     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5962     ;;
5963   hppa*64*)
5964     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]'
5965     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5966     ;;
5967   *)
5968     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5969     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5970     ;;
5971   esac
5972   ;;
5973
5974 interix[3-9]*)
5975   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5976   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5977   ;;
5978
5979 irix5* | irix6* | nonstopux*)
5980   case $LD in
5981   *-32|*"-32 ") libmagic=32-bit;;
5982   *-n32|*"-n32 ") libmagic=N32;;
5983   *-64|*"-64 ") libmagic=64-bit;;
5984   *) libmagic=never-match;;
5985   esac
5986   lt_cv_deplibs_check_method=pass_all
5987   ;;
5988
5989 # This must be glibc/ELF.
5990 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5991   lt_cv_deplibs_check_method=pass_all
5992   ;;
5993
5994 netbsd*)
5995   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5996     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5997   else
5998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5999   fi
6000   ;;
6001
6002 newos6*)
6003   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6004   lt_cv_file_magic_cmd=/usr/bin/file
6005   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6006   ;;
6007
6008 *nto* | *qnx*)
6009   lt_cv_deplibs_check_method=pass_all
6010   ;;
6011
6012 openbsd*)
6013   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6014     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6015   else
6016     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6017   fi
6018   ;;
6019
6020 osf3* | osf4* | osf5*)
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 rdos*)
6025   lt_cv_deplibs_check_method=pass_all
6026   ;;
6027
6028 solaris*)
6029   lt_cv_deplibs_check_method=pass_all
6030   ;;
6031
6032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6033   lt_cv_deplibs_check_method=pass_all
6034   ;;
6035
6036 sysv4 | sysv4.3*)
6037   case $host_vendor in
6038   motorola)
6039     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]'
6040     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6041     ;;
6042   ncr)
6043     lt_cv_deplibs_check_method=pass_all
6044     ;;
6045   sequent)
6046     lt_cv_file_magic_cmd='/bin/file'
6047     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6048     ;;
6049   sni)
6050     lt_cv_file_magic_cmd='/bin/file'
6051     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6052     lt_cv_file_magic_test_file=/lib/libc.so
6053     ;;
6054   siemens)
6055     lt_cv_deplibs_check_method=pass_all
6056     ;;
6057   pc)
6058     lt_cv_deplibs_check_method=pass_all
6059     ;;
6060   esac
6061   ;;
6062
6063 tpf*)
6064   lt_cv_deplibs_check_method=pass_all
6065   ;;
6066 esac
6067
6068 fi
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6070 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6071
6072 file_magic_glob=
6073 want_nocaseglob=no
6074 if test "$build" = "$host"; then
6075   case $host_os in
6076   mingw* | pw32*)
6077     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6078       want_nocaseglob=yes
6079     else
6080       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6081     fi
6082     ;;
6083   esac
6084 fi
6085
6086 file_magic_cmd=$lt_cv_file_magic_cmd
6087 deplibs_check_method=$lt_cv_deplibs_check_method
6088 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 if test -n "$ac_tool_prefix"; then
6112   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_DLLTOOL+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   if test -n "$DLLTOOL"; then
6120   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127     for ac_exec_ext in '' $ac_executable_extensions; do
6128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131     break 2
6132   fi
6133 done
6134   done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 DLLTOOL=$ac_cv_prog_DLLTOOL
6140 if test -n "$DLLTOOL"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6142 $as_echo "$DLLTOOL" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147
6148
6149 fi
6150 if test -z "$ac_cv_prog_DLLTOOL"; then
6151   ac_ct_DLLTOOL=$DLLTOOL
6152   # Extract the first word of "dlltool", so it can be a program name with args.
6153 set dummy dlltool; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if test -n "$ac_ct_DLLTOOL"; then
6160   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174   done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6180 if test -n "$ac_ct_DLLTOOL"; then
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6182 $as_echo "$ac_ct_DLLTOOL" >&6; }
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 fi
6187
6188   if test "x$ac_ct_DLLTOOL" = x; then
6189     DLLTOOL="false"
6190   else
6191     case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6196 esac
6197     DLLTOOL=$ac_ct_DLLTOOL
6198   fi
6199 else
6200   DLLTOOL="$ac_cv_prog_DLLTOOL"
6201 fi
6202
6203 test -z "$DLLTOOL" && DLLTOOL=dlltool
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6215 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6216 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6217   $as_echo_n "(cached) " >&6
6218 else
6219   lt_cv_sharedlib_from_linklib_cmd='unknown'
6220
6221 case $host_os in
6222 cygwin* | mingw* | pw32* | cegcc*)
6223   # two different shell functions defined in ltmain.sh
6224   # decide which to use based on capabilities of $DLLTOOL
6225   case `$DLLTOOL --help 2>&1` in
6226   *--identify-strict*)
6227     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6228     ;;
6229   *)
6230     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6231     ;;
6232   esac
6233   ;;
6234 *)
6235   # fallback: assume linklib IS sharedlib
6236   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6237   ;;
6238 esac
6239
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6242 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6243 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6244 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6245
6246
6247
6248
6249
6250
6251
6252 if test -n "$ac_tool_prefix"; then
6253   for ac_prog in ar
6254   do
6255     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_prog_AR+:} false; then :
6260   $as_echo_n "(cached) " >&6
6261 else
6262   if test -n "$AR"; then
6263   ac_cv_prog_AR="$AR" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270     for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277   done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 AR=$ac_cv_prog_AR
6283 if test -n "$AR"; then
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6285 $as_echo "$AR" >&6; }
6286 else
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290
6291
6292     test -n "$AR" && break
6293   done
6294 fi
6295 if test -z "$AR"; then
6296   ac_ct_AR=$AR
6297   for ac_prog in ar
6298 do
6299   # Extract the first word of "$ac_prog", so it can be a program name with args.
6300 set dummy $ac_prog; 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_AR+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$ac_ct_AR"; then
6307   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316     ac_cv_prog_ac_ct_AR="$ac_prog"
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_AR=$ac_cv_prog_ac_ct_AR
6327 if test -n "$ac_ct_AR"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6329 $as_echo "$ac_ct_AR" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336   test -n "$ac_ct_AR" && break
6337 done
6338
6339   if test "x$ac_ct_AR" = x; then
6340     AR="false"
6341   else
6342     case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6347 esac
6348     AR=$ac_ct_AR
6349   fi
6350 fi
6351
6352 : ${AR=ar}
6353 : ${AR_FLAGS=cru}
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6366 $as_echo_n "checking for archiver @FILE support... " >&6; }
6367 if ${lt_cv_ar_at_file+:} false; then :
6368   $as_echo_n "(cached) " >&6
6369 else
6370   lt_cv_ar_at_file=no
6371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h.  */
6373
6374 #ifdef FC_DUMMY_MAIN
6375 #ifndef FC_DUMMY_MAIN_EQ_F77
6376 #  ifdef __cplusplus
6377      extern "C"
6378 #  endif
6379    int FC_DUMMY_MAIN() { return 1; }
6380 #endif
6381 #endif
6382 int
6383 main ()
6384 {
6385
6386   ;
6387   return 0;
6388 }
6389 _ACEOF
6390 if ac_fn_c_try_compile "$LINENO"; then :
6391   echo conftest.$ac_objext > conftest.lst
6392       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6393       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6394   (eval $lt_ar_try) 2>&5
6395   ac_status=$?
6396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397   test $ac_status = 0; }
6398       if test "$ac_status" -eq 0; then
6399         # Ensure the archiver fails upon bogus file names.
6400         rm -f conftest.$ac_objext libconftest.a
6401         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6402   (eval $lt_ar_try) 2>&5
6403   ac_status=$?
6404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405   test $ac_status = 0; }
6406         if test "$ac_status" -ne 0; then
6407           lt_cv_ar_at_file=@
6408         fi
6409       fi
6410       rm -f conftest.* libconftest.a
6411
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6417 $as_echo "$lt_cv_ar_at_file" >&6; }
6418
6419 if test "x$lt_cv_ar_at_file" = xno; then
6420   archiver_list_spec=
6421 else
6422   archiver_list_spec=$lt_cv_ar_at_file
6423 fi
6424
6425
6426
6427
6428
6429
6430
6431 if test -n "$ac_tool_prefix"; then
6432   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}strip; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_STRIP+:} false; then :
6437   $as_echo_n "(cached) " >&6
6438 else
6439   if test -n "$STRIP"; then
6440   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447     for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454   done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 STRIP=$ac_cv_prog_STRIP
6460 if test -n "$STRIP"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6462 $as_echo "$STRIP" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_prog_STRIP"; then
6471   ac_ct_STRIP=$STRIP
6472   # Extract the first word of "strip", so it can be a program name with args.
6473 set dummy strip; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$ac_ct_STRIP"; then
6480   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489     ac_cv_prog_ac_ct_STRIP="strip"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6500 if test -n "$ac_ct_STRIP"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6502 $as_echo "$ac_ct_STRIP" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508   if test "x$ac_ct_STRIP" = x; then
6509     STRIP=":"
6510   else
6511     case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517     STRIP=$ac_ct_STRIP
6518   fi
6519 else
6520   STRIP="$ac_cv_prog_STRIP"
6521 fi
6522
6523 test -z "$STRIP" && STRIP=:
6524
6525
6526
6527
6528
6529
6530 if test -n "$ac_tool_prefix"; then
6531   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_RANLIB+:} false; then :
6536   $as_echo_n "(cached) " >&6
6537 else
6538   if test -n "$RANLIB"; then
6539   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546     for ac_exec_ext in '' $ac_executable_extensions; do
6547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553   done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 RANLIB=$ac_cv_prog_RANLIB
6559 if test -n "$RANLIB"; then
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6561 $as_echo "$RANLIB" >&6; }
6562 else
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_RANLIB"; then
6570   ac_ct_RANLIB=$RANLIB
6571   # Extract the first word of "ranlib", so it can be a program name with args.
6572 set dummy ranlib; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$ac_ct_RANLIB"; then
6579   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_ac_ct_RANLIB="ranlib"
6589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593   done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6599 if test -n "$ac_ct_RANLIB"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6601 $as_echo "$ac_ct_RANLIB" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607   if test "x$ac_ct_RANLIB" = x; then
6608     RANLIB=":"
6609   else
6610     case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616     RANLIB=$ac_ct_RANLIB
6617   fi
6618 else
6619   RANLIB="$ac_cv_prog_RANLIB"
6620 fi
6621
6622 test -z "$RANLIB" && RANLIB=:
6623
6624
6625
6626
6627
6628
6629 # Determine commands to create old-style static archives.
6630 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6631 old_postinstall_cmds='chmod 644 $oldlib'
6632 old_postuninstall_cmds=
6633
6634 if test -n "$RANLIB"; then
6635   case $host_os in
6636   openbsd*)
6637     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6638     ;;
6639   *)
6640     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6641     ;;
6642   esac
6643   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6644 fi
6645
6646 case $host_os in
6647   darwin*)
6648     lock_old_archive_extraction=yes ;;
6649   *)
6650     lock_old_archive_extraction=no ;;
6651 esac
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 # If no C compiler was specified, use CC.
6692 LTCC=${LTCC-"$CC"}
6693
6694 # If no C compiler flags were specified, use CFLAGS.
6695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6696
6697 # Allow CC to be a program name with arguments.
6698 compiler=$CC
6699
6700
6701 # Check for command to grab the raw symbol name followed by C symbol from nm.
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6703 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6704 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707
6708 # These are sane defaults that work on at least a few old systems.
6709 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6710
6711 # Character class describing NM global symbol codes.
6712 symcode='[BCDEGRST]'
6713
6714 # Regexp to match symbols that can be accessed directly from C.
6715 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6716
6717 # Define system-specific variables.
6718 case $host_os in
6719 aix*)
6720   symcode='[BCDT]'
6721   ;;
6722 cygwin* | mingw* | pw32* | cegcc*)
6723   symcode='[ABCDGISTW]'
6724   ;;
6725 hpux*)
6726   if test "$host_cpu" = ia64; then
6727     symcode='[ABCDEGRST]'
6728   fi
6729   ;;
6730 irix* | nonstopux*)
6731   symcode='[BCDEGRST]'
6732   ;;
6733 osf*)
6734   symcode='[BCDEGQRST]'
6735   ;;
6736 solaris*)
6737   symcode='[BDRT]'
6738   ;;
6739 sco3.2v5*)
6740   symcode='[DT]'
6741   ;;
6742 sysv4.2uw2*)
6743   symcode='[DT]'
6744   ;;
6745 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6746   symcode='[ABDT]'
6747   ;;
6748 sysv4)
6749   symcode='[DFNSTU]'
6750   ;;
6751 esac
6752
6753 # If we're using GNU nm, then use its standard symbol codes.
6754 case `$NM -V 2>&1` in
6755 *GNU* | *'with BFD'*)
6756   symcode='[ABCDGIRSTW]' ;;
6757 esac
6758
6759 # Transform an extracted symbol line into a proper C declaration.
6760 # Some systems (esp. on ia64) link data and code symbols differently,
6761 # so use this general approach.
6762 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6763
6764 # Transform an extracted symbol line into symbol name and symbol address
6765 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6766 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6767
6768 # Handle CRLF in mingw tool chain
6769 opt_cr=
6770 case $build_os in
6771 mingw*)
6772   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6773   ;;
6774 esac
6775
6776 # Try without a prefix underscore, then with it.
6777 for ac_symprfx in "" "_"; do
6778
6779   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6780   symxfrm="\\1 $ac_symprfx\\2 \\2"
6781
6782   # Write the raw and C identifiers.
6783   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6784     # Fake it for dumpbin and say T for any non-static function
6785     # and D for any global variable.
6786     # Also find C++ and __fastcall symbols from MSVC++,
6787     # which start with @ or ?.
6788     lt_cv_sys_global_symbol_pipe="$AWK '"\
6789 "     {last_section=section; section=\$ 3};"\
6790 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6791 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6792 "     \$ 0!~/External *\|/{next};"\
6793 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6794 "     {if(hide[section]) next};"\
6795 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6796 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6797 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6798 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6799 "     ' prfx=^$ac_symprfx"
6800   else
6801     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6802   fi
6803   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6804
6805   # Check to see that the pipe works correctly.
6806   pipe_works=no
6807
6808   rm -f conftest*
6809   cat > conftest.$ac_ext <<_LT_EOF
6810 #ifdef __cplusplus
6811 extern "C" {
6812 #endif
6813 char nm_test_var;
6814 void nm_test_func(void);
6815 void nm_test_func(void){}
6816 #ifdef __cplusplus
6817 }
6818 #endif
6819 int main(){nm_test_var='a';nm_test_func();return(0);}
6820 _LT_EOF
6821
6822   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6823   (eval $ac_compile) 2>&5
6824   ac_status=$?
6825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826   test $ac_status = 0; }; then
6827     # Now try to grab the symbols.
6828     nlist=conftest.nm
6829     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6830   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6831   ac_status=$?
6832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833   test $ac_status = 0; } && test -s "$nlist"; then
6834       # Try sorting and uniquifying the output.
6835       if sort "$nlist" | uniq > "$nlist"T; then
6836         mv -f "$nlist"T "$nlist"
6837       else
6838         rm -f "$nlist"T
6839       fi
6840
6841       # Make sure that we snagged all the symbols we need.
6842       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6843         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6844           cat <<_LT_EOF > conftest.$ac_ext
6845 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6846 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6847 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6848    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6849 # define LT_DLSYM_CONST
6850 #elif defined(__osf__)
6851 /* This system does not cope well with relocations in const data.  */
6852 # define LT_DLSYM_CONST
6853 #else
6854 # define LT_DLSYM_CONST const
6855 #endif
6856
6857 #ifdef __cplusplus
6858 extern "C" {
6859 #endif
6860
6861 _LT_EOF
6862           # Now generate the symbol file.
6863           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6864
6865           cat <<_LT_EOF >> conftest.$ac_ext
6866
6867 /* The mapping between symbol names and symbols.  */
6868 LT_DLSYM_CONST struct {
6869   const char *name;
6870   void       *address;
6871 }
6872 lt__PROGRAM__LTX_preloaded_symbols[] =
6873 {
6874   { "@PROGRAM@", (void *) 0 },
6875 _LT_EOF
6876           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6877           cat <<\_LT_EOF >> conftest.$ac_ext
6878   {0, (void *) 0}
6879 };
6880
6881 /* This works around a problem in FreeBSD linker */
6882 #ifdef FREEBSD_WORKAROUND
6883 static const void *lt_preloaded_setup() {
6884   return lt__PROGRAM__LTX_preloaded_symbols;
6885 }
6886 #endif
6887
6888 #ifdef __cplusplus
6889 }
6890 #endif
6891 _LT_EOF
6892           # Now try linking the two files.
6893           mv conftest.$ac_objext conftstm.$ac_objext
6894           lt_globsym_save_LIBS=$LIBS
6895           lt_globsym_save_CFLAGS=$CFLAGS
6896           LIBS="conftstm.$ac_objext"
6897           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6898           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6899   (eval $ac_link) 2>&5
6900   ac_status=$?
6901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6903             pipe_works=yes
6904           fi
6905           LIBS=$lt_globsym_save_LIBS
6906           CFLAGS=$lt_globsym_save_CFLAGS
6907         else
6908           echo "cannot find nm_test_func in $nlist" >&5
6909         fi
6910       else
6911         echo "cannot find nm_test_var in $nlist" >&5
6912       fi
6913     else
6914       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6915     fi
6916   else
6917     echo "$progname: failed program was:" >&5
6918     cat conftest.$ac_ext >&5
6919   fi
6920   rm -rf conftest* conftst*
6921
6922   # Do not use the global_symbol_pipe unless it works.
6923   if test "$pipe_works" = yes; then
6924     break
6925   else
6926     lt_cv_sys_global_symbol_pipe=
6927   fi
6928 done
6929
6930 fi
6931
6932 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6933   lt_cv_sys_global_symbol_to_cdecl=
6934 fi
6935 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6937 $as_echo "failed" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6940 $as_echo "ok" >&6; }
6941 fi
6942
6943 # Response file support.
6944 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6945   nm_file_list_spec='@'
6946 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6947   nm_file_list_spec='@'
6948 fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6977 $as_echo_n "checking for sysroot... " >&6; }
6978
6979 # Check whether --with-sysroot was given.
6980 if test "${with_sysroot+set}" = set; then :
6981   withval=$with_sysroot;
6982 else
6983   with_sysroot=no
6984 fi
6985
6986
6987 lt_sysroot=
6988 case ${with_sysroot} in #(
6989  yes)
6990    if test "$GCC" = yes; then
6991      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6992    fi
6993    ;; #(
6994  /*)
6995    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6996    ;; #(
6997  no|'')
6998    ;; #(
6999  *)
7000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7001 $as_echo "${with_sysroot}" >&6; }
7002    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7003    ;;
7004 esac
7005
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7007 $as_echo "${lt_sysroot:-no}" >&6; }
7008
7009
7010
7011
7012
7013 # Check whether --enable-libtool-lock was given.
7014 if test "${enable_libtool_lock+set}" = set; then :
7015   enableval=$enable_libtool_lock;
7016 fi
7017
7018 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7019
7020 # Some flags need to be propagated to the compiler or linker for good
7021 # libtool support.
7022 case $host in
7023 ia64-*-hpux*)
7024   # Find out which ABI we are using.
7025   echo 'int i;' > conftest.$ac_ext
7026   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7027   (eval $ac_compile) 2>&5
7028   ac_status=$?
7029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030   test $ac_status = 0; }; then
7031     case `/usr/bin/file conftest.$ac_objext` in
7032       *ELF-32*)
7033         HPUX_IA64_MODE="32"
7034         ;;
7035       *ELF-64*)
7036         HPUX_IA64_MODE="64"
7037         ;;
7038     esac
7039   fi
7040   rm -rf conftest*
7041   ;;
7042 *-*-irix6*)
7043   # Find out which ABI we are using.
7044   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7045   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7046   (eval $ac_compile) 2>&5
7047   ac_status=$?
7048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049   test $ac_status = 0; }; then
7050     if test "$lt_cv_prog_gnu_ld" = yes; then
7051       case `/usr/bin/file conftest.$ac_objext` in
7052         *32-bit*)
7053           LD="${LD-ld} -melf32bsmip"
7054           ;;
7055         *N32*)
7056           LD="${LD-ld} -melf32bmipn32"
7057           ;;
7058         *64-bit*)
7059           LD="${LD-ld} -melf64bmip"
7060         ;;
7061       esac
7062     else
7063       case `/usr/bin/file conftest.$ac_objext` in
7064         *32-bit*)
7065           LD="${LD-ld} -32"
7066           ;;
7067         *N32*)
7068           LD="${LD-ld} -n32"
7069           ;;
7070         *64-bit*)
7071           LD="${LD-ld} -64"
7072           ;;
7073       esac
7074     fi
7075   fi
7076   rm -rf conftest*
7077   ;;
7078
7079 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7080 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7081   # Find out which ABI we are using.
7082   echo 'int i;' > conftest.$ac_ext
7083   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084   (eval $ac_compile) 2>&5
7085   ac_status=$?
7086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087   test $ac_status = 0; }; then
7088     case `/usr/bin/file conftest.o` in
7089       *32-bit*)
7090         case $host in
7091           x86_64-*kfreebsd*-gnu)
7092             LD="${LD-ld} -m elf_i386_fbsd"
7093             ;;
7094           x86_64-*linux*)
7095             LD="${LD-ld} -m elf_i386"
7096             ;;
7097           ppc64-*linux*|powerpc64-*linux*)
7098             LD="${LD-ld} -m elf32ppclinux"
7099             ;;
7100           s390x-*linux*)
7101             LD="${LD-ld} -m elf_s390"
7102             ;;
7103           sparc64-*linux*)
7104             LD="${LD-ld} -m elf32_sparc"
7105             ;;
7106         esac
7107         ;;
7108       *64-bit*)
7109         case $host in
7110           x86_64-*kfreebsd*-gnu)
7111             LD="${LD-ld} -m elf_x86_64_fbsd"
7112             ;;
7113           x86_64-*linux*)
7114             LD="${LD-ld} -m elf_x86_64"
7115             ;;
7116           ppc*-*linux*|powerpc*-*linux*)
7117             LD="${LD-ld} -m elf64ppc"
7118             ;;
7119           s390*-*linux*|s390*-*tpf*)
7120             LD="${LD-ld} -m elf64_s390"
7121             ;;
7122           sparc*-*linux*)
7123             LD="${LD-ld} -m elf64_sparc"
7124             ;;
7125         esac
7126         ;;
7127     esac
7128   fi
7129   rm -rf conftest*
7130   ;;
7131
7132 *-*-sco3.2v5*)
7133   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7134   SAVE_CFLAGS="$CFLAGS"
7135   CFLAGS="$CFLAGS -belf"
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7137 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7138 if ${lt_cv_cc_needs_belf+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   ac_ext=c
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146
7147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h.  */
7149
7150 #ifdef FC_DUMMY_MAIN
7151 #ifndef FC_DUMMY_MAIN_EQ_F77
7152 #  ifdef __cplusplus
7153      extern "C"
7154 #  endif
7155    int FC_DUMMY_MAIN() { return 1; }
7156 #endif
7157 #endif
7158 int
7159 main ()
7160 {
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167   lt_cv_cc_needs_belf=yes
7168 else
7169   lt_cv_cc_needs_belf=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext \
7172     conftest$ac_exeext conftest.$ac_ext
7173      ac_ext=c
7174 ac_cpp='$CPP $CPPFLAGS'
7175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7178
7179 fi
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7181 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7182   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7183     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7184     CFLAGS="$SAVE_CFLAGS"
7185   fi
7186   ;;
7187 *-*solaris*)
7188   # Find out which ABI we are using.
7189   echo 'int i;' > conftest.$ac_ext
7190   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191   (eval $ac_compile) 2>&5
7192   ac_status=$?
7193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194   test $ac_status = 0; }; then
7195     case `/usr/bin/file conftest.o` in
7196     *64-bit*)
7197       case $lt_cv_prog_gnu_ld in
7198       yes*)
7199         case $host in
7200         i?86-*-solaris*)
7201           LD="${LD-ld} -m elf_x86_64"
7202           ;;
7203         sparc*-*-solaris*)
7204           LD="${LD-ld} -m elf64_sparc"
7205           ;;
7206         esac
7207         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7208         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7209           LD="${LD-ld}_sol2"
7210         fi
7211         ;;
7212       *)
7213         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7214           LD="${LD-ld} -64"
7215         fi
7216         ;;
7217       esac
7218       ;;
7219     esac
7220   fi
7221   rm -rf conftest*
7222   ;;
7223 esac
7224
7225 need_locks="$enable_libtool_lock"
7226
7227 if test -n "$ac_tool_prefix"; then
7228   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}mt; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$MANIFEST_TOOL"; then
7236   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243     for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250   done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7256 if test -n "$MANIFEST_TOOL"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7258 $as_echo "$MANIFEST_TOOL" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7267   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7268   # Extract the first word of "mt", so it can be a program name with args.
7269 set dummy mt; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7273   $as_echo_n "(cached) " >&6
7274 else
7275   if test -n "$ac_ct_MANIFEST_TOOL"; then
7276   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283     for ac_exec_ext in '' $ac_executable_extensions; do
7284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290   done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7296 if test -n "$ac_ct_MANIFEST_TOOL"; then
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7298 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7299 else
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7305     MANIFEST_TOOL=":"
7306   else
7307     case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7314   fi
7315 else
7316   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7317 fi
7318
7319 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7321 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7322 if ${lt_cv_path_mainfest_tool+:} false; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   lt_cv_path_mainfest_tool=no
7326   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7327   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7328   cat conftest.err >&5
7329   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7330     lt_cv_path_mainfest_tool=yes
7331   fi
7332   rm -f conftest*
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7335 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7336 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7337   MANIFEST_TOOL=:
7338 fi
7339
7340
7341
7342
7343
7344
7345   case $host_os in
7346     rhapsody* | darwin*)
7347     if test -n "$ac_tool_prefix"; then
7348   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$DSYMUTIL"; then
7356   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363     for ac_exec_ext in '' $ac_executable_extensions; do
7364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370   done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7376 if test -n "$DSYMUTIL"; then
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7378 $as_echo "$DSYMUTIL" >&6; }
7379 else
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385 fi
7386 if test -z "$ac_cv_prog_DSYMUTIL"; then
7387   ac_ct_DSYMUTIL=$DSYMUTIL
7388   # Extract the first word of "dsymutil", so it can be a program name with args.
7389 set dummy dsymutil; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$ac_ct_DSYMUTIL"; then
7396   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7416 if test -n "$ac_ct_DSYMUTIL"; then
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7418 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7419 else
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424   if test "x$ac_ct_DSYMUTIL" = x; then
7425     DSYMUTIL=":"
7426   else
7427     case $cross_compiling:$ac_tool_warned in
7428 yes:)
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433     DSYMUTIL=$ac_ct_DSYMUTIL
7434   fi
7435 else
7436   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7437 fi
7438
7439     if test -n "$ac_tool_prefix"; then
7440   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_NMEDIT+:} false; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   if test -n "$NMEDIT"; then
7448   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453   IFS=$as_save_IFS
7454   test -z "$as_dir" && as_dir=.
7455     for ac_exec_ext in '' $ac_executable_extensions; do
7456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459     break 2
7460   fi
7461 done
7462   done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 NMEDIT=$ac_cv_prog_NMEDIT
7468 if test -n "$NMEDIT"; then
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7470 $as_echo "$NMEDIT" >&6; }
7471 else
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7474 fi
7475
7476
7477 fi
7478 if test -z "$ac_cv_prog_NMEDIT"; then
7479   ac_ct_NMEDIT=$NMEDIT
7480   # Extract the first word of "nmedit", so it can be a program name with args.
7481 set dummy nmedit; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7485   $as_echo_n "(cached) " >&6
7486 else
7487   if test -n "$ac_ct_NMEDIT"; then
7488   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495     for ac_exec_ext in '' $ac_executable_extensions; do
7496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7497     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502   done
7503 IFS=$as_save_IFS
7504
7505 fi
7506 fi
7507 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7508 if test -n "$ac_ct_NMEDIT"; then
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7510 $as_echo "$ac_ct_NMEDIT" >&6; }
7511 else
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7514 fi
7515
7516   if test "x$ac_ct_NMEDIT" = x; then
7517     NMEDIT=":"
7518   else
7519     case $cross_compiling:$ac_tool_warned in
7520 yes:)
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7524 esac
7525     NMEDIT=$ac_ct_NMEDIT
7526   fi
7527 else
7528   NMEDIT="$ac_cv_prog_NMEDIT"
7529 fi
7530
7531     if test -n "$ac_tool_prefix"; then
7532   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7533 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_LIPO+:} false; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539   if test -n "$LIPO"; then
7540   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547     for ac_exec_ext in '' $ac_executable_extensions; do
7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554   done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 LIPO=$ac_cv_prog_LIPO
7560 if test -n "$LIPO"; then
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7562 $as_echo "$LIPO" >&6; }
7563 else
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566 fi
7567
7568
7569 fi
7570 if test -z "$ac_cv_prog_LIPO"; then
7571   ac_ct_LIPO=$LIPO
7572   # Extract the first word of "lipo", so it can be a program name with args.
7573 set dummy lipo; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   if test -n "$ac_ct_LIPO"; then
7580   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587     for ac_exec_ext in '' $ac_executable_extensions; do
7588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7589     ac_cv_prog_ac_ct_LIPO="lipo"
7590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594   done
7595 IFS=$as_save_IFS
7596
7597 fi
7598 fi
7599 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7600 if test -n "$ac_ct_LIPO"; then
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7602 $as_echo "$ac_ct_LIPO" >&6; }
7603 else
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 fi
7607
7608   if test "x$ac_ct_LIPO" = x; then
7609     LIPO=":"
7610   else
7611     case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7616 esac
7617     LIPO=$ac_ct_LIPO
7618   fi
7619 else
7620   LIPO="$ac_cv_prog_LIPO"
7621 fi
7622
7623     if test -n "$ac_tool_prefix"; then
7624   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7625 set dummy ${ac_tool_prefix}otool; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_OTOOL+:} false; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   if test -n "$OTOOL"; then
7632   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639     for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646   done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 OTOOL=$ac_cv_prog_OTOOL
7652 if test -n "$OTOOL"; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7654 $as_echo "$OTOOL" >&6; }
7655 else
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659
7660
7661 fi
7662 if test -z "$ac_cv_prog_OTOOL"; then
7663   ac_ct_OTOOL=$OTOOL
7664   # Extract the first word of "otool", so it can be a program name with args.
7665 set dummy otool; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7669   $as_echo_n "(cached) " >&6
7670 else
7671   if test -n "$ac_ct_OTOOL"; then
7672   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679     for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_prog_ac_ct_OTOOL="otool"
7682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686   done
7687 IFS=$as_save_IFS
7688
7689 fi
7690 fi
7691 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7692 if test -n "$ac_ct_OTOOL"; then
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7694 $as_echo "$ac_ct_OTOOL" >&6; }
7695 else
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700   if test "x$ac_ct_OTOOL" = x; then
7701     OTOOL=":"
7702   else
7703     case $cross_compiling:$ac_tool_warned in
7704 yes:)
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7707 ac_tool_warned=yes ;;
7708 esac
7709     OTOOL=$ac_ct_OTOOL
7710   fi
7711 else
7712   OTOOL="$ac_cv_prog_OTOOL"
7713 fi
7714
7715     if test -n "$ac_tool_prefix"; then
7716   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7717 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_OTOOL64+:} false; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723   if test -n "$OTOOL64"; then
7724   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729   IFS=$as_save_IFS
7730   test -z "$as_dir" && as_dir=.
7731     for ac_exec_ext in '' $ac_executable_extensions; do
7732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735     break 2
7736   fi
7737 done
7738   done
7739 IFS=$as_save_IFS
7740
7741 fi
7742 fi
7743 OTOOL64=$ac_cv_prog_OTOOL64
7744 if test -n "$OTOOL64"; then
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7746 $as_echo "$OTOOL64" >&6; }
7747 else
7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 fi
7751
7752
7753 fi
7754 if test -z "$ac_cv_prog_OTOOL64"; then
7755   ac_ct_OTOOL64=$OTOOL64
7756   # Extract the first word of "otool64", so it can be a program name with args.
7757 set dummy otool64; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7761   $as_echo_n "(cached) " >&6
7762 else
7763   if test -n "$ac_ct_OTOOL64"; then
7764   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769   IFS=$as_save_IFS
7770   test -z "$as_dir" && as_dir=.
7771     for ac_exec_ext in '' $ac_executable_extensions; do
7772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773     ac_cv_prog_ac_ct_OTOOL64="otool64"
7774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775     break 2
7776   fi
7777 done
7778   done
7779 IFS=$as_save_IFS
7780
7781 fi
7782 fi
7783 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7784 if test -n "$ac_ct_OTOOL64"; then
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7786 $as_echo "$ac_ct_OTOOL64" >&6; }
7787 else
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792   if test "x$ac_ct_OTOOL64" = x; then
7793     OTOOL64=":"
7794   else
7795     case $cross_compiling:$ac_tool_warned in
7796 yes:)
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned=yes ;;
7800 esac
7801     OTOOL64=$ac_ct_OTOOL64
7802   fi
7803 else
7804   OTOOL64="$ac_cv_prog_OTOOL64"
7805 fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7834 $as_echo_n "checking for -single_module linker flag... " >&6; }
7835 if ${lt_cv_apple_cc_single_mod+:} false; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   lt_cv_apple_cc_single_mod=no
7839       if test -z "${LT_MULTI_MODULE}"; then
7840         # By default we will add the -single_module flag. You can override
7841         # by either setting the environment variable LT_MULTI_MODULE
7842         # non-empty at configure time, or by adding -multi_module to the
7843         # link flags.
7844         rm -rf libconftest.dylib*
7845         echo "int foo(void){return 1;}" > conftest.c
7846         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7847 -dynamiclib -Wl,-single_module conftest.c" >&5
7848         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7849           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7850         _lt_result=$?
7851         # If there is a non-empty error log, and "single_module"
7852         # appears in it, assume the flag caused a linker warning
7853         if test -s conftest.err && $GREP single_module conftest.err; then
7854           cat conftest.err >&5
7855         # Otherwise, if the output was created with a 0 exit code from
7856         # the compiler, it worked.
7857         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7858           lt_cv_apple_cc_single_mod=yes
7859         else
7860           cat conftest.err >&5
7861         fi
7862         rm -rf libconftest.dylib*
7863         rm -f conftest.*
7864       fi
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7867 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7868
7869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7870 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7871 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7872   $as_echo_n "(cached) " >&6
7873 else
7874   lt_cv_ld_exported_symbols_list=no
7875       save_LDFLAGS=$LDFLAGS
7876       echo "_main" > conftest.sym
7877       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7878       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h.  */
7880
7881 #ifdef FC_DUMMY_MAIN
7882 #ifndef FC_DUMMY_MAIN_EQ_F77
7883 #  ifdef __cplusplus
7884      extern "C"
7885 #  endif
7886    int FC_DUMMY_MAIN() { return 1; }
7887 #endif
7888 #endif
7889 int
7890 main ()
7891 {
7892
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_link "$LINENO"; then :
7898   lt_cv_ld_exported_symbols_list=yes
7899 else
7900   lt_cv_ld_exported_symbols_list=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext \
7903     conftest$ac_exeext conftest.$ac_ext
7904         LDFLAGS="$save_LDFLAGS"
7905
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7908 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7909
7910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7911 $as_echo_n "checking for -force_load linker flag... " >&6; }
7912 if ${lt_cv_ld_force_load+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   lt_cv_ld_force_load=no
7916       cat > conftest.c << _LT_EOF
7917 int forced_loaded() { return 2;}
7918 _LT_EOF
7919       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7920       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7921       echo "$AR cru libconftest.a conftest.o" >&5
7922       $AR cru libconftest.a conftest.o 2>&5
7923       echo "$RANLIB libconftest.a" >&5
7924       $RANLIB libconftest.a 2>&5
7925       cat > conftest.c << _LT_EOF
7926 int main() { return 0;}
7927 _LT_EOF
7928       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7929       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7930       _lt_result=$?
7931       if test -s conftest.err && $GREP force_load conftest.err; then
7932         cat conftest.err >&5
7933       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7934         lt_cv_ld_force_load=yes
7935       else
7936         cat conftest.err >&5
7937       fi
7938         rm -f conftest.err libconftest.a conftest conftest.c
7939         rm -rf conftest.dSYM
7940
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7943 $as_echo "$lt_cv_ld_force_load" >&6; }
7944     case $host_os in
7945     rhapsody* | darwin1.[012])
7946       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7947     darwin1.*)
7948       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7949     darwin*) # darwin 5.x on
7950       # if running on 10.5 or later, the deployment target defaults
7951       # to the OS version, if on x86, and 10.4, the deployment
7952       # target defaults to 10.4. Don't you love it?
7953       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7954         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7955           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7956         10.[012]*)
7957           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7958         10.*)
7959           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7960       esac
7961     ;;
7962   esac
7963     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7964       _lt_dar_single_mod='$single_module'
7965     fi
7966     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7967       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7968     else
7969       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7970     fi
7971     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7972       _lt_dsymutil='~$DSYMUTIL $lib || :'
7973     else
7974       _lt_dsymutil=
7975     fi
7976     ;;
7977   esac
7978
7979 ac_ext=c
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7985 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7986 # On Suns, sometimes $CPP names a directory.
7987 if test -n "$CPP" && test -d "$CPP"; then
7988   CPP=
7989 fi
7990 if test -z "$CPP"; then
7991   if ${ac_cv_prog_CPP+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994       # Double quotes because CPP needs to be expanded
7995     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7996     do
7997       ac_preproc_ok=false
7998 for ac_c_preproc_warn_flag in '' yes
7999 do
8000   # Use a header file that comes with gcc, so configuring glibc
8001   # with a fresh cross-compiler works.
8002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8003   # <limits.h> exists even on freestanding compilers.
8004   # On the NeXT, cc -E runs the code through the compiler's parser,
8005   # not just through cpp. "Syntax error" is here to catch this case.
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 #ifdef __STDC__
8009 # include <limits.h>
8010 #else
8011 # include <assert.h>
8012 #endif
8013                      Syntax error
8014 _ACEOF
8015 if ac_fn_c_try_cpp "$LINENO"; then :
8016
8017 else
8018   # Broken: fails on valid input.
8019 continue
8020 fi
8021 rm -f conftest.err conftest.i conftest.$ac_ext
8022
8023   # OK, works on sane cases.  Now check whether nonexistent headers
8024   # can be detected and how.
8025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h.  */
8027 #include <ac_nonexistent.h>
8028 _ACEOF
8029 if ac_fn_c_try_cpp "$LINENO"; then :
8030   # Broken: success on invalid input.
8031 continue
8032 else
8033   # Passes both tests.
8034 ac_preproc_ok=:
8035 break
8036 fi
8037 rm -f conftest.err conftest.i conftest.$ac_ext
8038
8039 done
8040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8041 rm -f conftest.i conftest.err conftest.$ac_ext
8042 if $ac_preproc_ok; then :
8043   break
8044 fi
8045
8046     done
8047     ac_cv_prog_CPP=$CPP
8048
8049 fi
8050   CPP=$ac_cv_prog_CPP
8051 else
8052   ac_cv_prog_CPP=$CPP
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8055 $as_echo "$CPP" >&6; }
8056 ac_preproc_ok=false
8057 for ac_c_preproc_warn_flag in '' yes
8058 do
8059   # Use a header file that comes with gcc, so configuring glibc
8060   # with a fresh cross-compiler works.
8061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062   # <limits.h> exists even on freestanding compilers.
8063   # On the NeXT, cc -E runs the code through the compiler's parser,
8064   # not just through cpp. "Syntax error" is here to catch this case.
8065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h.  */
8067 #ifdef __STDC__
8068 # include <limits.h>
8069 #else
8070 # include <assert.h>
8071 #endif
8072                      Syntax error
8073 _ACEOF
8074 if ac_fn_c_try_cpp "$LINENO"; then :
8075
8076 else
8077   # Broken: fails on valid input.
8078 continue
8079 fi
8080 rm -f conftest.err conftest.i conftest.$ac_ext
8081
8082   # OK, works on sane cases.  Now check whether nonexistent headers
8083   # can be detected and how.
8084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h.  */
8086 #include <ac_nonexistent.h>
8087 _ACEOF
8088 if ac_fn_c_try_cpp "$LINENO"; then :
8089   # Broken: success on invalid input.
8090 continue
8091 else
8092   # Passes both tests.
8093 ac_preproc_ok=:
8094 break
8095 fi
8096 rm -f conftest.err conftest.i conftest.$ac_ext
8097
8098 done
8099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8100 rm -f conftest.i conftest.err conftest.$ac_ext
8101 if $ac_preproc_ok; then :
8102
8103 else
8104   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8106 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8107 See \`config.log' for more details" "$LINENO" 5; }
8108 fi
8109
8110 ac_ext=c
8111 ac_cpp='$CPP $CPPFLAGS'
8112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8118 $as_echo_n "checking for ANSI C header files... " >&6; }
8119 if ${ac_cv_header_stdc+:} false; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h.  */
8124 #include <stdlib.h>
8125 #include <stdarg.h>
8126 #include <string.h>
8127 #include <float.h>
8128
8129 #ifdef FC_DUMMY_MAIN
8130 #ifndef FC_DUMMY_MAIN_EQ_F77
8131 #  ifdef __cplusplus
8132      extern "C"
8133 #  endif
8134    int FC_DUMMY_MAIN() { return 1; }
8135 #endif
8136 #endif
8137 int
8138 main ()
8139 {
8140
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_compile "$LINENO"; then :
8146   ac_cv_header_stdc=yes
8147 else
8148   ac_cv_header_stdc=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151
8152 if test $ac_cv_header_stdc = yes; then
8153   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156 #include <string.h>
8157
8158 _ACEOF
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160   $EGREP "memchr" >/dev/null 2>&1; then :
8161
8162 else
8163   ac_cv_header_stdc=no
8164 fi
8165 rm -f conftest*
8166
8167 fi
8168
8169 if test $ac_cv_header_stdc = yes; then
8170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h.  */
8173 #include <stdlib.h>
8174
8175 _ACEOF
8176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177   $EGREP "free" >/dev/null 2>&1; then :
8178
8179 else
8180   ac_cv_header_stdc=no
8181 fi
8182 rm -f conftest*
8183
8184 fi
8185
8186 if test $ac_cv_header_stdc = yes; then
8187   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8188   if test "$cross_compiling" = yes; then :
8189   :
8190 else
8191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h.  */
8193 #include <ctype.h>
8194 #include <stdlib.h>
8195 #if ((' ' & 0x0FF) == 0x020)
8196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8198 #else
8199 # define ISLOWER(c) \
8200                    (('a' <= (c) && (c) <= 'i') \
8201                      || ('j' <= (c) && (c) <= 'r') \
8202                      || ('s' <= (c) && (c) <= 'z'))
8203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8204 #endif
8205
8206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8207 int
8208 main ()
8209 {
8210   int i;
8211   for (i = 0; i < 256; i++)
8212     if (XOR (islower (i), ISLOWER (i))
8213         || toupper (i) != TOUPPER (i))
8214       return 2;
8215   return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_run "$LINENO"; then :
8219
8220 else
8221   ac_cv_header_stdc=no
8222 fi
8223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8224   conftest.$ac_objext conftest.beam conftest.$ac_ext
8225 fi
8226
8227 fi
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8230 $as_echo "$ac_cv_header_stdc" >&6; }
8231 if test $ac_cv_header_stdc = yes; then
8232
8233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8234
8235 fi
8236
8237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8239                   inttypes.h stdint.h unistd.h
8240 do :
8241   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8243 "
8244 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8245   cat >>confdefs.h <<_ACEOF
8246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8247 _ACEOF
8248
8249 fi
8250
8251 done
8252
8253
8254 for ac_header in dlfcn.h
8255 do :
8256   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8257 "
8258 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8259   cat >>confdefs.h <<_ACEOF
8260 #define HAVE_DLFCN_H 1
8261 _ACEOF
8262
8263 fi
8264
8265 done
8266
8267
8268
8269 func_stripname_cnf ()
8270 {
8271   case ${2} in
8272   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8273   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8274   esac
8275 } # func_stripname_cnf
8276
8277
8278
8279
8280
8281 # Set options
8282
8283
8284
8285         enable_dlopen=no
8286
8287
8288   enable_win32_dll=no
8289
8290
8291             # Check whether --enable-shared was given.
8292 if test "${enable_shared+set}" = set; then :
8293   enableval=$enable_shared; p=${PACKAGE-default}
8294     case $enableval in
8295     yes) enable_shared=yes ;;
8296     no) enable_shared=no ;;
8297     *)
8298       enable_shared=no
8299       # Look at the argument we got.  We use all the common list separators.
8300       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8301       for pkg in $enableval; do
8302         IFS="$lt_save_ifs"
8303         if test "X$pkg" = "X$p"; then
8304           enable_shared=yes
8305         fi
8306       done
8307       IFS="$lt_save_ifs"
8308       ;;
8309     esac
8310 else
8311   enable_shared=yes
8312 fi
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322   # Check whether --enable-static was given.
8323 if test "${enable_static+set}" = set; then :
8324   enableval=$enable_static; p=${PACKAGE-default}
8325     case $enableval in
8326     yes) enable_static=yes ;;
8327     no) enable_static=no ;;
8328     *)
8329      enable_static=no
8330       # Look at the argument we got.  We use all the common list separators.
8331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8332       for pkg in $enableval; do
8333         IFS="$lt_save_ifs"
8334         if test "X$pkg" = "X$p"; then
8335           enable_static=yes
8336         fi
8337       done
8338       IFS="$lt_save_ifs"
8339       ;;
8340     esac
8341 else
8342   enable_static=yes
8343 fi
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354 # Check whether --with-pic was given.
8355 if test "${with_pic+set}" = set; then :
8356   withval=$with_pic; lt_p=${PACKAGE-default}
8357     case $withval in
8358     yes|no) pic_mode=$withval ;;
8359     *)
8360       pic_mode=default
8361       # Look at the argument we got.  We use all the common list separators.
8362       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8363       for lt_pkg in $withval; do
8364         IFS="$lt_save_ifs"
8365         if test "X$lt_pkg" = "X$lt_p"; then
8366           pic_mode=yes
8367         fi
8368       done
8369       IFS="$lt_save_ifs"
8370       ;;
8371     esac
8372 else
8373   pic_mode=default
8374 fi
8375
8376
8377 test -z "$pic_mode" && pic_mode=default
8378
8379
8380
8381
8382
8383
8384
8385   # Check whether --enable-fast-install was given.
8386 if test "${enable_fast_install+set}" = set; then :
8387   enableval=$enable_fast_install; p=${PACKAGE-default}
8388     case $enableval in
8389     yes) enable_fast_install=yes ;;
8390     no) enable_fast_install=no ;;
8391     *)
8392       enable_fast_install=no
8393       # Look at the argument we got.  We use all the common list separators.
8394       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8395       for pkg in $enableval; do
8396         IFS="$lt_save_ifs"
8397         if test "X$pkg" = "X$p"; then
8398           enable_fast_install=yes
8399         fi
8400       done
8401       IFS="$lt_save_ifs"
8402       ;;
8403     esac
8404 else
8405   enable_fast_install=yes
8406 fi
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418 # This can be used to rebuild libtool when needed
8419 LIBTOOL_DEPS="$ltmain"
8420
8421 # Always use our own libtool.
8422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453 test -z "$LN_S" && LN_S="ln -s"
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468 if test -n "${ZSH_VERSION+set}" ; then
8469    setopt NO_GLOB_SUBST
8470 fi
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8473 $as_echo_n "checking for objdir... " >&6; }
8474 if ${lt_cv_objdir+:} false; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   rm -f .libs 2>/dev/null
8478 mkdir .libs 2>/dev/null
8479 if test -d .libs; then
8480   lt_cv_objdir=.libs
8481 else
8482   # MS-DOS does not allow filenames that begin with a dot.
8483   lt_cv_objdir=_libs
8484 fi
8485 rmdir .libs 2>/dev/null
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8488 $as_echo "$lt_cv_objdir" >&6; }
8489 objdir=$lt_cv_objdir
8490
8491
8492
8493
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define LT_OBJDIR "$lt_cv_objdir/"
8497 _ACEOF
8498
8499
8500
8501
8502 case $host_os in
8503 aix3*)
8504   # AIX sometimes has problems with the GCC collect2 program.  For some
8505   # reason, if we set the COLLECT_NAMES environment variable, the problems
8506   # vanish in a puff of smoke.
8507   if test "X${COLLECT_NAMES+set}" != Xset; then
8508     COLLECT_NAMES=
8509     export COLLECT_NAMES
8510   fi
8511   ;;
8512 esac
8513
8514 # Global variables:
8515 ofile=libtool
8516 can_build_shared=yes
8517
8518 # All known linkers require a `.a' archive for static linking (except MSVC,
8519 # which needs '.lib').
8520 libext=a
8521
8522 with_gnu_ld="$lt_cv_prog_gnu_ld"
8523
8524 old_CC="$CC"
8525 old_CFLAGS="$CFLAGS"
8526
8527 # Set sane defaults for various variables
8528 test -z "$CC" && CC=cc
8529 test -z "$LTCC" && LTCC=$CC
8530 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8531 test -z "$LD" && LD=ld
8532 test -z "$ac_objext" && ac_objext=o
8533
8534 for cc_temp in $compiler""; do
8535   case $cc_temp in
8536     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8537     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8538     \-*) ;;
8539     *) break;;
8540   esac
8541 done
8542 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8543
8544
8545 # Only perform the check for file, if the check method requires it
8546 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8547 case $deplibs_check_method in
8548 file_magic*)
8549   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8551 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8552 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   case $MAGIC_CMD in
8556 [\\/*] |  ?:[\\/]*)
8557   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8558   ;;
8559 *)
8560   lt_save_MAGIC_CMD="$MAGIC_CMD"
8561   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8562   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8563   for ac_dir in $ac_dummy; do
8564     IFS="$lt_save_ifs"
8565     test -z "$ac_dir" && ac_dir=.
8566     if test -f $ac_dir/${ac_tool_prefix}file; then
8567       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8568       if test -n "$file_magic_test_file"; then
8569         case $deplibs_check_method in
8570         "file_magic "*)
8571           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8572           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8573           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8574             $EGREP "$file_magic_regex" > /dev/null; then
8575             :
8576           else
8577             cat <<_LT_EOF 1>&2
8578
8579 *** Warning: the command libtool uses to detect shared libraries,
8580 *** $file_magic_cmd, produces output that libtool cannot recognize.
8581 *** The result is that libtool may fail to recognize shared libraries
8582 *** as such.  This will affect the creation of libtool libraries that
8583 *** depend on shared libraries, but programs linked with such libtool
8584 *** libraries will work regardless of this problem.  Nevertheless, you
8585 *** may want to report the problem to your system manager and/or to
8586 *** bug-libtool@gnu.org
8587
8588 _LT_EOF
8589           fi ;;
8590         esac
8591       fi
8592       break
8593     fi
8594   done
8595   IFS="$lt_save_ifs"
8596   MAGIC_CMD="$lt_save_MAGIC_CMD"
8597   ;;
8598 esac
8599 fi
8600
8601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602 if test -n "$MAGIC_CMD"; then
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8604 $as_echo "$MAGIC_CMD" >&6; }
8605 else
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 fi
8609
8610
8611
8612
8613
8614 if test -z "$lt_cv_path_MAGIC_CMD"; then
8615   if test -n "$ac_tool_prefix"; then
8616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8617 $as_echo_n "checking for file... " >&6; }
8618 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   case $MAGIC_CMD in
8622 [\\/*] |  ?:[\\/]*)
8623   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8624   ;;
8625 *)
8626   lt_save_MAGIC_CMD="$MAGIC_CMD"
8627   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8628   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8629   for ac_dir in $ac_dummy; do
8630     IFS="$lt_save_ifs"
8631     test -z "$ac_dir" && ac_dir=.
8632     if test -f $ac_dir/file; then
8633       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8634       if test -n "$file_magic_test_file"; then
8635         case $deplibs_check_method in
8636         "file_magic "*)
8637           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8638           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8639           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8640             $EGREP "$file_magic_regex" > /dev/null; then
8641             :
8642           else
8643             cat <<_LT_EOF 1>&2
8644
8645 *** Warning: the command libtool uses to detect shared libraries,
8646 *** $file_magic_cmd, produces output that libtool cannot recognize.
8647 *** The result is that libtool may fail to recognize shared libraries
8648 *** as such.  This will affect the creation of libtool libraries that
8649 *** depend on shared libraries, but programs linked with such libtool
8650 *** libraries will work regardless of this problem.  Nevertheless, you
8651 *** may want to report the problem to your system manager and/or to
8652 *** bug-libtool@gnu.org
8653
8654 _LT_EOF
8655           fi ;;
8656         esac
8657       fi
8658       break
8659     fi
8660   done
8661   IFS="$lt_save_ifs"
8662   MAGIC_CMD="$lt_save_MAGIC_CMD"
8663   ;;
8664 esac
8665 fi
8666
8667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8668 if test -n "$MAGIC_CMD"; then
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8670 $as_echo "$MAGIC_CMD" >&6; }
8671 else
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8674 fi
8675
8676
8677   else
8678     MAGIC_CMD=:
8679   fi
8680 fi
8681
8682   fi
8683   ;;
8684 esac
8685
8686 # Use C for the default configuration in the libtool script
8687
8688 lt_save_CC="$CC"
8689 ac_ext=c
8690 ac_cpp='$CPP $CPPFLAGS'
8691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694
8695
8696 # Source file extension for C test sources.
8697 ac_ext=c
8698
8699 # Object file extension for compiled C test sources.
8700 objext=o
8701 objext=$objext
8702
8703 # Code to be used in simple compile tests
8704 lt_simple_compile_test_code="int some_variable = 0;"
8705
8706 # Code to be used in simple link tests
8707 lt_simple_link_test_code='int main(){return(0);}'
8708
8709
8710
8711
8712
8713
8714
8715 # If no C compiler was specified, use CC.
8716 LTCC=${LTCC-"$CC"}
8717
8718 # If no C compiler flags were specified, use CFLAGS.
8719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8720
8721 # Allow CC to be a program name with arguments.
8722 compiler=$CC
8723
8724 # Save the default compiler, since it gets overwritten when the other
8725 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8726 compiler_DEFAULT=$CC
8727
8728 # save warnings/boilerplate of simple test code
8729 ac_outfile=conftest.$ac_objext
8730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8732 _lt_compiler_boilerplate=`cat conftest.err`
8733 $RM conftest*
8734
8735 ac_outfile=conftest.$ac_objext
8736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8738 _lt_linker_boilerplate=`cat conftest.err`
8739 $RM -r conftest*
8740
8741
8742 ## CAVEAT EMPTOR:
8743 ## There is no encapsulation within the following macros, do not change
8744 ## the running order or otherwise move them around unless you know exactly
8745 ## what you are doing...
8746 if test -n "$compiler"; then
8747
8748 lt_prog_compiler_no_builtin_flag=
8749
8750 if test "$GCC" = yes; then
8751   case $cc_basename in
8752   nvcc*)
8753     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8754   *)
8755     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8756   esac
8757
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8759 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8760 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   lt_cv_prog_compiler_rtti_exceptions=no
8764    ac_outfile=conftest.$ac_objext
8765    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766    lt_compiler_flag="-fno-rtti -fno-exceptions"
8767    # Insert the option either (1) after the last *FLAGS variable, or
8768    # (2) before a word containing "conftest.", or (3) at the end.
8769    # Note that $ac_compile itself does not contain backslashes and begins
8770    # with a dollar sign (not a hyphen), so the echo should work correctly.
8771    # The option is referenced via a variable to avoid confusing sed.
8772    lt_compile=`echo "$ac_compile" | $SED \
8773    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775    -e 's:$: $lt_compiler_flag:'`
8776    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777    (eval "$lt_compile" 2>conftest.err)
8778    ac_status=$?
8779    cat conftest.err >&5
8780    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781    if (exit $ac_status) && test -s "$ac_outfile"; then
8782      # The compiler can only warn and ignore the option if not recognized
8783      # So say no if there are warnings other than the usual output.
8784      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8785      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8787        lt_cv_prog_compiler_rtti_exceptions=yes
8788      fi
8789    fi
8790    $RM conftest*
8791
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8794 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8795
8796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8797     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8798 else
8799     :
8800 fi
8801
8802 fi
8803
8804
8805
8806
8807
8808
8809   lt_prog_compiler_wl=
8810 lt_prog_compiler_pic=
8811 lt_prog_compiler_static=
8812
8813
8814   if test "$GCC" = yes; then
8815     lt_prog_compiler_wl='-Wl,'
8816     lt_prog_compiler_static='-static'
8817
8818     case $host_os in
8819       aix*)
8820       # All AIX code is PIC.
8821       if test "$host_cpu" = ia64; then
8822         # AIX 5 now supports IA64 processor
8823         lt_prog_compiler_static='-Bstatic'
8824       fi
8825       ;;
8826
8827     amigaos*)
8828       case $host_cpu in
8829       powerpc)
8830             # see comment about AmigaOS4 .so support
8831             lt_prog_compiler_pic='-fPIC'
8832         ;;
8833       m68k)
8834             # FIXME: we need at least 68020 code to build shared libraries, but
8835             # adding the `-m68020' flag to GCC prevents building anything better,
8836             # like `-m68040'.
8837             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8838         ;;
8839       esac
8840       ;;
8841
8842     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8843       # PIC is the default for these OSes.
8844       ;;
8845
8846     mingw* | cygwin* | pw32* | os2* | cegcc*)
8847       # This hack is so that the source file can tell whether it is being
8848       # built for inclusion in a dll (and should export symbols for example).
8849       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8850       # (--disable-auto-import) libraries
8851       lt_prog_compiler_pic='-DDLL_EXPORT'
8852       ;;
8853
8854     darwin* | rhapsody*)
8855       # PIC is the default on this platform
8856       # Common symbols not allowed in MH_DYLIB files
8857       lt_prog_compiler_pic='-fno-common'
8858       ;;
8859
8860     haiku*)
8861       # PIC is the default for Haiku.
8862       # The "-static" flag exists, but is broken.
8863       lt_prog_compiler_static=
8864       ;;
8865
8866     hpux*)
8867       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8868       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8869       # sets the default TLS model and affects inlining.
8870       case $host_cpu in
8871       hppa*64*)
8872         # +Z the default
8873         ;;
8874       *)
8875         lt_prog_compiler_pic='-fPIC'
8876         ;;
8877       esac
8878       ;;
8879
8880     interix[3-9]*)
8881       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8882       # Instead, we relocate shared libraries at runtime.
8883       ;;
8884
8885     msdosdjgpp*)
8886       # Just because we use GCC doesn't mean we suddenly get shared libraries
8887       # on systems that don't support them.
8888       lt_prog_compiler_can_build_shared=no
8889       enable_shared=no
8890       ;;
8891
8892     *nto* | *qnx*)
8893       # QNX uses GNU C++, but need to define -shared option too, otherwise
8894       # it will coredump.
8895       lt_prog_compiler_pic='-fPIC -shared'
8896       ;;
8897
8898     sysv4*MP*)
8899       if test -d /usr/nec; then
8900         lt_prog_compiler_pic=-Kconform_pic
8901       fi
8902       ;;
8903
8904     *)
8905       lt_prog_compiler_pic='-fPIC'
8906       ;;
8907     esac
8908
8909     case $cc_basename in
8910     nvcc*) # Cuda Compiler Driver 2.2
8911       lt_prog_compiler_wl='-Xlinker '
8912       if test -n "$lt_prog_compiler_pic"; then
8913         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8914       fi
8915       ;;
8916     esac
8917   else
8918     # PORTME Check for flag to pass linker flags through the system compiler.
8919     case $host_os in
8920     aix*)
8921       lt_prog_compiler_wl='-Wl,'
8922       if test "$host_cpu" = ia64; then
8923         # AIX 5 now supports IA64 processor
8924         lt_prog_compiler_static='-Bstatic'
8925       else
8926         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8927       fi
8928       ;;
8929
8930     mingw* | cygwin* | pw32* | os2* | cegcc*)
8931       # This hack is so that the source file can tell whether it is being
8932       # built for inclusion in a dll (and should export symbols for example).
8933       lt_prog_compiler_pic='-DDLL_EXPORT'
8934       ;;
8935
8936     hpux9* | hpux10* | hpux11*)
8937       lt_prog_compiler_wl='-Wl,'
8938       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8939       # not for PA HP-UX.
8940       case $host_cpu in
8941       hppa*64*|ia64*)
8942         # +Z the default
8943         ;;
8944       *)
8945         lt_prog_compiler_pic='+Z'
8946         ;;
8947       esac
8948       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8949       lt_prog_compiler_static='${wl}-a ${wl}archive'
8950       ;;
8951
8952     irix5* | irix6* | nonstopux*)
8953       lt_prog_compiler_wl='-Wl,'
8954       # PIC (with -KPIC) is the default.
8955       lt_prog_compiler_static='-non_shared'
8956       ;;
8957
8958     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8959       case $cc_basename in
8960       # old Intel for x86_64 which still supported -KPIC.
8961       ecc*)
8962         lt_prog_compiler_wl='-Wl,'
8963         lt_prog_compiler_pic='-KPIC'
8964         lt_prog_compiler_static='-static'
8965         ;;
8966       # icc used to be incompatible with GCC.
8967       # ICC 10 doesn't accept -KPIC any more.
8968       icc* | ifort*)
8969         lt_prog_compiler_wl='-Wl,'
8970         lt_prog_compiler_pic='-fPIC'
8971         lt_prog_compiler_static='-static'
8972         ;;
8973       # Lahey Fortran 8.1.
8974       lf95*)
8975         lt_prog_compiler_wl='-Wl,'
8976         lt_prog_compiler_pic='--shared'
8977         lt_prog_compiler_static='--static'
8978         ;;
8979       nagfor*)
8980         # NAG Fortran compiler
8981         lt_prog_compiler_wl='-Wl,-Wl,,'
8982         lt_prog_compiler_pic='-PIC'
8983         lt_prog_compiler_static='-Bstatic'
8984         ;;
8985       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8986         # Portland Group compilers (*not* the Pentium gcc compiler,
8987         # which looks to be a dead project)
8988         lt_prog_compiler_wl='-Wl,'
8989         lt_prog_compiler_pic='-fpic'
8990         lt_prog_compiler_static='-Bstatic'
8991         ;;
8992       ccc*)
8993         lt_prog_compiler_wl='-Wl,'
8994         # All Alpha code is PIC.
8995         lt_prog_compiler_static='-non_shared'
8996         ;;
8997       xl* | bgxl* | bgf* | mpixl*)
8998         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8999         lt_prog_compiler_wl='-Wl,'
9000         lt_prog_compiler_pic='-qpic'
9001         lt_prog_compiler_static='-qstaticlink'
9002         ;;
9003       *)
9004         case `$CC -V 2>&1 | sed 5q` in
9005         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9006           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9007           lt_prog_compiler_pic='-KPIC'
9008           lt_prog_compiler_static='-Bstatic'
9009           lt_prog_compiler_wl=''
9010           ;;
9011         *Sun\ F* | *Sun*Fortran*)
9012           lt_prog_compiler_pic='-KPIC'
9013           lt_prog_compiler_static='-Bstatic'
9014           lt_prog_compiler_wl='-Qoption ld '
9015           ;;
9016         *Sun\ C*)
9017           # Sun C 5.9
9018           lt_prog_compiler_pic='-KPIC'
9019           lt_prog_compiler_static='-Bstatic'
9020           lt_prog_compiler_wl='-Wl,'
9021           ;;
9022         *Intel*\ [CF]*Compiler*)
9023           lt_prog_compiler_wl='-Wl,'
9024           lt_prog_compiler_pic='-fPIC'
9025           lt_prog_compiler_static='-static'
9026           ;;
9027         *Portland\ Group*)
9028           lt_prog_compiler_wl='-Wl,'
9029           lt_prog_compiler_pic='-fpic'
9030           lt_prog_compiler_static='-Bstatic'
9031           ;;
9032         esac
9033         ;;
9034       esac
9035       ;;
9036
9037     newsos6)
9038       lt_prog_compiler_pic='-KPIC'
9039       lt_prog_compiler_static='-Bstatic'
9040       ;;
9041
9042     *nto* | *qnx*)
9043       # QNX uses GNU C++, but need to define -shared option too, otherwise
9044       # it will coredump.
9045       lt_prog_compiler_pic='-fPIC -shared'
9046       ;;
9047
9048     osf3* | osf4* | osf5*)
9049       lt_prog_compiler_wl='-Wl,'
9050       # All OSF/1 code is PIC.
9051       lt_prog_compiler_static='-non_shared'
9052       ;;
9053
9054     rdos*)
9055       lt_prog_compiler_static='-non_shared'
9056       ;;
9057
9058     solaris*)
9059       lt_prog_compiler_pic='-KPIC'
9060       lt_prog_compiler_static='-Bstatic'
9061       case $cc_basename in
9062       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9063         lt_prog_compiler_wl='-Qoption ld ';;
9064       *)
9065         lt_prog_compiler_wl='-Wl,';;
9066       esac
9067       ;;
9068
9069     sunos4*)
9070       lt_prog_compiler_wl='-Qoption ld '
9071       lt_prog_compiler_pic='-PIC'
9072       lt_prog_compiler_static='-Bstatic'
9073       ;;
9074
9075     sysv4 | sysv4.2uw2* | sysv4.3*)
9076       lt_prog_compiler_wl='-Wl,'
9077       lt_prog_compiler_pic='-KPIC'
9078       lt_prog_compiler_static='-Bstatic'
9079       ;;
9080
9081     sysv4*MP*)
9082       if test -d /usr/nec ;then
9083         lt_prog_compiler_pic='-Kconform_pic'
9084         lt_prog_compiler_static='-Bstatic'
9085       fi
9086       ;;
9087
9088     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9089       lt_prog_compiler_wl='-Wl,'
9090       lt_prog_compiler_pic='-KPIC'
9091       lt_prog_compiler_static='-Bstatic'
9092       ;;
9093
9094     unicos*)
9095       lt_prog_compiler_wl='-Wl,'
9096       lt_prog_compiler_can_build_shared=no
9097       ;;
9098
9099     uts4*)
9100       lt_prog_compiler_pic='-pic'
9101       lt_prog_compiler_static='-Bstatic'
9102       ;;
9103
9104     *)
9105       lt_prog_compiler_can_build_shared=no
9106       ;;
9107     esac
9108   fi
9109
9110 case $host_os in
9111   # For platforms which do not support PIC, -DPIC is meaningless:
9112   *djgpp*)
9113     lt_prog_compiler_pic=
9114     ;;
9115   *)
9116     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9117     ;;
9118 esac
9119
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9121 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9122 if ${lt_cv_prog_compiler_pic+:} false; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9126 fi
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9128 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9129 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9130
9131 #
9132 # Check to make sure the PIC flag actually works.
9133 #
9134 if test -n "$lt_prog_compiler_pic"; then
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9136 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9137 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9138   $as_echo_n "(cached) " >&6
9139 else
9140   lt_cv_prog_compiler_pic_works=no
9141    ac_outfile=conftest.$ac_objext
9142    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9143    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9144    # Insert the option either (1) after the last *FLAGS variable, or
9145    # (2) before a word containing "conftest.", or (3) at the end.
9146    # Note that $ac_compile itself does not contain backslashes and begins
9147    # with a dollar sign (not a hyphen), so the echo should work correctly.
9148    # The option is referenced via a variable to avoid confusing sed.
9149    lt_compile=`echo "$ac_compile" | $SED \
9150    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152    -e 's:$: $lt_compiler_flag:'`
9153    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9154    (eval "$lt_compile" 2>conftest.err)
9155    ac_status=$?
9156    cat conftest.err >&5
9157    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158    if (exit $ac_status) && test -s "$ac_outfile"; then
9159      # The compiler can only warn and ignore the option if not recognized
9160      # So say no if there are warnings other than the usual output.
9161      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9162      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9163      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9164        lt_cv_prog_compiler_pic_works=yes
9165      fi
9166    fi
9167    $RM conftest*
9168
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9171 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9172
9173 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9174     case $lt_prog_compiler_pic in
9175      "" | " "*) ;;
9176      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9177      esac
9178 else
9179     lt_prog_compiler_pic=
9180      lt_prog_compiler_can_build_shared=no
9181 fi
9182
9183 fi
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195 #
9196 # Check to make sure the static flag actually works.
9197 #
9198 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9200 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9201 if ${lt_cv_prog_compiler_static_works+:} false; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   lt_cv_prog_compiler_static_works=no
9205    save_LDFLAGS="$LDFLAGS"
9206    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9207    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9208    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9209      # The linker can only warn and ignore the option if not recognized
9210      # So say no if there are warnings
9211      if test -s conftest.err; then
9212        # Append any errors to the config.log.
9213        cat conftest.err 1>&5
9214        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9215        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9216        if diff conftest.exp conftest.er2 >/dev/null; then
9217          lt_cv_prog_compiler_static_works=yes
9218        fi
9219      else
9220        lt_cv_prog_compiler_static_works=yes
9221      fi
9222    fi
9223    $RM -r conftest*
9224    LDFLAGS="$save_LDFLAGS"
9225
9226 fi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9228 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9229
9230 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9231     :
9232 else
9233     lt_prog_compiler_static=
9234 fi
9235
9236
9237
9238
9239
9240
9241
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9244 if ${lt_cv_prog_compiler_c_o+:} false; then :
9245   $as_echo_n "(cached) " >&6
9246 else
9247   lt_cv_prog_compiler_c_o=no
9248    $RM -r conftest 2>/dev/null
9249    mkdir conftest
9250    cd conftest
9251    mkdir out
9252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9253
9254    lt_compiler_flag="-o out/conftest2.$ac_objext"
9255    # Insert the option either (1) after the last *FLAGS variable, or
9256    # (2) before a word containing "conftest.", or (3) at the end.
9257    # Note that $ac_compile itself does not contain backslashes and begins
9258    # with a dollar sign (not a hyphen), so the echo should work correctly.
9259    lt_compile=`echo "$ac_compile" | $SED \
9260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9262    -e 's:$: $lt_compiler_flag:'`
9263    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9264    (eval "$lt_compile" 2>out/conftest.err)
9265    ac_status=$?
9266    cat out/conftest.err >&5
9267    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9269    then
9270      # The compiler can only warn and ignore the option if not recognized
9271      # So say no if there are warnings
9272      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9273      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9274      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9275        lt_cv_prog_compiler_c_o=yes
9276      fi
9277    fi
9278    chmod u+w . 2>&5
9279    $RM conftest*
9280    # SGI C++ compiler will create directory out/ii_files/ for
9281    # template instantiation
9282    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9283    $RM out/* && rmdir out
9284    cd ..
9285    $RM -r conftest
9286    $RM conftest*
9287
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9290 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9291
9292
9293
9294
9295
9296
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9299 if ${lt_cv_prog_compiler_c_o+:} false; then :
9300   $as_echo_n "(cached) " >&6
9301 else
9302   lt_cv_prog_compiler_c_o=no
9303    $RM -r conftest 2>/dev/null
9304    mkdir conftest
9305    cd conftest
9306    mkdir out
9307    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9308
9309    lt_compiler_flag="-o out/conftest2.$ac_objext"
9310    # Insert the option either (1) after the last *FLAGS variable, or
9311    # (2) before a word containing "conftest.", or (3) at the end.
9312    # Note that $ac_compile itself does not contain backslashes and begins
9313    # with a dollar sign (not a hyphen), so the echo should work correctly.
9314    lt_compile=`echo "$ac_compile" | $SED \
9315    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317    -e 's:$: $lt_compiler_flag:'`
9318    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9319    (eval "$lt_compile" 2>out/conftest.err)
9320    ac_status=$?
9321    cat out/conftest.err >&5
9322    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9324    then
9325      # The compiler can only warn and ignore the option if not recognized
9326      # So say no if there are warnings
9327      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9328      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9329      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9330        lt_cv_prog_compiler_c_o=yes
9331      fi
9332    fi
9333    chmod u+w . 2>&5
9334    $RM conftest*
9335    # SGI C++ compiler will create directory out/ii_files/ for
9336    # template instantiation
9337    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9338    $RM out/* && rmdir out
9339    cd ..
9340    $RM -r conftest
9341    $RM conftest*
9342
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9345 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9346
9347
9348
9349
9350 hard_links="nottested"
9351 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9352   # do not overwrite the value of need_locks provided by the user
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9354 $as_echo_n "checking if we can lock with hard links... " >&6; }
9355   hard_links=yes
9356   $RM conftest*
9357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9358   touch conftest.a
9359   ln conftest.a conftest.b 2>&5 || hard_links=no
9360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9362 $as_echo "$hard_links" >&6; }
9363   if test "$hard_links" = no; then
9364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9365 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9366     need_locks=warn
9367   fi
9368 else
9369   need_locks=no
9370 fi
9371
9372
9373
9374
9375
9376
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9378 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9379
9380   runpath_var=
9381   allow_undefined_flag=
9382   always_export_symbols=no
9383   archive_cmds=
9384   archive_expsym_cmds=
9385   compiler_needs_object=no
9386   enable_shared_with_static_runtimes=no
9387   export_dynamic_flag_spec=
9388   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9389   hardcode_automatic=no
9390   hardcode_direct=no
9391   hardcode_direct_absolute=no
9392   hardcode_libdir_flag_spec=
9393   hardcode_libdir_separator=
9394   hardcode_minus_L=no
9395   hardcode_shlibpath_var=unsupported
9396   inherit_rpath=no
9397   link_all_deplibs=unknown
9398   module_cmds=
9399   module_expsym_cmds=
9400   old_archive_from_new_cmds=
9401   old_archive_from_expsyms_cmds=
9402   thread_safe_flag_spec=
9403   whole_archive_flag_spec=
9404   # include_expsyms should be a list of space-separated symbols to be *always*
9405   # included in the symbol list
9406   include_expsyms=
9407   # exclude_expsyms can be an extended regexp of symbols to exclude
9408   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9409   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9410   # as well as any symbol that contains `d'.
9411   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9412   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9413   # platforms (ab)use it in PIC code, but their linkers get confused if
9414   # the symbol is explicitly referenced.  Since portable code cannot
9415   # rely on this symbol name, it's probably fine to never include it in
9416   # preloaded symbol tables.
9417   # Exclude shared library initialization/finalization symbols.
9418   extract_expsyms_cmds=
9419
9420   case $host_os in
9421   cygwin* | mingw* | pw32* | cegcc*)
9422     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9423     # When not using gcc, we currently assume that we are using
9424     # Microsoft Visual C++.
9425     if test "$GCC" != yes; then
9426       with_gnu_ld=no
9427     fi
9428     ;;
9429   interix*)
9430     # we just hope/assume this is gcc and not c89 (= MSVC++)
9431     with_gnu_ld=yes
9432     ;;
9433   openbsd*)
9434     with_gnu_ld=no
9435     ;;
9436   esac
9437
9438   ld_shlibs=yes
9439
9440   # On some targets, GNU ld is compatible enough with the native linker
9441   # that we're better off using the native interface for both.
9442   lt_use_gnu_ld_interface=no
9443   if test "$with_gnu_ld" = yes; then
9444     case $host_os in
9445       aix*)
9446         # The AIX port of GNU ld has always aspired to compatibility
9447         # with the native linker.  However, as the warning in the GNU ld
9448         # block says, versions before 2.19.5* couldn't really create working
9449         # shared libraries, regardless of the interface used.
9450         case `$LD -v 2>&1` in
9451           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9452           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9453           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9454           *)
9455             lt_use_gnu_ld_interface=yes
9456             ;;
9457         esac
9458         ;;
9459       *)
9460         lt_use_gnu_ld_interface=yes
9461         ;;
9462     esac
9463   fi
9464
9465   if test "$lt_use_gnu_ld_interface" = yes; then
9466     # If archive_cmds runs LD, not CC, wlarc should be empty
9467     wlarc='${wl}'
9468
9469     # Set some defaults for GNU ld with shared library support. These
9470     # are reset later if shared libraries are not supported. Putting them
9471     # here allows them to be overridden if necessary.
9472     runpath_var=LD_RUN_PATH
9473     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474     export_dynamic_flag_spec='${wl}--export-dynamic'
9475     # ancient GNU ld didn't support --whole-archive et. al.
9476     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9477       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9478     else
9479       whole_archive_flag_spec=
9480     fi
9481     supports_anon_versioning=no
9482     case `$LD -v 2>&1` in
9483       *GNU\ gold*) supports_anon_versioning=yes ;;
9484       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9485       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9486       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9487       *\ 2.11.*) ;; # other 2.11 versions
9488       *) supports_anon_versioning=yes ;;
9489     esac
9490
9491     # See if GNU ld supports shared libraries.
9492     case $host_os in
9493     aix[3-9]*)
9494       # On AIX/PPC, the GNU linker is very broken
9495       if test "$host_cpu" != ia64; then
9496         ld_shlibs=no
9497         cat <<_LT_EOF 1>&2
9498
9499 *** Warning: the GNU linker, at least up to release 2.19, is reported
9500 *** to be unable to reliably create shared libraries on AIX.
9501 *** Therefore, libtool is disabling shared libraries support.  If you
9502 *** really care for shared libraries, you may want to install binutils
9503 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9504 *** You will then need to restart the configuration process.
9505
9506 _LT_EOF
9507       fi
9508       ;;
9509
9510     amigaos*)
9511       case $host_cpu in
9512       powerpc)
9513             # see comment about AmigaOS4 .so support
9514             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9515             archive_expsym_cmds=''
9516         ;;
9517       m68k)
9518             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)'
9519             hardcode_libdir_flag_spec='-L$libdir'
9520             hardcode_minus_L=yes
9521         ;;
9522       esac
9523       ;;
9524
9525     beos*)
9526       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527         allow_undefined_flag=unsupported
9528         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9529         # support --undefined.  This deserves some investigation.  FIXME
9530         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531       else
9532         ld_shlibs=no
9533       fi
9534       ;;
9535
9536     cygwin* | mingw* | pw32* | cegcc*)
9537       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9538       # as there is no search path for DLLs.
9539       hardcode_libdir_flag_spec='-L$libdir'
9540       export_dynamic_flag_spec='${wl}--export-all-symbols'
9541       allow_undefined_flag=unsupported
9542       always_export_symbols=no
9543       enable_shared_with_static_runtimes=yes
9544       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'
9545       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9546
9547       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9548         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9549         # If the export-symbols file already is a .def file (1st line
9550         # is EXPORTS), use it as is; otherwise, prepend...
9551         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9552           cp $export_symbols $output_objdir/$soname.def;
9553         else
9554           echo EXPORTS > $output_objdir/$soname.def;
9555           cat $export_symbols >> $output_objdir/$soname.def;
9556         fi~
9557         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9558       else
9559         ld_shlibs=no
9560       fi
9561       ;;
9562
9563     haiku*)
9564       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565       link_all_deplibs=yes
9566       ;;
9567
9568     interix[3-9]*)
9569       hardcode_direct=no
9570       hardcode_shlibpath_var=no
9571       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572       export_dynamic_flag_spec='${wl}-E'
9573       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9574       # Instead, shared libraries are loaded at an image base (0x10000000 by
9575       # default) and relocated if they conflict, which is a slow very memory
9576       # consuming and fragmenting process.  To avoid this, we pick a random,
9577       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9578       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9579       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9580       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'
9581       ;;
9582
9583     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9584       tmp_diet=no
9585       if test "$host_os" = linux-dietlibc; then
9586         case $cc_basename in
9587           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9588         esac
9589       fi
9590       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9591          && test "$tmp_diet" = no
9592       then
9593         tmp_addflag=' $pic_flag'
9594         tmp_sharedflag='-shared'
9595         case $cc_basename,$host_cpu in
9596         pgcc*)                          # Portland Group C compiler
9597           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'
9598           tmp_addflag=' $pic_flag'
9599           ;;
9600         pgf77* | pgf90* | pgf95* | pgfortran*)
9601                                         # Portland Group f77 and f90 compilers
9602           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'
9603           tmp_addflag=' $pic_flag -Mnomain' ;;
9604         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9605           tmp_addflag=' -i_dynamic' ;;
9606         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9607           tmp_addflag=' -i_dynamic -nofor_main' ;;
9608         ifc* | ifort*)                  # Intel Fortran compiler
9609           tmp_addflag=' -nofor_main' ;;
9610         lf95*)                          # Lahey Fortran 8.1
9611           whole_archive_flag_spec=
9612           tmp_sharedflag='--shared' ;;
9613         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9614           tmp_sharedflag='-qmkshrobj'
9615           tmp_addflag= ;;
9616         nvcc*)  # Cuda Compiler Driver 2.2
9617           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'
9618           compiler_needs_object=yes
9619           ;;
9620         esac
9621         case `$CC -V 2>&1 | sed 5q` in
9622         *Sun\ C*)                       # Sun C 5.9
9623           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'
9624           compiler_needs_object=yes
9625           tmp_sharedflag='-G' ;;
9626         *Sun\ F*)                       # Sun Fortran 8.3
9627           tmp_sharedflag='-G' ;;
9628         esac
9629         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630
9631         if test "x$supports_anon_versioning" = xyes; then
9632           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9633             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9634             echo "local: *; };" >> $output_objdir/$libname.ver~
9635             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9636         fi
9637
9638         case $cc_basename in
9639         xlf* | bgf* | bgxlf* | mpixlf*)
9640           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9641           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9642           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9644           if test "x$supports_anon_versioning" = xyes; then
9645             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9646               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9647               echo "local: *; };" >> $output_objdir/$libname.ver~
9648               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9649           fi
9650           ;;
9651         esac
9652       else
9653         ld_shlibs=no
9654       fi
9655       ;;
9656
9657     netbsd*)
9658       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9659         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9660         wlarc=
9661       else
9662         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9664       fi
9665       ;;
9666
9667     solaris*)
9668       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9669         ld_shlibs=no
9670         cat <<_LT_EOF 1>&2
9671
9672 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9673 *** create shared libraries on Solaris systems.  Therefore, libtool
9674 *** is disabling shared libraries support.  We urge you to upgrade GNU
9675 *** binutils to release 2.9.1 or newer.  Another option is to modify
9676 *** your PATH or compiler configuration so that the native linker is
9677 *** used, and then restart.
9678
9679 _LT_EOF
9680       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9683       else
9684         ld_shlibs=no
9685       fi
9686       ;;
9687
9688     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9689       case `$LD -v 2>&1` in
9690         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9691         ld_shlibs=no
9692         cat <<_LT_EOF 1>&2
9693
9694 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9695 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9696 *** is disabling shared libraries support.  We urge you to upgrade GNU
9697 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9698 *** your PATH or compiler configuration so that the native linker is
9699 *** used, and then restart.
9700
9701 _LT_EOF
9702         ;;
9703         *)
9704           # For security reasons, it is highly recommended that you always
9705           # use absolute paths for naming shared libraries, and exclude the
9706           # DT_RUNPATH tag from executables and libraries.  But doing so
9707           # requires that you compile everything twice, which is a pain.
9708           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9709             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9712           else
9713             ld_shlibs=no
9714           fi
9715         ;;
9716       esac
9717       ;;
9718
9719     sunos4*)
9720       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721       wlarc=
9722       hardcode_direct=yes
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     *)
9727       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9728         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9730       else
9731         ld_shlibs=no
9732       fi
9733       ;;
9734     esac
9735
9736     if test "$ld_shlibs" = no; then
9737       runpath_var=
9738       hardcode_libdir_flag_spec=
9739       export_dynamic_flag_spec=
9740       whole_archive_flag_spec=
9741     fi
9742   else
9743     # PORTME fill in a description of your system's linker (not GNU ld)
9744     case $host_os in
9745     aix3*)
9746       allow_undefined_flag=unsupported
9747       always_export_symbols=yes
9748       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'
9749       # Note: this linker hardcodes the directories in LIBPATH if there
9750       # are no directories specified by -L.
9751       hardcode_minus_L=yes
9752       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9753         # Neither direct hardcoding nor static linking is supported with a
9754         # broken collect2.
9755         hardcode_direct=unsupported
9756       fi
9757       ;;
9758
9759     aix[4-9]*)
9760       if test "$host_cpu" = ia64; then
9761         # On IA64, the linker does run time linking by default, so we don't
9762         # have to do anything special.
9763         aix_use_runtimelinking=no
9764         exp_sym_flag='-Bexport'
9765         no_entry_flag=""
9766       else
9767         # If we're using GNU nm, then we don't want the "-C" option.
9768         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9769         # Also, AIX nm treats weak defined symbols like other global
9770         # defined symbols, whereas GNU nm marks them as "W".
9771         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9772           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9773         else
9774           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9775         fi
9776         aix_use_runtimelinking=no
9777
9778         # Test if we are trying to use run time linking or normal
9779         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9780         # need to do runtime linking.
9781         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9782           for ld_flag in $LDFLAGS; do
9783           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9784             aix_use_runtimelinking=yes
9785             break
9786           fi
9787           done
9788           ;;
9789         esac
9790
9791         exp_sym_flag='-bexport'
9792         no_entry_flag='-bnoentry'
9793       fi
9794
9795       # When large executables or shared objects are built, AIX ld can
9796       # have problems creating the table of contents.  If linking a library
9797       # or program results in "error TOC overflow" add -mminimal-toc to
9798       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9799       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9800
9801       archive_cmds=''
9802       hardcode_direct=yes
9803       hardcode_direct_absolute=yes
9804       hardcode_libdir_separator=':'
9805       link_all_deplibs=yes
9806       file_list_spec='${wl}-f,'
9807
9808       if test "$GCC" = yes; then
9809         case $host_os in aix4.[012]|aix4.[012].*)
9810         # We only want to do this on AIX 4.2 and lower, the check
9811         # below for broken collect2 doesn't work under 4.3+
9812           collect2name=`${CC} -print-prog-name=collect2`
9813           if test -f "$collect2name" &&
9814            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9815           then
9816           # We have reworked collect2
9817           :
9818           else
9819           # We have old collect2
9820           hardcode_direct=unsupported
9821           # It fails to find uninstalled libraries when the uninstalled
9822           # path is not listed in the libpath.  Setting hardcode_minus_L
9823           # to unsupported forces relinking
9824           hardcode_minus_L=yes
9825           hardcode_libdir_flag_spec='-L$libdir'
9826           hardcode_libdir_separator=
9827           fi
9828           ;;
9829         esac
9830         shared_flag='-shared'
9831         if test "$aix_use_runtimelinking" = yes; then
9832           shared_flag="$shared_flag "'${wl}-G'
9833         fi
9834       else
9835         # not using gcc
9836         if test "$host_cpu" = ia64; then
9837         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9838         # chokes on -Wl,-G. The following line is correct:
9839           shared_flag='-G'
9840         else
9841           if test "$aix_use_runtimelinking" = yes; then
9842             shared_flag='${wl}-G'
9843           else
9844             shared_flag='${wl}-bM:SRE'
9845           fi
9846         fi
9847       fi
9848
9849       export_dynamic_flag_spec='${wl}-bexpall'
9850       # It seems that -bexpall does not export symbols beginning with
9851       # underscore (_), so it is better to generate a list of symbols to export.
9852       always_export_symbols=yes
9853       if test "$aix_use_runtimelinking" = yes; then
9854         # Warning - without using the other runtime loading flags (-brtl),
9855         # -berok will link without error, but may produce a broken library.
9856         allow_undefined_flag='-berok'
9857         # Determine the default libpath from the value encoded in an
9858         # empty executable.
9859         if test "${lt_cv_aix_libpath+set}" = set; then
9860   aix_libpath=$lt_cv_aix_libpath
9861 else
9862   if ${lt_cv_aix_libpath_+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h.  */
9867
9868 #ifdef FC_DUMMY_MAIN
9869 #ifndef FC_DUMMY_MAIN_EQ_F77
9870 #  ifdef __cplusplus
9871      extern "C"
9872 #  endif
9873    int FC_DUMMY_MAIN() { return 1; }
9874 #endif
9875 #endif
9876 int
9877 main ()
9878 {
9879
9880   ;
9881   return 0;
9882 }
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885
9886   lt_aix_libpath_sed='
9887       /Import File Strings/,/^$/ {
9888           /^0/ {
9889               s/^0  *\([^ ]*\) *$/\1/
9890               p
9891           }
9892       }'
9893   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9894   # Check for a 64-bit object if we didn't find anything.
9895   if test -z "$lt_cv_aix_libpath_"; then
9896     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9897   fi
9898 fi
9899 rm -f core conftest.err conftest.$ac_objext \
9900     conftest$ac_exeext conftest.$ac_ext
9901   if test -z "$lt_cv_aix_libpath_"; then
9902     lt_cv_aix_libpath_="/usr/lib:/lib"
9903   fi
9904
9905 fi
9906
9907   aix_libpath=$lt_cv_aix_libpath_
9908 fi
9909
9910         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9911         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9912       else
9913         if test "$host_cpu" = ia64; then
9914           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9915           allow_undefined_flag="-z nodefs"
9916           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"
9917         else
9918          # Determine the default libpath from the value encoded in an
9919          # empty executable.
9920          if test "${lt_cv_aix_libpath+set}" = set; then
9921   aix_libpath=$lt_cv_aix_libpath
9922 else
9923   if ${lt_cv_aix_libpath_+:} false; then :
9924   $as_echo_n "(cached) " >&6
9925 else
9926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h.  */
9928
9929 #ifdef FC_DUMMY_MAIN
9930 #ifndef FC_DUMMY_MAIN_EQ_F77
9931 #  ifdef __cplusplus
9932      extern "C"
9933 #  endif
9934    int FC_DUMMY_MAIN() { return 1; }
9935 #endif
9936 #endif
9937 int
9938 main ()
9939 {
9940
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 if ac_fn_c_try_link "$LINENO"; then :
9946
9947   lt_aix_libpath_sed='
9948       /Import File Strings/,/^$/ {
9949           /^0/ {
9950               s/^0  *\([^ ]*\) *$/\1/
9951               p
9952           }
9953       }'
9954   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9955   # Check for a 64-bit object if we didn't find anything.
9956   if test -z "$lt_cv_aix_libpath_"; then
9957     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9958   fi
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext \
9961     conftest$ac_exeext conftest.$ac_ext
9962   if test -z "$lt_cv_aix_libpath_"; then
9963     lt_cv_aix_libpath_="/usr/lib:/lib"
9964   fi
9965
9966 fi
9967
9968   aix_libpath=$lt_cv_aix_libpath_
9969 fi
9970
9971          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9972           # Warning - without using the other run time loading flags,
9973           # -berok will link without error, but may produce a broken library.
9974           no_undefined_flag=' ${wl}-bernotok'
9975           allow_undefined_flag=' ${wl}-berok'
9976           if test "$with_gnu_ld" = yes; then
9977             # We only use this code for GNU lds that support --whole-archive.
9978             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9979           else
9980             # Exported symbols can be pulled into shared objects from archives
9981             whole_archive_flag_spec='$convenience'
9982           fi
9983           archive_cmds_need_lc=yes
9984           # This is similar to how AIX traditionally builds its shared libraries.
9985           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9986         fi
9987       fi
9988       ;;
9989
9990     amigaos*)
9991       case $host_cpu in
9992       powerpc)
9993             # see comment about AmigaOS4 .so support
9994             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995             archive_expsym_cmds=''
9996         ;;
9997       m68k)
9998             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)'
9999             hardcode_libdir_flag_spec='-L$libdir'
10000             hardcode_minus_L=yes
10001         ;;
10002       esac
10003       ;;
10004
10005     bsdi[45]*)
10006       export_dynamic_flag_spec=-rdynamic
10007       ;;
10008
10009     cygwin* | mingw* | pw32* | cegcc*)
10010       # When not using gcc, we currently assume that we are using
10011       # Microsoft Visual C++.
10012       # hardcode_libdir_flag_spec is actually meaningless, as there is
10013       # no search path for DLLs.
10014       case $cc_basename in
10015       cl*)
10016         # Native MSVC
10017         hardcode_libdir_flag_spec=' '
10018         allow_undefined_flag=unsupported
10019         always_export_symbols=yes
10020         file_list_spec='@'
10021         # Tell ltmain to make .lib files, not .a files.
10022         libext=lib
10023         # Tell ltmain to make .dll files, not .so files.
10024         shrext_cmds=".dll"
10025         # FIXME: Setting linknames here is a bad hack.
10026         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10027         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10028             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10029           else
10030             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10031           fi~
10032           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10033           linknames='
10034         # The linker will not automatically build a static lib if we build a DLL.
10035         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10036         enable_shared_with_static_runtimes=yes
10037         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10038         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10039         # Don't use ranlib
10040         old_postinstall_cmds='chmod 644 $oldlib'
10041         postlink_cmds='lt_outputfile="@OUTPUT@"~
10042           lt_tool_outputfile="@TOOL_OUTPUT@"~
10043           case $lt_outputfile in
10044             *.exe|*.EXE) ;;
10045             *)
10046               lt_outputfile="$lt_outputfile.exe"
10047               lt_tool_outputfile="$lt_tool_outputfile.exe"
10048               ;;
10049           esac~
10050           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10051             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10052             $RM "$lt_outputfile.manifest";
10053           fi'
10054         ;;
10055       *)
10056         # Assume MSVC wrapper
10057         hardcode_libdir_flag_spec=' '
10058         allow_undefined_flag=unsupported
10059         # Tell ltmain to make .lib files, not .a files.
10060         libext=lib
10061         # Tell ltmain to make .dll files, not .so files.
10062         shrext_cmds=".dll"
10063         # FIXME: Setting linknames here is a bad hack.
10064         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10065         # The linker will automatically build a .lib file if we build a DLL.
10066         old_archive_from_new_cmds='true'
10067         # FIXME: Should let the user specify the lib program.
10068         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10069         enable_shared_with_static_runtimes=yes
10070         ;;
10071       esac
10072       ;;
10073
10074     darwin* | rhapsody*)
10075
10076
10077   archive_cmds_need_lc=no
10078   hardcode_direct=no
10079   hardcode_automatic=yes
10080   hardcode_shlibpath_var=unsupported
10081   if test "$lt_cv_ld_force_load" = "yes"; then
10082     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\"`'
10083
10084   else
10085     whole_archive_flag_spec=''
10086   fi
10087   link_all_deplibs=yes
10088   allow_undefined_flag="$_lt_dar_allow_undefined"
10089   case $cc_basename in
10090      ifort*) _lt_dar_can_shared=yes ;;
10091      *) _lt_dar_can_shared=$GCC ;;
10092   esac
10093   if test "$_lt_dar_can_shared" = "yes"; then
10094     output_verbose_link_cmd=func_echo_all
10095     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10096     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10097     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}"
10098     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}"
10099
10100   else
10101   ld_shlibs=no
10102   fi
10103
10104       ;;
10105
10106     dgux*)
10107       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108       hardcode_libdir_flag_spec='-L$libdir'
10109       hardcode_shlibpath_var=no
10110       ;;
10111
10112     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10113     # support.  Future versions do this automatically, but an explicit c++rt0.o
10114     # does not break anything, and helps significantly (at the cost of a little
10115     # extra space).
10116     freebsd2.2*)
10117       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10118       hardcode_libdir_flag_spec='-R$libdir'
10119       hardcode_direct=yes
10120       hardcode_shlibpath_var=no
10121       ;;
10122
10123     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10124     freebsd2.*)
10125       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10126       hardcode_direct=yes
10127       hardcode_minus_L=yes
10128       hardcode_shlibpath_var=no
10129       ;;
10130
10131     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10132     freebsd* | dragonfly*)
10133       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10134       hardcode_libdir_flag_spec='-R$libdir'
10135       hardcode_direct=yes
10136       hardcode_shlibpath_var=no
10137       ;;
10138
10139     hpux9*)
10140       if test "$GCC" = yes; then
10141         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10142       else
10143         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10144       fi
10145       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10146       hardcode_libdir_separator=:
10147       hardcode_direct=yes
10148
10149       # hardcode_minus_L: Not really in the search PATH,
10150       # but as the default location of the library.
10151       hardcode_minus_L=yes
10152       export_dynamic_flag_spec='${wl}-E'
10153       ;;
10154
10155     hpux10*)
10156       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10157         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10158       else
10159         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10160       fi
10161       if test "$with_gnu_ld" = no; then
10162         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10163         hardcode_libdir_separator=:
10164         hardcode_direct=yes
10165         hardcode_direct_absolute=yes
10166         export_dynamic_flag_spec='${wl}-E'
10167         # hardcode_minus_L: Not really in the search PATH,
10168         # but as the default location of the library.
10169         hardcode_minus_L=yes
10170       fi
10171       ;;
10172
10173     hpux11*)
10174       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10175         case $host_cpu in
10176         hppa*64*)
10177           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10178           ;;
10179         ia64*)
10180           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10181           ;;
10182         *)
10183           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10184           ;;
10185         esac
10186       else
10187         case $host_cpu in
10188         hppa*64*)
10189           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10190           ;;
10191         ia64*)
10192           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10193           ;;
10194         *)
10195
10196           # Older versions of the 11.00 compiler do not understand -b yet
10197           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10198           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10199 $as_echo_n "checking if $CC understands -b... " >&6; }
10200 if ${lt_cv_prog_compiler__b+:} false; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   lt_cv_prog_compiler__b=no
10204    save_LDFLAGS="$LDFLAGS"
10205    LDFLAGS="$LDFLAGS -b"
10206    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10207    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10208      # The linker can only warn and ignore the option if not recognized
10209      # So say no if there are warnings
10210      if test -s conftest.err; then
10211        # Append any errors to the config.log.
10212        cat conftest.err 1>&5
10213        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10214        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10215        if diff conftest.exp conftest.er2 >/dev/null; then
10216          lt_cv_prog_compiler__b=yes
10217        fi
10218      else
10219        lt_cv_prog_compiler__b=yes
10220      fi
10221    fi
10222    $RM -r conftest*
10223    LDFLAGS="$save_LDFLAGS"
10224
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10227 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10228
10229 if test x"$lt_cv_prog_compiler__b" = xyes; then
10230     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231 else
10232     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10233 fi
10234
10235           ;;
10236         esac
10237       fi
10238       if test "$with_gnu_ld" = no; then
10239         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10240         hardcode_libdir_separator=:
10241
10242         case $host_cpu in
10243         hppa*64*|ia64*)
10244           hardcode_direct=no
10245           hardcode_shlibpath_var=no
10246           ;;
10247         *)
10248           hardcode_direct=yes
10249           hardcode_direct_absolute=yes
10250           export_dynamic_flag_spec='${wl}-E'
10251
10252           # hardcode_minus_L: Not really in the search PATH,
10253           # but as the default location of the library.
10254           hardcode_minus_L=yes
10255           ;;
10256         esac
10257       fi
10258       ;;
10259
10260     irix5* | irix6* | nonstopux*)
10261       if test "$GCC" = yes; then
10262         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'
10263         # Try to use the -exported_symbol ld option, if it does not
10264         # work, assume that -exports_file does not work either and
10265         # implicitly export all symbols.
10266         # This should be the same for all languages, so no per-tag cache variable.
10267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10268 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10269 if ${lt_cv_irix_exported_symbol+:} false; then :
10270   $as_echo_n "(cached) " >&6
10271 else
10272   save_LDFLAGS="$LDFLAGS"
10273            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10274            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h.  */
10276 int foo (void) { return 0; }
10277 _ACEOF
10278 if ac_fn_c_try_link "$LINENO"; then :
10279   lt_cv_irix_exported_symbol=yes
10280 else
10281   lt_cv_irix_exported_symbol=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext \
10284     conftest$ac_exeext conftest.$ac_ext
10285            LDFLAGS="$save_LDFLAGS"
10286 fi
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10288 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10289         if test "$lt_cv_irix_exported_symbol" = yes; then
10290           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'
10291         fi
10292       else
10293         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'
10294         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'
10295       fi
10296       archive_cmds_need_lc='no'
10297       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10298       hardcode_libdir_separator=:
10299       inherit_rpath=yes
10300       link_all_deplibs=yes
10301       ;;
10302
10303     netbsd*)
10304       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10305         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10306       else
10307         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10308       fi
10309       hardcode_libdir_flag_spec='-R$libdir'
10310       hardcode_direct=yes
10311       hardcode_shlibpath_var=no
10312       ;;
10313
10314     newsos6)
10315       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10316       hardcode_direct=yes
10317       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10318       hardcode_libdir_separator=:
10319       hardcode_shlibpath_var=no
10320       ;;
10321
10322     *nto* | *qnx*)
10323       ;;
10324
10325     openbsd*)
10326       if test -f /usr/libexec/ld.so; then
10327         hardcode_direct=yes
10328         hardcode_shlibpath_var=no
10329         hardcode_direct_absolute=yes
10330         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10331           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10332           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10333           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10334           export_dynamic_flag_spec='${wl}-E'
10335         else
10336           case $host_os in
10337            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10338              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10339              hardcode_libdir_flag_spec='-R$libdir'
10340              ;;
10341            *)
10342              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10343              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10344              ;;
10345           esac
10346         fi
10347       else
10348         ld_shlibs=no
10349       fi
10350       ;;
10351
10352     os2*)
10353       hardcode_libdir_flag_spec='-L$libdir'
10354       hardcode_minus_L=yes
10355       allow_undefined_flag=unsupported
10356       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10357       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10358       ;;
10359
10360     osf3*)
10361       if test "$GCC" = yes; then
10362         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10363         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'
10364       else
10365         allow_undefined_flag=' -expect_unresolved \*'
10366         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'
10367       fi
10368       archive_cmds_need_lc='no'
10369       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10370       hardcode_libdir_separator=:
10371       ;;
10372
10373     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10374       if test "$GCC" = yes; then
10375         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10376         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'
10377         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10378       else
10379         allow_undefined_flag=' -expect_unresolved \*'
10380         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'
10381         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~
10382         $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'
10383
10384         # Both c and cxx compiler support -rpath directly
10385         hardcode_libdir_flag_spec='-rpath $libdir'
10386       fi
10387       archive_cmds_need_lc='no'
10388       hardcode_libdir_separator=:
10389       ;;
10390
10391     solaris*)
10392       no_undefined_flag=' -z defs'
10393       if test "$GCC" = yes; then
10394         wlarc='${wl}'
10395         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10396         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10397           $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'
10398       else
10399         case `$CC -V 2>&1` in
10400         *"Compilers 5.0"*)
10401           wlarc=''
10402           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10404           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10405           ;;
10406         *)
10407           wlarc='${wl}'
10408           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10409           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10410           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10411           ;;
10412         esac
10413       fi
10414       hardcode_libdir_flag_spec='-R$libdir'
10415       hardcode_shlibpath_var=no
10416       case $host_os in
10417       solaris2.[0-5] | solaris2.[0-5].*) ;;
10418       *)
10419         # The compiler driver will combine and reorder linker options,
10420         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10421         # but is careful enough not to reorder.
10422         # Supported since Solaris 2.6 (maybe 2.5.1?)
10423         if test "$GCC" = yes; then
10424           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10425         else
10426           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10427         fi
10428         ;;
10429       esac
10430       link_all_deplibs=yes
10431       ;;
10432
10433     sunos4*)
10434       if test "x$host_vendor" = xsequent; then
10435         # Use $CC to link under sequent, because it throws in some extra .o
10436         # files that make .init and .fini sections work.
10437         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10438       else
10439         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10440       fi
10441       hardcode_libdir_flag_spec='-L$libdir'
10442       hardcode_direct=yes
10443       hardcode_minus_L=yes
10444       hardcode_shlibpath_var=no
10445       ;;
10446
10447     sysv4)
10448       case $host_vendor in
10449         sni)
10450           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10451           hardcode_direct=yes # is this really true???
10452         ;;
10453         siemens)
10454           ## LD is ld it makes a PLAMLIB
10455           ## CC just makes a GrossModule.
10456           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10457           reload_cmds='$CC -r -o $output$reload_objs'
10458           hardcode_direct=no
10459         ;;
10460         motorola)
10461           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10463         ;;
10464       esac
10465       runpath_var='LD_RUN_PATH'
10466       hardcode_shlibpath_var=no
10467       ;;
10468
10469     sysv4.3*)
10470       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10471       hardcode_shlibpath_var=no
10472       export_dynamic_flag_spec='-Bexport'
10473       ;;
10474
10475     sysv4*MP*)
10476       if test -d /usr/nec; then
10477         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478         hardcode_shlibpath_var=no
10479         runpath_var=LD_RUN_PATH
10480         hardcode_runpath_var=yes
10481         ld_shlibs=yes
10482       fi
10483       ;;
10484
10485     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10486       no_undefined_flag='${wl}-z,text'
10487       archive_cmds_need_lc=no
10488       hardcode_shlibpath_var=no
10489       runpath_var='LD_RUN_PATH'
10490
10491       if test "$GCC" = yes; then
10492         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10493         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10494       else
10495         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10496         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10497       fi
10498       ;;
10499
10500     sysv5* | sco3.2v5* | sco5v6*)
10501       # Note: We can NOT use -z defs as we might desire, because we do not
10502       # link with -lc, and that would cause any symbols used from libc to
10503       # always be unresolved, which means just about no library would
10504       # ever link correctly.  If we're not using GNU ld we use -z text
10505       # though, which does catch some bad symbols but isn't as heavy-handed
10506       # as -z defs.
10507       no_undefined_flag='${wl}-z,text'
10508       allow_undefined_flag='${wl}-z,nodefs'
10509       archive_cmds_need_lc=no
10510       hardcode_shlibpath_var=no
10511       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10512       hardcode_libdir_separator=':'
10513       link_all_deplibs=yes
10514       export_dynamic_flag_spec='${wl}-Bexport'
10515       runpath_var='LD_RUN_PATH'
10516
10517       if test "$GCC" = yes; then
10518         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10520       else
10521         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10522         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10523       fi
10524       ;;
10525
10526     uts4*)
10527       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528       hardcode_libdir_flag_spec='-L$libdir'
10529       hardcode_shlibpath_var=no
10530       ;;
10531
10532     *)
10533       ld_shlibs=no
10534       ;;
10535     esac
10536
10537     if test x$host_vendor = xsni; then
10538       case $host in
10539       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10540         export_dynamic_flag_spec='${wl}-Blargedynsym'
10541         ;;
10542       esac
10543     fi
10544   fi
10545
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10547 $as_echo "$ld_shlibs" >&6; }
10548 test "$ld_shlibs" = no && can_build_shared=no
10549
10550 with_gnu_ld=$with_gnu_ld
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566 #
10567 # Do we need to explicitly link libc?
10568 #
10569 case "x$archive_cmds_need_lc" in
10570 x|xyes)
10571   # Assume -lc should be added
10572   archive_cmds_need_lc=yes
10573
10574   if test "$enable_shared" = yes && test "$GCC" = yes; then
10575     case $archive_cmds in
10576     *'~'*)
10577       # FIXME: we may have to deal with multi-command sequences.
10578       ;;
10579     '$CC '*)
10580       # Test whether the compiler implicitly links with -lc since on some
10581       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10582       # to ld, don't add -lc before -lgcc.
10583       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10585 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10586   $as_echo_n "(cached) " >&6
10587 else
10588   $RM conftest*
10589         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10590
10591         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10592   (eval $ac_compile) 2>&5
10593   ac_status=$?
10594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10595   test $ac_status = 0; } 2>conftest.err; then
10596           soname=conftest
10597           lib=conftest
10598           libobjs=conftest.$ac_objext
10599           deplibs=
10600           wl=$lt_prog_compiler_wl
10601           pic_flag=$lt_prog_compiler_pic
10602           compiler_flags=-v
10603           linker_flags=-v
10604           verstring=
10605           output_objdir=.
10606           libname=conftest
10607           lt_save_allow_undefined_flag=$allow_undefined_flag
10608           allow_undefined_flag=
10609           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10610   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10611   ac_status=$?
10612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10613   test $ac_status = 0; }
10614           then
10615             lt_cv_archive_cmds_need_lc=no
10616           else
10617             lt_cv_archive_cmds_need_lc=yes
10618           fi
10619           allow_undefined_flag=$lt_save_allow_undefined_flag
10620         else
10621           cat conftest.err 1>&5
10622         fi
10623         $RM conftest*
10624
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10627 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10628       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10629       ;;
10630     esac
10631   fi
10632   ;;
10633 esac
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10787 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10788
10789 if test "$GCC" = yes; then
10790   case $host_os in
10791     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10792     *) lt_awk_arg="/^libraries:/" ;;
10793   esac
10794   case $host_os in
10795     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10796     *) lt_sed_strip_eq="s,=/,/,g" ;;
10797   esac
10798   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10799   case $lt_search_path_spec in
10800   *\;*)
10801     # if the path contains ";" then we assume it to be the separator
10802     # otherwise default to the standard path separator (i.e. ":") - it is
10803     # assumed that no part of a normal pathname contains ";" but that should
10804     # okay in the real world where ";" in dirpaths is itself problematic.
10805     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10806     ;;
10807   *)
10808     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10809     ;;
10810   esac
10811   # Ok, now we have the path, separated by spaces, we can step through it
10812   # and add multilib dir if necessary.
10813   lt_tmp_lt_search_path_spec=
10814   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10815   for lt_sys_path in $lt_search_path_spec; do
10816     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10817       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10818     else
10819       test -d "$lt_sys_path" && \
10820         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10821     fi
10822   done
10823   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10824 BEGIN {RS=" "; FS="/|\n";} {
10825   lt_foo="";
10826   lt_count=0;
10827   for (lt_i = NF; lt_i > 0; lt_i--) {
10828     if ($lt_i != "" && $lt_i != ".") {
10829       if ($lt_i == "..") {
10830         lt_count++;
10831       } else {
10832         if (lt_count == 0) {
10833           lt_foo="/" $lt_i lt_foo;
10834         } else {
10835           lt_count--;
10836         }
10837       }
10838     }
10839   }
10840   if (lt_foo != "") { lt_freq[lt_foo]++; }
10841   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10842 }'`
10843   # AWK program above erroneously prepends '/' to C:/dos/paths
10844   # for these hosts.
10845   case $host_os in
10846     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10847       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10848   esac
10849   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10850 else
10851   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10852 fi
10853 library_names_spec=
10854 libname_spec='lib$name'
10855 soname_spec=
10856 shrext_cmds=".so"
10857 postinstall_cmds=
10858 postuninstall_cmds=
10859 finish_cmds=
10860 finish_eval=
10861 shlibpath_var=
10862 shlibpath_overrides_runpath=unknown
10863 version_type=none
10864 dynamic_linker="$host_os ld.so"
10865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10866 need_lib_prefix=unknown
10867 hardcode_into_libs=no
10868
10869 # when you set need_version to no, make sure it does not cause -set_version
10870 # flags to be left without arguments
10871 need_version=unknown
10872
10873 case $host_os in
10874 aix3*)
10875   version_type=linux # correct to gnu/linux during the next big refactor
10876   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10877   shlibpath_var=LIBPATH
10878
10879   # AIX 3 has no versioning support, so we append a major version to the name.
10880   soname_spec='${libname}${release}${shared_ext}$major'
10881   ;;
10882
10883 aix[4-9]*)
10884   version_type=linux # correct to gnu/linux during the next big refactor
10885   need_lib_prefix=no
10886   need_version=no
10887   hardcode_into_libs=yes
10888   if test "$host_cpu" = ia64; then
10889     # AIX 5 supports IA64
10890     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10891     shlibpath_var=LD_LIBRARY_PATH
10892   else
10893     # With GCC up to 2.95.x, collect2 would create an import file
10894     # for dependence libraries.  The import file would start with
10895     # the line `#! .'.  This would cause the generated library to
10896     # depend on `.', always an invalid library.  This was fixed in
10897     # development snapshots of GCC prior to 3.0.
10898     case $host_os in
10899       aix4 | aix4.[01] | aix4.[01].*)
10900       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10901            echo ' yes '
10902            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10903         :
10904       else
10905         can_build_shared=no
10906       fi
10907       ;;
10908     esac
10909     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10910     # soname into executable. Probably we can add versioning support to
10911     # collect2, so additional links can be useful in future.
10912     if test "$aix_use_runtimelinking" = yes; then
10913       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10914       # instead of lib<name>.a to let people know that these are not
10915       # typical AIX shared libraries.
10916       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917     else
10918       # We preserve .a as extension for shared libraries through AIX4.2
10919       # and later when we are not doing run time linking.
10920       library_names_spec='${libname}${release}.a $libname.a'
10921       soname_spec='${libname}${release}${shared_ext}$major'
10922     fi
10923     shlibpath_var=LIBPATH
10924   fi
10925   ;;
10926
10927 amigaos*)
10928   case $host_cpu in
10929   powerpc)
10930     # Since July 2007 AmigaOS4 officially supports .so libraries.
10931     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933     ;;
10934   m68k)
10935     library_names_spec='$libname.ixlibrary $libname.a'
10936     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10937     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10938     ;;
10939   esac
10940   ;;
10941
10942 beos*)
10943   library_names_spec='${libname}${shared_ext}'
10944   dynamic_linker="$host_os ld.so"
10945   shlibpath_var=LIBRARY_PATH
10946   ;;
10947
10948 bsdi[45]*)
10949   version_type=linux # correct to gnu/linux during the next big refactor
10950   need_version=no
10951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952   soname_spec='${libname}${release}${shared_ext}$major'
10953   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10954   shlibpath_var=LD_LIBRARY_PATH
10955   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10956   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10957   # the default ld.so.conf also contains /usr/contrib/lib and
10958   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10959   # libtool to hard-code these into programs
10960   ;;
10961
10962 cygwin* | mingw* | pw32* | cegcc*)
10963   version_type=windows
10964   shrext_cmds=".dll"
10965   need_version=no
10966   need_lib_prefix=no
10967
10968   case $GCC,$cc_basename in
10969   yes,*)
10970     # gcc
10971     library_names_spec='$libname.dll.a'
10972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10973     postinstall_cmds='base_file=`basename \${file}`~
10974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10975       dldir=$destdir/`dirname \$dlpath`~
10976       test -d \$dldir || mkdir -p \$dldir~
10977       $install_prog $dir/$dlname \$dldir/$dlname~
10978       chmod a+x \$dldir/$dlname~
10979       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10980         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10981       fi'
10982     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10983       dlpath=$dir/\$dldll~
10984        $RM \$dlpath'
10985     shlibpath_overrides_runpath=yes
10986
10987     case $host_os in
10988     cygwin*)
10989       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10990       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10991
10992       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10993       ;;
10994     mingw* | cegcc*)
10995       # MinGW DLLs use traditional 'lib' prefix
10996       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10997       ;;
10998     pw32*)
10999       # pw32 DLLs use 'pw' prefix rather than 'lib'
11000       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11001       ;;
11002     esac
11003     dynamic_linker='Win32 ld.exe'
11004     ;;
11005
11006   *,cl*)
11007     # Native MSVC
11008     libname_spec='$name'
11009     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11010     library_names_spec='${libname}.dll.lib'
11011
11012     case $build_os in
11013     mingw*)
11014       sys_lib_search_path_spec=
11015       lt_save_ifs=$IFS
11016       IFS=';'
11017       for lt_path in $LIB
11018       do
11019         IFS=$lt_save_ifs
11020         # Let DOS variable expansion print the short 8.3 style file name.
11021         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11022         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11023       done
11024       IFS=$lt_save_ifs
11025       # Convert to MSYS style.
11026       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11027       ;;
11028     cygwin*)
11029       # Convert to unix form, then to dos form, then back to unix form
11030       # but this time dos style (no spaces!) so that the unix form looks
11031       # like /cygdrive/c/PROGRA~1:/cygdr...
11032       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11033       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11034       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11035       ;;
11036     *)
11037       sys_lib_search_path_spec="$LIB"
11038       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11039         # It is most probably a Windows format PATH.
11040         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11041       else
11042         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11043       fi
11044       # FIXME: find the short name or the path components, as spaces are
11045       # common. (e.g. "Program Files" -> "PROGRA~1")
11046       ;;
11047     esac
11048
11049     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11050     postinstall_cmds='base_file=`basename \${file}`~
11051       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11052       dldir=$destdir/`dirname \$dlpath`~
11053       test -d \$dldir || mkdir -p \$dldir~
11054       $install_prog $dir/$dlname \$dldir/$dlname'
11055     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11056       dlpath=$dir/\$dldll~
11057        $RM \$dlpath'
11058     shlibpath_overrides_runpath=yes
11059     dynamic_linker='Win32 link.exe'
11060     ;;
11061
11062   *)
11063     # Assume MSVC wrapper
11064     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11065     dynamic_linker='Win32 ld.exe'
11066     ;;
11067   esac
11068   # FIXME: first we should search . and the directory the executable is in
11069   shlibpath_var=PATH
11070   ;;
11071
11072 darwin* | rhapsody*)
11073   dynamic_linker="$host_os dyld"
11074   version_type=darwin
11075   need_lib_prefix=no
11076   need_version=no
11077   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11078   soname_spec='${libname}${release}${major}$shared_ext'
11079   shlibpath_overrides_runpath=yes
11080   shlibpath_var=DYLD_LIBRARY_PATH
11081   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11082
11083   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11084   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11085   ;;
11086
11087 dgux*)
11088   version_type=linux # correct to gnu/linux during the next big refactor
11089   need_lib_prefix=no
11090   need_version=no
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11092   soname_spec='${libname}${release}${shared_ext}$major'
11093   shlibpath_var=LD_LIBRARY_PATH
11094   ;;
11095
11096 freebsd* | dragonfly*)
11097   # DragonFly does not have aout.  When/if they implement a new
11098   # versioning mechanism, adjust this.
11099   if test -x /usr/bin/objformat; then
11100     objformat=`/usr/bin/objformat`
11101   else
11102     case $host_os in
11103     freebsd[23].*) objformat=aout ;;
11104     *) objformat=elf ;;
11105     esac
11106   fi
11107   version_type=freebsd-$objformat
11108   case $version_type in
11109     freebsd-elf*)
11110       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11111       need_version=no
11112       need_lib_prefix=no
11113       ;;
11114     freebsd-*)
11115       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11116       need_version=yes
11117       ;;
11118   esac
11119   shlibpath_var=LD_LIBRARY_PATH
11120   case $host_os in
11121   freebsd2.*)
11122     shlibpath_overrides_runpath=yes
11123     ;;
11124   freebsd3.[01]* | freebsdelf3.[01]*)
11125     shlibpath_overrides_runpath=yes
11126     hardcode_into_libs=yes
11127     ;;
11128   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11129   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11130     shlibpath_overrides_runpath=no
11131     hardcode_into_libs=yes
11132     ;;
11133   *) # from 4.6 on, and DragonFly
11134     shlibpath_overrides_runpath=yes
11135     hardcode_into_libs=yes
11136     ;;
11137   esac
11138   ;;
11139
11140 gnu*)
11141   version_type=linux # correct to gnu/linux during the next big refactor
11142   need_lib_prefix=no
11143   need_version=no
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11145   soname_spec='${libname}${release}${shared_ext}$major'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   shlibpath_overrides_runpath=no
11148   hardcode_into_libs=yes
11149   ;;
11150
11151 haiku*)
11152   version_type=linux # correct to gnu/linux during the next big refactor
11153   need_lib_prefix=no
11154   need_version=no
11155   dynamic_linker="$host_os runtime_loader"
11156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11157   soname_spec='${libname}${release}${shared_ext}$major'
11158   shlibpath_var=LIBRARY_PATH
11159   shlibpath_overrides_runpath=yes
11160   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11161   hardcode_into_libs=yes
11162   ;;
11163
11164 hpux9* | hpux10* | hpux11*)
11165   # Give a soname corresponding to the major version so that dld.sl refuses to
11166   # link against other versions.
11167   version_type=sunos
11168   need_lib_prefix=no
11169   need_version=no
11170   case $host_cpu in
11171   ia64*)
11172     shrext_cmds='.so'
11173     hardcode_into_libs=yes
11174     dynamic_linker="$host_os dld.so"
11175     shlibpath_var=LD_LIBRARY_PATH
11176     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178     soname_spec='${libname}${release}${shared_ext}$major'
11179     if test "X$HPUX_IA64_MODE" = X32; then
11180       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11181     else
11182       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11183     fi
11184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11185     ;;
11186   hppa*64*)
11187     shrext_cmds='.sl'
11188     hardcode_into_libs=yes
11189     dynamic_linker="$host_os dld.sl"
11190     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11191     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193     soname_spec='${libname}${release}${shared_ext}$major'
11194     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11195     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11196     ;;
11197   *)
11198     shrext_cmds='.sl'
11199     dynamic_linker="$host_os dld.sl"
11200     shlibpath_var=SHLIB_PATH
11201     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203     soname_spec='${libname}${release}${shared_ext}$major'
11204     ;;
11205   esac
11206   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11207   postinstall_cmds='chmod 555 $lib'
11208   # or fails outright, so override atomically:
11209   install_override_mode=555
11210   ;;
11211
11212 interix[3-9]*)
11213   version_type=linux # correct to gnu/linux during the next big refactor
11214   need_lib_prefix=no
11215   need_version=no
11216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11217   soname_spec='${libname}${release}${shared_ext}$major'
11218   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=no
11221   hardcode_into_libs=yes
11222   ;;
11223
11224 irix5* | irix6* | nonstopux*)
11225   case $host_os in
11226     nonstopux*) version_type=nonstopux ;;
11227     *)
11228         if test "$lt_cv_prog_gnu_ld" = yes; then
11229                 version_type=linux # correct to gnu/linux during the next big refactor
11230         else
11231                 version_type=irix
11232         fi ;;
11233   esac
11234   need_lib_prefix=no
11235   need_version=no
11236   soname_spec='${libname}${release}${shared_ext}$major'
11237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11238   case $host_os in
11239   irix5* | nonstopux*)
11240     libsuff= shlibsuff=
11241     ;;
11242   *)
11243     case $LD in # libtool.m4 will add one of these switches to LD
11244     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11245       libsuff= shlibsuff= libmagic=32-bit;;
11246     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11247       libsuff=32 shlibsuff=N32 libmagic=N32;;
11248     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11249       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11250     *) libsuff= shlibsuff= libmagic=never-match;;
11251     esac
11252     ;;
11253   esac
11254   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11255   shlibpath_overrides_runpath=no
11256   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11257   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11258   hardcode_into_libs=yes
11259   ;;
11260
11261 # No shared lib support for Linux oldld, aout, or coff.
11262 linux*oldld* | linux*aout* | linux*coff*)
11263   dynamic_linker=no
11264   ;;
11265
11266 # This must be glibc/ELF.
11267 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11268   version_type=linux # correct to gnu/linux during the next big refactor
11269   need_lib_prefix=no
11270   need_version=no
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272   soname_spec='${libname}${release}${shared_ext}$major'
11273   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11274   shlibpath_var=LD_LIBRARY_PATH
11275   shlibpath_overrides_runpath=no
11276
11277   # Some binutils ld are patched to set DT_RUNPATH
11278   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11279   $as_echo_n "(cached) " >&6
11280 else
11281   lt_cv_shlibpath_overrides_runpath=no
11282     save_LDFLAGS=$LDFLAGS
11283     save_libdir=$libdir
11284     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11285          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11286     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h.  */
11288
11289 #ifdef FC_DUMMY_MAIN
11290 #ifndef FC_DUMMY_MAIN_EQ_F77
11291 #  ifdef __cplusplus
11292      extern "C"
11293 #  endif
11294    int FC_DUMMY_MAIN() { return 1; }
11295 #endif
11296 #endif
11297 int
11298 main ()
11299 {
11300
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 if ac_fn_c_try_link "$LINENO"; then :
11306   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11307   lt_cv_shlibpath_overrides_runpath=yes
11308 fi
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext \
11311     conftest$ac_exeext conftest.$ac_ext
11312     LDFLAGS=$save_LDFLAGS
11313     libdir=$save_libdir
11314
11315 fi
11316
11317   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11318
11319   # This implies no fast_install, which is unacceptable.
11320   # Some rework will be needed to allow for fast_install
11321   # before this can be enabled.
11322   hardcode_into_libs=yes
11323
11324   # Append ld.so.conf contents to the search path
11325   if test -f /etc/ld.so.conf; then
11326     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' ' '`
11327     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11328   fi
11329
11330   # We used to test for /lib/ld.so.1 and disable shared libraries on
11331   # powerpc, because MkLinux only supported shared libraries with the
11332   # GNU dynamic linker.  Since this was broken with cross compilers,
11333   # most powerpc-linux boxes support dynamic linking these days and
11334   # people can always --disable-shared, the test was removed, and we
11335   # assume the GNU/Linux dynamic linker is in use.
11336   dynamic_linker='GNU/Linux ld.so'
11337   ;;
11338
11339 netbsd*)
11340   version_type=sunos
11341   need_lib_prefix=no
11342   need_version=no
11343   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11345     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11346     dynamic_linker='NetBSD (a.out) ld.so'
11347   else
11348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11349     soname_spec='${libname}${release}${shared_ext}$major'
11350     dynamic_linker='NetBSD ld.elf_so'
11351   fi
11352   shlibpath_var=LD_LIBRARY_PATH
11353   shlibpath_overrides_runpath=yes
11354   hardcode_into_libs=yes
11355   ;;
11356
11357 newsos6)
11358   version_type=linux # correct to gnu/linux during the next big refactor
11359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360   shlibpath_var=LD_LIBRARY_PATH
11361   shlibpath_overrides_runpath=yes
11362   ;;
11363
11364 *nto* | *qnx*)
11365   version_type=qnx
11366   need_lib_prefix=no
11367   need_version=no
11368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369   soname_spec='${libname}${release}${shared_ext}$major'
11370   shlibpath_var=LD_LIBRARY_PATH
11371   shlibpath_overrides_runpath=no
11372   hardcode_into_libs=yes
11373   dynamic_linker='ldqnx.so'
11374   ;;
11375
11376 openbsd*)
11377   version_type=sunos
11378   sys_lib_dlsearch_path_spec="/usr/lib"
11379   need_lib_prefix=no
11380   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11381   case $host_os in
11382     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11383     *)                          need_version=no  ;;
11384   esac
11385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11387   shlibpath_var=LD_LIBRARY_PATH
11388   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11389     case $host_os in
11390       openbsd2.[89] | openbsd2.[89].*)
11391         shlibpath_overrides_runpath=no
11392         ;;
11393       *)
11394         shlibpath_overrides_runpath=yes
11395         ;;
11396       esac
11397   else
11398     shlibpath_overrides_runpath=yes
11399   fi
11400   ;;
11401
11402 os2*)
11403   libname_spec='$name'
11404   shrext_cmds=".dll"
11405   need_lib_prefix=no
11406   library_names_spec='$libname${shared_ext} $libname.a'
11407   dynamic_linker='OS/2 ld.exe'
11408   shlibpath_var=LIBPATH
11409   ;;
11410
11411 osf3* | osf4* | osf5*)
11412   version_type=osf
11413   need_lib_prefix=no
11414   need_version=no
11415   soname_spec='${libname}${release}${shared_ext}$major'
11416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417   shlibpath_var=LD_LIBRARY_PATH
11418   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11419   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11420   ;;
11421
11422 rdos*)
11423   dynamic_linker=no
11424   ;;
11425
11426 solaris*)
11427   version_type=linux # correct to gnu/linux during the next big refactor
11428   need_lib_prefix=no
11429   need_version=no
11430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431   soname_spec='${libname}${release}${shared_ext}$major'
11432   shlibpath_var=LD_LIBRARY_PATH
11433   shlibpath_overrides_runpath=yes
11434   hardcode_into_libs=yes
11435   # ldd complains unless libraries are executable
11436   postinstall_cmds='chmod +x $lib'
11437   ;;
11438
11439 sunos4*)
11440   version_type=sunos
11441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11443   shlibpath_var=LD_LIBRARY_PATH
11444   shlibpath_overrides_runpath=yes
11445   if test "$with_gnu_ld" = yes; then
11446     need_lib_prefix=no
11447   fi
11448   need_version=yes
11449   ;;
11450
11451 sysv4 | sysv4.3*)
11452   version_type=linux # correct to gnu/linux during the next big refactor
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454   soname_spec='${libname}${release}${shared_ext}$major'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   case $host_vendor in
11457     sni)
11458       shlibpath_overrides_runpath=no
11459       need_lib_prefix=no
11460       runpath_var=LD_RUN_PATH
11461       ;;
11462     siemens)
11463       need_lib_prefix=no
11464       ;;
11465     motorola)
11466       need_lib_prefix=no
11467       need_version=no
11468       shlibpath_overrides_runpath=no
11469       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11470       ;;
11471   esac
11472   ;;
11473
11474 sysv4*MP*)
11475   if test -d /usr/nec ;then
11476     version_type=linux # correct to gnu/linux during the next big refactor
11477     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11478     soname_spec='$libname${shared_ext}.$major'
11479     shlibpath_var=LD_LIBRARY_PATH
11480   fi
11481   ;;
11482
11483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11484   version_type=freebsd-elf
11485   need_lib_prefix=no
11486   need_version=no
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   shlibpath_overrides_runpath=yes
11491   hardcode_into_libs=yes
11492   if test "$with_gnu_ld" = yes; then
11493     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11494   else
11495     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11496     case $host_os in
11497       sco3.2v5*)
11498         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11499         ;;
11500     esac
11501   fi
11502   sys_lib_dlsearch_path_spec='/usr/lib'
11503   ;;
11504
11505 tpf*)
11506   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11507   version_type=linux # correct to gnu/linux during the next big refactor
11508   need_lib_prefix=no
11509   need_version=no
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   shlibpath_overrides_runpath=no
11513   hardcode_into_libs=yes
11514   ;;
11515
11516 uts4*)
11517   version_type=linux # correct to gnu/linux during the next big refactor
11518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   shlibpath_var=LD_LIBRARY_PATH
11521   ;;
11522
11523 *)
11524   dynamic_linker=no
11525   ;;
11526 esac
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11528 $as_echo "$dynamic_linker" >&6; }
11529 test "$dynamic_linker" = no && can_build_shared=no
11530
11531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11532 if test "$GCC" = yes; then
11533   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11534 fi
11535
11536 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11537   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11538 fi
11539 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11540   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11541 fi
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11635 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11636 hardcode_action=
11637 if test -n "$hardcode_libdir_flag_spec" ||
11638    test -n "$runpath_var" ||
11639    test "X$hardcode_automatic" = "Xyes" ; then
11640
11641   # We can hardcode non-existent directories.
11642   if test "$hardcode_direct" != no &&
11643      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11644      # have to relink, otherwise we might link with an installed library
11645      # when we should be linking with a yet-to-be-installed one
11646      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11647      test "$hardcode_minus_L" != no; then
11648     # Linking always hardcodes the temporary library directory.
11649     hardcode_action=relink
11650   else
11651     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11652     hardcode_action=immediate
11653   fi
11654 else
11655   # We cannot hardcode anything, or else we can only hardcode existing
11656   # directories.
11657   hardcode_action=unsupported
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11660 $as_echo "$hardcode_action" >&6; }
11661
11662 if test "$hardcode_action" = relink ||
11663    test "$inherit_rpath" = yes; then
11664   # Fast installation is not supported
11665   enable_fast_install=no
11666 elif test "$shlibpath_overrides_runpath" = yes ||
11667      test "$enable_shared" = no; then
11668   # Fast installation is not necessary
11669   enable_fast_install=needless
11670 fi
11671
11672
11673
11674
11675
11676
11677   if test "x$enable_dlopen" != xyes; then
11678   enable_dlopen=unknown
11679   enable_dlopen_self=unknown
11680   enable_dlopen_self_static=unknown
11681 else
11682   lt_cv_dlopen=no
11683   lt_cv_dlopen_libs=
11684
11685   case $host_os in
11686   beos*)
11687     lt_cv_dlopen="load_add_on"
11688     lt_cv_dlopen_libs=
11689     lt_cv_dlopen_self=yes
11690     ;;
11691
11692   mingw* | pw32* | cegcc*)
11693     lt_cv_dlopen="LoadLibrary"
11694     lt_cv_dlopen_libs=
11695     ;;
11696
11697   cygwin*)
11698     lt_cv_dlopen="dlopen"
11699     lt_cv_dlopen_libs=
11700     ;;
11701
11702   darwin*)
11703   # if libdl is installed we need to link against it
11704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11706 if ${ac_cv_lib_dl_dlopen+:} false; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709   ac_check_lib_save_LIBS=$LIBS
11710 LIBS="-ldl  $LIBS"
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h.  */
11713
11714 /* Override any GCC internal prototype to avoid an error.
11715    Use char because int might match the return type of a GCC
11716    builtin and then its argument prototype would still apply.  */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 char dlopen ();
11721 #ifdef FC_DUMMY_MAIN
11722 #ifndef FC_DUMMY_MAIN_EQ_F77
11723 #  ifdef __cplusplus
11724      extern "C"
11725 #  endif
11726    int FC_DUMMY_MAIN() { return 1; }
11727 #endif
11728 #endif
11729 int
11730 main ()
11731 {
11732 return dlopen ();
11733   ;
11734   return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"; then :
11738   ac_cv_lib_dl_dlopen=yes
11739 else
11740   ac_cv_lib_dl_dlopen=no
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext \
11743     conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11748 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11749   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11750 else
11751
11752     lt_cv_dlopen="dyld"
11753     lt_cv_dlopen_libs=
11754     lt_cv_dlopen_self=yes
11755
11756 fi
11757
11758     ;;
11759
11760   *)
11761     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11762 if test "x$ac_cv_func_shl_load" = xyes; then :
11763   lt_cv_dlopen="shl_load"
11764 else
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11766 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11767 if ${ac_cv_lib_dld_shl_load+:} false; then :
11768   $as_echo_n "(cached) " >&6
11769 else
11770   ac_check_lib_save_LIBS=$LIBS
11771 LIBS="-ldld  $LIBS"
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h.  */
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776    Use char because int might match the return type of a GCC
11777    builtin and then its argument prototype would still apply.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char shl_load ();
11782 #ifdef FC_DUMMY_MAIN
11783 #ifndef FC_DUMMY_MAIN_EQ_F77
11784 #  ifdef __cplusplus
11785      extern "C"
11786 #  endif
11787    int FC_DUMMY_MAIN() { return 1; }
11788 #endif
11789 #endif
11790 int
11791 main ()
11792 {
11793 return shl_load ();
11794   ;
11795   return 0;
11796 }
11797 _ACEOF
11798 if ac_fn_c_try_link "$LINENO"; then :
11799   ac_cv_lib_dld_shl_load=yes
11800 else
11801   ac_cv_lib_dld_shl_load=no
11802 fi
11803 rm -f core conftest.err conftest.$ac_objext \
11804     conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11808 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11809 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11810   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11811 else
11812   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11813 if test "x$ac_cv_func_dlopen" = xyes; then :
11814   lt_cv_dlopen="dlopen"
11815 else
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11818 if ${ac_cv_lib_dl_dlopen+:} false; then :
11819   $as_echo_n "(cached) " >&6
11820 else
11821   ac_check_lib_save_LIBS=$LIBS
11822 LIBS="-ldl  $LIBS"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h.  */
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827    Use char because int might match the return type of a GCC
11828    builtin and then its argument prototype would still apply.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char dlopen ();
11833 #ifdef FC_DUMMY_MAIN
11834 #ifndef FC_DUMMY_MAIN_EQ_F77
11835 #  ifdef __cplusplus
11836      extern "C"
11837 #  endif
11838    int FC_DUMMY_MAIN() { return 1; }
11839 #endif
11840 #endif
11841 int
11842 main ()
11843 {
11844 return dlopen ();
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850   ac_cv_lib_dl_dlopen=yes
11851 else
11852   ac_cv_lib_dl_dlopen=no
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext \
11855     conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11859 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11860 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11861   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11862 else
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11864 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11865 if ${ac_cv_lib_svld_dlopen+:} false; then :
11866   $as_echo_n "(cached) " >&6
11867 else
11868   ac_check_lib_save_LIBS=$LIBS
11869 LIBS="-lsvld  $LIBS"
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h.  */
11872
11873 /* Override any GCC internal prototype to avoid an error.
11874    Use char because int might match the return type of a GCC
11875    builtin and then its argument prototype would still apply.  */
11876 #ifdef __cplusplus
11877 extern "C"
11878 #endif
11879 char dlopen ();
11880 #ifdef FC_DUMMY_MAIN
11881 #ifndef FC_DUMMY_MAIN_EQ_F77
11882 #  ifdef __cplusplus
11883      extern "C"
11884 #  endif
11885    int FC_DUMMY_MAIN() { return 1; }
11886 #endif
11887 #endif
11888 int
11889 main ()
11890 {
11891 return dlopen ();
11892   ;
11893   return 0;
11894 }
11895 _ACEOF
11896 if ac_fn_c_try_link "$LINENO"; then :
11897   ac_cv_lib_svld_dlopen=yes
11898 else
11899   ac_cv_lib_svld_dlopen=no
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext \
11902     conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11906 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11907 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11908   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11909 else
11910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11911 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11912 if ${ac_cv_lib_dld_dld_link+:} false; then :
11913   $as_echo_n "(cached) " >&6
11914 else
11915   ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-ldld  $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h.  */
11919
11920 /* Override any GCC internal prototype to avoid an error.
11921    Use char because int might match the return type of a GCC
11922    builtin and then its argument prototype would still apply.  */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char dld_link ();
11927 #ifdef FC_DUMMY_MAIN
11928 #ifndef FC_DUMMY_MAIN_EQ_F77
11929 #  ifdef __cplusplus
11930      extern "C"
11931 #  endif
11932    int FC_DUMMY_MAIN() { return 1; }
11933 #endif
11934 #endif
11935 int
11936 main ()
11937 {
11938 return dld_link ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 if ac_fn_c_try_link "$LINENO"; then :
11944   ac_cv_lib_dld_dld_link=yes
11945 else
11946   ac_cv_lib_dld_dld_link=no
11947 fi
11948 rm -f core conftest.err conftest.$ac_objext \
11949     conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11951 fi
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11953 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11954 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11955   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11956 fi
11957
11958
11959 fi
11960
11961
11962 fi
11963
11964
11965 fi
11966
11967
11968 fi
11969
11970
11971 fi
11972
11973     ;;
11974   esac
11975
11976   if test "x$lt_cv_dlopen" != xno; then
11977     enable_dlopen=yes
11978   else
11979     enable_dlopen=no
11980   fi
11981
11982   case $lt_cv_dlopen in
11983   dlopen)
11984     save_CPPFLAGS="$CPPFLAGS"
11985     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11986
11987     save_LDFLAGS="$LDFLAGS"
11988     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11989
11990     save_LIBS="$LIBS"
11991     LIBS="$lt_cv_dlopen_libs $LIBS"
11992
11993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11994 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11995 if ${lt_cv_dlopen_self+:} false; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998           if test "$cross_compiling" = yes; then :
11999   lt_cv_dlopen_self=cross
12000 else
12001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12002   lt_status=$lt_dlunknown
12003   cat > conftest.$ac_ext <<_LT_EOF
12004 #line $LINENO "configure"
12005 #include "confdefs.h"
12006
12007 #if HAVE_DLFCN_H
12008 #include <dlfcn.h>
12009 #endif
12010
12011 #include <stdio.h>
12012
12013 #ifdef RTLD_GLOBAL
12014 #  define LT_DLGLOBAL           RTLD_GLOBAL
12015 #else
12016 #  ifdef DL_GLOBAL
12017 #    define LT_DLGLOBAL         DL_GLOBAL
12018 #  else
12019 #    define LT_DLGLOBAL         0
12020 #  endif
12021 #endif
12022
12023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12024    find out it does not work in some platform. */
12025 #ifndef LT_DLLAZY_OR_NOW
12026 #  ifdef RTLD_LAZY
12027 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12028 #  else
12029 #    ifdef DL_LAZY
12030 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12031 #    else
12032 #      ifdef RTLD_NOW
12033 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12034 #      else
12035 #        ifdef DL_NOW
12036 #          define LT_DLLAZY_OR_NOW      DL_NOW
12037 #        else
12038 #          define LT_DLLAZY_OR_NOW      0
12039 #        endif
12040 #      endif
12041 #    endif
12042 #  endif
12043 #endif
12044
12045 /* When -fvisbility=hidden is used, assume the code has been annotated
12046    correspondingly for the symbols needed.  */
12047 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12048 int fnord () __attribute__((visibility("default")));
12049 #endif
12050
12051 int fnord () { return 42; }
12052 int main ()
12053 {
12054   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12055   int status = $lt_dlunknown;
12056
12057   if (self)
12058     {
12059       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12060       else
12061         {
12062           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12063           else puts (dlerror ());
12064         }
12065       /* dlclose (self); */
12066     }
12067   else
12068     puts (dlerror ());
12069
12070   return status;
12071 }
12072 _LT_EOF
12073   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12074   (eval $ac_link) 2>&5
12075   ac_status=$?
12076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12077   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12078     (./conftest; exit; ) >&5 2>/dev/null
12079     lt_status=$?
12080     case x$lt_status in
12081       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12082       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12083       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12084     esac
12085   else :
12086     # compilation failed
12087     lt_cv_dlopen_self=no
12088   fi
12089 fi
12090 rm -fr conftest*
12091
12092
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12095 $as_echo "$lt_cv_dlopen_self" >&6; }
12096
12097     if test "x$lt_cv_dlopen_self" = xyes; then
12098       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12099       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12100 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12101 if ${lt_cv_dlopen_self_static+:} false; then :
12102   $as_echo_n "(cached) " >&6
12103 else
12104           if test "$cross_compiling" = yes; then :
12105   lt_cv_dlopen_self_static=cross
12106 else
12107   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12108   lt_status=$lt_dlunknown
12109   cat > conftest.$ac_ext <<_LT_EOF
12110 #line $LINENO "configure"
12111 #include "confdefs.h"
12112
12113 #if HAVE_DLFCN_H
12114 #include <dlfcn.h>
12115 #endif
12116
12117 #include <stdio.h>
12118
12119 #ifdef RTLD_GLOBAL
12120 #  define LT_DLGLOBAL           RTLD_GLOBAL
12121 #else
12122 #  ifdef DL_GLOBAL
12123 #    define LT_DLGLOBAL         DL_GLOBAL
12124 #  else
12125 #    define LT_DLGLOBAL         0
12126 #  endif
12127 #endif
12128
12129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12130    find out it does not work in some platform. */
12131 #ifndef LT_DLLAZY_OR_NOW
12132 #  ifdef RTLD_LAZY
12133 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12134 #  else
12135 #    ifdef DL_LAZY
12136 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12137 #    else
12138 #      ifdef RTLD_NOW
12139 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12140 #      else
12141 #        ifdef DL_NOW
12142 #          define LT_DLLAZY_OR_NOW      DL_NOW
12143 #        else
12144 #          define LT_DLLAZY_OR_NOW      0
12145 #        endif
12146 #      endif
12147 #    endif
12148 #  endif
12149 #endif
12150
12151 /* When -fvisbility=hidden is used, assume the code has been annotated
12152    correspondingly for the symbols needed.  */
12153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12154 int fnord () __attribute__((visibility("default")));
12155 #endif
12156
12157 int fnord () { return 42; }
12158 int main ()
12159 {
12160   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161   int status = $lt_dlunknown;
12162
12163   if (self)
12164     {
12165       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12166       else
12167         {
12168           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12169           else puts (dlerror ());
12170         }
12171       /* dlclose (self); */
12172     }
12173   else
12174     puts (dlerror ());
12175
12176   return status;
12177 }
12178 _LT_EOF
12179   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12180   (eval $ac_link) 2>&5
12181   ac_status=$?
12182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12184     (./conftest; exit; ) >&5 2>/dev/null
12185     lt_status=$?
12186     case x$lt_status in
12187       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12188       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12189       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12190     esac
12191   else :
12192     # compilation failed
12193     lt_cv_dlopen_self_static=no
12194   fi
12195 fi
12196 rm -fr conftest*
12197
12198
12199 fi
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12201 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12202     fi
12203
12204     CPPFLAGS="$save_CPPFLAGS"
12205     LDFLAGS="$save_LDFLAGS"
12206     LIBS="$save_LIBS"
12207     ;;
12208   esac
12209
12210   case $lt_cv_dlopen_self in
12211   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12212   *) enable_dlopen_self=unknown ;;
12213   esac
12214
12215   case $lt_cv_dlopen_self_static in
12216   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12217   *) enable_dlopen_self_static=unknown ;;
12218   esac
12219 fi
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237 striplib=
12238 old_striplib=
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12240 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12241 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12242   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12243   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245 $as_echo "yes" >&6; }
12246 else
12247 # FIXME - insert some real tests, host_os isn't really good enough
12248   case $host_os in
12249   darwin*)
12250     if test -n "$STRIP" ; then
12251       striplib="$STRIP -x"
12252       old_striplib="$STRIP -S"
12253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254 $as_echo "yes" >&6; }
12255     else
12256       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258     fi
12259     ;;
12260   *)
12261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263     ;;
12264   esac
12265 fi
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278   # Report which library types will actually be built
12279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12280 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12282 $as_echo "$can_build_shared" >&6; }
12283
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12285 $as_echo_n "checking whether to build shared libraries... " >&6; }
12286   test "$can_build_shared" = "no" && enable_shared=no
12287
12288   # On AIX, shared libraries and static libraries use the same namespace, and
12289   # are all built from PIC.
12290   case $host_os in
12291   aix3*)
12292     test "$enable_shared" = yes && enable_static=no
12293     if test -n "$RANLIB"; then
12294       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12295       postinstall_cmds='$RANLIB $lib'
12296     fi
12297     ;;
12298
12299   aix[4-9]*)
12300     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12301       test "$enable_shared" = yes && enable_static=no
12302     fi
12303     ;;
12304   esac
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12306 $as_echo "$enable_shared" >&6; }
12307
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12309 $as_echo_n "checking whether to build static libraries... " >&6; }
12310   # Make sure either enable_shared or enable_static is yes.
12311   test "$enable_shared" = yes || enable_static=yes
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12313 $as_echo "$enable_static" >&6; }
12314
12315
12316
12317
12318 fi
12319 ac_ext=c
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325 CC="$lt_save_CC"
12326
12327
12328
12329
12330
12331       ac_ext=${ac_fc_srcext-f}
12332 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12333 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12334 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12335
12336
12337 if test -z "$FC" || test "X$FC" = "Xno"; then
12338   _lt_disable_FC=yes
12339 fi
12340
12341 archive_cmds_need_lc_FC=no
12342 allow_undefined_flag_FC=
12343 always_export_symbols_FC=no
12344 archive_expsym_cmds_FC=
12345 export_dynamic_flag_spec_FC=
12346 hardcode_direct_FC=no
12347 hardcode_direct_absolute_FC=no
12348 hardcode_libdir_flag_spec_FC=
12349 hardcode_libdir_separator_FC=
12350 hardcode_minus_L_FC=no
12351 hardcode_automatic_FC=no
12352 inherit_rpath_FC=no
12353 module_cmds_FC=
12354 module_expsym_cmds_FC=
12355 link_all_deplibs_FC=unknown
12356 old_archive_cmds_FC=$old_archive_cmds
12357 reload_flag_FC=$reload_flag
12358 reload_cmds_FC=$reload_cmds
12359 no_undefined_flag_FC=
12360 whole_archive_flag_spec_FC=
12361 enable_shared_with_static_runtimes_FC=no
12362
12363 # Source file extension for fc test sources.
12364 ac_ext=${ac_fc_srcext-f}
12365
12366 # Object file extension for compiled fc test sources.
12367 objext=o
12368 objext_FC=$objext
12369
12370 # No sense in running all these tests if we already determined that
12371 # the FC compiler isn't working.  Some variables (like enable_shared)
12372 # are currently assumed to apply to all compilers on this platform,
12373 # and will be corrupted by setting them based on a non-working compiler.
12374 if test "$_lt_disable_FC" != yes; then
12375   # Code to be used in simple compile tests
12376   lt_simple_compile_test_code="\
12377       subroutine t
12378       return
12379       end
12380 "
12381
12382   # Code to be used in simple link tests
12383   lt_simple_link_test_code="\
12384       program t
12385       end
12386 "
12387
12388   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12389
12390
12391
12392
12393
12394
12395 # If no C compiler was specified, use CC.
12396 LTCC=${LTCC-"$CC"}
12397
12398 # If no C compiler flags were specified, use CFLAGS.
12399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12400
12401 # Allow CC to be a program name with arguments.
12402 compiler=$CC
12403
12404
12405   # save warnings/boilerplate of simple test code
12406   ac_outfile=conftest.$ac_objext
12407 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12409 _lt_compiler_boilerplate=`cat conftest.err`
12410 $RM conftest*
12411
12412   ac_outfile=conftest.$ac_objext
12413 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12415 _lt_linker_boilerplate=`cat conftest.err`
12416 $RM -r conftest*
12417
12418
12419   # Allow CC to be a program name with arguments.
12420   lt_save_CC="$CC"
12421   lt_save_GCC=$GCC
12422   lt_save_CFLAGS=$CFLAGS
12423   CC=${FC-"f95"}
12424   CFLAGS=$FCFLAGS
12425   compiler=$CC
12426   GCC=$ac_cv_fc_compiler_gnu
12427
12428   compiler_FC=$CC
12429   for cc_temp in $compiler""; do
12430   case $cc_temp in
12431     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12432     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12433     \-*) ;;
12434     *) break;;
12435   esac
12436 done
12437 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12438
12439
12440   if test -n "$compiler"; then
12441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12442 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12444 $as_echo "$can_build_shared" >&6; }
12445
12446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12447 $as_echo_n "checking whether to build shared libraries... " >&6; }
12448     test "$can_build_shared" = "no" && enable_shared=no
12449
12450     # On AIX, shared libraries and static libraries use the same namespace, and
12451     # are all built from PIC.
12452     case $host_os in
12453       aix3*)
12454         test "$enable_shared" = yes && enable_static=no
12455         if test -n "$RANLIB"; then
12456           archive_cmds="$archive_cmds~\$RANLIB \$lib"
12457           postinstall_cmds='$RANLIB $lib'
12458         fi
12459         ;;
12460       aix[4-9]*)
12461         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12462           test "$enable_shared" = yes && enable_static=no
12463         fi
12464         ;;
12465     esac
12466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12467 $as_echo "$enable_shared" >&6; }
12468
12469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12470 $as_echo_n "checking whether to build static libraries... " >&6; }
12471     # Make sure either enable_shared or enable_static is yes.
12472     test "$enable_shared" = yes || enable_static=yes
12473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12474 $as_echo "$enable_static" >&6; }
12475
12476     GCC_FC="$ac_cv_fc_compiler_gnu"
12477     LD_FC="$LD"
12478
12479     ## CAVEAT EMPTOR:
12480     ## There is no encapsulation within the following macros, do not change
12481     ## the running order or otherwise move them around unless you know exactly
12482     ## what you are doing...
12483     # Dependencies to place before and after the object being linked:
12484 predep_objects_FC=
12485 postdep_objects_FC=
12486 predeps_FC=
12487 postdeps_FC=
12488 compiler_lib_search_path_FC=
12489
12490 cat > conftest.$ac_ext <<_LT_EOF
12491       subroutine foo
12492       implicit none
12493       integer a
12494       a=0
12495       return
12496       end
12497 _LT_EOF
12498
12499
12500 _lt_libdeps_save_CFLAGS=$CFLAGS
12501 case "$CC $CFLAGS " in #(
12502 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
12503 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
12504 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
12505 esac
12506
12507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12508   (eval $ac_compile) 2>&5
12509   ac_status=$?
12510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12511   test $ac_status = 0; }; then
12512   # Parse the compiler output and extract the necessary
12513   # objects, libraries and library flags.
12514
12515   # Sentinel used to keep track of whether or not we are before
12516   # the conftest object file.
12517   pre_test_object_deps_done=no
12518
12519   for p in `eval "$output_verbose_link_cmd"`; do
12520     case ${prev}${p} in
12521
12522     -L* | -R* | -l*)
12523        # Some compilers place space between "-{L,R}" and the path.
12524        # Remove the space.
12525        if test $p = "-L" ||
12526           test $p = "-R"; then
12527          prev=$p
12528          continue
12529        fi
12530
12531        # Expand the sysroot to ease extracting the directories later.
12532        if test -z "$prev"; then
12533          case $p in
12534          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
12535          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
12536          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
12537          esac
12538        fi
12539        case $p in
12540        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
12541        esac
12542        if test "$pre_test_object_deps_done" = no; then
12543          case ${prev} in
12544          -L | -R)
12545            # Internal compiler library paths should come after those
12546            # provided the user.  The postdeps already come after the
12547            # user supplied libs so there is no need to process them.
12548            if test -z "$compiler_lib_search_path_FC"; then
12549              compiler_lib_search_path_FC="${prev}${p}"
12550            else
12551              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12552            fi
12553            ;;
12554          # The "-l" case would never come before the object being
12555          # linked, so don't bother handling this case.
12556          esac
12557        else
12558          if test -z "$postdeps_FC"; then
12559            postdeps_FC="${prev}${p}"
12560          else
12561            postdeps_FC="${postdeps_FC} ${prev}${p}"
12562          fi
12563        fi
12564        prev=
12565        ;;
12566
12567     *.lto.$objext) ;; # Ignore GCC LTO objects
12568     *.$objext)
12569        # This assumes that the test object file only shows up
12570        # once in the compiler output.
12571        if test "$p" = "conftest.$objext"; then
12572          pre_test_object_deps_done=yes
12573          continue
12574        fi
12575
12576        if test "$pre_test_object_deps_done" = no; then
12577          if test -z "$predep_objects_FC"; then
12578            predep_objects_FC="$p"
12579          else
12580            predep_objects_FC="$predep_objects_FC $p"
12581          fi
12582        else
12583          if test -z "$postdep_objects_FC"; then
12584            postdep_objects_FC="$p"
12585          else
12586            postdep_objects_FC="$postdep_objects_FC $p"
12587          fi
12588        fi
12589        ;;
12590
12591     *) ;; # Ignore the rest.
12592
12593     esac
12594   done
12595
12596   # Clean up.
12597   rm -f a.out a.exe
12598 else
12599   echo "libtool.m4: error: problem compiling FC test program"
12600 fi
12601
12602 $RM -f confest.$objext
12603 CFLAGS=$_lt_libdeps_save_CFLAGS
12604
12605 # PORTME: override above test on systems where it is broken
12606
12607
12608 case " $postdeps_FC " in
12609 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12610 esac
12611  compiler_lib_search_dirs_FC=
12612 if test -n "${compiler_lib_search_path_FC}"; then
12613  compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12614 fi
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646     lt_prog_compiler_wl_FC=
12647 lt_prog_compiler_pic_FC=
12648 lt_prog_compiler_static_FC=
12649
12650
12651   if test "$GCC" = yes; then
12652     lt_prog_compiler_wl_FC='-Wl,'
12653     lt_prog_compiler_static_FC='-static'
12654
12655     case $host_os in
12656       aix*)
12657       # All AIX code is PIC.
12658       if test "$host_cpu" = ia64; then
12659         # AIX 5 now supports IA64 processor
12660         lt_prog_compiler_static_FC='-Bstatic'
12661       fi
12662       ;;
12663
12664     amigaos*)
12665       case $host_cpu in
12666       powerpc)
12667             # see comment about AmigaOS4 .so support
12668             lt_prog_compiler_pic_FC='-fPIC'
12669         ;;
12670       m68k)
12671             # FIXME: we need at least 68020 code to build shared libraries, but
12672             # adding the `-m68020' flag to GCC prevents building anything better,
12673             # like `-m68040'.
12674             lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12675         ;;
12676       esac
12677       ;;
12678
12679     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12680       # PIC is the default for these OSes.
12681       ;;
12682
12683     mingw* | cygwin* | pw32* | os2* | cegcc*)
12684       # This hack is so that the source file can tell whether it is being
12685       # built for inclusion in a dll (and should export symbols for example).
12686       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12687       # (--disable-auto-import) libraries
12688       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12689       ;;
12690
12691     darwin* | rhapsody*)
12692       # PIC is the default on this platform
12693       # Common symbols not allowed in MH_DYLIB files
12694       lt_prog_compiler_pic_FC='-fno-common'
12695       ;;
12696
12697     haiku*)
12698       # PIC is the default for Haiku.
12699       # The "-static" flag exists, but is broken.
12700       lt_prog_compiler_static_FC=
12701       ;;
12702
12703     hpux*)
12704       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12705       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12706       # sets the default TLS model and affects inlining.
12707       case $host_cpu in
12708       hppa*64*)
12709         # +Z the default
12710         ;;
12711       *)
12712         lt_prog_compiler_pic_FC='-fPIC'
12713         ;;
12714       esac
12715       ;;
12716
12717     interix[3-9]*)
12718       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12719       # Instead, we relocate shared libraries at runtime.
12720       ;;
12721
12722     msdosdjgpp*)
12723       # Just because we use GCC doesn't mean we suddenly get shared libraries
12724       # on systems that don't support them.
12725       lt_prog_compiler_can_build_shared_FC=no
12726       enable_shared=no
12727       ;;
12728
12729     *nto* | *qnx*)
12730       # QNX uses GNU C++, but need to define -shared option too, otherwise
12731       # it will coredump.
12732       lt_prog_compiler_pic_FC='-fPIC -shared'
12733       ;;
12734
12735     sysv4*MP*)
12736       if test -d /usr/nec; then
12737         lt_prog_compiler_pic_FC=-Kconform_pic
12738       fi
12739       ;;
12740
12741     *)
12742       lt_prog_compiler_pic_FC='-fPIC'
12743       ;;
12744     esac
12745
12746     case $cc_basename in
12747     nvcc*) # Cuda Compiler Driver 2.2
12748       lt_prog_compiler_wl_FC='-Xlinker '
12749       if test -n "$lt_prog_compiler_pic_FC"; then
12750         lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
12751       fi
12752       ;;
12753     esac
12754   else
12755     # PORTME Check for flag to pass linker flags through the system compiler.
12756     case $host_os in
12757     aix*)
12758       lt_prog_compiler_wl_FC='-Wl,'
12759       if test "$host_cpu" = ia64; then
12760         # AIX 5 now supports IA64 processor
12761         lt_prog_compiler_static_FC='-Bstatic'
12762       else
12763         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12764       fi
12765       ;;
12766
12767     mingw* | cygwin* | pw32* | os2* | cegcc*)
12768       # This hack is so that the source file can tell whether it is being
12769       # built for inclusion in a dll (and should export symbols for example).
12770       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12771       ;;
12772
12773     hpux9* | hpux10* | hpux11*)
12774       lt_prog_compiler_wl_FC='-Wl,'
12775       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12776       # not for PA HP-UX.
12777       case $host_cpu in
12778       hppa*64*|ia64*)
12779         # +Z the default
12780         ;;
12781       *)
12782         lt_prog_compiler_pic_FC='+Z'
12783         ;;
12784       esac
12785       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12786       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12787       ;;
12788
12789     irix5* | irix6* | nonstopux*)
12790       lt_prog_compiler_wl_FC='-Wl,'
12791       # PIC (with -KPIC) is the default.
12792       lt_prog_compiler_static_FC='-non_shared'
12793       ;;
12794
12795     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12796       case $cc_basename in
12797       # old Intel for x86_64 which still supported -KPIC.
12798       ecc*)
12799         lt_prog_compiler_wl_FC='-Wl,'
12800         lt_prog_compiler_pic_FC='-KPIC'
12801         lt_prog_compiler_static_FC='-static'
12802         ;;
12803       # icc used to be incompatible with GCC.
12804       # ICC 10 doesn't accept -KPIC any more.
12805       icc* | ifort*)
12806         lt_prog_compiler_wl_FC='-Wl,'
12807         lt_prog_compiler_pic_FC='-fPIC'
12808         lt_prog_compiler_static_FC='-static'
12809         ;;
12810       # Lahey Fortran 8.1.
12811       lf95*)
12812         lt_prog_compiler_wl_FC='-Wl,'
12813         lt_prog_compiler_pic_FC='--shared'
12814         lt_prog_compiler_static_FC='--static'
12815         ;;
12816       nagfor*)
12817         # NAG Fortran compiler
12818         lt_prog_compiler_wl_FC='-Wl,-Wl,,'
12819         lt_prog_compiler_pic_FC='-PIC'
12820         lt_prog_compiler_static_FC='-Bstatic'
12821         ;;
12822       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12823         # Portland Group compilers (*not* the Pentium gcc compiler,
12824         # which looks to be a dead project)
12825         lt_prog_compiler_wl_FC='-Wl,'
12826         lt_prog_compiler_pic_FC='-fpic'
12827         lt_prog_compiler_static_FC='-Bstatic'
12828         ;;
12829       ccc*)
12830         lt_prog_compiler_wl_FC='-Wl,'
12831         # All Alpha code is PIC.
12832         lt_prog_compiler_static_FC='-non_shared'
12833         ;;
12834       xl* | bgxl* | bgf* | mpixl*)
12835         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12836         lt_prog_compiler_wl_FC='-Wl,'
12837         lt_prog_compiler_pic_FC='-qpic'
12838         lt_prog_compiler_static_FC='-qstaticlink'
12839         ;;
12840       *)
12841         case `$CC -V 2>&1 | sed 5q` in
12842         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12843           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12844           lt_prog_compiler_pic_FC='-KPIC'
12845           lt_prog_compiler_static_FC='-Bstatic'
12846           lt_prog_compiler_wl_FC=''
12847           ;;
12848         *Sun\ F* | *Sun*Fortran*)
12849           lt_prog_compiler_pic_FC='-KPIC'
12850           lt_prog_compiler_static_FC='-Bstatic'
12851           lt_prog_compiler_wl_FC='-Qoption ld '
12852           ;;
12853         *Sun\ C*)
12854           # Sun C 5.9
12855           lt_prog_compiler_pic_FC='-KPIC'
12856           lt_prog_compiler_static_FC='-Bstatic'
12857           lt_prog_compiler_wl_FC='-Wl,'
12858           ;;
12859         *Intel*\ [CF]*Compiler*)
12860           lt_prog_compiler_wl_FC='-Wl,'
12861           lt_prog_compiler_pic_FC='-fPIC'
12862           lt_prog_compiler_static_FC='-static'
12863           ;;
12864         *Portland\ Group*)
12865           lt_prog_compiler_wl_FC='-Wl,'
12866           lt_prog_compiler_pic_FC='-fpic'
12867           lt_prog_compiler_static_FC='-Bstatic'
12868           ;;
12869         esac
12870         ;;
12871       esac
12872       ;;
12873
12874     newsos6)
12875       lt_prog_compiler_pic_FC='-KPIC'
12876       lt_prog_compiler_static_FC='-Bstatic'
12877       ;;
12878
12879     *nto* | *qnx*)
12880       # QNX uses GNU C++, but need to define -shared option too, otherwise
12881       # it will coredump.
12882       lt_prog_compiler_pic_FC='-fPIC -shared'
12883       ;;
12884
12885     osf3* | osf4* | osf5*)
12886       lt_prog_compiler_wl_FC='-Wl,'
12887       # All OSF/1 code is PIC.
12888       lt_prog_compiler_static_FC='-non_shared'
12889       ;;
12890
12891     rdos*)
12892       lt_prog_compiler_static_FC='-non_shared'
12893       ;;
12894
12895     solaris*)
12896       lt_prog_compiler_pic_FC='-KPIC'
12897       lt_prog_compiler_static_FC='-Bstatic'
12898       case $cc_basename in
12899       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12900         lt_prog_compiler_wl_FC='-Qoption ld ';;
12901       *)
12902         lt_prog_compiler_wl_FC='-Wl,';;
12903       esac
12904       ;;
12905
12906     sunos4*)
12907       lt_prog_compiler_wl_FC='-Qoption ld '
12908       lt_prog_compiler_pic_FC='-PIC'
12909       lt_prog_compiler_static_FC='-Bstatic'
12910       ;;
12911
12912     sysv4 | sysv4.2uw2* | sysv4.3*)
12913       lt_prog_compiler_wl_FC='-Wl,'
12914       lt_prog_compiler_pic_FC='-KPIC'
12915       lt_prog_compiler_static_FC='-Bstatic'
12916       ;;
12917
12918     sysv4*MP*)
12919       if test -d /usr/nec ;then
12920         lt_prog_compiler_pic_FC='-Kconform_pic'
12921         lt_prog_compiler_static_FC='-Bstatic'
12922       fi
12923       ;;
12924
12925     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12926       lt_prog_compiler_wl_FC='-Wl,'
12927       lt_prog_compiler_pic_FC='-KPIC'
12928       lt_prog_compiler_static_FC='-Bstatic'
12929       ;;
12930
12931     unicos*)
12932       lt_prog_compiler_wl_FC='-Wl,'
12933       lt_prog_compiler_can_build_shared_FC=no
12934       ;;
12935
12936     uts4*)
12937       lt_prog_compiler_pic_FC='-pic'
12938       lt_prog_compiler_static_FC='-Bstatic'
12939       ;;
12940
12941     *)
12942       lt_prog_compiler_can_build_shared_FC=no
12943       ;;
12944     esac
12945   fi
12946
12947 case $host_os in
12948   # For platforms which do not support PIC, -DPIC is meaningless:
12949   *djgpp*)
12950     lt_prog_compiler_pic_FC=
12951     ;;
12952   *)
12953     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12954     ;;
12955 esac
12956
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12959 if ${lt_cv_prog_compiler_pic_FC+:} false; then :
12960   $as_echo_n "(cached) " >&6
12961 else
12962   lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
12965 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
12966 lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
12967
12968 #
12969 # Check to make sure the PIC flag actually works.
12970 #
12971 if test -n "$lt_prog_compiler_pic_FC"; then
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12974 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977   lt_cv_prog_compiler_pic_works_FC=no
12978    ac_outfile=conftest.$ac_objext
12979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12980    lt_compiler_flag="$lt_prog_compiler_pic_FC"
12981    # Insert the option either (1) after the last *FLAGS variable, or
12982    # (2) before a word containing "conftest.", or (3) at the end.
12983    # Note that $ac_compile itself does not contain backslashes and begins
12984    # with a dollar sign (not a hyphen), so the echo should work correctly.
12985    # The option is referenced via a variable to avoid confusing sed.
12986    lt_compile=`echo "$ac_compile" | $SED \
12987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12989    -e 's:$: $lt_compiler_flag:'`
12990    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12991    (eval "$lt_compile" 2>conftest.err)
12992    ac_status=$?
12993    cat conftest.err >&5
12994    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995    if (exit $ac_status) && test -s "$ac_outfile"; then
12996      # The compiler can only warn and ignore the option if not recognized
12997      # So say no if there are warnings other than the usual output.
12998      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12999      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13000      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13001        lt_cv_prog_compiler_pic_works_FC=yes
13002      fi
13003    fi
13004    $RM conftest*
13005
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13008 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13009
13010 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13011     case $lt_prog_compiler_pic_FC in
13012      "" | " "*) ;;
13013      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13014      esac
13015 else
13016     lt_prog_compiler_pic_FC=
13017      lt_prog_compiler_can_build_shared_FC=no
13018 fi
13019
13020 fi
13021
13022
13023
13024
13025
13026 #
13027 # Check to make sure the static flag actually works.
13028 #
13029 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13031 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13032 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13033   $as_echo_n "(cached) " >&6
13034 else
13035   lt_cv_prog_compiler_static_works_FC=no
13036    save_LDFLAGS="$LDFLAGS"
13037    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13038    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13039    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13040      # The linker can only warn and ignore the option if not recognized
13041      # So say no if there are warnings
13042      if test -s conftest.err; then
13043        # Append any errors to the config.log.
13044        cat conftest.err 1>&5
13045        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13046        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13047        if diff conftest.exp conftest.er2 >/dev/null; then
13048          lt_cv_prog_compiler_static_works_FC=yes
13049        fi
13050      else
13051        lt_cv_prog_compiler_static_works_FC=yes
13052      fi
13053    fi
13054    $RM -r conftest*
13055    LDFLAGS="$save_LDFLAGS"
13056
13057 fi
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13059 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13060
13061 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13062     :
13063 else
13064     lt_prog_compiler_static_FC=
13065 fi
13066
13067
13068
13069
13070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13072 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075   lt_cv_prog_compiler_c_o_FC=no
13076    $RM -r conftest 2>/dev/null
13077    mkdir conftest
13078    cd conftest
13079    mkdir out
13080    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13081
13082    lt_compiler_flag="-o out/conftest2.$ac_objext"
13083    # Insert the option either (1) after the last *FLAGS variable, or
13084    # (2) before a word containing "conftest.", or (3) at the end.
13085    # Note that $ac_compile itself does not contain backslashes and begins
13086    # with a dollar sign (not a hyphen), so the echo should work correctly.
13087    lt_compile=`echo "$ac_compile" | $SED \
13088    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13090    -e 's:$: $lt_compiler_flag:'`
13091    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13092    (eval "$lt_compile" 2>out/conftest.err)
13093    ac_status=$?
13094    cat out/conftest.err >&5
13095    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13097    then
13098      # The compiler can only warn and ignore the option if not recognized
13099      # So say no if there are warnings
13100      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13101      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13102      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13103        lt_cv_prog_compiler_c_o_FC=yes
13104      fi
13105    fi
13106    chmod u+w . 2>&5
13107    $RM conftest*
13108    # SGI C++ compiler will create directory out/ii_files/ for
13109    # template instantiation
13110    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13111    $RM out/* && rmdir out
13112    cd ..
13113    $RM -r conftest
13114    $RM conftest*
13115
13116 fi
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13118 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13119
13120
13121
13122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13124 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13125   $as_echo_n "(cached) " >&6
13126 else
13127   lt_cv_prog_compiler_c_o_FC=no
13128    $RM -r conftest 2>/dev/null
13129    mkdir conftest
13130    cd conftest
13131    mkdir out
13132    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13133
13134    lt_compiler_flag="-o out/conftest2.$ac_objext"
13135    # Insert the option either (1) after the last *FLAGS variable, or
13136    # (2) before a word containing "conftest.", or (3) at the end.
13137    # Note that $ac_compile itself does not contain backslashes and begins
13138    # with a dollar sign (not a hyphen), so the echo should work correctly.
13139    lt_compile=`echo "$ac_compile" | $SED \
13140    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13141    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13142    -e 's:$: $lt_compiler_flag:'`
13143    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13144    (eval "$lt_compile" 2>out/conftest.err)
13145    ac_status=$?
13146    cat out/conftest.err >&5
13147    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13149    then
13150      # The compiler can only warn and ignore the option if not recognized
13151      # So say no if there are warnings
13152      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13153      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13154      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13155        lt_cv_prog_compiler_c_o_FC=yes
13156      fi
13157    fi
13158    chmod u+w . 2>&5
13159    $RM conftest*
13160    # SGI C++ compiler will create directory out/ii_files/ for
13161    # template instantiation
13162    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13163    $RM out/* && rmdir out
13164    cd ..
13165    $RM -r conftest
13166    $RM conftest*
13167
13168 fi
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13170 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13171
13172
13173
13174
13175 hard_links="nottested"
13176 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13177   # do not overwrite the value of need_locks provided by the user
13178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13179 $as_echo_n "checking if we can lock with hard links... " >&6; }
13180   hard_links=yes
13181   $RM conftest*
13182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13183   touch conftest.a
13184   ln conftest.a conftest.b 2>&5 || hard_links=no
13185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13187 $as_echo "$hard_links" >&6; }
13188   if test "$hard_links" = no; then
13189     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13190 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13191     need_locks=warn
13192   fi
13193 else
13194   need_locks=no
13195 fi
13196
13197
13198
13199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13201
13202   runpath_var=
13203   allow_undefined_flag_FC=
13204   always_export_symbols_FC=no
13205   archive_cmds_FC=
13206   archive_expsym_cmds_FC=
13207   compiler_needs_object_FC=no
13208   enable_shared_with_static_runtimes_FC=no
13209   export_dynamic_flag_spec_FC=
13210   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13211   hardcode_automatic_FC=no
13212   hardcode_direct_FC=no
13213   hardcode_direct_absolute_FC=no
13214   hardcode_libdir_flag_spec_FC=
13215   hardcode_libdir_separator_FC=
13216   hardcode_minus_L_FC=no
13217   hardcode_shlibpath_var_FC=unsupported
13218   inherit_rpath_FC=no
13219   link_all_deplibs_FC=unknown
13220   module_cmds_FC=
13221   module_expsym_cmds_FC=
13222   old_archive_from_new_cmds_FC=
13223   old_archive_from_expsyms_cmds_FC=
13224   thread_safe_flag_spec_FC=
13225   whole_archive_flag_spec_FC=
13226   # include_expsyms should be a list of space-separated symbols to be *always*
13227   # included in the symbol list
13228   include_expsyms_FC=
13229   # exclude_expsyms can be an extended regexp of symbols to exclude
13230   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13231   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13232   # as well as any symbol that contains `d'.
13233   exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13234   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13235   # platforms (ab)use it in PIC code, but their linkers get confused if
13236   # the symbol is explicitly referenced.  Since portable code cannot
13237   # rely on this symbol name, it's probably fine to never include it in
13238   # preloaded symbol tables.
13239   # Exclude shared library initialization/finalization symbols.
13240   extract_expsyms_cmds=
13241
13242   case $host_os in
13243   cygwin* | mingw* | pw32* | cegcc*)
13244     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13245     # When not using gcc, we currently assume that we are using
13246     # Microsoft Visual C++.
13247     if test "$GCC" != yes; then
13248       with_gnu_ld=no
13249     fi
13250     ;;
13251   interix*)
13252     # we just hope/assume this is gcc and not c89 (= MSVC++)
13253     with_gnu_ld=yes
13254     ;;
13255   openbsd*)
13256     with_gnu_ld=no
13257     ;;
13258   esac
13259
13260   ld_shlibs_FC=yes
13261
13262   # On some targets, GNU ld is compatible enough with the native linker
13263   # that we're better off using the native interface for both.
13264   lt_use_gnu_ld_interface=no
13265   if test "$with_gnu_ld" = yes; then
13266     case $host_os in
13267       aix*)
13268         # The AIX port of GNU ld has always aspired to compatibility
13269         # with the native linker.  However, as the warning in the GNU ld
13270         # block says, versions before 2.19.5* couldn't really create working
13271         # shared libraries, regardless of the interface used.
13272         case `$LD -v 2>&1` in
13273           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13274           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13275           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13276           *)
13277             lt_use_gnu_ld_interface=yes
13278             ;;
13279         esac
13280         ;;
13281       *)
13282         lt_use_gnu_ld_interface=yes
13283         ;;
13284     esac
13285   fi
13286
13287   if test "$lt_use_gnu_ld_interface" = yes; then
13288     # If archive_cmds runs LD, not CC, wlarc should be empty
13289     wlarc='${wl}'
13290
13291     # Set some defaults for GNU ld with shared library support. These
13292     # are reset later if shared libraries are not supported. Putting them
13293     # here allows them to be overridden if necessary.
13294     runpath_var=LD_RUN_PATH
13295     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13296     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13297     # ancient GNU ld didn't support --whole-archive et. al.
13298     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13299       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13300     else
13301       whole_archive_flag_spec_FC=
13302     fi
13303     supports_anon_versioning=no
13304     case `$LD -v 2>&1` in
13305       *GNU\ gold*) supports_anon_versioning=yes ;;
13306       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13307       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13308       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13309       *\ 2.11.*) ;; # other 2.11 versions
13310       *) supports_anon_versioning=yes ;;
13311     esac
13312
13313     # See if GNU ld supports shared libraries.
13314     case $host_os in
13315     aix[3-9]*)
13316       # On AIX/PPC, the GNU linker is very broken
13317       if test "$host_cpu" != ia64; then
13318         ld_shlibs_FC=no
13319         cat <<_LT_EOF 1>&2
13320
13321 *** Warning: the GNU linker, at least up to release 2.19, is reported
13322 *** to be unable to reliably create shared libraries on AIX.
13323 *** Therefore, libtool is disabling shared libraries support.  If you
13324 *** really care for shared libraries, you may want to install binutils
13325 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13326 *** You will then need to restart the configuration process.
13327
13328 _LT_EOF
13329       fi
13330       ;;
13331
13332     amigaos*)
13333       case $host_cpu in
13334       powerpc)
13335             # see comment about AmigaOS4 .so support
13336             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13337             archive_expsym_cmds_FC=''
13338         ;;
13339       m68k)
13340             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)'
13341             hardcode_libdir_flag_spec_FC='-L$libdir'
13342             hardcode_minus_L_FC=yes
13343         ;;
13344       esac
13345       ;;
13346
13347     beos*)
13348       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13349         allow_undefined_flag_FC=unsupported
13350         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13351         # support --undefined.  This deserves some investigation.  FIXME
13352         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13353       else
13354         ld_shlibs_FC=no
13355       fi
13356       ;;
13357
13358     cygwin* | mingw* | pw32* | cegcc*)
13359       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13360       # as there is no search path for DLLs.
13361       hardcode_libdir_flag_spec_FC='-L$libdir'
13362       export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13363       allow_undefined_flag_FC=unsupported
13364       always_export_symbols_FC=no
13365       enable_shared_with_static_runtimes_FC=yes
13366       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'
13367       exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13368
13369       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13370         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13371         # If the export-symbols file already is a .def file (1st line
13372         # is EXPORTS), use it as is; otherwise, prepend...
13373         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13374           cp $export_symbols $output_objdir/$soname.def;
13375         else
13376           echo EXPORTS > $output_objdir/$soname.def;
13377           cat $export_symbols >> $output_objdir/$soname.def;
13378         fi~
13379         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13380       else
13381         ld_shlibs_FC=no
13382       fi
13383       ;;
13384
13385     haiku*)
13386       archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387       link_all_deplibs_FC=yes
13388       ;;
13389
13390     interix[3-9]*)
13391       hardcode_direct_FC=no
13392       hardcode_shlibpath_var_FC=no
13393       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13394       export_dynamic_flag_spec_FC='${wl}-E'
13395       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13396       # Instead, shared libraries are loaded at an image base (0x10000000 by
13397       # default) and relocated if they conflict, which is a slow very memory
13398       # consuming and fragmenting process.  To avoid this, we pick a random,
13399       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13400       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13401       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'
13402       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'
13403       ;;
13404
13405     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13406       tmp_diet=no
13407       if test "$host_os" = linux-dietlibc; then
13408         case $cc_basename in
13409           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13410         esac
13411       fi
13412       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13413          && test "$tmp_diet" = no
13414       then
13415         tmp_addflag=' $pic_flag'
13416         tmp_sharedflag='-shared'
13417         case $cc_basename,$host_cpu in
13418         pgcc*)                          # Portland Group C compiler
13419           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'
13420           tmp_addflag=' $pic_flag'
13421           ;;
13422         pgf77* | pgf90* | pgf95* | pgfortran*)
13423                                         # Portland Group f77 and f90 compilers
13424           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'
13425           tmp_addflag=' $pic_flag -Mnomain' ;;
13426         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13427           tmp_addflag=' -i_dynamic' ;;
13428         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13429           tmp_addflag=' -i_dynamic -nofor_main' ;;
13430         ifc* | ifort*)                  # Intel Fortran compiler
13431           tmp_addflag=' -nofor_main' ;;
13432         lf95*)                          # Lahey Fortran 8.1
13433           whole_archive_flag_spec_FC=
13434           tmp_sharedflag='--shared' ;;
13435         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13436           tmp_sharedflag='-qmkshrobj'
13437           tmp_addflag= ;;
13438         nvcc*)  # Cuda Compiler Driver 2.2
13439           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'
13440           compiler_needs_object_FC=yes
13441           ;;
13442         esac
13443         case `$CC -V 2>&1 | sed 5q` in
13444         *Sun\ C*)                       # Sun C 5.9
13445           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'
13446           compiler_needs_object_FC=yes
13447           tmp_sharedflag='-G' ;;
13448         *Sun\ F*)                       # Sun Fortran 8.3
13449           tmp_sharedflag='-G' ;;
13450         esac
13451         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452
13453         if test "x$supports_anon_versioning" = xyes; then
13454           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13455             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13456             echo "local: *; };" >> $output_objdir/$libname.ver~
13457             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13458         fi
13459
13460         case $cc_basename in
13461         xlf* | bgf* | bgxlf* | mpixlf*)
13462           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13463           whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13464           hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13465           archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13466           if test "x$supports_anon_versioning" = xyes; then
13467             archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13468               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13469               echo "local: *; };" >> $output_objdir/$libname.ver~
13470               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13471           fi
13472           ;;
13473         esac
13474       else
13475         ld_shlibs_FC=no
13476       fi
13477       ;;
13478
13479     netbsd*)
13480       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13481         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13482         wlarc=
13483       else
13484         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13485         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'
13486       fi
13487       ;;
13488
13489     solaris*)
13490       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13491         ld_shlibs_FC=no
13492         cat <<_LT_EOF 1>&2
13493
13494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13495 *** create shared libraries on Solaris systems.  Therefore, libtool
13496 *** is disabling shared libraries support.  We urge you to upgrade GNU
13497 *** binutils to release 2.9.1 or newer.  Another option is to modify
13498 *** your PATH or compiler configuration so that the native linker is
13499 *** used, and then restart.
13500
13501 _LT_EOF
13502       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13503         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13504         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'
13505       else
13506         ld_shlibs_FC=no
13507       fi
13508       ;;
13509
13510     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13511       case `$LD -v 2>&1` in
13512         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13513         ld_shlibs_FC=no
13514         cat <<_LT_EOF 1>&2
13515
13516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13517 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13518 *** is disabling shared libraries support.  We urge you to upgrade GNU
13519 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13520 *** your PATH or compiler configuration so that the native linker is
13521 *** used, and then restart.
13522
13523 _LT_EOF
13524         ;;
13525         *)
13526           # For security reasons, it is highly recommended that you always
13527           # use absolute paths for naming shared libraries, and exclude the
13528           # DT_RUNPATH tag from executables and libraries.  But doing so
13529           # requires that you compile everything twice, which is a pain.
13530           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13531             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13532             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13534           else
13535             ld_shlibs_FC=no
13536           fi
13537         ;;
13538       esac
13539       ;;
13540
13541     sunos4*)
13542       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13543       wlarc=
13544       hardcode_direct_FC=yes
13545       hardcode_shlibpath_var_FC=no
13546       ;;
13547
13548     *)
13549       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13550         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13551         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'
13552       else
13553         ld_shlibs_FC=no
13554       fi
13555       ;;
13556     esac
13557
13558     if test "$ld_shlibs_FC" = no; then
13559       runpath_var=
13560       hardcode_libdir_flag_spec_FC=
13561       export_dynamic_flag_spec_FC=
13562       whole_archive_flag_spec_FC=
13563     fi
13564   else
13565     # PORTME fill in a description of your system's linker (not GNU ld)
13566     case $host_os in
13567     aix3*)
13568       allow_undefined_flag_FC=unsupported
13569       always_export_symbols_FC=yes
13570       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'
13571       # Note: this linker hardcodes the directories in LIBPATH if there
13572       # are no directories specified by -L.
13573       hardcode_minus_L_FC=yes
13574       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13575         # Neither direct hardcoding nor static linking is supported with a
13576         # broken collect2.
13577         hardcode_direct_FC=unsupported
13578       fi
13579       ;;
13580
13581     aix[4-9]*)
13582       if test "$host_cpu" = ia64; then
13583         # On IA64, the linker does run time linking by default, so we don't
13584         # have to do anything special.
13585         aix_use_runtimelinking=no
13586         exp_sym_flag='-Bexport'
13587         no_entry_flag=""
13588       else
13589         # If we're using GNU nm, then we don't want the "-C" option.
13590         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13591         # Also, AIX nm treats weak defined symbols like other global
13592         # defined symbols, whereas GNU nm marks them as "W".
13593         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13594           export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13595         else
13596           export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13597         fi
13598         aix_use_runtimelinking=no
13599
13600         # Test if we are trying to use run time linking or normal
13601         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13602         # need to do runtime linking.
13603         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13604           for ld_flag in $LDFLAGS; do
13605           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13606             aix_use_runtimelinking=yes
13607             break
13608           fi
13609           done
13610           ;;
13611         esac
13612
13613         exp_sym_flag='-bexport'
13614         no_entry_flag='-bnoentry'
13615       fi
13616
13617       # When large executables or shared objects are built, AIX ld can
13618       # have problems creating the table of contents.  If linking a library
13619       # or program results in "error TOC overflow" add -mminimal-toc to
13620       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13621       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13622
13623       archive_cmds_FC=''
13624       hardcode_direct_FC=yes
13625       hardcode_direct_absolute_FC=yes
13626       hardcode_libdir_separator_FC=':'
13627       link_all_deplibs_FC=yes
13628       file_list_spec_FC='${wl}-f,'
13629
13630       if test "$GCC" = yes; then
13631         case $host_os in aix4.[012]|aix4.[012].*)
13632         # We only want to do this on AIX 4.2 and lower, the check
13633         # below for broken collect2 doesn't work under 4.3+
13634           collect2name=`${CC} -print-prog-name=collect2`
13635           if test -f "$collect2name" &&
13636            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13637           then
13638           # We have reworked collect2
13639           :
13640           else
13641           # We have old collect2
13642           hardcode_direct_FC=unsupported
13643           # It fails to find uninstalled libraries when the uninstalled
13644           # path is not listed in the libpath.  Setting hardcode_minus_L
13645           # to unsupported forces relinking
13646           hardcode_minus_L_FC=yes
13647           hardcode_libdir_flag_spec_FC='-L$libdir'
13648           hardcode_libdir_separator_FC=
13649           fi
13650           ;;
13651         esac
13652         shared_flag='-shared'
13653         if test "$aix_use_runtimelinking" = yes; then
13654           shared_flag="$shared_flag "'${wl}-G'
13655         fi
13656       else
13657         # not using gcc
13658         if test "$host_cpu" = ia64; then
13659         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660         # chokes on -Wl,-G. The following line is correct:
13661           shared_flag='-G'
13662         else
13663           if test "$aix_use_runtimelinking" = yes; then
13664             shared_flag='${wl}-G'
13665           else
13666             shared_flag='${wl}-bM:SRE'
13667           fi
13668         fi
13669       fi
13670
13671       export_dynamic_flag_spec_FC='${wl}-bexpall'
13672       # It seems that -bexpall does not export symbols beginning with
13673       # underscore (_), so it is better to generate a list of symbols to export.
13674       always_export_symbols_FC=yes
13675       if test "$aix_use_runtimelinking" = yes; then
13676         # Warning - without using the other runtime loading flags (-brtl),
13677         # -berok will link without error, but may produce a broken library.
13678         allow_undefined_flag_FC='-berok'
13679         # Determine the default libpath from the value encoded in an
13680         # empty executable.
13681         if test "${lt_cv_aix_libpath+set}" = set; then
13682   aix_libpath=$lt_cv_aix_libpath
13683 else
13684   if ${lt_cv_aix_libpath__FC+:} false; then :
13685   $as_echo_n "(cached) " >&6
13686 else
13687   cat > conftest.$ac_ext <<_ACEOF
13688       program main
13689
13690       end
13691 _ACEOF
13692 if ac_fn_fc_try_link "$LINENO"; then :
13693
13694   lt_aix_libpath_sed='
13695       /Import File Strings/,/^$/ {
13696           /^0/ {
13697               s/^0  *\([^ ]*\) *$/\1/
13698               p
13699           }
13700       }'
13701   lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13702   # Check for a 64-bit object if we didn't find anything.
13703   if test -z "$lt_cv_aix_libpath__FC"; then
13704     lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13705   fi
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext \
13708     conftest$ac_exeext conftest.$ac_ext
13709   if test -z "$lt_cv_aix_libpath__FC"; then
13710     lt_cv_aix_libpath__FC="/usr/lib:/lib"
13711   fi
13712
13713 fi
13714
13715   aix_libpath=$lt_cv_aix_libpath__FC
13716 fi
13717
13718         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13719         archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13720       else
13721         if test "$host_cpu" = ia64; then
13722           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13723           allow_undefined_flag_FC="-z nodefs"
13724           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"
13725         else
13726          # Determine the default libpath from the value encoded in an
13727          # empty executable.
13728          if test "${lt_cv_aix_libpath+set}" = set; then
13729   aix_libpath=$lt_cv_aix_libpath
13730 else
13731   if ${lt_cv_aix_libpath__FC+:} false; then :
13732   $as_echo_n "(cached) " >&6
13733 else
13734   cat > conftest.$ac_ext <<_ACEOF
13735       program main
13736
13737       end
13738 _ACEOF
13739 if ac_fn_fc_try_link "$LINENO"; then :
13740
13741   lt_aix_libpath_sed='
13742       /Import File Strings/,/^$/ {
13743           /^0/ {
13744               s/^0  *\([^ ]*\) *$/\1/
13745               p
13746           }
13747       }'
13748   lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13749   # Check for a 64-bit object if we didn't find anything.
13750   if test -z "$lt_cv_aix_libpath__FC"; then
13751     lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13752   fi
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext \
13755     conftest$ac_exeext conftest.$ac_ext
13756   if test -z "$lt_cv_aix_libpath__FC"; then
13757     lt_cv_aix_libpath__FC="/usr/lib:/lib"
13758   fi
13759
13760 fi
13761
13762   aix_libpath=$lt_cv_aix_libpath__FC
13763 fi
13764
13765          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13766           # Warning - without using the other run time loading flags,
13767           # -berok will link without error, but may produce a broken library.
13768           no_undefined_flag_FC=' ${wl}-bernotok'
13769           allow_undefined_flag_FC=' ${wl}-berok'
13770           if test "$with_gnu_ld" = yes; then
13771             # We only use this code for GNU lds that support --whole-archive.
13772             whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13773           else
13774             # Exported symbols can be pulled into shared objects from archives
13775             whole_archive_flag_spec_FC='$convenience'
13776           fi
13777           archive_cmds_need_lc_FC=yes
13778           # This is similar to how AIX traditionally builds its shared libraries.
13779           archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13780         fi
13781       fi
13782       ;;
13783
13784     amigaos*)
13785       case $host_cpu in
13786       powerpc)
13787             # see comment about AmigaOS4 .so support
13788             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13789             archive_expsym_cmds_FC=''
13790         ;;
13791       m68k)
13792             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)'
13793             hardcode_libdir_flag_spec_FC='-L$libdir'
13794             hardcode_minus_L_FC=yes
13795         ;;
13796       esac
13797       ;;
13798
13799     bsdi[45]*)
13800       export_dynamic_flag_spec_FC=-rdynamic
13801       ;;
13802
13803     cygwin* | mingw* | pw32* | cegcc*)
13804       # When not using gcc, we currently assume that we are using
13805       # Microsoft Visual C++.
13806       # hardcode_libdir_flag_spec is actually meaningless, as there is
13807       # no search path for DLLs.
13808       case $cc_basename in
13809       cl*)
13810         # Native MSVC
13811         hardcode_libdir_flag_spec_FC=' '
13812         allow_undefined_flag_FC=unsupported
13813         always_export_symbols_FC=yes
13814         file_list_spec_FC='@'
13815         # Tell ltmain to make .lib files, not .a files.
13816         libext=lib
13817         # Tell ltmain to make .dll files, not .so files.
13818         shrext_cmds=".dll"
13819         # FIXME: Setting linknames here is a bad hack.
13820         archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13821         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13822             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13823           else
13824             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13825           fi~
13826           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13827           linknames='
13828         # The linker will not automatically build a static lib if we build a DLL.
13829         # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
13830         enable_shared_with_static_runtimes_FC=yes
13831         exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13832         export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13833         # Don't use ranlib
13834         old_postinstall_cmds_FC='chmod 644 $oldlib'
13835         postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
13836           lt_tool_outputfile="@TOOL_OUTPUT@"~
13837           case $lt_outputfile in
13838             *.exe|*.EXE) ;;
13839             *)
13840               lt_outputfile="$lt_outputfile.exe"
13841               lt_tool_outputfile="$lt_tool_outputfile.exe"
13842               ;;
13843           esac~
13844           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13845             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13846             $RM "$lt_outputfile.manifest";
13847           fi'
13848         ;;
13849       *)
13850         # Assume MSVC wrapper
13851         hardcode_libdir_flag_spec_FC=' '
13852         allow_undefined_flag_FC=unsupported
13853         # Tell ltmain to make .lib files, not .a files.
13854         libext=lib
13855         # Tell ltmain to make .dll files, not .so files.
13856         shrext_cmds=".dll"
13857         # FIXME: Setting linknames here is a bad hack.
13858         archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13859         # The linker will automatically build a .lib file if we build a DLL.
13860         old_archive_from_new_cmds_FC='true'
13861         # FIXME: Should let the user specify the lib program.
13862         old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13863         enable_shared_with_static_runtimes_FC=yes
13864         ;;
13865       esac
13866       ;;
13867
13868     darwin* | rhapsody*)
13869
13870
13871   archive_cmds_need_lc_FC=no
13872   hardcode_direct_FC=no
13873   hardcode_automatic_FC=yes
13874   hardcode_shlibpath_var_FC=unsupported
13875   if test "$lt_cv_ld_force_load" = "yes"; then
13876     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\"`'
13877     compiler_needs_object_FC=yes
13878   else
13879     whole_archive_flag_spec_FC=''
13880   fi
13881   link_all_deplibs_FC=yes
13882   allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13883   case $cc_basename in
13884      ifort*) _lt_dar_can_shared=yes ;;
13885      *) _lt_dar_can_shared=$GCC ;;
13886   esac
13887   if test "$_lt_dar_can_shared" = "yes"; then
13888     output_verbose_link_cmd=func_echo_all
13889     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}"
13890     module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13891     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}"
13892     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}"
13893
13894   else
13895   ld_shlibs_FC=no
13896   fi
13897
13898       ;;
13899
13900     dgux*)
13901       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902       hardcode_libdir_flag_spec_FC='-L$libdir'
13903       hardcode_shlibpath_var_FC=no
13904       ;;
13905
13906     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13907     # support.  Future versions do this automatically, but an explicit c++rt0.o
13908     # does not break anything, and helps significantly (at the cost of a little
13909     # extra space).
13910     freebsd2.2*)
13911       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13912       hardcode_libdir_flag_spec_FC='-R$libdir'
13913       hardcode_direct_FC=yes
13914       hardcode_shlibpath_var_FC=no
13915       ;;
13916
13917     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13918     freebsd2.*)
13919       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13920       hardcode_direct_FC=yes
13921       hardcode_minus_L_FC=yes
13922       hardcode_shlibpath_var_FC=no
13923       ;;
13924
13925     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13926     freebsd* | dragonfly*)
13927       archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13928       hardcode_libdir_flag_spec_FC='-R$libdir'
13929       hardcode_direct_FC=yes
13930       hardcode_shlibpath_var_FC=no
13931       ;;
13932
13933     hpux9*)
13934       if test "$GCC" = yes; then
13935         archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13936       else
13937         archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13938       fi
13939       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13940       hardcode_libdir_separator_FC=:
13941       hardcode_direct_FC=yes
13942
13943       # hardcode_minus_L: Not really in the search PATH,
13944       # but as the default location of the library.
13945       hardcode_minus_L_FC=yes
13946       export_dynamic_flag_spec_FC='${wl}-E'
13947       ;;
13948
13949     hpux10*)
13950       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13951         archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13952       else
13953         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13954       fi
13955       if test "$with_gnu_ld" = no; then
13956         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13957         hardcode_libdir_separator_FC=:
13958         hardcode_direct_FC=yes
13959         hardcode_direct_absolute_FC=yes
13960         export_dynamic_flag_spec_FC='${wl}-E'
13961         # hardcode_minus_L: Not really in the search PATH,
13962         # but as the default location of the library.
13963         hardcode_minus_L_FC=yes
13964       fi
13965       ;;
13966
13967     hpux11*)
13968       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13969         case $host_cpu in
13970         hppa*64*)
13971           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13972           ;;
13973         ia64*)
13974           archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13975           ;;
13976         *)
13977           archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13978           ;;
13979         esac
13980       else
13981         case $host_cpu in
13982         hppa*64*)
13983           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13984           ;;
13985         ia64*)
13986           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13987           ;;
13988         *)
13989         archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13990           ;;
13991         esac
13992       fi
13993       if test "$with_gnu_ld" = no; then
13994         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13995         hardcode_libdir_separator_FC=:
13996
13997         case $host_cpu in
13998         hppa*64*|ia64*)
13999           hardcode_direct_FC=no
14000           hardcode_shlibpath_var_FC=no
14001           ;;
14002         *)
14003           hardcode_direct_FC=yes
14004           hardcode_direct_absolute_FC=yes
14005           export_dynamic_flag_spec_FC='${wl}-E'
14006
14007           # hardcode_minus_L: Not really in the search PATH,
14008           # but as the default location of the library.
14009           hardcode_minus_L_FC=yes
14010           ;;
14011         esac
14012       fi
14013       ;;
14014
14015     irix5* | irix6* | nonstopux*)
14016       if test "$GCC" = yes; then
14017         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'
14018         # Try to use the -exported_symbol ld option, if it does not
14019         # work, assume that -exports_file does not work either and
14020         # implicitly export all symbols.
14021         # This should be the same for all languages, so no per-tag cache variable.
14022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14023 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14024 if ${lt_cv_irix_exported_symbol+:} false; then :
14025   $as_echo_n "(cached) " >&6
14026 else
14027   save_LDFLAGS="$LDFLAGS"
14028            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14029            cat > conftest.$ac_ext <<_ACEOF
14030
14031       subroutine foo
14032       end
14033 _ACEOF
14034 if ac_fn_fc_try_link "$LINENO"; then :
14035   lt_cv_irix_exported_symbol=yes
14036 else
14037   lt_cv_irix_exported_symbol=no
14038 fi
14039 rm -f core conftest.err conftest.$ac_objext \
14040     conftest$ac_exeext conftest.$ac_ext
14041            LDFLAGS="$save_LDFLAGS"
14042 fi
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14044 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14045         if test "$lt_cv_irix_exported_symbol" = yes; then
14046           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'
14047         fi
14048       else
14049         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'
14050         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'
14051       fi
14052       archive_cmds_need_lc_FC='no'
14053       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14054       hardcode_libdir_separator_FC=:
14055       inherit_rpath_FC=yes
14056       link_all_deplibs_FC=yes
14057       ;;
14058
14059     netbsd*)
14060       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14061         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14062       else
14063         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14064       fi
14065       hardcode_libdir_flag_spec_FC='-R$libdir'
14066       hardcode_direct_FC=yes
14067       hardcode_shlibpath_var_FC=no
14068       ;;
14069
14070     newsos6)
14071       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14072       hardcode_direct_FC=yes
14073       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14074       hardcode_libdir_separator_FC=:
14075       hardcode_shlibpath_var_FC=no
14076       ;;
14077
14078     *nto* | *qnx*)
14079       ;;
14080
14081     openbsd*)
14082       if test -f /usr/libexec/ld.so; then
14083         hardcode_direct_FC=yes
14084         hardcode_shlibpath_var_FC=no
14085         hardcode_direct_absolute_FC=yes
14086         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14087           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14088           archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14089           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14090           export_dynamic_flag_spec_FC='${wl}-E'
14091         else
14092           case $host_os in
14093            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14094              archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14095              hardcode_libdir_flag_spec_FC='-R$libdir'
14096              ;;
14097            *)
14098              archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14099              hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14100              ;;
14101           esac
14102         fi
14103       else
14104         ld_shlibs_FC=no
14105       fi
14106       ;;
14107
14108     os2*)
14109       hardcode_libdir_flag_spec_FC='-L$libdir'
14110       hardcode_minus_L_FC=yes
14111       allow_undefined_flag_FC=unsupported
14112       archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14113       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14114       ;;
14115
14116     osf3*)
14117       if test "$GCC" = yes; then
14118         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14119         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'
14120       else
14121         allow_undefined_flag_FC=' -expect_unresolved \*'
14122         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'
14123       fi
14124       archive_cmds_need_lc_FC='no'
14125       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14126       hardcode_libdir_separator_FC=:
14127       ;;
14128
14129     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14130       if test "$GCC" = yes; then
14131         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14132         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'
14133         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14134       else
14135         allow_undefined_flag_FC=' -expect_unresolved \*'
14136         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'
14137         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~
14138         $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'
14139
14140         # Both c and cxx compiler support -rpath directly
14141         hardcode_libdir_flag_spec_FC='-rpath $libdir'
14142       fi
14143       archive_cmds_need_lc_FC='no'
14144       hardcode_libdir_separator_FC=:
14145       ;;
14146
14147     solaris*)
14148       no_undefined_flag_FC=' -z defs'
14149       if test "$GCC" = yes; then
14150         wlarc='${wl}'
14151         archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14152         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14153           $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'
14154       else
14155         case `$CC -V 2>&1` in
14156         *"Compilers 5.0"*)
14157           wlarc=''
14158           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14160           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14161           ;;
14162         *)
14163           wlarc='${wl}'
14164           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14165           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14166           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14167           ;;
14168         esac
14169       fi
14170       hardcode_libdir_flag_spec_FC='-R$libdir'
14171       hardcode_shlibpath_var_FC=no
14172       case $host_os in
14173       solaris2.[0-5] | solaris2.[0-5].*) ;;
14174       *)
14175         # The compiler driver will combine and reorder linker options,
14176         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14177         # but is careful enough not to reorder.
14178         # Supported since Solaris 2.6 (maybe 2.5.1?)
14179         if test "$GCC" = yes; then
14180           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14181         else
14182           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14183         fi
14184         ;;
14185       esac
14186       link_all_deplibs_FC=yes
14187       ;;
14188
14189     sunos4*)
14190       if test "x$host_vendor" = xsequent; then
14191         # Use $CC to link under sequent, because it throws in some extra .o
14192         # files that make .init and .fini sections work.
14193         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14194       else
14195         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14196       fi
14197       hardcode_libdir_flag_spec_FC='-L$libdir'
14198       hardcode_direct_FC=yes
14199       hardcode_minus_L_FC=yes
14200       hardcode_shlibpath_var_FC=no
14201       ;;
14202
14203     sysv4)
14204       case $host_vendor in
14205         sni)
14206           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14207           hardcode_direct_FC=yes # is this really true???
14208         ;;
14209         siemens)
14210           ## LD is ld it makes a PLAMLIB
14211           ## CC just makes a GrossModule.
14212           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14213           reload_cmds_FC='$CC -r -o $output$reload_objs'
14214           hardcode_direct_FC=no
14215         ;;
14216         motorola)
14217           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14219         ;;
14220       esac
14221       runpath_var='LD_RUN_PATH'
14222       hardcode_shlibpath_var_FC=no
14223       ;;
14224
14225     sysv4.3*)
14226       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227       hardcode_shlibpath_var_FC=no
14228       export_dynamic_flag_spec_FC='-Bexport'
14229       ;;
14230
14231     sysv4*MP*)
14232       if test -d /usr/nec; then
14233         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14234         hardcode_shlibpath_var_FC=no
14235         runpath_var=LD_RUN_PATH
14236         hardcode_runpath_var=yes
14237         ld_shlibs_FC=yes
14238       fi
14239       ;;
14240
14241     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14242       no_undefined_flag_FC='${wl}-z,text'
14243       archive_cmds_need_lc_FC=no
14244       hardcode_shlibpath_var_FC=no
14245       runpath_var='LD_RUN_PATH'
14246
14247       if test "$GCC" = yes; then
14248         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14249         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14250       else
14251         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14252         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14253       fi
14254       ;;
14255
14256     sysv5* | sco3.2v5* | sco5v6*)
14257       # Note: We can NOT use -z defs as we might desire, because we do not
14258       # link with -lc, and that would cause any symbols used from libc to
14259       # always be unresolved, which means just about no library would
14260       # ever link correctly.  If we're not using GNU ld we use -z text
14261       # though, which does catch some bad symbols but isn't as heavy-handed
14262       # as -z defs.
14263       no_undefined_flag_FC='${wl}-z,text'
14264       allow_undefined_flag_FC='${wl}-z,nodefs'
14265       archive_cmds_need_lc_FC=no
14266       hardcode_shlibpath_var_FC=no
14267       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14268       hardcode_libdir_separator_FC=':'
14269       link_all_deplibs_FC=yes
14270       export_dynamic_flag_spec_FC='${wl}-Bexport'
14271       runpath_var='LD_RUN_PATH'
14272
14273       if test "$GCC" = yes; then
14274         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14275         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14276       else
14277         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14278         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14279       fi
14280       ;;
14281
14282     uts4*)
14283       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284       hardcode_libdir_flag_spec_FC='-L$libdir'
14285       hardcode_shlibpath_var_FC=no
14286       ;;
14287
14288     *)
14289       ld_shlibs_FC=no
14290       ;;
14291     esac
14292
14293     if test x$host_vendor = xsni; then
14294       case $host in
14295       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14296         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14297         ;;
14298       esac
14299     fi
14300   fi
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14303 $as_echo "$ld_shlibs_FC" >&6; }
14304 test "$ld_shlibs_FC" = no && can_build_shared=no
14305
14306 with_gnu_ld_FC=$with_gnu_ld
14307
14308
14309
14310
14311
14312
14313 #
14314 # Do we need to explicitly link libc?
14315 #
14316 case "x$archive_cmds_need_lc_FC" in
14317 x|xyes)
14318   # Assume -lc should be added
14319   archive_cmds_need_lc_FC=yes
14320
14321   if test "$enable_shared" = yes && test "$GCC" = yes; then
14322     case $archive_cmds_FC in
14323     *'~'*)
14324       # FIXME: we may have to deal with multi-command sequences.
14325       ;;
14326     '$CC '*)
14327       # Test whether the compiler implicitly links with -lc since on some
14328       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14329       # to ld, don't add -lc before -lgcc.
14330       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14331 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14332 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
14333   $as_echo_n "(cached) " >&6
14334 else
14335   $RM conftest*
14336         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14337
14338         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14339   (eval $ac_compile) 2>&5
14340   ac_status=$?
14341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14342   test $ac_status = 0; } 2>conftest.err; then
14343           soname=conftest
14344           lib=conftest
14345           libobjs=conftest.$ac_objext
14346           deplibs=
14347           wl=$lt_prog_compiler_wl_FC
14348           pic_flag=$lt_prog_compiler_pic_FC
14349           compiler_flags=-v
14350           linker_flags=-v
14351           verstring=
14352           output_objdir=.
14353           libname=conftest
14354           lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14355           allow_undefined_flag_FC=
14356           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14357   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14358   ac_status=$?
14359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360   test $ac_status = 0; }
14361           then
14362             lt_cv_archive_cmds_need_lc_FC=no
14363           else
14364             lt_cv_archive_cmds_need_lc_FC=yes
14365           fi
14366           allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14367         else
14368           cat conftest.err 1>&5
14369         fi
14370         $RM conftest*
14371
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14374 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14375       archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14376       ;;
14377     esac
14378   fi
14379   ;;
14380 esac
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14444 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14445
14446 library_names_spec=
14447 libname_spec='lib$name'
14448 soname_spec=
14449 shrext_cmds=".so"
14450 postinstall_cmds=
14451 postuninstall_cmds=
14452 finish_cmds=
14453 finish_eval=
14454 shlibpath_var=
14455 shlibpath_overrides_runpath=unknown
14456 version_type=none
14457 dynamic_linker="$host_os ld.so"
14458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14459 need_lib_prefix=unknown
14460 hardcode_into_libs=no
14461
14462 # when you set need_version to no, make sure it does not cause -set_version
14463 # flags to be left without arguments
14464 need_version=unknown
14465
14466 case $host_os in
14467 aix3*)
14468   version_type=linux # correct to gnu/linux during the next big refactor
14469   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14470   shlibpath_var=LIBPATH
14471
14472   # AIX 3 has no versioning support, so we append a major version to the name.
14473   soname_spec='${libname}${release}${shared_ext}$major'
14474   ;;
14475
14476 aix[4-9]*)
14477   version_type=linux # correct to gnu/linux during the next big refactor
14478   need_lib_prefix=no
14479   need_version=no
14480   hardcode_into_libs=yes
14481   if test "$host_cpu" = ia64; then
14482     # AIX 5 supports IA64
14483     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14484     shlibpath_var=LD_LIBRARY_PATH
14485   else
14486     # With GCC up to 2.95.x, collect2 would create an import file
14487     # for dependence libraries.  The import file would start with
14488     # the line `#! .'.  This would cause the generated library to
14489     # depend on `.', always an invalid library.  This was fixed in
14490     # development snapshots of GCC prior to 3.0.
14491     case $host_os in
14492       aix4 | aix4.[01] | aix4.[01].*)
14493       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14494            echo ' yes '
14495            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14496         :
14497       else
14498         can_build_shared=no
14499       fi
14500       ;;
14501     esac
14502     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14503     # soname into executable. Probably we can add versioning support to
14504     # collect2, so additional links can be useful in future.
14505     if test "$aix_use_runtimelinking" = yes; then
14506       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14507       # instead of lib<name>.a to let people know that these are not
14508       # typical AIX shared libraries.
14509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510     else
14511       # We preserve .a as extension for shared libraries through AIX4.2
14512       # and later when we are not doing run time linking.
14513       library_names_spec='${libname}${release}.a $libname.a'
14514       soname_spec='${libname}${release}${shared_ext}$major'
14515     fi
14516     shlibpath_var=LIBPATH
14517   fi
14518   ;;
14519
14520 amigaos*)
14521   case $host_cpu in
14522   powerpc)
14523     # Since July 2007 AmigaOS4 officially supports .so libraries.
14524     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526     ;;
14527   m68k)
14528     library_names_spec='$libname.ixlibrary $libname.a'
14529     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14530     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14531     ;;
14532   esac
14533   ;;
14534
14535 beos*)
14536   library_names_spec='${libname}${shared_ext}'
14537   dynamic_linker="$host_os ld.so"
14538   shlibpath_var=LIBRARY_PATH
14539   ;;
14540
14541 bsdi[45]*)
14542   version_type=linux # correct to gnu/linux during the next big refactor
14543   need_version=no
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545   soname_spec='${libname}${release}${shared_ext}$major'
14546   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14547   shlibpath_var=LD_LIBRARY_PATH
14548   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14549   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14550   # the default ld.so.conf also contains /usr/contrib/lib and
14551   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14552   # libtool to hard-code these into programs
14553   ;;
14554
14555 cygwin* | mingw* | pw32* | cegcc*)
14556   version_type=windows
14557   shrext_cmds=".dll"
14558   need_version=no
14559   need_lib_prefix=no
14560
14561   case $GCC,$cc_basename in
14562   yes,*)
14563     # gcc
14564     library_names_spec='$libname.dll.a'
14565     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14566     postinstall_cmds='base_file=`basename \${file}`~
14567       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14568       dldir=$destdir/`dirname \$dlpath`~
14569       test -d \$dldir || mkdir -p \$dldir~
14570       $install_prog $dir/$dlname \$dldir/$dlname~
14571       chmod a+x \$dldir/$dlname~
14572       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14573         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14574       fi'
14575     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14576       dlpath=$dir/\$dldll~
14577        $RM \$dlpath'
14578     shlibpath_overrides_runpath=yes
14579
14580     case $host_os in
14581     cygwin*)
14582       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14583       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14584
14585       ;;
14586     mingw* | cegcc*)
14587       # MinGW DLLs use traditional 'lib' prefix
14588       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14589       ;;
14590     pw32*)
14591       # pw32 DLLs use 'pw' prefix rather than 'lib'
14592       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14593       ;;
14594     esac
14595     dynamic_linker='Win32 ld.exe'
14596     ;;
14597
14598   *,cl*)
14599     # Native MSVC
14600     libname_spec='$name'
14601     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602     library_names_spec='${libname}.dll.lib'
14603
14604     case $build_os in
14605     mingw*)
14606       sys_lib_search_path_spec=
14607       lt_save_ifs=$IFS
14608       IFS=';'
14609       for lt_path in $LIB
14610       do
14611         IFS=$lt_save_ifs
14612         # Let DOS variable expansion print the short 8.3 style file name.
14613         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14614         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14615       done
14616       IFS=$lt_save_ifs
14617       # Convert to MSYS style.
14618       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14619       ;;
14620     cygwin*)
14621       # Convert to unix form, then to dos form, then back to unix form
14622       # but this time dos style (no spaces!) so that the unix form looks
14623       # like /cygdrive/c/PROGRA~1:/cygdr...
14624       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14625       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14626       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14627       ;;
14628     *)
14629       sys_lib_search_path_spec="$LIB"
14630       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14631         # It is most probably a Windows format PATH.
14632         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14633       else
14634         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14635       fi
14636       # FIXME: find the short name or the path components, as spaces are
14637       # common. (e.g. "Program Files" -> "PROGRA~1")
14638       ;;
14639     esac
14640
14641     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14642     postinstall_cmds='base_file=`basename \${file}`~
14643       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14644       dldir=$destdir/`dirname \$dlpath`~
14645       test -d \$dldir || mkdir -p \$dldir~
14646       $install_prog $dir/$dlname \$dldir/$dlname'
14647     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14648       dlpath=$dir/\$dldll~
14649        $RM \$dlpath'
14650     shlibpath_overrides_runpath=yes
14651     dynamic_linker='Win32 link.exe'
14652     ;;
14653
14654   *)
14655     # Assume MSVC wrapper
14656     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14657     dynamic_linker='Win32 ld.exe'
14658     ;;
14659   esac
14660   # FIXME: first we should search . and the directory the executable is in
14661   shlibpath_var=PATH
14662   ;;
14663
14664 darwin* | rhapsody*)
14665   dynamic_linker="$host_os dyld"
14666   version_type=darwin
14667   need_lib_prefix=no
14668   need_version=no
14669   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14670   soname_spec='${libname}${release}${major}$shared_ext'
14671   shlibpath_overrides_runpath=yes
14672   shlibpath_var=DYLD_LIBRARY_PATH
14673   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14674
14675   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14676   ;;
14677
14678 dgux*)
14679   version_type=linux # correct to gnu/linux during the next big refactor
14680   need_lib_prefix=no
14681   need_version=no
14682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14683   soname_spec='${libname}${release}${shared_ext}$major'
14684   shlibpath_var=LD_LIBRARY_PATH
14685   ;;
14686
14687 freebsd* | dragonfly*)
14688   # DragonFly does not have aout.  When/if they implement a new
14689   # versioning mechanism, adjust this.
14690   if test -x /usr/bin/objformat; then
14691     objformat=`/usr/bin/objformat`
14692   else
14693     case $host_os in
14694     freebsd[23].*) objformat=aout ;;
14695     *) objformat=elf ;;
14696     esac
14697   fi
14698   version_type=freebsd-$objformat
14699   case $version_type in
14700     freebsd-elf*)
14701       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14702       need_version=no
14703       need_lib_prefix=no
14704       ;;
14705     freebsd-*)
14706       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14707       need_version=yes
14708       ;;
14709   esac
14710   shlibpath_var=LD_LIBRARY_PATH
14711   case $host_os in
14712   freebsd2.*)
14713     shlibpath_overrides_runpath=yes
14714     ;;
14715   freebsd3.[01]* | freebsdelf3.[01]*)
14716     shlibpath_overrides_runpath=yes
14717     hardcode_into_libs=yes
14718     ;;
14719   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14720   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14721     shlibpath_overrides_runpath=no
14722     hardcode_into_libs=yes
14723     ;;
14724   *) # from 4.6 on, and DragonFly
14725     shlibpath_overrides_runpath=yes
14726     hardcode_into_libs=yes
14727     ;;
14728   esac
14729   ;;
14730
14731 gnu*)
14732   version_type=linux # correct to gnu/linux during the next big refactor
14733   need_lib_prefix=no
14734   need_version=no
14735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14736   soname_spec='${libname}${release}${shared_ext}$major'
14737   shlibpath_var=LD_LIBRARY_PATH
14738   shlibpath_overrides_runpath=no
14739   hardcode_into_libs=yes
14740   ;;
14741
14742 haiku*)
14743   version_type=linux # correct to gnu/linux during the next big refactor
14744   need_lib_prefix=no
14745   need_version=no
14746   dynamic_linker="$host_os runtime_loader"
14747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14748   soname_spec='${libname}${release}${shared_ext}$major'
14749   shlibpath_var=LIBRARY_PATH
14750   shlibpath_overrides_runpath=yes
14751   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14752   hardcode_into_libs=yes
14753   ;;
14754
14755 hpux9* | hpux10* | hpux11*)
14756   # Give a soname corresponding to the major version so that dld.sl refuses to
14757   # link against other versions.
14758   version_type=sunos
14759   need_lib_prefix=no
14760   need_version=no
14761   case $host_cpu in
14762   ia64*)
14763     shrext_cmds='.so'
14764     hardcode_into_libs=yes
14765     dynamic_linker="$host_os dld.so"
14766     shlibpath_var=LD_LIBRARY_PATH
14767     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769     soname_spec='${libname}${release}${shared_ext}$major'
14770     if test "X$HPUX_IA64_MODE" = X32; then
14771       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14772     else
14773       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14774     fi
14775     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14776     ;;
14777   hppa*64*)
14778     shrext_cmds='.sl'
14779     hardcode_into_libs=yes
14780     dynamic_linker="$host_os dld.sl"
14781     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14782     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784     soname_spec='${libname}${release}${shared_ext}$major'
14785     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14786     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14787     ;;
14788   *)
14789     shrext_cmds='.sl'
14790     dynamic_linker="$host_os dld.sl"
14791     shlibpath_var=SHLIB_PATH
14792     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794     soname_spec='${libname}${release}${shared_ext}$major'
14795     ;;
14796   esac
14797   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14798   postinstall_cmds='chmod 555 $lib'
14799   # or fails outright, so override atomically:
14800   install_override_mode=555
14801   ;;
14802
14803 interix[3-9]*)
14804   version_type=linux # correct to gnu/linux during the next big refactor
14805   need_lib_prefix=no
14806   need_version=no
14807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14808   soname_spec='${libname}${release}${shared_ext}$major'
14809   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14810   shlibpath_var=LD_LIBRARY_PATH
14811   shlibpath_overrides_runpath=no
14812   hardcode_into_libs=yes
14813   ;;
14814
14815 irix5* | irix6* | nonstopux*)
14816   case $host_os in
14817     nonstopux*) version_type=nonstopux ;;
14818     *)
14819         if test "$lt_cv_prog_gnu_ld" = yes; then
14820                 version_type=linux # correct to gnu/linux during the next big refactor
14821         else
14822                 version_type=irix
14823         fi ;;
14824   esac
14825   need_lib_prefix=no
14826   need_version=no
14827   soname_spec='${libname}${release}${shared_ext}$major'
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14829   case $host_os in
14830   irix5* | nonstopux*)
14831     libsuff= shlibsuff=
14832     ;;
14833   *)
14834     case $LD in # libtool.m4 will add one of these switches to LD
14835     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14836       libsuff= shlibsuff= libmagic=32-bit;;
14837     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14838       libsuff=32 shlibsuff=N32 libmagic=N32;;
14839     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14840       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14841     *) libsuff= shlibsuff= libmagic=never-match;;
14842     esac
14843     ;;
14844   esac
14845   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14846   shlibpath_overrides_runpath=no
14847   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14848   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14849   hardcode_into_libs=yes
14850   ;;
14851
14852 # No shared lib support for Linux oldld, aout, or coff.
14853 linux*oldld* | linux*aout* | linux*coff*)
14854   dynamic_linker=no
14855   ;;
14856
14857 # This must be glibc/ELF.
14858 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14859   version_type=linux # correct to gnu/linux during the next big refactor
14860   need_lib_prefix=no
14861   need_version=no
14862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863   soname_spec='${libname}${release}${shared_ext}$major'
14864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14865   shlibpath_var=LD_LIBRARY_PATH
14866   shlibpath_overrides_runpath=no
14867
14868   # Some binutils ld are patched to set DT_RUNPATH
14869   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14870   $as_echo_n "(cached) " >&6
14871 else
14872   lt_cv_shlibpath_overrides_runpath=no
14873     save_LDFLAGS=$LDFLAGS
14874     save_libdir=$libdir
14875     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14876          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14877     cat > conftest.$ac_ext <<_ACEOF
14878       program main
14879
14880       end
14881 _ACEOF
14882 if ac_fn_fc_try_link "$LINENO"; then :
14883   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14884   lt_cv_shlibpath_overrides_runpath=yes
14885 fi
14886 fi
14887 rm -f core conftest.err conftest.$ac_objext \
14888     conftest$ac_exeext conftest.$ac_ext
14889     LDFLAGS=$save_LDFLAGS
14890     libdir=$save_libdir
14891
14892 fi
14893
14894   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14895
14896   # This implies no fast_install, which is unacceptable.
14897   # Some rework will be needed to allow for fast_install
14898   # before this can be enabled.
14899   hardcode_into_libs=yes
14900
14901   # Append ld.so.conf contents to the search path
14902   if test -f /etc/ld.so.conf; then
14903     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' ' '`
14904     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14905   fi
14906
14907   # We used to test for /lib/ld.so.1 and disable shared libraries on
14908   # powerpc, because MkLinux only supported shared libraries with the
14909   # GNU dynamic linker.  Since this was broken with cross compilers,
14910   # most powerpc-linux boxes support dynamic linking these days and
14911   # people can always --disable-shared, the test was removed, and we
14912   # assume the GNU/Linux dynamic linker is in use.
14913   dynamic_linker='GNU/Linux ld.so'
14914   ;;
14915
14916 netbsd*)
14917   version_type=sunos
14918   need_lib_prefix=no
14919   need_version=no
14920   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14922     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14923     dynamic_linker='NetBSD (a.out) ld.so'
14924   else
14925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14926     soname_spec='${libname}${release}${shared_ext}$major'
14927     dynamic_linker='NetBSD ld.elf_so'
14928   fi
14929   shlibpath_var=LD_LIBRARY_PATH
14930   shlibpath_overrides_runpath=yes
14931   hardcode_into_libs=yes
14932   ;;
14933
14934 newsos6)
14935   version_type=linux # correct to gnu/linux during the next big refactor
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   shlibpath_var=LD_LIBRARY_PATH
14938   shlibpath_overrides_runpath=yes
14939   ;;
14940
14941 *nto* | *qnx*)
14942   version_type=qnx
14943   need_lib_prefix=no
14944   need_version=no
14945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946   soname_spec='${libname}${release}${shared_ext}$major'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   shlibpath_overrides_runpath=no
14949   hardcode_into_libs=yes
14950   dynamic_linker='ldqnx.so'
14951   ;;
14952
14953 openbsd*)
14954   version_type=sunos
14955   sys_lib_dlsearch_path_spec="/usr/lib"
14956   need_lib_prefix=no
14957   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14958   case $host_os in
14959     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14960     *)                          need_version=no  ;;
14961   esac
14962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14963   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14964   shlibpath_var=LD_LIBRARY_PATH
14965   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14966     case $host_os in
14967       openbsd2.[89] | openbsd2.[89].*)
14968         shlibpath_overrides_runpath=no
14969         ;;
14970       *)
14971         shlibpath_overrides_runpath=yes
14972         ;;
14973       esac
14974   else
14975     shlibpath_overrides_runpath=yes
14976   fi
14977   ;;
14978
14979 os2*)
14980   libname_spec='$name'
14981   shrext_cmds=".dll"
14982   need_lib_prefix=no
14983   library_names_spec='$libname${shared_ext} $libname.a'
14984   dynamic_linker='OS/2 ld.exe'
14985   shlibpath_var=LIBPATH
14986   ;;
14987
14988 osf3* | osf4* | osf5*)
14989   version_type=osf
14990   need_lib_prefix=no
14991   need_version=no
14992   soname_spec='${libname}${release}${shared_ext}$major'
14993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994   shlibpath_var=LD_LIBRARY_PATH
14995   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14996   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14997   ;;
14998
14999 rdos*)
15000   dynamic_linker=no
15001   ;;
15002
15003 solaris*)
15004   version_type=linux # correct to gnu/linux during the next big refactor
15005   need_lib_prefix=no
15006   need_version=no
15007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008   soname_spec='${libname}${release}${shared_ext}$major'
15009   shlibpath_var=LD_LIBRARY_PATH
15010   shlibpath_overrides_runpath=yes
15011   hardcode_into_libs=yes
15012   # ldd complains unless libraries are executable
15013   postinstall_cmds='chmod +x $lib'
15014   ;;
15015
15016 sunos4*)
15017   version_type=sunos
15018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15019   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15020   shlibpath_var=LD_LIBRARY_PATH
15021   shlibpath_overrides_runpath=yes
15022   if test "$with_gnu_ld" = yes; then
15023     need_lib_prefix=no
15024   fi
15025   need_version=yes
15026   ;;
15027
15028 sysv4 | sysv4.3*)
15029   version_type=linux # correct to gnu/linux during the next big refactor
15030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031   soname_spec='${libname}${release}${shared_ext}$major'
15032   shlibpath_var=LD_LIBRARY_PATH
15033   case $host_vendor in
15034     sni)
15035       shlibpath_overrides_runpath=no
15036       need_lib_prefix=no
15037       runpath_var=LD_RUN_PATH
15038       ;;
15039     siemens)
15040       need_lib_prefix=no
15041       ;;
15042     motorola)
15043       need_lib_prefix=no
15044       need_version=no
15045       shlibpath_overrides_runpath=no
15046       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15047       ;;
15048   esac
15049   ;;
15050
15051 sysv4*MP*)
15052   if test -d /usr/nec ;then
15053     version_type=linux # correct to gnu/linux during the next big refactor
15054     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15055     soname_spec='$libname${shared_ext}.$major'
15056     shlibpath_var=LD_LIBRARY_PATH
15057   fi
15058   ;;
15059
15060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15061   version_type=freebsd-elf
15062   need_lib_prefix=no
15063   need_version=no
15064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15065   soname_spec='${libname}${release}${shared_ext}$major'
15066   shlibpath_var=LD_LIBRARY_PATH
15067   shlibpath_overrides_runpath=yes
15068   hardcode_into_libs=yes
15069   if test "$with_gnu_ld" = yes; then
15070     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15071   else
15072     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15073     case $host_os in
15074       sco3.2v5*)
15075         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15076         ;;
15077     esac
15078   fi
15079   sys_lib_dlsearch_path_spec='/usr/lib'
15080   ;;
15081
15082 tpf*)
15083   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15084   version_type=linux # correct to gnu/linux during the next big refactor
15085   need_lib_prefix=no
15086   need_version=no
15087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088   shlibpath_var=LD_LIBRARY_PATH
15089   shlibpath_overrides_runpath=no
15090   hardcode_into_libs=yes
15091   ;;
15092
15093 uts4*)
15094   version_type=linux # correct to gnu/linux during the next big refactor
15095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096   soname_spec='${libname}${release}${shared_ext}$major'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   ;;
15099
15100 *)
15101   dynamic_linker=no
15102   ;;
15103 esac
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15105 $as_echo "$dynamic_linker" >&6; }
15106 test "$dynamic_linker" = no && can_build_shared=no
15107
15108 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15109 if test "$GCC" = yes; then
15110   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15111 fi
15112
15113 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15114   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15115 fi
15116 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15117   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15118 fi
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15158 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15159 hardcode_action_FC=
15160 if test -n "$hardcode_libdir_flag_spec_FC" ||
15161    test -n "$runpath_var_FC" ||
15162    test "X$hardcode_automatic_FC" = "Xyes" ; then
15163
15164   # We can hardcode non-existent directories.
15165   if test "$hardcode_direct_FC" != no &&
15166      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15167      # have to relink, otherwise we might link with an installed library
15168      # when we should be linking with a yet-to-be-installed one
15169      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15170      test "$hardcode_minus_L_FC" != no; then
15171     # Linking always hardcodes the temporary library directory.
15172     hardcode_action_FC=relink
15173   else
15174     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15175     hardcode_action_FC=immediate
15176   fi
15177 else
15178   # We cannot hardcode anything, or else we can only hardcode existing
15179   # directories.
15180   hardcode_action_FC=unsupported
15181 fi
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15183 $as_echo "$hardcode_action_FC" >&6; }
15184
15185 if test "$hardcode_action_FC" = relink ||
15186    test "$inherit_rpath_FC" = yes; then
15187   # Fast installation is not supported
15188   enable_fast_install=no
15189 elif test "$shlibpath_overrides_runpath" = yes ||
15190      test "$enable_shared" = no; then
15191   # Fast installation is not necessary
15192   enable_fast_install=needless
15193 fi
15194
15195
15196
15197
15198
15199
15200
15201   fi # test -n "$compiler"
15202
15203   GCC=$lt_save_GCC
15204   CC=$lt_save_CC
15205   CFLAGS=$lt_save_CFLAGS
15206 fi # test "$_lt_disable_FC" != yes
15207
15208 ac_ext=c
15209 ac_cpp='$CPP $CPPFLAGS'
15210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224         ac_config_commands="$ac_config_commands libtool"
15225
15226
15227
15228
15229 # Only expand once:
15230
15231
15232
15233
15234 ## -------- ##
15235 ## Outputs. ##
15236 ## -------- ##
15237 ac_config_files="$ac_config_files Makefile"
15238
15239 cat >confcache <<\_ACEOF
15240 # This file is a shell script that caches the results of configure
15241 # tests run on this system so they can be shared between configure
15242 # scripts and configure runs, see configure's option --config-cache.
15243 # It is not useful on other systems.  If it contains results you don't
15244 # want to keep, you may remove or edit it.
15245 #
15246 # config.status only pays attention to the cache file if you give it
15247 # the --recheck option to rerun configure.
15248 #
15249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15251 # following values.
15252
15253 _ACEOF
15254
15255 # The following way of writing the cache mishandles newlines in values,
15256 # but we know of no workaround that is simple, portable, and efficient.
15257 # So, we kill variables containing newlines.
15258 # Ultrix sh set writes to stderr and can't be redirected directly,
15259 # and sets the high bit in the cache file unless we assign to the vars.
15260 (
15261   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15262     eval ac_val=\$$ac_var
15263     case $ac_val in #(
15264     *${as_nl}*)
15265       case $ac_var in #(
15266       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15267 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15268       esac
15269       case $ac_var in #(
15270       _ | IFS | as_nl) ;; #(
15271       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15272       *) { eval $ac_var=; unset $ac_var;} ;;
15273       esac ;;
15274     esac
15275   done
15276
15277   (set) 2>&1 |
15278     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15279     *${as_nl}ac_space=\ *)
15280       # `set' does not quote correctly, so add quotes: double-quote
15281       # substitution turns \\\\ into \\, and sed turns \\ into \.
15282       sed -n \
15283         "s/'/'\\\\''/g;
15284           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15285       ;; #(
15286     *)
15287       # `set' quotes correctly as required by POSIX, so do not add quotes.
15288       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15289       ;;
15290     esac |
15291     sort
15292 ) |
15293   sed '
15294      /^ac_cv_env_/b end
15295      t clear
15296      :clear
15297      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15298      t end
15299      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15300      :end' >>confcache
15301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15302   if test -w "$cache_file"; then
15303     if test "x$cache_file" != "x/dev/null"; then
15304       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15305 $as_echo "$as_me: updating cache $cache_file" >&6;}
15306       if test ! -f "$cache_file" || test -h "$cache_file"; then
15307         cat confcache >"$cache_file"
15308       else
15309         case $cache_file in #(
15310         */* | ?:*)
15311           mv -f confcache "$cache_file"$$ &&
15312           mv -f "$cache_file"$$ "$cache_file" ;; #(
15313         *)
15314           mv -f confcache "$cache_file" ;;
15315         esac
15316       fi
15317     fi
15318   else
15319     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15320 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15321   fi
15322 fi
15323 rm -f confcache
15324
15325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15326 # Let make expand exec_prefix.
15327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15328
15329 DEFS=-DHAVE_CONFIG_H
15330
15331 ac_libobjs=
15332 ac_ltlibobjs=
15333 U=
15334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15335   # 1. Remove the extension, and $U if already installed.
15336   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15337   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15338   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15339   #    will be set to the directory where LIBOBJS objects are built.
15340   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15341   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15342 done
15343 LIBOBJS=$ac_libobjs
15344
15345 LTLIBOBJS=$ac_ltlibobjs
15346
15347
15348  if test -n "$EXEEXT"; then
15349   am__EXEEXT_TRUE=
15350   am__EXEEXT_FALSE='#'
15351 else
15352   am__EXEEXT_TRUE='#'
15353   am__EXEEXT_FALSE=
15354 fi
15355
15356 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15357   as_fn_error $? "conditional \"AMDEP\" was never defined.
15358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 fi
15360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15361   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 fi
15364
15365 : "${CONFIG_STATUS=./config.status}"
15366 ac_write_fail=0
15367 ac_clean_files_save=$ac_clean_files
15368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15371 as_write_fail=0
15372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15373 #! $SHELL
15374 # Generated by $as_me.
15375 # Run this file to recreate the current configuration.
15376 # Compiler output produced by configure, useful for debugging
15377 # configure, is in config.log if it exists.
15378
15379 debug=false
15380 ac_cs_recheck=false
15381 ac_cs_silent=false
15382
15383 SHELL=\${CONFIG_SHELL-$SHELL}
15384 export SHELL
15385 _ASEOF
15386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15387 ## -------------------- ##
15388 ## M4sh Initialization. ##
15389 ## -------------------- ##
15390
15391 # Be more Bourne compatible
15392 DUALCASE=1; export DUALCASE # for MKS sh
15393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15394   emulate sh
15395   NULLCMD=:
15396   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15397   # is contrary to our usage.  Disable this feature.
15398   alias -g '${1+"$@"}'='"$@"'
15399   setopt NO_GLOB_SUBST
15400 else
15401   case `(set -o) 2>/dev/null` in #(
15402   *posix*) :
15403     set -o posix ;; #(
15404   *) :
15405      ;;
15406 esac
15407 fi
15408
15409
15410 as_nl='
15411 '
15412 export as_nl
15413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15417 # Prefer a ksh shell builtin over an external printf program on Solaris,
15418 # but without wasting forks for bash or zsh.
15419 if test -z "$BASH_VERSION$ZSH_VERSION" \
15420     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15421   as_echo='print -r --'
15422   as_echo_n='print -rn --'
15423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15424   as_echo='printf %s\n'
15425   as_echo_n='printf %s'
15426 else
15427   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15428     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15429     as_echo_n='/usr/ucb/echo -n'
15430   else
15431     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15432     as_echo_n_body='eval
15433       arg=$1;
15434       case $arg in #(
15435       *"$as_nl"*)
15436         expr "X$arg" : "X\\(.*\\)$as_nl";
15437         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15438       esac;
15439       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15440     '
15441     export as_echo_n_body
15442     as_echo_n='sh -c $as_echo_n_body as_echo'
15443   fi
15444   export as_echo_body
15445   as_echo='sh -c $as_echo_body as_echo'
15446 fi
15447
15448 # The user is always right.
15449 if test "${PATH_SEPARATOR+set}" != set; then
15450   PATH_SEPARATOR=:
15451   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15452     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15453       PATH_SEPARATOR=';'
15454   }
15455 fi
15456
15457
15458 # IFS
15459 # We need space, tab and new line, in precisely that order.  Quoting is
15460 # there to prevent editors from complaining about space-tab.
15461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15462 # splitting by setting IFS to empty value.)
15463 IFS=" ""        $as_nl"
15464
15465 # Find who we are.  Look in the path if we contain no directory separator.
15466 as_myself=
15467 case $0 in #((
15468   *[\\/]* ) as_myself=$0 ;;
15469   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15470 for as_dir in $PATH
15471 do
15472   IFS=$as_save_IFS
15473   test -z "$as_dir" && as_dir=.
15474     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15475   done
15476 IFS=$as_save_IFS
15477
15478      ;;
15479 esac
15480 # We did not find ourselves, most probably we were run as `sh COMMAND'
15481 # in which case we are not to be found in the path.
15482 if test "x$as_myself" = x; then
15483   as_myself=$0
15484 fi
15485 if test ! -f "$as_myself"; then
15486   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15487   exit 1
15488 fi
15489
15490 # Unset variables that we do not need and which cause bugs (e.g. in
15491 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15492 # suppresses any "Segmentation fault" message there.  '((' could
15493 # trigger a bug in pdksh 5.2.14.
15494 for as_var in BASH_ENV ENV MAIL MAILPATH
15495 do eval test x\${$as_var+set} = xset \
15496   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15497 done
15498 PS1='$ '
15499 PS2='> '
15500 PS4='+ '
15501
15502 # NLS nuisances.
15503 LC_ALL=C
15504 export LC_ALL
15505 LANGUAGE=C
15506 export LANGUAGE
15507
15508 # CDPATH.
15509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15510
15511
15512 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15513 # ----------------------------------------
15514 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15515 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15516 # script with STATUS, using 1 if that was 0.
15517 as_fn_error ()
15518 {
15519   as_status=$1; test $as_status -eq 0 && as_status=1
15520   if test "$4"; then
15521     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15522     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15523   fi
15524   $as_echo "$as_me: error: $2" >&2
15525   as_fn_exit $as_status
15526 } # as_fn_error
15527
15528
15529 # as_fn_set_status STATUS
15530 # -----------------------
15531 # Set $? to STATUS, without forking.
15532 as_fn_set_status ()
15533 {
15534   return $1
15535 } # as_fn_set_status
15536
15537 # as_fn_exit STATUS
15538 # -----------------
15539 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15540 as_fn_exit ()
15541 {
15542   set +e
15543   as_fn_set_status $1
15544   exit $1
15545 } # as_fn_exit
15546
15547 # as_fn_unset VAR
15548 # ---------------
15549 # Portably unset VAR.
15550 as_fn_unset ()
15551 {
15552   { eval $1=; unset $1;}
15553 }
15554 as_unset=as_fn_unset
15555 # as_fn_append VAR VALUE
15556 # ----------------------
15557 # Append the text in VALUE to the end of the definition contained in VAR. Take
15558 # advantage of any shell optimizations that allow amortized linear growth over
15559 # repeated appends, instead of the typical quadratic growth present in naive
15560 # implementations.
15561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15562   eval 'as_fn_append ()
15563   {
15564     eval $1+=\$2
15565   }'
15566 else
15567   as_fn_append ()
15568   {
15569     eval $1=\$$1\$2
15570   }
15571 fi # as_fn_append
15572
15573 # as_fn_arith ARG...
15574 # ------------------
15575 # Perform arithmetic evaluation on the ARGs, and store the result in the
15576 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15577 # must be portable across $(()) and expr.
15578 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15579   eval 'as_fn_arith ()
15580   {
15581     as_val=$(( $* ))
15582   }'
15583 else
15584   as_fn_arith ()
15585   {
15586     as_val=`expr "$@" || test $? -eq 1`
15587   }
15588 fi # as_fn_arith
15589
15590
15591 if expr a : '\(a\)' >/dev/null 2>&1 &&
15592    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15593   as_expr=expr
15594 else
15595   as_expr=false
15596 fi
15597
15598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15599   as_basename=basename
15600 else
15601   as_basename=false
15602 fi
15603
15604 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15605   as_dirname=dirname
15606 else
15607   as_dirname=false
15608 fi
15609
15610 as_me=`$as_basename -- "$0" ||
15611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15612          X"$0" : 'X\(//\)$' \| \
15613          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15614 $as_echo X/"$0" |
15615     sed '/^.*\/\([^/][^/]*\)\/*$/{
15616             s//\1/
15617             q
15618           }
15619           /^X\/\(\/\/\)$/{
15620             s//\1/
15621             q
15622           }
15623           /^X\/\(\/\).*/{
15624             s//\1/
15625             q
15626           }
15627           s/.*/./; q'`
15628
15629 # Avoid depending upon Character Ranges.
15630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15633 as_cr_digits='0123456789'
15634 as_cr_alnum=$as_cr_Letters$as_cr_digits
15635
15636 ECHO_C= ECHO_N= ECHO_T=
15637 case `echo -n x` in #(((((
15638 -n*)
15639   case `echo 'xy\c'` in
15640   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15641   xy)  ECHO_C='\c';;
15642   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15643        ECHO_T=' ';;
15644   esac;;
15645 *)
15646   ECHO_N='-n';;
15647 esac
15648
15649 rm -f conf$$ conf$$.exe conf$$.file
15650 if test -d conf$$.dir; then
15651   rm -f conf$$.dir/conf$$.file
15652 else
15653   rm -f conf$$.dir
15654   mkdir conf$$.dir 2>/dev/null
15655 fi
15656 if (echo >conf$$.file) 2>/dev/null; then
15657   if ln -s conf$$.file conf$$ 2>/dev/null; then
15658     as_ln_s='ln -s'
15659     # ... but there are two gotchas:
15660     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15661     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15662     # In both cases, we have to default to `cp -p'.
15663     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15664       as_ln_s='cp -p'
15665   elif ln conf$$.file conf$$ 2>/dev/null; then
15666     as_ln_s=ln
15667   else
15668     as_ln_s='cp -p'
15669   fi
15670 else
15671   as_ln_s='cp -p'
15672 fi
15673 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15674 rmdir conf$$.dir 2>/dev/null
15675
15676
15677 # as_fn_mkdir_p
15678 # -------------
15679 # Create "$as_dir" as a directory, including parents if necessary.
15680 as_fn_mkdir_p ()
15681 {
15682
15683   case $as_dir in #(
15684   -*) as_dir=./$as_dir;;
15685   esac
15686   test -d "$as_dir" || eval $as_mkdir_p || {
15687     as_dirs=
15688     while :; do
15689       case $as_dir in #(
15690       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15691       *) as_qdir=$as_dir;;
15692       esac
15693       as_dirs="'$as_qdir' $as_dirs"
15694       as_dir=`$as_dirname -- "$as_dir" ||
15695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15696          X"$as_dir" : 'X\(//\)[^/]' \| \
15697          X"$as_dir" : 'X\(//\)$' \| \
15698          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15699 $as_echo X"$as_dir" |
15700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15701             s//\1/
15702             q
15703           }
15704           /^X\(\/\/\)[^/].*/{
15705             s//\1/
15706             q
15707           }
15708           /^X\(\/\/\)$/{
15709             s//\1/
15710             q
15711           }
15712           /^X\(\/\).*/{
15713             s//\1/
15714             q
15715           }
15716           s/.*/./; q'`
15717       test -d "$as_dir" && break
15718     done
15719     test -z "$as_dirs" || eval "mkdir $as_dirs"
15720   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15721
15722
15723 } # as_fn_mkdir_p
15724 if mkdir -p . 2>/dev/null; then
15725   as_mkdir_p='mkdir -p "$as_dir"'
15726 else
15727   test -d ./-p && rmdir ./-p
15728   as_mkdir_p=false
15729 fi
15730
15731 if test -x / >/dev/null 2>&1; then
15732   as_test_x='test -x'
15733 else
15734   if ls -dL / >/dev/null 2>&1; then
15735     as_ls_L_option=L
15736   else
15737     as_ls_L_option=
15738   fi
15739   as_test_x='
15740     eval sh -c '\''
15741       if test -d "$1"; then
15742         test -d "$1/.";
15743       else
15744         case $1 in #(
15745         -*)set "./$1";;
15746         esac;
15747         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15748         ???[sx]*):;;*)false;;esac;fi
15749     '\'' sh
15750   '
15751 fi
15752 as_executable_p=$as_test_x
15753
15754 # Sed expression to map a string onto a valid CPP name.
15755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15756
15757 # Sed expression to map a string onto a valid variable name.
15758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15759
15760
15761 exec 6>&1
15762 ## ----------------------------------- ##
15763 ## Main body of $CONFIG_STATUS script. ##
15764 ## ----------------------------------- ##
15765 _ASEOF
15766 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15767
15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769 # Save the log message, to keep $0 and so on meaningful, and to
15770 # report actual input values of CONFIG_FILES etc. instead of their
15771 # values after options handling.
15772 ac_log="
15773 This file was extended by fcdemo $as_me 1.0, which was
15774 generated by GNU Autoconf 2.68.  Invocation command line was
15775
15776   CONFIG_FILES    = $CONFIG_FILES
15777   CONFIG_HEADERS  = $CONFIG_HEADERS
15778   CONFIG_LINKS    = $CONFIG_LINKS
15779   CONFIG_COMMANDS = $CONFIG_COMMANDS
15780   $ $0 $@
15781
15782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15783 "
15784
15785 _ACEOF
15786
15787 case $ac_config_files in *"
15788 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15789 esac
15790
15791 case $ac_config_headers in *"
15792 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15793 esac
15794
15795
15796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797 # Files that config.status was made for.
15798 config_files="$ac_config_files"
15799 config_headers="$ac_config_headers"
15800 config_commands="$ac_config_commands"
15801
15802 _ACEOF
15803
15804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15805 ac_cs_usage="\
15806 \`$as_me' instantiates files and other configuration actions
15807 from templates according to the current configuration.  Unless the files
15808 and actions are specified as TAGs, all are instantiated by default.
15809
15810 Usage: $0 [OPTION]... [TAG]...
15811
15812   -h, --help       print this help, then exit
15813   -V, --version    print version number and configuration settings, then exit
15814       --config     print configuration, then exit
15815   -q, --quiet, --silent
15816                    do not print progress messages
15817   -d, --debug      don't remove temporary files
15818       --recheck    update $as_me by reconfiguring in the same conditions
15819       --file=FILE[:TEMPLATE]
15820                    instantiate the configuration file FILE
15821       --header=FILE[:TEMPLATE]
15822                    instantiate the configuration header FILE
15823
15824 Configuration files:
15825 $config_files
15826
15827 Configuration headers:
15828 $config_headers
15829
15830 Configuration commands:
15831 $config_commands
15832
15833 Report bugs to <bug-libtool@gnu.org>."
15834
15835 _ACEOF
15836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15837 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15838 ac_cs_version="\\
15839 fcdemo config.status 1.0
15840 configured by $0, generated by GNU Autoconf 2.68,
15841   with options \\"\$ac_cs_config\\"
15842
15843 Copyright (C) 2010 Free Software Foundation, Inc.
15844 This config.status script is free software; the Free Software Foundation
15845 gives unlimited permission to copy, distribute and modify it."
15846
15847 ac_pwd='$ac_pwd'
15848 srcdir='$srcdir'
15849 INSTALL='$INSTALL'
15850 MKDIR_P='$MKDIR_P'
15851 AWK='$AWK'
15852 test -n "\$AWK" || AWK=awk
15853 _ACEOF
15854
15855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15856 # The default lists apply if the user does not specify any file.
15857 ac_need_defaults=:
15858 while test $# != 0
15859 do
15860   case $1 in
15861   --*=?*)
15862     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15863     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15864     ac_shift=:
15865     ;;
15866   --*=)
15867     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15868     ac_optarg=
15869     ac_shift=:
15870     ;;
15871   *)
15872     ac_option=$1
15873     ac_optarg=$2
15874     ac_shift=shift
15875     ;;
15876   esac
15877
15878   case $ac_option in
15879   # Handling of the options.
15880   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15881     ac_cs_recheck=: ;;
15882   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15883     $as_echo "$ac_cs_version"; exit ;;
15884   --config | --confi | --conf | --con | --co | --c )
15885     $as_echo "$ac_cs_config"; exit ;;
15886   --debug | --debu | --deb | --de | --d | -d )
15887     debug=: ;;
15888   --file | --fil | --fi | --f )
15889     $ac_shift
15890     case $ac_optarg in
15891     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15892     '') as_fn_error $? "missing file argument" ;;
15893     esac
15894     as_fn_append CONFIG_FILES " '$ac_optarg'"
15895     ac_need_defaults=false;;
15896   --header | --heade | --head | --hea )
15897     $ac_shift
15898     case $ac_optarg in
15899     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15900     esac
15901     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15902     ac_need_defaults=false;;
15903   --he | --h)
15904     # Conflict between --help and --header
15905     as_fn_error $? "ambiguous option: \`$1'
15906 Try \`$0 --help' for more information.";;
15907   --help | --hel | -h )
15908     $as_echo "$ac_cs_usage"; exit ;;
15909   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15910   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15911     ac_cs_silent=: ;;
15912
15913   # This is an error.
15914   -*) as_fn_error $? "unrecognized option: \`$1'
15915 Try \`$0 --help' for more information." ;;
15916
15917   *) as_fn_append ac_config_targets " $1"
15918      ac_need_defaults=false ;;
15919
15920   esac
15921   shift
15922 done
15923
15924 ac_configure_extra_args=
15925
15926 if $ac_cs_silent; then
15927   exec 6>/dev/null
15928   ac_configure_extra_args="$ac_configure_extra_args --silent"
15929 fi
15930
15931 _ACEOF
15932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15933 if \$ac_cs_recheck; then
15934   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15935   shift
15936   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15937   CONFIG_SHELL='$SHELL'
15938   export CONFIG_SHELL
15939   exec "\$@"
15940 fi
15941
15942 _ACEOF
15943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15944 exec 5>>config.log
15945 {
15946   echo
15947   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15948 ## Running $as_me. ##
15949 _ASBOX
15950   $as_echo "$ac_log"
15951 } >&5
15952
15953 _ACEOF
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955 #
15956 # INIT-COMMANDS
15957 #
15958 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15959
15960
15961 # The HP-UX ksh and POSIX shell print the target directory to stdout
15962 # if CDPATH is set.
15963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15964
15965 sed_quote_subst='$sed_quote_subst'
15966 double_quote_subst='$double_quote_subst'
15967 delay_variable_subst='$delay_variable_subst'
15968 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15969 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15970 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15971 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15972 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15973 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15974 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15975 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15976 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15977 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15978 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15979 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15980 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15981 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15982 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15983 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15984 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15985 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15986 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15987 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15988 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15989 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15990 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15991 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15992 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15993 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15994 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15995 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15996 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15997 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15998 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15999 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16000 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16001 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16002 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16003 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16004 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16005 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16006 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16007 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16008 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16009 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16010 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16011 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16012 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16013 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16014 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16015 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16016 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16017 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16018 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16019 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16020 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16021 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16022 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16023 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16024 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"`'
16025 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16026 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16027 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16028 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16029 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16030 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16031 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16032 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16033 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16034 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16035 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16036 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16037 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16038 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16039 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16040 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16041 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16042 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16043 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16044 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16045 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16046 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16047 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16048 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16049 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16050 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16051 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16052 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16053 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16054 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16055 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16056 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16057 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16058 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16059 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16060 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16061 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16062 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16063 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16064 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16065 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16066 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16067 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16068 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16069 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16070 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16071 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16072 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16073 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16074 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16075 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16076 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16077 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16078 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16079 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16080 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16081 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16082 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16083 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16084 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16085 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16086 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16087 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16088 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16089 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16090 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16091 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16092 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16093 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16094 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16095 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16096 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16097 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16098 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16099 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16100 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16101 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16102 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16103 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16104 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
16105 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
16106 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
16107 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
16108 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
16109 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
16110 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
16111 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
16112 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
16113 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
16114 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
16115 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
16116 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
16117 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
16118 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
16119 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
16120 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
16121 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
16122 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
16123 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
16124 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
16125 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
16126 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
16127 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
16128 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
16129 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
16130 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
16131 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
16132 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
16133 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
16134 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
16135 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
16136 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
16137 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
16138 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
16139 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
16140 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
16141 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
16142 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
16143 postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
16144 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
16145 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
16146 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
16147 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
16148 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
16149 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
16150 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
16151 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
16152
16153 LTCC='$LTCC'
16154 LTCFLAGS='$LTCFLAGS'
16155 compiler='$compiler_DEFAULT'
16156
16157 # A function that is used when there is no print builtin or printf.
16158 func_fallback_echo ()
16159 {
16160   eval 'cat <<_LTECHO_EOF
16161 \$1
16162 _LTECHO_EOF'
16163 }
16164
16165 # Quote evaled strings.
16166 for var in SHELL \
16167 ECHO \
16168 PATH_SEPARATOR \
16169 SED \
16170 GREP \
16171 EGREP \
16172 FGREP \
16173 LD \
16174 NM \
16175 LN_S \
16176 lt_SP2NL \
16177 lt_NL2SP \
16178 reload_flag \
16179 OBJDUMP \
16180 deplibs_check_method \
16181 file_magic_cmd \
16182 file_magic_glob \
16183 want_nocaseglob \
16184 DLLTOOL \
16185 sharedlib_from_linklib_cmd \
16186 AR \
16187 AR_FLAGS \
16188 archiver_list_spec \
16189 STRIP \
16190 RANLIB \
16191 CC \
16192 CFLAGS \
16193 compiler \
16194 lt_cv_sys_global_symbol_pipe \
16195 lt_cv_sys_global_symbol_to_cdecl \
16196 lt_cv_sys_global_symbol_to_c_name_address \
16197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16198 nm_file_list_spec \
16199 lt_prog_compiler_no_builtin_flag \
16200 lt_prog_compiler_pic \
16201 lt_prog_compiler_wl \
16202 lt_prog_compiler_static \
16203 lt_cv_prog_compiler_c_o \
16204 need_locks \
16205 MANIFEST_TOOL \
16206 DSYMUTIL \
16207 NMEDIT \
16208 LIPO \
16209 OTOOL \
16210 OTOOL64 \
16211 shrext_cmds \
16212 export_dynamic_flag_spec \
16213 whole_archive_flag_spec \
16214 compiler_needs_object \
16215 with_gnu_ld \
16216 allow_undefined_flag \
16217 no_undefined_flag \
16218 hardcode_libdir_flag_spec \
16219 hardcode_libdir_separator \
16220 exclude_expsyms \
16221 include_expsyms \
16222 file_list_spec \
16223 variables_saved_for_relink \
16224 libname_spec \
16225 library_names_spec \
16226 soname_spec \
16227 install_override_mode \
16228 finish_eval \
16229 old_striplib \
16230 striplib \
16231 compiler_lib_search_dirs \
16232 predep_objects \
16233 postdep_objects \
16234 predeps \
16235 postdeps \
16236 compiler_lib_search_path \
16237 LD_FC \
16238 reload_flag_FC \
16239 compiler_FC \
16240 lt_prog_compiler_no_builtin_flag_FC \
16241 lt_prog_compiler_pic_FC \
16242 lt_prog_compiler_wl_FC \
16243 lt_prog_compiler_static_FC \
16244 lt_cv_prog_compiler_c_o_FC \
16245 export_dynamic_flag_spec_FC \
16246 whole_archive_flag_spec_FC \
16247 compiler_needs_object_FC \
16248 with_gnu_ld_FC \
16249 allow_undefined_flag_FC \
16250 no_undefined_flag_FC \
16251 hardcode_libdir_flag_spec_FC \
16252 hardcode_libdir_separator_FC \
16253 exclude_expsyms_FC \
16254 include_expsyms_FC \
16255 file_list_spec_FC \
16256 compiler_lib_search_dirs_FC \
16257 predep_objects_FC \
16258 postdep_objects_FC \
16259 predeps_FC \
16260 postdeps_FC \
16261 compiler_lib_search_path_FC; do
16262     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16263     *[\\\\\\\`\\"\\\$]*)
16264       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16265       ;;
16266     *)
16267       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16268       ;;
16269     esac
16270 done
16271
16272 # Double-quote double-evaled strings.
16273 for var in reload_cmds \
16274 old_postinstall_cmds \
16275 old_postuninstall_cmds \
16276 old_archive_cmds \
16277 extract_expsyms_cmds \
16278 old_archive_from_new_cmds \
16279 old_archive_from_expsyms_cmds \
16280 archive_cmds \
16281 archive_expsym_cmds \
16282 module_cmds \
16283 module_expsym_cmds \
16284 export_symbols_cmds \
16285 prelink_cmds \
16286 postlink_cmds \
16287 postinstall_cmds \
16288 postuninstall_cmds \
16289 finish_cmds \
16290 sys_lib_search_path_spec \
16291 sys_lib_dlsearch_path_spec \
16292 reload_cmds_FC \
16293 old_archive_cmds_FC \
16294 old_archive_from_new_cmds_FC \
16295 old_archive_from_expsyms_cmds_FC \
16296 archive_cmds_FC \
16297 archive_expsym_cmds_FC \
16298 module_cmds_FC \
16299 module_expsym_cmds_FC \
16300 export_symbols_cmds_FC \
16301 prelink_cmds_FC \
16302 postlink_cmds_FC; do
16303     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16304     *[\\\\\\\`\\"\\\$]*)
16305       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16306       ;;
16307     *)
16308       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16309       ;;
16310     esac
16311 done
16312
16313 ac_aux_dir='$ac_aux_dir'
16314 xsi_shell='$xsi_shell'
16315 lt_shell_append='$lt_shell_append'
16316
16317 # See if we are running on zsh, and set the options which allow our
16318 # commands through without removal of \ escapes INIT.
16319 if test -n "\${ZSH_VERSION+set}" ; then
16320    setopt NO_GLOB_SUBST
16321 fi
16322
16323
16324     PACKAGE='$PACKAGE'
16325     VERSION='$VERSION'
16326     TIMESTAMP='$TIMESTAMP'
16327     RM='$RM'
16328     ofile='$ofile'
16329
16330
16331
16332
16333
16334
16335 _ACEOF
16336
16337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16338
16339 # Handling of arguments.
16340 for ac_config_target in $ac_config_targets
16341 do
16342   case $ac_config_target in
16343     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
16344     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16345     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16346     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16347
16348   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16349   esac
16350 done
16351
16352
16353 # If the user did not use the arguments to specify the items to instantiate,
16354 # then the envvar interface is used.  Set only those that are not.
16355 # We use the long form for the default assignment because of an extremely
16356 # bizarre bug on SunOS 4.1.3.
16357 if $ac_need_defaults; then
16358   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16359   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16360   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16361 fi
16362
16363 # Have a temporary directory for convenience.  Make it in the build tree
16364 # simply because there is no reason against having it here, and in addition,
16365 # creating and moving files from /tmp can sometimes cause problems.
16366 # Hook for its removal unless debugging.
16367 # Note that there is a small window in which the directory will not be cleaned:
16368 # after its creation but before its name has been assigned to `$tmp'.
16369 $debug ||
16370 {
16371   tmp= ac_tmp=
16372   trap 'exit_status=$?
16373   : "${ac_tmp:=$tmp}"
16374   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16375 ' 0
16376   trap 'as_fn_exit 1' 1 2 13 15
16377 }
16378 # Create a (secure) tmp directory for tmp files.
16379
16380 {
16381   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16382   test -d "$tmp"
16383 }  ||
16384 {
16385   tmp=./conf$$-$RANDOM
16386   (umask 077 && mkdir "$tmp")
16387 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16388 ac_tmp=$tmp
16389
16390 # Set up the scripts for CONFIG_FILES section.
16391 # No need to generate them if there are no CONFIG_FILES.
16392 # This happens for instance with `./config.status config.h'.
16393 if test -n "$CONFIG_FILES"; then
16394
16395
16396 ac_cr=`echo X | tr X '\015'`
16397 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16398 # But we know of no other shell where ac_cr would be empty at this
16399 # point, so we can use a bashism as a fallback.
16400 if test "x$ac_cr" = x; then
16401   eval ac_cr=\$\'\\r\'
16402 fi
16403 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16404 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16405   ac_cs_awk_cr='\\r'
16406 else
16407   ac_cs_awk_cr=$ac_cr
16408 fi
16409
16410 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16411 _ACEOF
16412
16413
16414 {
16415   echo "cat >conf$$subs.awk <<_ACEOF" &&
16416   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16417   echo "_ACEOF"
16418 } >conf$$subs.sh ||
16419   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16420 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16421 ac_delim='%!_!# '
16422 for ac_last_try in false false false false false :; do
16423   . ./conf$$subs.sh ||
16424     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16425
16426   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16427   if test $ac_delim_n = $ac_delim_num; then
16428     break
16429   elif $ac_last_try; then
16430     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16431   else
16432     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16433   fi
16434 done
16435 rm -f conf$$subs.sh
16436
16437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16438 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16439 _ACEOF
16440 sed -n '
16441 h
16442 s/^/S["/; s/!.*/"]=/
16443 p
16444 g
16445 s/^[^!]*!//
16446 :repl
16447 t repl
16448 s/'"$ac_delim"'$//
16449 t delim
16450 :nl
16451 h
16452 s/\(.\{148\}\)..*/\1/
16453 t more1
16454 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16455 p
16456 n
16457 b repl
16458 :more1
16459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16460 p
16461 g
16462 s/.\{148\}//
16463 t nl
16464 :delim
16465 h
16466 s/\(.\{148\}\)..*/\1/
16467 t more2
16468 s/["\\]/\\&/g; s/^/"/; s/$/"/
16469 p
16470 b
16471 :more2
16472 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16473 p
16474 g
16475 s/.\{148\}//
16476 t delim
16477 ' <conf$$subs.awk | sed '
16478 /^[^""]/{
16479   N
16480   s/\n//
16481 }
16482 ' >>$CONFIG_STATUS || ac_write_fail=1
16483 rm -f conf$$subs.awk
16484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16485 _ACAWK
16486 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16487   for (key in S) S_is_set[key] = 1
16488   FS = "\a"
16489
16490 }
16491 {
16492   line = $ 0
16493   nfields = split(line, field, "@")
16494   substed = 0
16495   len = length(field[1])
16496   for (i = 2; i < nfields; i++) {
16497     key = field[i]
16498     keylen = length(key)
16499     if (S_is_set[key]) {
16500       value = S[key]
16501       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16502       len += length(value) + length(field[++i])
16503       substed = 1
16504     } else
16505       len += 1 + keylen
16506   }
16507
16508   print line
16509 }
16510
16511 _ACAWK
16512 _ACEOF
16513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16514 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16515   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16516 else
16517   cat
16518 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16519   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16520 _ACEOF
16521
16522 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16523 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16524 # trailing colons and then remove the whole line if VPATH becomes empty
16525 # (actually we leave an empty line to preserve line numbers).
16526 if test "x$srcdir" = x.; then
16527   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16528 h
16529 s///
16530 s/^/:/
16531 s/[      ]*$/:/
16532 s/:\$(srcdir):/:/g
16533 s/:\${srcdir}:/:/g
16534 s/:@srcdir@:/:/g
16535 s/^:*//
16536 s/:*$//
16537 x
16538 s/\(=[   ]*\).*/\1/
16539 G
16540 s/\n//
16541 s/^[^=]*=[       ]*$//
16542 }'
16543 fi
16544
16545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16546 fi # test -n "$CONFIG_FILES"
16547
16548 # Set up the scripts for CONFIG_HEADERS section.
16549 # No need to generate them if there are no CONFIG_HEADERS.
16550 # This happens for instance with `./config.status Makefile'.
16551 if test -n "$CONFIG_HEADERS"; then
16552 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16553 BEGIN {
16554 _ACEOF
16555
16556 # Transform confdefs.h into an awk script `defines.awk', embedded as
16557 # here-document in config.status, that substitutes the proper values into
16558 # config.h.in to produce config.h.
16559
16560 # Create a delimiter string that does not exist in confdefs.h, to ease
16561 # handling of long lines.
16562 ac_delim='%!_!# '
16563 for ac_last_try in false false :; do
16564   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16565   if test -z "$ac_tt"; then
16566     break
16567   elif $ac_last_try; then
16568     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16569   else
16570     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16571   fi
16572 done
16573
16574 # For the awk script, D is an array of macro values keyed by name,
16575 # likewise P contains macro parameters if any.  Preserve backslash
16576 # newline sequences.
16577
16578 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16579 sed -n '
16580 s/.\{148\}/&'"$ac_delim"'/g
16581 t rset
16582 :rset
16583 s/^[     ]*#[    ]*define[       ][      ]*/ /
16584 t def
16585 d
16586 :def
16587 s/\\$//
16588 t bsnl
16589 s/["\\]/\\&/g
16590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16591 D["\1"]=" \3"/p
16592 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16593 d
16594 :bsnl
16595 s/["\\]/\\&/g
16596 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16597 D["\1"]=" \3\\\\\\n"\\/p
16598 t cont
16599 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16600 t cont
16601 d
16602 :cont
16603 n
16604 s/.\{148\}/&'"$ac_delim"'/g
16605 t clear
16606 :clear
16607 s/\\$//
16608 t bsnlc
16609 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16610 d
16611 :bsnlc
16612 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16613 b cont
16614 ' <confdefs.h | sed '
16615 s/'"$ac_delim"'/"\\\
16616 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16617
16618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16619   for (key in D) D_is_set[key] = 1
16620   FS = "\a"
16621 }
16622 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16623   line = \$ 0
16624   split(line, arg, " ")
16625   if (arg[1] == "#") {
16626     defundef = arg[2]
16627     mac1 = arg[3]
16628   } else {
16629     defundef = substr(arg[1], 2)
16630     mac1 = arg[2]
16631   }
16632   split(mac1, mac2, "(") #)
16633   macro = mac2[1]
16634   prefix = substr(line, 1, index(line, defundef) - 1)
16635   if (D_is_set[macro]) {
16636     # Preserve the white space surrounding the "#".
16637     print prefix "define", macro P[macro] D[macro]
16638     next
16639   } else {
16640     # Replace #undef with comments.  This is necessary, for example,
16641     # in the case of _POSIX_SOURCE, which is predefined and required
16642     # on some systems where configure will not decide to define it.
16643     if (defundef == "undef") {
16644       print "/*", prefix defundef, macro, "*/"
16645       next
16646     }
16647   }
16648 }
16649 { print }
16650 _ACAWK
16651 _ACEOF
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16654 fi # test -n "$CONFIG_HEADERS"
16655
16656
16657 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16658 shift
16659 for ac_tag
16660 do
16661   case $ac_tag in
16662   :[FHLC]) ac_mode=$ac_tag; continue;;
16663   esac
16664   case $ac_mode$ac_tag in
16665   :[FHL]*:*);;
16666   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16667   :[FH]-) ac_tag=-:-;;
16668   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16669   esac
16670   ac_save_IFS=$IFS
16671   IFS=:
16672   set x $ac_tag
16673   IFS=$ac_save_IFS
16674   shift
16675   ac_file=$1
16676   shift
16677
16678   case $ac_mode in
16679   :L) ac_source=$1;;
16680   :[FH])
16681     ac_file_inputs=
16682     for ac_f
16683     do
16684       case $ac_f in
16685       -) ac_f="$ac_tmp/stdin";;
16686       *) # Look for the file first in the build tree, then in the source tree
16687          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16688          # because $ac_f cannot contain `:'.
16689          test -f "$ac_f" ||
16690            case $ac_f in
16691            [\\/$]*) false;;
16692            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16693            esac ||
16694            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16695       esac
16696       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16697       as_fn_append ac_file_inputs " '$ac_f'"
16698     done
16699
16700     # Let's still pretend it is `configure' which instantiates (i.e., don't
16701     # use $as_me), people would be surprised to read:
16702     #    /* config.h.  Generated by config.status.  */
16703     configure_input='Generated from '`
16704           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16705         `' by configure.'
16706     if test x"$ac_file" != x-; then
16707       configure_input="$ac_file.  $configure_input"
16708       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16709 $as_echo "$as_me: creating $ac_file" >&6;}
16710     fi
16711     # Neutralize special characters interpreted by sed in replacement strings.
16712     case $configure_input in #(
16713     *\&* | *\|* | *\\* )
16714        ac_sed_conf_input=`$as_echo "$configure_input" |
16715        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16716     *) ac_sed_conf_input=$configure_input;;
16717     esac
16718
16719     case $ac_tag in
16720     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16721       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16722     esac
16723     ;;
16724   esac
16725
16726   ac_dir=`$as_dirname -- "$ac_file" ||
16727 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16728          X"$ac_file" : 'X\(//\)[^/]' \| \
16729          X"$ac_file" : 'X\(//\)$' \| \
16730          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16731 $as_echo X"$ac_file" |
16732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16733             s//\1/
16734             q
16735           }
16736           /^X\(\/\/\)[^/].*/{
16737             s//\1/
16738             q
16739           }
16740           /^X\(\/\/\)$/{
16741             s//\1/
16742             q
16743           }
16744           /^X\(\/\).*/{
16745             s//\1/
16746             q
16747           }
16748           s/.*/./; q'`
16749   as_dir="$ac_dir"; as_fn_mkdir_p
16750   ac_builddir=.
16751
16752 case "$ac_dir" in
16753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16754 *)
16755   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16756   # A ".." for each directory in $ac_dir_suffix.
16757   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16758   case $ac_top_builddir_sub in
16759   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16760   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16761   esac ;;
16762 esac
16763 ac_abs_top_builddir=$ac_pwd
16764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16765 # for backward compatibility:
16766 ac_top_builddir=$ac_top_build_prefix
16767
16768 case $srcdir in
16769   .)  # We are building in place.
16770     ac_srcdir=.
16771     ac_top_srcdir=$ac_top_builddir_sub
16772     ac_abs_top_srcdir=$ac_pwd ;;
16773   [\\/]* | ?:[\\/]* )  # Absolute name.
16774     ac_srcdir=$srcdir$ac_dir_suffix;
16775     ac_top_srcdir=$srcdir
16776     ac_abs_top_srcdir=$srcdir ;;
16777   *) # Relative name.
16778     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16779     ac_top_srcdir=$ac_top_build_prefix$srcdir
16780     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16781 esac
16782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16783
16784
16785   case $ac_mode in
16786   :F)
16787   #
16788   # CONFIG_FILE
16789   #
16790
16791   case $INSTALL in
16792   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16793   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16794   esac
16795   ac_MKDIR_P=$MKDIR_P
16796   case $MKDIR_P in
16797   [\\/$]* | ?:[\\/]* ) ;;
16798   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16799   esac
16800 _ACEOF
16801
16802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803 # If the template does not know about datarootdir, expand it.
16804 # FIXME: This hack should be removed a few years after 2.60.
16805 ac_datarootdir_hack=; ac_datarootdir_seen=
16806 ac_sed_dataroot='
16807 /datarootdir/ {
16808   p
16809   q
16810 }
16811 /@datadir@/p
16812 /@docdir@/p
16813 /@infodir@/p
16814 /@localedir@/p
16815 /@mandir@/p'
16816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16817 *datarootdir*) ac_datarootdir_seen=yes;;
16818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16819   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16821 _ACEOF
16822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16823   ac_datarootdir_hack='
16824   s&@datadir@&$datadir&g
16825   s&@docdir@&$docdir&g
16826   s&@infodir@&$infodir&g
16827   s&@localedir@&$localedir&g
16828   s&@mandir@&$mandir&g
16829   s&\\\${datarootdir}&$datarootdir&g' ;;
16830 esac
16831 _ACEOF
16832
16833 # Neutralize VPATH when `$srcdir' = `.'.
16834 # Shell code in configure.ac might set extrasub.
16835 # FIXME: do we really want to maintain this feature?
16836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16837 ac_sed_extra="$ac_vpsub
16838 $extrasub
16839 _ACEOF
16840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16841 :t
16842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16843 s|@configure_input@|$ac_sed_conf_input|;t t
16844 s&@top_builddir@&$ac_top_builddir_sub&;t t
16845 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16846 s&@srcdir@&$ac_srcdir&;t t
16847 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16848 s&@top_srcdir@&$ac_top_srcdir&;t t
16849 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16850 s&@builddir@&$ac_builddir&;t t
16851 s&@abs_builddir@&$ac_abs_builddir&;t t
16852 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16853 s&@INSTALL@&$ac_INSTALL&;t t
16854 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16855 $ac_datarootdir_hack
16856 "
16857 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16858   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16859
16860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16861   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16862   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16863       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16864   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16865 which seems to be undefined.  Please make sure it is defined" >&5
16866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16867 which seems to be undefined.  Please make sure it is defined" >&2;}
16868
16869   rm -f "$ac_tmp/stdin"
16870   case $ac_file in
16871   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16872   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16873   esac \
16874   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16875  ;;
16876   :H)
16877   #
16878   # CONFIG_HEADER
16879   #
16880   if test x"$ac_file" != x-; then
16881     {
16882       $as_echo "/* $configure_input  */" \
16883       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16884     } >"$ac_tmp/config.h" \
16885       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16886     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16887       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16888 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16889     else
16890       rm -f "$ac_file"
16891       mv "$ac_tmp/config.h" "$ac_file" \
16892         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16893     fi
16894   else
16895     $as_echo "/* $configure_input  */" \
16896       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16897       || as_fn_error $? "could not create -" "$LINENO" 5
16898   fi
16899 # Compute "$ac_file"'s index in $config_headers.
16900 _am_arg="$ac_file"
16901 _am_stamp_count=1
16902 for _am_header in $config_headers :; do
16903   case $_am_header in
16904     $_am_arg | $_am_arg:* )
16905       break ;;
16906     * )
16907       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16908   esac
16909 done
16910 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16911 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16912          X"$_am_arg" : 'X\(//\)[^/]' \| \
16913          X"$_am_arg" : 'X\(//\)$' \| \
16914          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16915 $as_echo X"$_am_arg" |
16916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16917             s//\1/
16918             q
16919           }
16920           /^X\(\/\/\)[^/].*/{
16921             s//\1/
16922             q
16923           }
16924           /^X\(\/\/\)$/{
16925             s//\1/
16926             q
16927           }
16928           /^X\(\/\).*/{
16929             s//\1/
16930             q
16931           }
16932           s/.*/./; q'`/stamp-h$_am_stamp_count
16933  ;;
16934
16935   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16936 $as_echo "$as_me: executing $ac_file commands" >&6;}
16937  ;;
16938   esac
16939
16940
16941   case $ac_file$ac_mode in
16942     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16943   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16944   # are listed without --file.  Let's play safe and only enable the eval
16945   # if we detect the quoting.
16946   case $CONFIG_FILES in
16947   *\'*) eval set x "$CONFIG_FILES" ;;
16948   *)   set x $CONFIG_FILES ;;
16949   esac
16950   shift
16951   for mf
16952   do
16953     # Strip MF so we end up with the name of the file.
16954     mf=`echo "$mf" | sed -e 's/:.*$//'`
16955     # Check whether this is an Automake generated Makefile or not.
16956     # We used to match only the files named `Makefile.in', but
16957     # some people rename them; so instead we look at the file content.
16958     # Grep'ing the first line is not enough: some people post-process
16959     # each Makefile.in and add a new line on top of each file to say so.
16960     # Grep'ing the whole file is not good either: AIX grep has a line
16961     # limit of 2048, but all sed's we know have understand at least 4000.
16962     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16963       dirpart=`$as_dirname -- "$mf" ||
16964 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965          X"$mf" : 'X\(//\)[^/]' \| \
16966          X"$mf" : 'X\(//\)$' \| \
16967          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16968 $as_echo X"$mf" |
16969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16970             s//\1/
16971             q
16972           }
16973           /^X\(\/\/\)[^/].*/{
16974             s//\1/
16975             q
16976           }
16977           /^X\(\/\/\)$/{
16978             s//\1/
16979             q
16980           }
16981           /^X\(\/\).*/{
16982             s//\1/
16983             q
16984           }
16985           s/.*/./; q'`
16986     else
16987       continue
16988     fi
16989     # Extract the definition of DEPDIR, am__include, and am__quote
16990     # from the Makefile without running `make'.
16991     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16992     test -z "$DEPDIR" && continue
16993     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16994     test -z "am__include" && continue
16995     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16996     # When using ansi2knr, U may be empty or an underscore; expand it
16997     U=`sed -n 's/^U = //p' < "$mf"`
16998     # Find all dependency output files, they are included files with
16999     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17000     # simplest approach to changing $(DEPDIR) to its actual value in the
17001     # expansion.
17002     for file in `sed -n "
17003       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17004          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17005       # Make sure the directory exists.
17006       test -f "$dirpart/$file" && continue
17007       fdir=`$as_dirname -- "$file" ||
17008 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17009          X"$file" : 'X\(//\)[^/]' \| \
17010          X"$file" : 'X\(//\)$' \| \
17011          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17012 $as_echo X"$file" |
17013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17014             s//\1/
17015             q
17016           }
17017           /^X\(\/\/\)[^/].*/{
17018             s//\1/
17019             q
17020           }
17021           /^X\(\/\/\)$/{
17022             s//\1/
17023             q
17024           }
17025           /^X\(\/\).*/{
17026             s//\1/
17027             q
17028           }
17029           s/.*/./; q'`
17030       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17031       # echo "creating $dirpart/$file"
17032       echo '# dummy' > "$dirpart/$file"
17033     done
17034   done
17035 }
17036  ;;
17037     "libtool":C)
17038
17039     # See if we are running on zsh, and set the options which allow our
17040     # commands through without removal of \ escapes.
17041     if test -n "${ZSH_VERSION+set}" ; then
17042       setopt NO_GLOB_SUBST
17043     fi
17044
17045     cfgfile="${ofile}T"
17046     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17047     $RM "$cfgfile"
17048
17049     cat <<_LT_EOF >> "$cfgfile"
17050 #! $SHELL
17051
17052 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17053 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17055 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17056 #
17057 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17058 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17059 #                 Foundation, Inc.
17060 #   Written by Gordon Matzigkeit, 1996
17061 #
17062 #   This file is part of GNU Libtool.
17063 #
17064 # GNU Libtool is free software; you can redistribute it and/or
17065 # modify it under the terms of the GNU General Public License as
17066 # published by the Free Software Foundation; either version 2 of
17067 # the License, or (at your option) any later version.
17068 #
17069 # As a special exception to the GNU General Public License,
17070 # if you distribute this file as part of a program or library that
17071 # is built using GNU Libtool, you may include this file under the
17072 # same distribution terms that you use for the rest of that program.
17073 #
17074 # GNU Libtool is distributed in the hope that it will be useful,
17075 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17076 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17077 # GNU General Public License for more details.
17078 #
17079 # You should have received a copy of the GNU General Public License
17080 # along with GNU Libtool; see the file COPYING.  If not, a copy
17081 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17082 # obtained by writing to the Free Software Foundation, Inc.,
17083 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17084
17085
17086 # The names of the tagged configurations supported by this script.
17087 available_tags="FC "
17088
17089 # ### BEGIN LIBTOOL CONFIG
17090
17091 # Which release of libtool.m4 was used?
17092 macro_version=$macro_version
17093 macro_revision=$macro_revision
17094
17095 # Whether or not to build shared libraries.
17096 build_libtool_libs=$enable_shared
17097
17098 # Whether or not to build static libraries.
17099 build_old_libs=$enable_static
17100
17101 # What type of objects to build.
17102 pic_mode=$pic_mode
17103
17104 # Whether or not to optimize for fast installation.
17105 fast_install=$enable_fast_install
17106
17107 # Shell to use when invoking shell scripts.
17108 SHELL=$lt_SHELL
17109
17110 # An echo program that protects backslashes.
17111 ECHO=$lt_ECHO
17112
17113 # The PATH separator for the build system.
17114 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17115
17116 # The host system.
17117 host_alias=$host_alias
17118 host=$host
17119 host_os=$host_os
17120
17121 # The build system.
17122 build_alias=$build_alias
17123 build=$build
17124 build_os=$build_os
17125
17126 # A sed program that does not truncate output.
17127 SED=$lt_SED
17128
17129 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17130 Xsed="\$SED -e 1s/^X//"
17131
17132 # A grep program that handles long lines.
17133 GREP=$lt_GREP
17134
17135 # An ERE matcher.
17136 EGREP=$lt_EGREP
17137
17138 # A literal string matcher.
17139 FGREP=$lt_FGREP
17140
17141 # A BSD- or MS-compatible name lister.
17142 NM=$lt_NM
17143
17144 # Whether we need soft or hard links.
17145 LN_S=$lt_LN_S
17146
17147 # What is the maximum length of a command?
17148 max_cmd_len=$max_cmd_len
17149
17150 # Object file suffix (normally "o").
17151 objext=$ac_objext
17152
17153 # Executable file suffix (normally "").
17154 exeext=$exeext
17155
17156 # whether the shell understands "unset".
17157 lt_unset=$lt_unset
17158
17159 # turn spaces into newlines.
17160 SP2NL=$lt_lt_SP2NL
17161
17162 # turn newlines into spaces.
17163 NL2SP=$lt_lt_NL2SP
17164
17165 # convert \$build file names to \$host format.
17166 to_host_file_cmd=$lt_cv_to_host_file_cmd
17167
17168 # convert \$build files to toolchain format.
17169 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17170
17171 # An object symbol dumper.
17172 OBJDUMP=$lt_OBJDUMP
17173
17174 # Method to check whether dependent libraries are shared objects.
17175 deplibs_check_method=$lt_deplibs_check_method
17176
17177 # Command to use when deplibs_check_method = "file_magic".
17178 file_magic_cmd=$lt_file_magic_cmd
17179
17180 # How to find potential files when deplibs_check_method = "file_magic".
17181 file_magic_glob=$lt_file_magic_glob
17182
17183 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17184 want_nocaseglob=$lt_want_nocaseglob
17185
17186 # DLL creation program.
17187 DLLTOOL=$lt_DLLTOOL
17188
17189 # Command to associate shared and link libraries.
17190 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17191
17192 # The archiver.
17193 AR=$lt_AR
17194
17195 # Flags to create an archive.
17196 AR_FLAGS=$lt_AR_FLAGS
17197
17198 # How to feed a file listing to the archiver.
17199 archiver_list_spec=$lt_archiver_list_spec
17200
17201 # A symbol stripping program.
17202 STRIP=$lt_STRIP
17203
17204 # Commands used to install an old-style archive.
17205 RANLIB=$lt_RANLIB
17206 old_postinstall_cmds=$lt_old_postinstall_cmds
17207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17208
17209 # Whether to use a lock for old archive extraction.
17210 lock_old_archive_extraction=$lock_old_archive_extraction
17211
17212 # A C compiler.
17213 LTCC=$lt_CC
17214
17215 # LTCC compiler flags.
17216 LTCFLAGS=$lt_CFLAGS
17217
17218 # Take the output of nm and produce a listing of raw symbols and C names.
17219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17220
17221 # Transform the output of nm in a proper C declaration.
17222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17223
17224 # Transform the output of nm in a C name address pair.
17225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17226
17227 # Transform the output of nm in a C name address pair when lib prefix is needed.
17228 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17229
17230 # Specify filename containing input files for \$NM.
17231 nm_file_list_spec=$lt_nm_file_list_spec
17232
17233 # The root where to search for dependent libraries,and in which our libraries should be installed.
17234 lt_sysroot=$lt_sysroot
17235
17236 # The name of the directory that contains temporary libtool files.
17237 objdir=$objdir
17238
17239 # Used to examine libraries when file_magic_cmd begins with "file".
17240 MAGIC_CMD=$MAGIC_CMD
17241
17242 # Must we lock files when doing compilation?
17243 need_locks=$lt_need_locks
17244
17245 # Manifest tool.
17246 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17247
17248 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17249 DSYMUTIL=$lt_DSYMUTIL
17250
17251 # Tool to change global to local symbols on Mac OS X.
17252 NMEDIT=$lt_NMEDIT
17253
17254 # Tool to manipulate fat objects and archives on Mac OS X.
17255 LIPO=$lt_LIPO
17256
17257 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17258 OTOOL=$lt_OTOOL
17259
17260 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17261 OTOOL64=$lt_OTOOL64
17262
17263 # Old archive suffix (normally "a").
17264 libext=$libext
17265
17266 # Shared library suffix (normally ".so").
17267 shrext_cmds=$lt_shrext_cmds
17268
17269 # The commands to extract the exported symbol list from a shared archive.
17270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17271
17272 # Variables whose values should be saved in libtool wrapper scripts and
17273 # restored at link time.
17274 variables_saved_for_relink=$lt_variables_saved_for_relink
17275
17276 # Do we need the "lib" prefix for modules?
17277 need_lib_prefix=$need_lib_prefix
17278
17279 # Do we need a version for libraries?
17280 need_version=$need_version
17281
17282 # Library versioning type.
17283 version_type=$version_type
17284
17285 # Shared library runtime path variable.
17286 runpath_var=$runpath_var
17287
17288 # Shared library path variable.
17289 shlibpath_var=$shlibpath_var
17290
17291 # Is shlibpath searched before the hard-coded library search path?
17292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17293
17294 # Format of library name prefix.
17295 libname_spec=$lt_libname_spec
17296
17297 # List of archive names.  First name is the real one, the rest are links.
17298 # The last name is the one that the linker finds with -lNAME
17299 library_names_spec=$lt_library_names_spec
17300
17301 # The coded name of the library, if different from the real name.
17302 soname_spec=$lt_soname_spec
17303
17304 # Permission mode override for installation of shared libraries.
17305 install_override_mode=$lt_install_override_mode
17306
17307 # Command to use after installation of a shared archive.
17308 postinstall_cmds=$lt_postinstall_cmds
17309
17310 # Command to use after uninstallation of a shared archive.
17311 postuninstall_cmds=$lt_postuninstall_cmds
17312
17313 # Commands used to finish a libtool library installation in a directory.
17314 finish_cmds=$lt_finish_cmds
17315
17316 # As "finish_cmds", except a single script fragment to be evaled but
17317 # not shown.
17318 finish_eval=$lt_finish_eval
17319
17320 # Whether we should hardcode library paths into libraries.
17321 hardcode_into_libs=$hardcode_into_libs
17322
17323 # Compile-time system search path for libraries.
17324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17325
17326 # Run-time system search path for libraries.
17327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17328
17329 # Whether dlopen is supported.
17330 dlopen_support=$enable_dlopen
17331
17332 # Whether dlopen of programs is supported.
17333 dlopen_self=$enable_dlopen_self
17334
17335 # Whether dlopen of statically linked programs is supported.
17336 dlopen_self_static=$enable_dlopen_self_static
17337
17338 # Commands to strip libraries.
17339 old_striplib=$lt_old_striplib
17340 striplib=$lt_striplib
17341
17342
17343 # The linker used to build libraries.
17344 LD=$lt_LD
17345
17346 # How to create reloadable object files.
17347 reload_flag=$lt_reload_flag
17348 reload_cmds=$lt_reload_cmds
17349
17350 # Commands used to build an old-style archive.
17351 old_archive_cmds=$lt_old_archive_cmds
17352
17353 # A language specific compiler.
17354 CC=$lt_compiler
17355
17356 # Is the compiler the GNU compiler?
17357 with_gcc=$GCC
17358
17359 # Compiler flag to turn off builtin functions.
17360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17361
17362 # Additional compiler flags for building library objects.
17363 pic_flag=$lt_lt_prog_compiler_pic
17364
17365 # How to pass a linker flag through the compiler.
17366 wl=$lt_lt_prog_compiler_wl
17367
17368 # Compiler flag to prevent dynamic linking.
17369 link_static_flag=$lt_lt_prog_compiler_static
17370
17371 # Does compiler simultaneously support -c and -o options?
17372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17373
17374 # Whether or not to add -lc for building shared libraries.
17375 build_libtool_need_lc=$archive_cmds_need_lc
17376
17377 # Whether or not to disallow shared libs when runtime libs are static.
17378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17379
17380 # Compiler flag to allow reflexive dlopens.
17381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17382
17383 # Compiler flag to generate shared objects directly from archives.
17384 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17385
17386 # Whether the compiler copes with passing no objects directly.
17387 compiler_needs_object=$lt_compiler_needs_object
17388
17389 # Create an old-style archive from a shared archive.
17390 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17391
17392 # Create a temporary old-style archive to link instead of a shared archive.
17393 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17394
17395 # Commands used to build a shared archive.
17396 archive_cmds=$lt_archive_cmds
17397 archive_expsym_cmds=$lt_archive_expsym_cmds
17398
17399 # Commands used to build a loadable module if different from building
17400 # a shared archive.
17401 module_cmds=$lt_module_cmds
17402 module_expsym_cmds=$lt_module_expsym_cmds
17403
17404 # Whether we are building with GNU ld or not.
17405 with_gnu_ld=$lt_with_gnu_ld
17406
17407 # Flag that allows shared libraries with undefined symbols to be built.
17408 allow_undefined_flag=$lt_allow_undefined_flag
17409
17410 # Flag that enforces no undefined symbols.
17411 no_undefined_flag=$lt_no_undefined_flag
17412
17413 # Flag to hardcode \$libdir into a binary during linking.
17414 # This must work even if \$libdir does not exist
17415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17416
17417 # Whether we need a single "-rpath" flag with a separated argument.
17418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17419
17420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17421 # DIR into the resulting binary.
17422 hardcode_direct=$hardcode_direct
17423
17424 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17425 # DIR into the resulting binary and the resulting library dependency is
17426 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17427 # library is relocated.
17428 hardcode_direct_absolute=$hardcode_direct_absolute
17429
17430 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17431 # into the resulting binary.
17432 hardcode_minus_L=$hardcode_minus_L
17433
17434 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17435 # into the resulting binary.
17436 hardcode_shlibpath_var=$hardcode_shlibpath_var
17437
17438 # Set to "yes" if building a shared library automatically hardcodes DIR
17439 # into the library and all subsequent libraries and executables linked
17440 # against it.
17441 hardcode_automatic=$hardcode_automatic
17442
17443 # Set to yes if linker adds runtime paths of dependent libraries
17444 # to runtime path list.
17445 inherit_rpath=$inherit_rpath
17446
17447 # Whether libtool must link a program against all its dependency libraries.
17448 link_all_deplibs=$link_all_deplibs
17449
17450 # Set to "yes" if exported symbols are required.
17451 always_export_symbols=$always_export_symbols
17452
17453 # The commands to list exported symbols.
17454 export_symbols_cmds=$lt_export_symbols_cmds
17455
17456 # Symbols that should not be listed in the preloaded symbols.
17457 exclude_expsyms=$lt_exclude_expsyms
17458
17459 # Symbols that must always be exported.
17460 include_expsyms=$lt_include_expsyms
17461
17462 # Commands necessary for linking programs (against libraries) with templates.
17463 prelink_cmds=$lt_prelink_cmds
17464
17465 # Commands necessary for finishing linking programs.
17466 postlink_cmds=$lt_postlink_cmds
17467
17468 # Specify filename containing input files.
17469 file_list_spec=$lt_file_list_spec
17470
17471 # How to hardcode a shared library path into an executable.
17472 hardcode_action=$hardcode_action
17473
17474 # The directories searched by this compiler when creating a shared library.
17475 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17476
17477 # Dependencies to place before and after the objects being linked to
17478 # create a shared library.
17479 predep_objects=$lt_predep_objects
17480 postdep_objects=$lt_postdep_objects
17481 predeps=$lt_predeps
17482 postdeps=$lt_postdeps
17483
17484 # The library search path used internally by the compiler when linking
17485 # a shared library.
17486 compiler_lib_search_path=$lt_compiler_lib_search_path
17487
17488 # ### END LIBTOOL CONFIG
17489
17490 _LT_EOF
17491
17492   case $host_os in
17493   aix3*)
17494     cat <<\_LT_EOF >> "$cfgfile"
17495 # AIX sometimes has problems with the GCC collect2 program.  For some
17496 # reason, if we set the COLLECT_NAMES environment variable, the problems
17497 # vanish in a puff of smoke.
17498 if test "X${COLLECT_NAMES+set}" != Xset; then
17499   COLLECT_NAMES=
17500   export COLLECT_NAMES
17501 fi
17502 _LT_EOF
17503     ;;
17504   esac
17505
17506
17507 ltmain="$ac_aux_dir/ltmain.sh"
17508
17509
17510   # We use sed instead of cat because bash on DJGPP gets confused if
17511   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17512   # text mode, it properly converts lines to CR/LF.  This bash problem
17513   # is reportedly fixed, but why not run on old versions too?
17514   sed '$q' "$ltmain" >> "$cfgfile" \
17515      || (rm -f "$cfgfile"; exit 1)
17516
17517   if test x"$xsi_shell" = xyes; then
17518   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17519 func_dirname ()\
17520 {\
17521 \    case ${1} in\
17522 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17523 \      *  ) func_dirname_result="${3}" ;;\
17524 \    esac\
17525 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17526   && mv -f "$cfgfile.tmp" "$cfgfile" \
17527     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17528 test 0 -eq $? || _lt_function_replace_fail=:
17529
17530
17531   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17532 func_basename ()\
17533 {\
17534 \    func_basename_result="${1##*/}"\
17535 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17536   && mv -f "$cfgfile.tmp" "$cfgfile" \
17537     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17538 test 0 -eq $? || _lt_function_replace_fail=:
17539
17540
17541   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17542 func_dirname_and_basename ()\
17543 {\
17544 \    case ${1} in\
17545 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17546 \      *  ) func_dirname_result="${3}" ;;\
17547 \    esac\
17548 \    func_basename_result="${1##*/}"\
17549 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17550   && mv -f "$cfgfile.tmp" "$cfgfile" \
17551     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17552 test 0 -eq $? || _lt_function_replace_fail=:
17553
17554
17555   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17556 func_stripname ()\
17557 {\
17558 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17559 \    # positional parameters, so assign one to ordinary parameter first.\
17560 \    func_stripname_result=${3}\
17561 \    func_stripname_result=${func_stripname_result#"${1}"}\
17562 \    func_stripname_result=${func_stripname_result%"${2}"}\
17563 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17564   && mv -f "$cfgfile.tmp" "$cfgfile" \
17565     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17566 test 0 -eq $? || _lt_function_replace_fail=:
17567
17568
17569   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17570 func_split_long_opt ()\
17571 {\
17572 \    func_split_long_opt_name=${1%%=*}\
17573 \    func_split_long_opt_arg=${1#*=}\
17574 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17575   && mv -f "$cfgfile.tmp" "$cfgfile" \
17576     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17577 test 0 -eq $? || _lt_function_replace_fail=:
17578
17579
17580   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17581 func_split_short_opt ()\
17582 {\
17583 \    func_split_short_opt_arg=${1#??}\
17584 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17585 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17586   && mv -f "$cfgfile.tmp" "$cfgfile" \
17587     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17588 test 0 -eq $? || _lt_function_replace_fail=:
17589
17590
17591   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17592 func_lo2o ()\
17593 {\
17594 \    case ${1} in\
17595 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17596 \      *)    func_lo2o_result=${1} ;;\
17597 \    esac\
17598 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17599   && mv -f "$cfgfile.tmp" "$cfgfile" \
17600     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17601 test 0 -eq $? || _lt_function_replace_fail=:
17602
17603
17604   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17605 func_xform ()\
17606 {\
17607     func_xform_result=${1%.*}.lo\
17608 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17609   && mv -f "$cfgfile.tmp" "$cfgfile" \
17610     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17611 test 0 -eq $? || _lt_function_replace_fail=:
17612
17613
17614   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17615 func_arith ()\
17616 {\
17617     func_arith_result=$(( $* ))\
17618 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17619   && mv -f "$cfgfile.tmp" "$cfgfile" \
17620     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17621 test 0 -eq $? || _lt_function_replace_fail=:
17622
17623
17624   sed -e '/^func_len ()$/,/^} # func_len /c\
17625 func_len ()\
17626 {\
17627     func_len_result=${#1}\
17628 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17629   && mv -f "$cfgfile.tmp" "$cfgfile" \
17630     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17631 test 0 -eq $? || _lt_function_replace_fail=:
17632
17633 fi
17634
17635 if test x"$lt_shell_append" = xyes; then
17636   sed -e '/^func_append ()$/,/^} # func_append /c\
17637 func_append ()\
17638 {\
17639     eval "${1}+=\\${2}"\
17640 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17641   && mv -f "$cfgfile.tmp" "$cfgfile" \
17642     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17643 test 0 -eq $? || _lt_function_replace_fail=:
17644
17645
17646   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17647 func_append_quoted ()\
17648 {\
17649 \    func_quote_for_eval "${2}"\
17650 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17651 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17652   && mv -f "$cfgfile.tmp" "$cfgfile" \
17653     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17654 test 0 -eq $? || _lt_function_replace_fail=:
17655
17656
17657   # Save a `func_append' function call where possible by direct use of '+='
17658   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17659     && mv -f "$cfgfile.tmp" "$cfgfile" \
17660       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17661   test 0 -eq $? || _lt_function_replace_fail=:
17662 else
17663   # Save a `func_append' function call even when '+=' is not available
17664   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17665     && mv -f "$cfgfile.tmp" "$cfgfile" \
17666       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17667   test 0 -eq $? || _lt_function_replace_fail=:
17668 fi
17669
17670 if test x"$_lt_function_replace_fail" = x":"; then
17671   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17672 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17673 fi
17674
17675
17676    mv -f "$cfgfile" "$ofile" ||
17677     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17678   chmod +x "$ofile"
17679
17680
17681     cat <<_LT_EOF >> "$ofile"
17682
17683 # ### BEGIN LIBTOOL TAG CONFIG: FC
17684
17685 # The linker used to build libraries.
17686 LD=$lt_LD_FC
17687
17688 # How to create reloadable object files.
17689 reload_flag=$lt_reload_flag_FC
17690 reload_cmds=$lt_reload_cmds_FC
17691
17692 # Commands used to build an old-style archive.
17693 old_archive_cmds=$lt_old_archive_cmds_FC
17694
17695 # A language specific compiler.
17696 CC=$lt_compiler_FC
17697
17698 # Is the compiler the GNU compiler?
17699 with_gcc=$GCC_FC
17700
17701 # Compiler flag to turn off builtin functions.
17702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
17703
17704 # Additional compiler flags for building library objects.
17705 pic_flag=$lt_lt_prog_compiler_pic_FC
17706
17707 # How to pass a linker flag through the compiler.
17708 wl=$lt_lt_prog_compiler_wl_FC
17709
17710 # Compiler flag to prevent dynamic linking.
17711 link_static_flag=$lt_lt_prog_compiler_static_FC
17712
17713 # Does compiler simultaneously support -c and -o options?
17714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
17715
17716 # Whether or not to add -lc for building shared libraries.
17717 build_libtool_need_lc=$archive_cmds_need_lc_FC
17718
17719 # Whether or not to disallow shared libs when runtime libs are static.
17720 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
17721
17722 # Compiler flag to allow reflexive dlopens.
17723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
17724
17725 # Compiler flag to generate shared objects directly from archives.
17726 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
17727
17728 # Whether the compiler copes with passing no objects directly.
17729 compiler_needs_object=$lt_compiler_needs_object_FC
17730
17731 # Create an old-style archive from a shared archive.
17732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
17733
17734 # Create a temporary old-style archive to link instead of a shared archive.
17735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
17736
17737 # Commands used to build a shared archive.
17738 archive_cmds=$lt_archive_cmds_FC
17739 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
17740
17741 # Commands used to build a loadable module if different from building
17742 # a shared archive.
17743 module_cmds=$lt_module_cmds_FC
17744 module_expsym_cmds=$lt_module_expsym_cmds_FC
17745
17746 # Whether we are building with GNU ld or not.
17747 with_gnu_ld=$lt_with_gnu_ld_FC
17748
17749 # Flag that allows shared libraries with undefined symbols to be built.
17750 allow_undefined_flag=$lt_allow_undefined_flag_FC
17751
17752 # Flag that enforces no undefined symbols.
17753 no_undefined_flag=$lt_no_undefined_flag_FC
17754
17755 # Flag to hardcode \$libdir into a binary during linking.
17756 # This must work even if \$libdir does not exist
17757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
17758
17759 # Whether we need a single "-rpath" flag with a separated argument.
17760 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
17761
17762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17763 # DIR into the resulting binary.
17764 hardcode_direct=$hardcode_direct_FC
17765
17766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17767 # DIR into the resulting binary and the resulting library dependency is
17768 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17769 # library is relocated.
17770 hardcode_direct_absolute=$hardcode_direct_absolute_FC
17771
17772 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17773 # into the resulting binary.
17774 hardcode_minus_L=$hardcode_minus_L_FC
17775
17776 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17777 # into the resulting binary.
17778 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
17779
17780 # Set to "yes" if building a shared library automatically hardcodes DIR
17781 # into the library and all subsequent libraries and executables linked
17782 # against it.
17783 hardcode_automatic=$hardcode_automatic_FC
17784
17785 # Set to yes if linker adds runtime paths of dependent libraries
17786 # to runtime path list.
17787 inherit_rpath=$inherit_rpath_FC
17788
17789 # Whether libtool must link a program against all its dependency libraries.
17790 link_all_deplibs=$link_all_deplibs_FC
17791
17792 # Set to "yes" if exported symbols are required.
17793 always_export_symbols=$always_export_symbols_FC
17794
17795 # The commands to list exported symbols.
17796 export_symbols_cmds=$lt_export_symbols_cmds_FC
17797
17798 # Symbols that should not be listed in the preloaded symbols.
17799 exclude_expsyms=$lt_exclude_expsyms_FC
17800
17801 # Symbols that must always be exported.
17802 include_expsyms=$lt_include_expsyms_FC
17803
17804 # Commands necessary for linking programs (against libraries) with templates.
17805 prelink_cmds=$lt_prelink_cmds_FC
17806
17807 # Commands necessary for finishing linking programs.
17808 postlink_cmds=$lt_postlink_cmds_FC
17809
17810 # Specify filename containing input files.
17811 file_list_spec=$lt_file_list_spec_FC
17812
17813 # How to hardcode a shared library path into an executable.
17814 hardcode_action=$hardcode_action_FC
17815
17816 # The directories searched by this compiler when creating a shared library.
17817 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
17818
17819 # Dependencies to place before and after the objects being linked to
17820 # create a shared library.
17821 predep_objects=$lt_predep_objects_FC
17822 postdep_objects=$lt_postdep_objects_FC
17823 predeps=$lt_predeps_FC
17824 postdeps=$lt_postdeps_FC
17825
17826 # The library search path used internally by the compiler when linking
17827 # a shared library.
17828 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
17829
17830 # ### END LIBTOOL TAG CONFIG: FC
17831 _LT_EOF
17832
17833  ;;
17834
17835   esac
17836 done # for ac_tag
17837
17838
17839 as_fn_exit 0
17840 _ACEOF
17841 ac_clean_files=$ac_clean_files_save
17842
17843 test $ac_write_fail = 0 ||
17844   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17845
17846
17847 # configure is writing to config.log, and then calls config.status.
17848 # config.status does its own redirection, appending to config.log.
17849 # Unfortunately, on DOS this fails, as config.log is still kept open
17850 # by configure, so config.status won't be able to write to it; its
17851 # output is simply discarded.  So we exec the FD to /dev/null,
17852 # effectively closing config.log, so it can be properly (re)opened and
17853 # appended to by config.status.  When coming back to configure, we
17854 # need to make the FD available again.
17855 if test "$no_create" != yes; then
17856   ac_cs_success=:
17857   ac_config_status_args=
17858   test "$silent" = yes &&
17859     ac_config_status_args="$ac_config_status_args --quiet"
17860   exec 5>/dev/null
17861   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17862   exec 5>>config.log
17863   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17864   # would make configure fail if this is the last instruction.
17865   $ac_cs_success || as_fn_exit 1
17866 fi
17867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17870 fi
17871