Third party libs
[profile/ivi/smartdevicelink.git] / src / thirdPartyLibs / apache-log4cxx-0.10.0 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$ECHO in
562 X*--fallback-echo)
563   # Remove one level of quotation (which was required for Make).
564   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565   ;;
566 esac
567
568 echo=${ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570   # Discard the --no-reexec flag, and continue.
571   shift
572 elif test "X$1" = X--fallback-echo; then
573   # Avoid inline document here, it may be left over
574   :
575 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576   # Yippee, $echo works!
577   :
578 else
579   # Restart under the correct shell.
580   exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584   # used as fallback echo
585   shift
586   cat <<EOF
587 $*
588 EOF
589   exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602        echo_test_string=`eval $cmd` &&
603        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
604     then
605       break
606     fi
607   done
608 fi
609
610 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612    test "X$echo_testing_string" = "X$echo_test_string"; then
613   :
614 else
615   # The Solaris, AIX, and Digital Unix default echo programs unquote
616   # backslashes.  This makes it impossible to quote backslashes using
617   #   echo "$something" | sed 's/\\/\\\\/g'
618   #
619   # So, first we look for a working echo in the user's PATH.
620
621   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622   for dir in $PATH /usr/ucb; do
623     IFS="$lt_save_ifs"
624     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627        test "X$echo_testing_string" = "X$echo_test_string"; then
628       echo="$dir/echo"
629       break
630     fi
631   done
632   IFS="$lt_save_ifs"
633
634   if test "X$echo" = Xecho; then
635     # We didn't find a better echo, so look for alternatives.
636     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638        test "X$echo_testing_string" = "X$echo_test_string"; then
639       # This shell has a builtin print -r that does the trick.
640       echo='print -r'
641     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642          test "X$CONFIG_SHELL" != X/bin/ksh; then
643       # If we have ksh, try running configure again with it.
644       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645       export ORIGINAL_CONFIG_SHELL
646       CONFIG_SHELL=/bin/ksh
647       export CONFIG_SHELL
648       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649     else
650       # Try using printf.
651       echo='printf %s\n'
652       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # Cool, printf works
656         :
657       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658            test "X$echo_testing_string" = 'X\t' &&
659            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660            test "X$echo_testing_string" = "X$echo_test_string"; then
661         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662         export CONFIG_SHELL
663         SHELL="$CONFIG_SHELL"
664         export SHELL
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667            test "X$echo_testing_string" = 'X\t' &&
668            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669            test "X$echo_testing_string" = "X$echo_test_string"; then
670         echo="$CONFIG_SHELL $0 --fallback-echo"
671       else
672         # maybe with a smaller string...
673         prev=:
674
675         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
677           then
678             break
679           fi
680           prev="$cmd"
681         done
682
683         if test "$prev" != 'sed 50q "$0"'; then
684           echo_test_string=`eval $prev`
685           export echo_test_string
686           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687         else
688           # Oops.  We lost completely, so just stick with echo.
689           echo=echo
690         fi
691       fi
692     fi
693   fi
694 fi
695 fi
696
697 # Copy echo and quote the copy suitably for passing to libtool from
698 # the Makefile, instead of quoting the original, which is used later.
699 ECHO=$echo
700 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 fi
703
704
705
706
707 tagnames=${tagnames+${tagnames},}CXX
708
709 tagnames=${tagnames+${tagnames},}F77
710
711 test -n "$DJDIR" || exec 7<&0 </dev/null
712 exec 6>&1
713
714 # Name of the host.
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
719 #
720 # Initializations.
721 #
722 ac_default_prefix=/usr/local
723 ac_clean_files=
724 ac_config_libobj_dir=.
725 LIBOBJS=
726 cross_compiling=no
727 subdirs=
728 MFLAGS=
729 MAKEFLAGS=
730
731 # Identity of this package.
732 PACKAGE_NAME=
733 PACKAGE_TARNAME=
734 PACKAGE_VERSION=
735 PACKAGE_STRING=
736 PACKAGE_BUGREPORT=
737 PACKAGE_URL=
738
739 ac_unique_file="src/main/cpp/logger.cpp"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 #  include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #  include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
775
776 ac_subst_vars='LTLIBOBJS
777 LIBOBJS
778 LOGCHAR_IS_UNICHAR
779 LOGCHAR_IS_WCHAR
780 LOGCHAR_IS_UTF8
781 CHARSET_EBCDIC
782 CHARSET_USASCII
783 CHARSET_ISO88591
784 CHARSET_UTF8
785 CFSTRING_API
786 UNICHAR_API
787 WCHAR_T_API
788 CHAR_API
789 HAS_LIBESMTP
790 CPPFLAGS_ODBC
791 LIBS_ODBC
792 IODBC_CONFIG
793 HAS_ODBC
794 HAS_FWIDE
795 HAS_WCHAR_T
796 HAS_STD_LOCALE
797 HAS_SYSLOG
798 HAS_WCSTOMBS
799 HAS_MBSRTOWCS
800 APU_LIBS
801 APR_LIBS
802 base_dir
803 manual_dest
804 enable_latex_docs
805 enable_html_docs
806 enable_dot
807 LATEX_DOC_FALSE
808 LATEX_DOC_TRUE
809 DOC_FALSE
810 DOC_TRUE
811 DOT
812 DOXYGEN
813 LIBTOOL
814 ac_ct_F77
815 FFLAGS
816 F77
817 CXXCPP
818 am__fastdepCXX_FALSE
819 am__fastdepCXX_TRUE
820 CXXDEPMODE
821 ac_ct_CXX
822 CXXFLAGS
823 CXX
824 CPP
825 RANLIB
826 AR
827 ECHO
828 LN_S
829 EGREP
830 GREP
831 am__fastdepCC_FALSE
832 am__fastdepCC_TRUE
833 CCDEPMODE
834 AMDEPBACKSLASH
835 AMDEP_FALSE
836 AMDEP_TRUE
837 am__quote
838 am__include
839 DEPDIR
840 OBJEXT
841 EXEEXT
842 ac_ct_CC
843 CPPFLAGS
844 LDFLAGS
845 CFLAGS
846 CC
847 am__untar
848 am__tar
849 AMTAR
850 am__leading_dot
851 SET_MAKE
852 AWK
853 mkdir_p
854 INSTALL_STRIP_PROGRAM
855 STRIP
856 install_sh
857 MAKEINFO
858 AUTOHEADER
859 AUTOMAKE
860 AUTOCONF
861 ACLOCAL
862 VERSION
863 PACKAGE
864 CYGPATH_W
865 INSTALL_DATA
866 INSTALL_SCRIPT
867 INSTALL_PROGRAM
868 LT_VERSION
869 target_os
870 target_vendor
871 target_cpu
872 target
873 host_os
874 host_vendor
875 host_cpu
876 host
877 build_os
878 build_vendor
879 build_cpu
880 build
881 target_alias
882 host_alias
883 build_alias
884 LIBS
885 ECHO_T
886 ECHO_N
887 ECHO_C
888 DEFS
889 mandir
890 localedir
891 libdir
892 psdir
893 pdfdir
894 dvidir
895 htmldir
896 infodir
897 docdir
898 oldincludedir
899 includedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files=''
920 ac_user_opts='
921 enable_option_checking
922 enable_shared
923 enable_static
924 enable_fast_install
925 enable_dependency_tracking
926 with_gnu_ld
927 enable_libtool_lock
928 with_pic
929 with_tags
930 enable_doxygen
931 enable_dot
932 enable_html_docs
933 enable_latex_docs
934 with_apr
935 with_apr_util
936 with_ODBC
937 with_SMTP
938 enable_char
939 enable_wchar_t
940 enable_unichar
941 enable_cfstring
942 with_charset
943 with_logchar
944 '
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 CPP
954 CXX
955 CXXFLAGS
956 CCC
957 CXXCPP
958 F77
959 FFLAGS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1009
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1013 do
1014   # If the previous option needs an argument, assign it.
1015   if test -n "$ac_prev"; then
1016     eval $ac_prev=\$ac_option
1017     ac_prev=
1018     continue
1019   fi
1020
1021   case $ac_option in
1022   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023   *=)   ac_optarg= ;;
1024   *)    ac_optarg=yes ;;
1025   esac
1026
1027   # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029   case $ac_dashdash$ac_option in
1030   --)
1031     ac_dashdash=yes ;;
1032
1033   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034     ac_prev=bindir ;;
1035   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036     bindir=$ac_optarg ;;
1037
1038   -build | --build | --buil | --bui | --bu)
1039     ac_prev=build_alias ;;
1040   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041     build_alias=$ac_optarg ;;
1042
1043   -cache-file | --cache-file | --cache-fil | --cache-fi \
1044   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045     ac_prev=cache_file ;;
1046   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048     cache_file=$ac_optarg ;;
1049
1050   --config-cache | -C)
1051     cache_file=config.cache ;;
1052
1053   -datadir | --datadir | --datadi | --datad)
1054     ac_prev=datadir ;;
1055   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056     datadir=$ac_optarg ;;
1057
1058   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059   | --dataroo | --dataro | --datar)
1060     ac_prev=datarootdir ;;
1061   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063     datarootdir=$ac_optarg ;;
1064
1065   -disable-* | --disable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error $? "invalid feature name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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 feature 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 "enable_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109   | --exec | --exe | --ex)
1110     ac_prev=exec_prefix ;;
1111   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113   | --exec=* | --exe=* | --ex=*)
1114     exec_prefix=$ac_optarg ;;
1115
1116   -gas | --gas | --ga | --g)
1117     # Obsolete; use --with-gas.
1118     with_gas=yes ;;
1119
1120   -help | --help | --hel | --he | -h)
1121     ac_init_help=long ;;
1122   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123     ac_init_help=recursive ;;
1124   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125     ac_init_help=short ;;
1126
1127   -host | --host | --hos | --ho)
1128     ac_prev=host_alias ;;
1129   -host=* | --host=* | --hos=* | --ho=*)
1130     host_alias=$ac_optarg ;;
1131
1132   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133     ac_prev=htmldir ;;
1134   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135   | --ht=*)
1136     htmldir=$ac_optarg ;;
1137
1138   -includedir | --includedir | --includedi | --included | --include \
1139   | --includ | --inclu | --incl | --inc)
1140     ac_prev=includedir ;;
1141   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142   | --includ=* | --inclu=* | --incl=* | --inc=*)
1143     includedir=$ac_optarg ;;
1144
1145   -infodir | --infodir | --infodi | --infod | --info | --inf)
1146     ac_prev=infodir ;;
1147   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148     infodir=$ac_optarg ;;
1149
1150   -libdir | --libdir | --libdi | --libd)
1151     ac_prev=libdir ;;
1152   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153     libdir=$ac_optarg ;;
1154
1155   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156   | --libexe | --libex | --libe)
1157     ac_prev=libexecdir ;;
1158   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159   | --libexe=* | --libex=* | --libe=*)
1160     libexecdir=$ac_optarg ;;
1161
1162   -localedir | --localedir | --localedi | --localed | --locale)
1163     ac_prev=localedir ;;
1164   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165     localedir=$ac_optarg ;;
1166
1167   -localstatedir | --localstatedir | --localstatedi | --localstated \
1168   | --localstate | --localstat | --localsta | --localst | --locals)
1169     ac_prev=localstatedir ;;
1170   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172     localstatedir=$ac_optarg ;;
1173
1174   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175     ac_prev=mandir ;;
1176   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177     mandir=$ac_optarg ;;
1178
1179   -nfp | --nfp | --nf)
1180     # Obsolete; use --without-fp.
1181     with_fp=no ;;
1182
1183   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184   | --no-cr | --no-c | -n)
1185     no_create=yes ;;
1186
1187   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189     no_recursion=yes ;;
1190
1191   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193   | --oldin | --oldi | --old | --ol | --o)
1194     ac_prev=oldincludedir ;;
1195   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198     oldincludedir=$ac_optarg ;;
1199
1200   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201     ac_prev=prefix ;;
1202   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203     prefix=$ac_optarg ;;
1204
1205   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206   | --program-pre | --program-pr | --program-p)
1207     ac_prev=program_prefix ;;
1208   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210     program_prefix=$ac_optarg ;;
1211
1212   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213   | --program-suf | --program-su | --program-s)
1214     ac_prev=program_suffix ;;
1215   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217     program_suffix=$ac_optarg ;;
1218
1219   -program-transform-name | --program-transform-name \
1220   | --program-transform-nam | --program-transform-na \
1221   | --program-transform-n | --program-transform- \
1222   | --program-transform | --program-transfor \
1223   | --program-transfo | --program-transf \
1224   | --program-trans | --program-tran \
1225   | --progr-tra | --program-tr | --program-t)
1226     ac_prev=program_transform_name ;;
1227   -program-transform-name=* | --program-transform-name=* \
1228   | --program-transform-nam=* | --program-transform-na=* \
1229   | --program-transform-n=* | --program-transform-=* \
1230   | --program-transform=* | --program-transfor=* \
1231   | --program-transfo=* | --program-transf=* \
1232   | --program-trans=* | --program-tran=* \
1233   | --progr-tra=* | --program-tr=* | --program-t=*)
1234     program_transform_name=$ac_optarg ;;
1235
1236   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237     ac_prev=pdfdir ;;
1238   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239     pdfdir=$ac_optarg ;;
1240
1241   -psdir | --psdir | --psdi | --psd | --ps)
1242     ac_prev=psdir ;;
1243   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244     psdir=$ac_optarg ;;
1245
1246   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247   | -silent | --silent | --silen | --sile | --sil)
1248     silent=yes ;;
1249
1250   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251     ac_prev=sbindir ;;
1252   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253   | --sbi=* | --sb=*)
1254     sbindir=$ac_optarg ;;
1255
1256   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258   | --sharedst | --shareds | --shared | --share | --shar \
1259   | --sha | --sh)
1260     ac_prev=sharedstatedir ;;
1261   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264   | --sha=* | --sh=*)
1265     sharedstatedir=$ac_optarg ;;
1266
1267   -site | --site | --sit)
1268     ac_prev=site ;;
1269   -site=* | --site=* | --sit=*)
1270     site=$ac_optarg ;;
1271
1272   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273     ac_prev=srcdir ;;
1274   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275     srcdir=$ac_optarg ;;
1276
1277   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278   | --syscon | --sysco | --sysc | --sys | --sy)
1279     ac_prev=sysconfdir ;;
1280   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282     sysconfdir=$ac_optarg ;;
1283
1284   -target | --target | --targe | --targ | --tar | --ta | --t)
1285     ac_prev=target_alias ;;
1286   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287     target_alias=$ac_optarg ;;
1288
1289   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290     verbose=yes ;;
1291
1292   -version | --version | --versio | --versi | --vers | -V)
1293     ac_init_version=: ;;
1294
1295   -with-* | --with-*)
1296     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297     # Reject names that are not valid shell variable names.
1298     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299       as_fn_error $? "invalid package name: $ac_useropt"
1300     ac_useropt_orig=$ac_useropt
1301     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302     case $ac_user_opts in
1303       *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307          ac_unrecognized_sep=', ';;
1308     esac
1309     eval with_$ac_useropt=\$ac_optarg ;;
1310
1311   -without-* | --without-*)
1312     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313     # Reject names that are not valid shell variable names.
1314     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315       as_fn_error $? "invalid package name: $ac_useropt"
1316     ac_useropt_orig=$ac_useropt
1317     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318     case $ac_user_opts in
1319       *"
1320 "with_$ac_useropt"
1321 "*) ;;
1322       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323          ac_unrecognized_sep=', ';;
1324     esac
1325     eval with_$ac_useropt=no ;;
1326
1327   --x)
1328     # Obsolete; use --with-x.
1329     with_x=yes ;;
1330
1331   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332   | --x-incl | --x-inc | --x-in | --x-i)
1333     ac_prev=x_includes ;;
1334   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336     x_includes=$ac_optarg ;;
1337
1338   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340     ac_prev=x_libraries ;;
1341   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343     x_libraries=$ac_optarg ;;
1344
1345   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1347     ;;
1348
1349   *=*)
1350     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351     # Reject names that are not valid shell variable names.
1352     case $ac_envvar in #(
1353       '' | [0-9]* | *[!_$as_cr_alnum]* )
1354       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355     esac
1356     eval $ac_envvar=\$ac_optarg
1357     export $ac_envvar ;;
1358
1359   *)
1360     # FIXME: should be removed in autoconf 3.0.
1361     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1365     ;;
1366
1367   esac
1368 done
1369
1370 if test -n "$ac_prev"; then
1371   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372   as_fn_error $? "missing argument to $ac_option"
1373 fi
1374
1375 if test -n "$ac_unrecognized_opts"; then
1376   case $enable_option_checking in
1377     no) ;;
1378     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1379     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380   esac
1381 fi
1382
1383 # Check all directory arguments for consistency.
1384 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385                 datadir sysconfdir sharedstatedir localstatedir includedir \
1386                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387                 libdir localedir mandir
1388 do
1389   eval ac_val=\$$ac_var
1390   # Remove trailing slashes.
1391   case $ac_val in
1392     */ )
1393       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394       eval $ac_var=\$ac_val;;
1395   esac
1396   # Be sure to have absolute directory names.
1397   case $ac_val in
1398     [\\/$]* | ?:[\\/]* )  continue;;
1399     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400   esac
1401   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1402 done
1403
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1410
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413   if test "x$build_alias" = x; then
1414     cross_compiling=maybe
1415   elif test "x$build_alias" != "x$host_alias"; then
1416     cross_compiling=yes
1417   fi
1418 fi
1419
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422
1423 test "$silent" = yes && exec 6>/dev/null
1424
1425
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429   as_fn_error $? "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431   as_fn_error $? "pwd does not report name of working directory"
1432
1433
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436   ac_srcdir_defaulted=yes
1437   # Try the directory containing this script, then the parent directory.
1438   ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440          X"$as_myself" : 'X\(//\)[^/]' \| \
1441          X"$as_myself" : 'X\(//\)$' \| \
1442          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\/\)[^/].*/{
1449             s//\1/
1450             q
1451           }
1452           /^X\(\/\/\)$/{
1453             s//\1/
1454             q
1455           }
1456           /^X\(\/\).*/{
1457             s//\1/
1458             q
1459           }
1460           s/.*/./; q'`
1461   srcdir=$ac_confdir
1462   if test ! -r "$srcdir/$ac_unique_file"; then
1463     srcdir=..
1464   fi
1465 else
1466   ac_srcdir_defaulted=no
1467 fi
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471 fi
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 ac_abs_confdir=`(
1474         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475         pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478   srcdir=.
1479 fi
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488   eval ac_env_${ac_var}_value=\$${ac_var}
1489   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1492
1493 #
1494 # Report the --help message.
1495 #
1496 if test "$ac_init_help" = "long"; then
1497   # Omit some internal or obsolete options to make the list less imposing.
1498   # This message is too long to be a string in the A/UX 3.1 sh.
1499   cat <<_ACEOF
1500 \`configure' configures this package to adapt to many kinds of systems.
1501
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1503
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE.  See below for descriptions of some of the useful variables.
1506
1507 Defaults for the options are specified in brackets.
1508
1509 Configuration:
1510   -h, --help              display this help and exit
1511       --help=short        display options specific to this package
1512       --help=recursive    display the short help of all the included packages
1513   -V, --version           display version information and exit
1514   -q, --quiet, --silent   do not print \`checking ...' messages
1515       --cache-file=FILE   cache test results in FILE [disabled]
1516   -C, --config-cache      alias for \`--cache-file=config.cache'
1517   -n, --no-create         do not create output files
1518       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1519
1520 Installation directories:
1521   --prefix=PREFIX         install architecture-independent files in PREFIX
1522                           [$ac_default_prefix]
1523   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1524                           [PREFIX]
1525
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1530
1531 For better control, use the options below.
1532
1533 Fine tuning of the installation directories:
1534   --bindir=DIR            user executables [EPREFIX/bin]
1535   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1536   --libexecdir=DIR        program executables [EPREFIX/libexec]
1537   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1538   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1539   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1540   --libdir=DIR            object code libraries [EPREFIX/lib]
1541   --includedir=DIR        C header files [PREFIX/include]
1542   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1543   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1544   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1545   --infodir=DIR           info documentation [DATAROOTDIR/info]
1546   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1547   --mandir=DIR            man documentation [DATAROOTDIR/man]
1548   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1549   --htmldir=DIR           html documentation [DOCDIR]
1550   --dvidir=DIR            dvi documentation [DOCDIR]
1551   --pdfdir=DIR            pdf documentation [DOCDIR]
1552   --psdir=DIR             ps documentation [DOCDIR]
1553 _ACEOF
1554
1555   cat <<\_ACEOF
1556
1557 Program names:
1558   --program-prefix=PREFIX            prepend PREFIX to installed program names
1559   --program-suffix=SUFFIX            append SUFFIX to installed program names
1560   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1561
1562 System types:
1563   --build=BUILD     configure for building on BUILD [guessed]
1564   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1565   --target=TARGET   configure for building compilers for TARGET [HOST]
1566 _ACEOF
1567 fi
1568
1569 if test -n "$ac_init_help"; then
1570
1571   cat <<\_ACEOF
1572
1573 Optional Features:
1574   --disable-option-checking  ignore unrecognized --enable/--with options
1575   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1576   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1577   --enable-shared[=PKGS]  build shared libraries [default=yes]
1578   --enable-static[=PKGS]  build static libraries [default=yes]
1579   --enable-fast-install[=PKGS]
1580                           optimize for fast installation [default=yes]
1581   --disable-dependency-tracking  speeds up one-time build
1582   --enable-dependency-tracking   do not reject slow dependency extractors
1583   --disable-libtool-lock  avoid locking (might break parallel builds)
1584   --enable-doxygen        enable documentation generation with doxygen (auto)
1585   --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1586   --enable-html-docs      enable HTML generation with doxygen (yes)
1587   --enable-latex-docs     enable LaTeX documentation generation with doxygen
1588                           (no)
1589   --enable-char           enable char API (yes)
1590   --enable-wchar_t        enable wchar_t API (yes if wchar_t available)
1591   --enable-unichar        enable unichar API (no)
1592   --enable-cfstring       enable cfstring API (no)
1593
1594 Optional Packages:
1595   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1598   --with-pic              try to use only PIC/non-PIC objects [default=use
1599                           both]
1600   --with-tags[=TAGS]      include additional configurations [automatic]
1601   --with-apr=PATH         prefix for installed APR or the full path to
1602                              apr-config
1603   --with-apr-util=PATH    prefix for installed APU or the full path to
1604                              apu-config
1605   --with-ODBC             ODBC support. Accepted arguments : unixODBC, iODBC,
1606                           Microsoft, no (default=no)
1607   --with-SMTP             SMTP support. Accepted arguments : libesmtp, no
1608                           (default=no)
1609   --with-charset=TYPE     locale charset. Accepted TYPE variants: auto, utf-8,
1610                           iso-8859-1, usascii, ebcdic (default=auto)
1611   --with-logchar=TYPE     type for logchar. Accepted TYPE variants: utf-8,
1612                           wchar_t, unichar (default=utf-8)
1613
1614 Some influential environment variables:
1615   CC          C compiler command
1616   CFLAGS      C compiler flags
1617   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1618               nonstandard directory <lib dir>
1619   LIBS        libraries to pass to the linker, e.g. -l<library>
1620   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621               you have headers in a nonstandard directory <include dir>
1622   CPP         C preprocessor
1623   CXX         C++ compiler command
1624   CXXFLAGS    C++ compiler flags
1625   CXXCPP      C++ preprocessor
1626   F77         Fortran 77 compiler command
1627   FFLAGS      Fortran 77 compiler flags
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to the package provider.
1633 _ACEOF
1634 ac_status=$?
1635 fi
1636
1637 if test "$ac_init_help" = "recursive"; then
1638   # If there are subdirs, report their specific --help.
1639   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640     test -d "$ac_dir" ||
1641       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642       continue
1643     ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649   # A ".." for each directory in $ac_dir_suffix.
1650   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651   case $ac_top_builddir_sub in
1652   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654   esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662   .)  # We are building in place.
1663     ac_srcdir=.
1664     ac_top_srcdir=$ac_top_builddir_sub
1665     ac_abs_top_srcdir=$ac_pwd ;;
1666   [\\/]* | ?:[\\/]* )  # Absolute name.
1667     ac_srcdir=$srcdir$ac_dir_suffix;
1668     ac_top_srcdir=$srcdir
1669     ac_abs_top_srcdir=$srcdir ;;
1670   *) # Relative name.
1671     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672     ac_top_srcdir=$ac_top_build_prefix$srcdir
1673     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677     cd "$ac_dir" || { ac_status=$?; continue; }
1678     # Check for guested configure.
1679     if test -f "$ac_srcdir/configure.gnu"; then
1680       echo &&
1681       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682     elif test -f "$ac_srcdir/configure"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure" --help=recursive
1685     else
1686       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687     fi || ac_status=$?
1688     cd "$ac_pwd" || { ac_status=$?; break; }
1689   done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694   cat <<\_ACEOF
1695 configure
1696 generated by GNU Autoconf 2.69
1697
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702   exit
1703 fi
1704
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1708
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   rm -f conftest.$ac_objext
1716   if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_compile") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && {
1732          test -z "$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        } && test -s conftest.$ac_objext; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740         ac_retval=1
1741 fi
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743   as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_compile
1746
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_link ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   rm -f conftest.$ac_objext conftest$ac_exeext
1754   if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_link") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && {
1770          test -z "$ac_c_werror_flag" ||
1771          test ! -s conftest.err
1772        } && test -s conftest$ac_exeext && {
1773          test "$cross_compiling" = yes ||
1774          test -x conftest$ac_exeext
1775        }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781         ac_retval=1
1782 fi
1783   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785   # interfere with the next link command; also delete a directory that is
1786   # left behind by Apple's compiler.  We do this before executing the actions.
1787   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789   as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_link
1792
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_cpp ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { { ac_try="$ac_cpp conftest.$ac_ext"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807   ac_status=$?
1808   if test -s conftest.err; then
1809     grep -v '^ *+' conftest.err >conftest.er1
1810     cat conftest.er1 >&5
1811     mv -f conftest.er1 conftest.err
1812   fi
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; } > conftest.i && {
1815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816          test ! -s conftest.err
1817        }; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823     ac_retval=1
1824 fi
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_cpp
1829
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_header_mongrel ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   if eval \${$3+:} false; then :
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 fi
1844 eval ac_res=\$$3
1845                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 else
1848   # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 $4
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857   ac_header_compiler=yes
1858 else
1859   ac_header_compiler=no
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1864
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h.  */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873   ac_header_preproc=yes
1874 else
1875   ac_header_preproc=no
1876 fi
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1880
1881 # So?  What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883   yes:no: )
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888     ;;
1889   no:yes:* )
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900     ;;
1901 esac
1902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905   $as_echo_n "(cached) " >&6
1906 else
1907   eval "$3=\$ac_header_compiler"
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 fi
1913   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_header_mongrel
1916
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920 # that executables *can* be run.
1921 ac_fn_c_try_run ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_link") 2>&5
1932   ac_status=$?
1933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935   { { case "(($ac_try" in
1936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937   *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941   (eval "$ac_try") 2>&5
1942   ac_status=$?
1943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944   test $ac_status = 0; }; }; then :
1945   ac_retval=0
1946 else
1947   $as_echo "$as_me: program exited with status $ac_status" >&5
1948        $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951        ac_retval=$ac_status
1952 fi
1953   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955   as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_run
1958
1959 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists and can be compiled using the include files in
1962 # INCLUDES, setting the cache variable VAR accordingly.
1963 ac_fn_c_check_header_compile ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969   $as_echo_n "(cached) " >&6
1970 else
1971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 $4
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   eval "$3=yes"
1978 else
1979   eval "$3=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_header_compile
1989
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999   $as_echo_n "(cached) " >&6
2000 else
2001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2005 #define $2 innocuous_$2
2006
2007 /* System header to define __stub macros and hopefully few prototypes,
2008     which can conflict with char $2 (); below.
2009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010     <limits.h> exists even on freestanding compilers.  */
2011
2012 #ifdef __STDC__
2013 # include <limits.h>
2014 #else
2015 # include <assert.h>
2016 #endif
2017
2018 #undef $2
2019
2020 /* Override any GCC internal prototype to avoid an error.
2021    Use char because int might match the return type of a GCC
2022    builtin and then its argument prototype would still apply.  */
2023 #ifdef __cplusplus
2024 extern "C"
2025 #endif
2026 char $2 ();
2027 /* The GNU C library defines this for functions which it implements
2028     to always fail with ENOSYS.  Some functions are actually named
2029     something starting with __ and the normal name is an alias.  */
2030 #if defined __stub_$2 || defined __stub___$2
2031 choke me
2032 #endif
2033
2034 int
2035 main ()
2036 {
2037 return $2 ();
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_link "$LINENO"; then :
2043   eval "$3=yes"
2044 else
2045   eval "$3=no"
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext \
2048     conftest$ac_exeext conftest.$ac_ext
2049 fi
2050 eval ac_res=\$$3
2051                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_func
2056
2057 # ac_fn_cxx_try_compile LINENO
2058 # ----------------------------
2059 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_cxx_try_compile ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   rm -f conftest.$ac_objext
2064   if { { ac_try="$ac_compile"
2065 case "(($ac_try" in
2066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067   *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071   (eval "$ac_compile") 2>conftest.err
2072   ac_status=$?
2073   if test -s conftest.err; then
2074     grep -v '^ *+' conftest.err >conftest.er1
2075     cat conftest.er1 >&5
2076     mv -f conftest.er1 conftest.err
2077   fi
2078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079   test $ac_status = 0; } && {
2080          test -z "$ac_cxx_werror_flag" ||
2081          test ! -s conftest.err
2082        } && test -s conftest.$ac_objext; then :
2083   ac_retval=0
2084 else
2085   $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088         ac_retval=1
2089 fi
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091   as_fn_set_status $ac_retval
2092
2093 } # ac_fn_cxx_try_compile
2094
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109   ac_status=$?
2110   if test -s conftest.err; then
2111     grep -v '^ *+' conftest.err >conftest.er1
2112     cat conftest.er1 >&5
2113     mv -f conftest.er1 conftest.err
2114   fi
2115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116   test $ac_status = 0; } > conftest.i && {
2117          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118          test ! -s conftest.err
2119        }; then :
2120   ac_retval=0
2121 else
2122   $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125     ac_retval=1
2126 fi
2127   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128   as_fn_set_status $ac_retval
2129
2130 } # ac_fn_cxx_try_cpp
2131
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2136 {
2137   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138   rm -f conftest.$ac_objext conftest$ac_exeext
2139   if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146   (eval "$ac_link") 2>conftest.err
2147   ac_status=$?
2148   if test -s conftest.err; then
2149     grep -v '^ *+' conftest.err >conftest.er1
2150     cat conftest.er1 >&5
2151     mv -f conftest.er1 conftest.err
2152   fi
2153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154   test $ac_status = 0; } && {
2155          test -z "$ac_cxx_werror_flag" ||
2156          test ! -s conftest.err
2157        } && test -s conftest$ac_exeext && {
2158          test "$cross_compiling" = yes ||
2159          test -x conftest$ac_exeext
2160        }; then :
2161   ac_retval=0
2162 else
2163   $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166         ac_retval=1
2167 fi
2168   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170   # interfere with the next link command; also delete a directory that is
2171   # left behind by Apple's compiler.  We do this before executing the actions.
2172   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174   as_fn_set_status $ac_retval
2175
2176 } # ac_fn_cxx_try_link
2177
2178 # ac_fn_f77_try_compile LINENO
2179 # ----------------------------
2180 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2181 ac_fn_f77_try_compile ()
2182 {
2183   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184   rm -f conftest.$ac_objext
2185   if { { ac_try="$ac_compile"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192   (eval "$ac_compile") 2>conftest.err
2193   ac_status=$?
2194   if test -s conftest.err; then
2195     grep -v '^ *+' conftest.err >conftest.er1
2196     cat conftest.er1 >&5
2197     mv -f conftest.er1 conftest.err
2198   fi
2199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200   test $ac_status = 0; } && {
2201          test -z "$ac_f77_werror_flag" ||
2202          test ! -s conftest.err
2203        } && test -s conftest.$ac_objext; then :
2204   ac_retval=0
2205 else
2206   $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209         ac_retval=1
2210 fi
2211   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212   as_fn_set_status $ac_retval
2213
2214 } # ac_fn_f77_try_compile
2215
2216 # ac_fn_f77_try_link LINENO
2217 # -------------------------
2218 # Try to link conftest.$ac_ext, and return whether this succeeded.
2219 ac_fn_f77_try_link ()
2220 {
2221   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222   rm -f conftest.$ac_objext conftest$ac_exeext
2223   if { { ac_try="$ac_link"
2224 case "(($ac_try" in
2225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226   *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230   (eval "$ac_link") 2>conftest.err
2231   ac_status=$?
2232   if test -s conftest.err; then
2233     grep -v '^ *+' conftest.err >conftest.er1
2234     cat conftest.er1 >&5
2235     mv -f conftest.er1 conftest.err
2236   fi
2237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238   test $ac_status = 0; } && {
2239          test -z "$ac_f77_werror_flag" ||
2240          test ! -s conftest.err
2241        } && test -s conftest$ac_exeext && {
2242          test "$cross_compiling" = yes ||
2243          test -x conftest$ac_exeext
2244        }; then :
2245   ac_retval=0
2246 else
2247   $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250         ac_retval=1
2251 fi
2252   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254   # interfere with the next link command; also delete a directory that is
2255   # left behind by Apple's compiler.  We do this before executing the actions.
2256   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258   as_fn_set_status $ac_retval
2259
2260 } # ac_fn_f77_try_link
2261
2262 # ac_fn_cxx_check_func LINENO FUNC VAR
2263 # ------------------------------------
2264 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2265 ac_fn_cxx_check_func ()
2266 {
2267   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if eval \${$3+:} false; then :
2271   $as_echo_n "(cached) " >&6
2272 else
2273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2277 #define $2 innocuous_$2
2278
2279 /* System header to define __stub macros and hopefully few prototypes,
2280     which can conflict with char $2 (); below.
2281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2282     <limits.h> exists even on freestanding compilers.  */
2283
2284 #ifdef __STDC__
2285 # include <limits.h>
2286 #else
2287 # include <assert.h>
2288 #endif
2289
2290 #undef $2
2291
2292 /* Override any GCC internal prototype to avoid an error.
2293    Use char because int might match the return type of a GCC
2294    builtin and then its argument prototype would still apply.  */
2295 #ifdef __cplusplus
2296 extern "C"
2297 #endif
2298 char $2 ();
2299 /* The GNU C library defines this for functions which it implements
2300     to always fail with ENOSYS.  Some functions are actually named
2301     something starting with __ and the normal name is an alias.  */
2302 #if defined __stub_$2 || defined __stub___$2
2303 choke me
2304 #endif
2305
2306 int
2307 main ()
2308 {
2309 return $2 ();
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_cxx_try_link "$LINENO"; then :
2315   eval "$3=yes"
2316 else
2317   eval "$3=no"
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext \
2320     conftest$ac_exeext conftest.$ac_ext
2321 fi
2322 eval ac_res=\$$3
2323                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2326
2327 } # ac_fn_cxx_check_func
2328
2329 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2330 # ---------------------------------------------------------
2331 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2332 # the include files in INCLUDES and setting the cache variable VAR
2333 # accordingly.
2334 ac_fn_cxx_check_header_mongrel ()
2335 {
2336   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337   if eval \${$3+:} false; then :
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339 $as_echo_n "checking for $2... " >&6; }
2340 if eval \${$3+:} false; then :
2341   $as_echo_n "(cached) " >&6
2342 fi
2343 eval ac_res=\$$3
2344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 else
2347   # Is the header compilable?
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2349 $as_echo_n "checking $2 usability... " >&6; }
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h.  */
2352 $4
2353 #include <$2>
2354 _ACEOF
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2356   ac_header_compiler=yes
2357 else
2358   ac_header_compiler=no
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2362 $as_echo "$ac_header_compiler" >&6; }
2363
2364 # Is the header present?
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2366 $as_echo_n "checking $2 presence... " >&6; }
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h.  */
2369 #include <$2>
2370 _ACEOF
2371 if ac_fn_cxx_try_cpp "$LINENO"; then :
2372   ac_header_preproc=yes
2373 else
2374   ac_header_preproc=no
2375 fi
2376 rm -f conftest.err conftest.i conftest.$ac_ext
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2378 $as_echo "$ac_header_preproc" >&6; }
2379
2380 # So?  What about this header?
2381 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2382   yes:no: )
2383     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2384 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2386 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2387     ;;
2388   no:yes:* )
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2390 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2392 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2394 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2396 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2398 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2399     ;;
2400 esac
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402 $as_echo_n "checking for $2... " >&6; }
2403 if eval \${$3+:} false; then :
2404   $as_echo_n "(cached) " >&6
2405 else
2406   eval "$3=\$ac_header_compiler"
2407 fi
2408 eval ac_res=\$$3
2409                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 fi
2412   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413
2414 } # ac_fn_cxx_check_header_mongrel
2415 cat >config.log <<_ACEOF
2416 This file contains any messages produced by compilers while
2417 running configure, to aid debugging if configure makes a mistake.
2418
2419 It was created by $as_me, which was
2420 generated by GNU Autoconf 2.69.  Invocation command line was
2421
2422   $ $0 $@
2423
2424 _ACEOF
2425 exec 5>>config.log
2426 {
2427 cat <<_ASUNAME
2428 ## --------- ##
2429 ## Platform. ##
2430 ## --------- ##
2431
2432 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2433 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2434 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2435 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2436 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2437
2438 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2439 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2440
2441 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2442 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2443 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2444 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2445 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2446 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2447 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2448
2449 _ASUNAME
2450
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456     $as_echo "PATH: $as_dir"
2457   done
2458 IFS=$as_save_IFS
2459
2460 } >&5
2461
2462 cat >&5 <<_ACEOF
2463
2464
2465 ## ----------- ##
2466 ## Core tests. ##
2467 ## ----------- ##
2468
2469 _ACEOF
2470
2471
2472 # Keep a trace of the command line.
2473 # Strip out --no-create and --no-recursion so they do not pile up.
2474 # Strip out --silent because we don't want to record it for future runs.
2475 # Also quote any args containing shell meta-characters.
2476 # Make two passes to allow for proper duplicate-argument suppression.
2477 ac_configure_args=
2478 ac_configure_args0=
2479 ac_configure_args1=
2480 ac_must_keep_next=false
2481 for ac_pass in 1 2
2482 do
2483   for ac_arg
2484   do
2485     case $ac_arg in
2486     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2487     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2488     | -silent | --silent | --silen | --sile | --sil)
2489       continue ;;
2490     *\'*)
2491       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2492     esac
2493     case $ac_pass in
2494     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2495     2)
2496       as_fn_append ac_configure_args1 " '$ac_arg'"
2497       if test $ac_must_keep_next = true; then
2498         ac_must_keep_next=false # Got value, back to normal.
2499       else
2500         case $ac_arg in
2501           *=* | --config-cache | -C | -disable-* | --disable-* \
2502           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2503           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2504           | -with-* | --with-* | -without-* | --without-* | --x)
2505             case "$ac_configure_args0 " in
2506               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2507             esac
2508             ;;
2509           -* ) ac_must_keep_next=true ;;
2510         esac
2511       fi
2512       as_fn_append ac_configure_args " '$ac_arg'"
2513       ;;
2514     esac
2515   done
2516 done
2517 { ac_configure_args0=; unset ac_configure_args0;}
2518 { ac_configure_args1=; unset ac_configure_args1;}
2519
2520 # When interrupted or exit'd, cleanup temporary files, and complete
2521 # config.log.  We remove comments because anyway the quotes in there
2522 # would cause problems or look ugly.
2523 # WARNING: Use '\'' to represent an apostrophe within the trap.
2524 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2525 trap 'exit_status=$?
2526   # Save into config.log some information that might help in debugging.
2527   {
2528     echo
2529
2530     $as_echo "## ---------------- ##
2531 ## Cache variables. ##
2532 ## ---------------- ##"
2533     echo
2534     # The following way of writing the cache mishandles newlines in values,
2535 (
2536   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2537     eval ac_val=\$$ac_var
2538     case $ac_val in #(
2539     *${as_nl}*)
2540       case $ac_var in #(
2541       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2543       esac
2544       case $ac_var in #(
2545       _ | IFS | as_nl) ;; #(
2546       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2547       *) { eval $ac_var=; unset $ac_var;} ;;
2548       esac ;;
2549     esac
2550   done
2551   (set) 2>&1 |
2552     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2553     *${as_nl}ac_space=\ *)
2554       sed -n \
2555         "s/'\''/'\''\\\\'\'''\''/g;
2556           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2557       ;; #(
2558     *)
2559       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2560       ;;
2561     esac |
2562     sort
2563 )
2564     echo
2565
2566     $as_echo "## ----------------- ##
2567 ## Output variables. ##
2568 ## ----------------- ##"
2569     echo
2570     for ac_var in $ac_subst_vars
2571     do
2572       eval ac_val=\$$ac_var
2573       case $ac_val in
2574       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2575       esac
2576       $as_echo "$ac_var='\''$ac_val'\''"
2577     done | sort
2578     echo
2579
2580     if test -n "$ac_subst_files"; then
2581       $as_echo "## ------------------- ##
2582 ## File substitutions. ##
2583 ## ------------------- ##"
2584       echo
2585       for ac_var in $ac_subst_files
2586       do
2587         eval ac_val=\$$ac_var
2588         case $ac_val in
2589         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2590         esac
2591         $as_echo "$ac_var='\''$ac_val'\''"
2592       done | sort
2593       echo
2594     fi
2595
2596     if test -s confdefs.h; then
2597       $as_echo "## ----------- ##
2598 ## confdefs.h. ##
2599 ## ----------- ##"
2600       echo
2601       cat confdefs.h
2602       echo
2603     fi
2604     test "$ac_signal" != 0 &&
2605       $as_echo "$as_me: caught signal $ac_signal"
2606     $as_echo "$as_me: exit $exit_status"
2607   } >&5
2608   rm -f core *.core core.conftest.* &&
2609     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2610     exit $exit_status
2611 ' 0
2612 for ac_signal in 1 2 13 15; do
2613   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2614 done
2615 ac_signal=0
2616
2617 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2618 rm -f -r conftest* confdefs.h
2619
2620 $as_echo "/* confdefs.h */" > confdefs.h
2621
2622 # Predefined preprocessor variables.
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_NAME "$PACKAGE_NAME"
2626 _ACEOF
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2630 _ACEOF
2631
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2634 _ACEOF
2635
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_STRING "$PACKAGE_STRING"
2638 _ACEOF
2639
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2642 _ACEOF
2643
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_URL "$PACKAGE_URL"
2646 _ACEOF
2647
2648
2649 # Let the site file select an alternate cache file if it wants to.
2650 # Prefer an explicitly selected file to automatically selected ones.
2651 ac_site_file1=NONE
2652 ac_site_file2=NONE
2653 if test -n "$CONFIG_SITE"; then
2654   # We do not want a PATH search for config.site.
2655   case $CONFIG_SITE in #((
2656     -*)  ac_site_file1=./$CONFIG_SITE;;
2657     */*) ac_site_file1=$CONFIG_SITE;;
2658     *)   ac_site_file1=./$CONFIG_SITE;;
2659   esac
2660 elif test "x$prefix" != xNONE; then
2661   ac_site_file1=$prefix/share/config.site
2662   ac_site_file2=$prefix/etc/config.site
2663 else
2664   ac_site_file1=$ac_default_prefix/share/config.site
2665   ac_site_file2=$ac_default_prefix/etc/config.site
2666 fi
2667 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2668 do
2669   test "x$ac_site_file" = xNONE && continue
2670   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2671     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2672 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2673     sed 's/^/| /' "$ac_site_file" >&5
2674     . "$ac_site_file" \
2675       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 as_fn_error $? "failed to load site script $ac_site_file
2678 See \`config.log' for more details" "$LINENO" 5; }
2679   fi
2680 done
2681
2682 if test -r "$cache_file"; then
2683   # Some versions of bash will fail to source /dev/null (special files
2684   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2685   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2686     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2687 $as_echo "$as_me: loading cache $cache_file" >&6;}
2688     case $cache_file in
2689       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2690       *)                      . "./$cache_file";;
2691     esac
2692   fi
2693 else
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2695 $as_echo "$as_me: creating cache $cache_file" >&6;}
2696   >$cache_file
2697 fi
2698
2699 # Check that the precious variables saved in the cache have kept the same
2700 # value.
2701 ac_cache_corrupted=false
2702 for ac_var in $ac_precious_vars; do
2703   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2704   eval ac_new_set=\$ac_env_${ac_var}_set
2705   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2706   eval ac_new_val=\$ac_env_${ac_var}_value
2707   case $ac_old_set,$ac_new_set in
2708     set,)
2709       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2710 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2711       ac_cache_corrupted=: ;;
2712     ,set)
2713       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2714 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2715       ac_cache_corrupted=: ;;
2716     ,);;
2717     *)
2718       if test "x$ac_old_val" != "x$ac_new_val"; then
2719         # differences in whitespace do not lead to failure.
2720         ac_old_val_w=`echo x $ac_old_val`
2721         ac_new_val_w=`echo x $ac_new_val`
2722         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2723           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2724 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2725           ac_cache_corrupted=:
2726         else
2727           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2728 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2729           eval $ac_var=\$ac_old_val
2730         fi
2731         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2732 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2733         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2734 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2735       fi;;
2736   esac
2737   # Pass precious variables to config.status.
2738   if test "$ac_new_set" = set; then
2739     case $ac_new_val in
2740     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2741     *) ac_arg=$ac_var=$ac_new_val ;;
2742     esac
2743     case " $ac_configure_args " in
2744       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2745       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2746     esac
2747   fi
2748 done
2749 if $ac_cache_corrupted; then
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2753 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2754   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2755 fi
2756 ## -------------------- ##
2757 ## Main body of script. ##
2758 ## -------------------- ##
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766
2767
2768 # Licensed to the Apache Software Foundation (ASF) under one or more
2769 # contributor license agreements.  See the NOTICE file distributed with
2770 # this work for additional information regarding copyright ownership.
2771 # The ASF licenses this file to You under the Apache License, Version 2.0
2772 # (the "License"); you may not use this file except in compliance with
2773 # the License.  You may obtain a copy of the License at
2774 #
2775 #      http://www.apache.org/licenses/LICENSE-2.0
2776 #
2777 # Unless required by applicable law or agreed to in writing, software
2778 # distributed under the License is distributed on an "AS IS" BASIS,
2779 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2780 # See the License for the specific language governing permissions and
2781 # limitations under the License.
2782 #
2783 # autoconf 2.50 or higher to rebuild aclocal.m4, because the
2784 # AC_CREATE_PREFIX_CONFIG_H macro needs the AS_DIRNAME macro.
2785
2786
2787 ac_aux_dir=
2788 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2789   if test -f "$ac_dir/install-sh"; then
2790     ac_aux_dir=$ac_dir
2791     ac_install_sh="$ac_aux_dir/install-sh -c"
2792     break
2793   elif test -f "$ac_dir/install.sh"; then
2794     ac_aux_dir=$ac_dir
2795     ac_install_sh="$ac_aux_dir/install.sh -c"
2796     break
2797   elif test -f "$ac_dir/shtool"; then
2798     ac_aux_dir=$ac_dir
2799     ac_install_sh="$ac_aux_dir/shtool install -c"
2800     break
2801   fi
2802 done
2803 if test -z "$ac_aux_dir"; then
2804   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2805 fi
2806
2807 # These three variables are undocumented and unsupported,
2808 # and are intended to be withdrawn in a future Autoconf release.
2809 # They can cause serious problems if a builder's source tree is in a directory
2810 # whose full name contains unusual characters.
2811 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2812 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2813 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2814
2815
2816 # Make sure we can run config.sub.
2817 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2818   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2819
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2821 $as_echo_n "checking build system type... " >&6; }
2822 if ${ac_cv_build+:} false; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   ac_build_alias=$build_alias
2826 test "x$ac_build_alias" = x &&
2827   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2828 test "x$ac_build_alias" = x &&
2829   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2830 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2831   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2832
2833 fi
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2835 $as_echo "$ac_cv_build" >&6; }
2836 case $ac_cv_build in
2837 *-*-*) ;;
2838 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2839 esac
2840 build=$ac_cv_build
2841 ac_save_IFS=$IFS; IFS='-'
2842 set x $ac_cv_build
2843 shift
2844 build_cpu=$1
2845 build_vendor=$2
2846 shift; shift
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2849 build_os=$*
2850 IFS=$ac_save_IFS
2851 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2852
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2855 $as_echo_n "checking host system type... " >&6; }
2856 if ${ac_cv_host+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   if test "x$host_alias" = x; then
2860   ac_cv_host=$ac_cv_build
2861 else
2862   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2863     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2864 fi
2865
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2868 $as_echo "$ac_cv_host" >&6; }
2869 case $ac_cv_host in
2870 *-*-*) ;;
2871 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2872 esac
2873 host=$ac_cv_host
2874 ac_save_IFS=$IFS; IFS='-'
2875 set x $ac_cv_host
2876 shift
2877 host_cpu=$1
2878 host_vendor=$2
2879 shift; shift
2880 # Remember, the first character of IFS is used to create $*,
2881 # except with old shells:
2882 host_os=$*
2883 IFS=$ac_save_IFS
2884 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2885
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2888 $as_echo_n "checking target system type... " >&6; }
2889 if ${ac_cv_target+:} false; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   if test "x$target_alias" = x; then
2893   ac_cv_target=$ac_cv_host
2894 else
2895   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2896     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2897 fi
2898
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2901 $as_echo "$ac_cv_target" >&6; }
2902 case $ac_cv_target in
2903 *-*-*) ;;
2904 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2905 esac
2906 target=$ac_cv_target
2907 ac_save_IFS=$IFS; IFS='-'
2908 set x $ac_cv_target
2909 shift
2910 target_cpu=$1
2911 target_vendor=$2
2912 shift; shift
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2915 target_os=$*
2916 IFS=$ac_save_IFS
2917 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2918
2919
2920 # The aliases save the names the user supplied, while $host etc.
2921 # will get canonicalized.
2922 test -n "$target_alias" &&
2923   test "$program_prefix$program_suffix$program_transform_name" = \
2924     NONENONEs,x,x, &&
2925   program_prefix=${target_alias}-
2926
2927 #
2928 # +1 : ? : +1  == new interface that does not break old one
2929 # +1 : ? : 0   == new interface that breaks old one
2930 #  ? : ? : 0   == no new interfaces, but breaks apps
2931 #  ? :+1 : ?   == just some internal changes, nothing breaks but might work
2932 #                 better
2933 # CURRENT : REVISION : AGE
2934 LT_VERSION=10:0:0
2935
2936
2937
2938
2939
2940 am__api_version="1.9"
2941 # Find a good install program.  We prefer a C program (faster),
2942 # so one script is as good as another.  But avoid the broken or
2943 # incompatible versions:
2944 # SysV /etc/install, /usr/sbin/install
2945 # SunOS /usr/etc/install
2946 # IRIX /sbin/install
2947 # AIX /bin/install
2948 # AmigaOS /C/install, which installs bootblocks on floppy discs
2949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2952 # OS/2's system install, which has a completely different semantic
2953 # ./install, which can be erroneously created by make from ./install.sh.
2954 # Reject install programs that cannot install multiple files.
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2956 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2957 if test -z "$INSTALL"; then
2958 if ${ac_cv_path_install+:} false; then :
2959   $as_echo_n "(cached) " >&6
2960 else
2961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966     # Account for people who put trailing slashes in PATH elements.
2967 case $as_dir/ in #((
2968   ./ | .// | /[cC]/* | \
2969   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2970   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2971   /usr/ucb/* ) ;;
2972   *)
2973     # OSF1 and SCO ODT 3.0 have their own names for install.
2974     # Don't use installbsd from OSF since it installs stuff as root
2975     # by default.
2976     for ac_prog in ginstall scoinst install; do
2977       for ac_exec_ext in '' $ac_executable_extensions; do
2978         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2979           if test $ac_prog = install &&
2980             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981             # AIX install.  It has an incompatible calling convention.
2982             :
2983           elif test $ac_prog = install &&
2984             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985             # program-specific install script used by HP pwplus--don't use.
2986             :
2987           else
2988             rm -rf conftest.one conftest.two conftest.dir
2989             echo one > conftest.one
2990             echo two > conftest.two
2991             mkdir conftest.dir
2992             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2993               test -s conftest.one && test -s conftest.two &&
2994               test -s conftest.dir/conftest.one &&
2995               test -s conftest.dir/conftest.two
2996             then
2997               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2998               break 3
2999             fi
3000           fi
3001         fi
3002       done
3003     done
3004     ;;
3005 esac
3006
3007   done
3008 IFS=$as_save_IFS
3009
3010 rm -rf conftest.one conftest.two conftest.dir
3011
3012 fi
3013   if test "${ac_cv_path_install+set}" = set; then
3014     INSTALL=$ac_cv_path_install
3015   else
3016     # As a last resort, use the slow shell script.  Don't cache a
3017     # value for INSTALL within a source directory, because that will
3018     # break other packages using the cache if that directory is
3019     # removed, or if the value is a relative name.
3020     INSTALL=$ac_install_sh
3021   fi
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3024 $as_echo "$INSTALL" >&6; }
3025
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3035 $as_echo_n "checking whether build environment is sane... " >&6; }
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments.  Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046    if test "$*" = "X"; then
3047       # -L didn't work.
3048       set X `ls -t $srcdir/configure conftest.file`
3049    fi
3050    rm -f conftest.file
3051    if test "$*" != "X $srcdir/configure conftest.file" \
3052       && test "$*" != "X conftest.file $srcdir/configure"; then
3053
3054       # If neither matched, then we have a broken ls.  This can happen
3055       # if, for instance, CONFIG_SHELL is bash and it inherits a
3056       # broken ls alias from the environment.  This has actually
3057       # happened.  Such a system could not be considered "sane".
3058       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3059 alias in your environment" "$LINENO" 5
3060    fi
3061
3062    test "$2" = conftest.file
3063    )
3064 then
3065    # Ok.
3066    :
3067 else
3068    as_fn_error $? "newly created file is older than distributed files!
3069 Check your system clock" "$LINENO" 5
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3073 test "$program_prefix" != NONE &&
3074   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3075 # Use a double $ so make ignores it.
3076 test "$program_suffix" != NONE &&
3077   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3078 # Double any \ or $.
3079 # By default was `s,x,x', remove it if useless.
3080 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3081 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3082
3083 # expand $ac_aux_dir to an absolute path
3084 am_aux_dir=`cd $ac_aux_dir && pwd`
3085
3086 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3087 # Use eval to expand $SHELL
3088 if eval "$MISSING --run true"; then
3089   am_missing_run="$MISSING --run "
3090 else
3091   am_missing_run=
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3093 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3094 fi
3095
3096 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3097   # We used to keeping the `.' as first argument, in order to
3098   # allow $(mkdir_p) to be used without argument.  As in
3099   #   $(mkdir_p) $(somedir)
3100   # where $(somedir) is conditionally defined.  However this is wrong
3101   # for two reasons:
3102   #  1. if the package is installed by a user who cannot write `.'
3103   #     make install will fail,
3104   #  2. the above comment should most certainly read
3105   #     $(mkdir_p) $(DESTDIR)$(somedir)
3106   #     so it does not work when $(somedir) is undefined and
3107   #     $(DESTDIR) is not.
3108   #  To support the latter case, we have to write
3109   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3110   #  so the `.' trick is pointless.
3111   mkdir_p='mkdir -p --'
3112 else
3113   # On NextStep and OpenStep, the `mkdir' command does not
3114   # recognize any option.  It will interpret all options as
3115   # directories to create, and then abort because `.' already
3116   # exists.
3117   for d in ./-p ./--version;
3118   do
3119     test -d $d && rmdir $d
3120   done
3121   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3122   if test -f "$ac_aux_dir/mkinstalldirs"; then
3123     mkdir_p='$(mkinstalldirs)'
3124   else
3125     mkdir_p='$(install_sh) -d'
3126   fi
3127 fi
3128
3129 for ac_prog in gawk mawk nawk awk
3130 do
3131   # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_AWK+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$AWK"; then
3139   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146     for ac_exec_ext in '' $ac_executable_extensions; do
3147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148     ac_cv_prog_AWK="$ac_prog"
3149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153   done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 AWK=$ac_cv_prog_AWK
3159 if test -n "$AWK"; then
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3161 $as_echo "$AWK" >&6; }
3162 else
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168   test -n "$AWK" && break
3169 done
3170
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3172 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3173 set x ${MAKE-make}
3174 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3175 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3176   $as_echo_n "(cached) " >&6
3177 else
3178   cat >conftest.make <<\_ACEOF
3179 SHELL = /bin/sh
3180 all:
3181         @echo '@@@%%%=$(MAKE)=@@@%%%'
3182 _ACEOF
3183 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3184 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3185   *@@@%%%=?*=@@@%%%*)
3186     eval ac_cv_prog_make_${ac_make}_set=yes;;
3187   *)
3188     eval ac_cv_prog_make_${ac_make}_set=no;;
3189 esac
3190 rm -f conftest.make
3191 fi
3192 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3195   SET_MAKE=
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199   SET_MAKE="MAKE=${MAKE-make}"
3200 fi
3201
3202 rm -rf .tst 2>/dev/null
3203 mkdir .tst 2>/dev/null
3204 if test -d .tst; then
3205   am__leading_dot=.
3206 else
3207   am__leading_dot=_
3208 fi
3209 rmdir .tst 2>/dev/null
3210
3211 # test to see if srcdir already configured
3212 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3213    test -f $srcdir/config.status; then
3214   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3215 fi
3216
3217 # test whether we have cygpath
3218 if test -z "$CYGPATH_W"; then
3219   if (cygpath --version) >/dev/null 2>/dev/null; then
3220     CYGPATH_W='cygpath -w'
3221   else
3222     CYGPATH_W=echo
3223   fi
3224 fi
3225
3226
3227 # Define the identity of the package.
3228  PACKAGE=log4cxx
3229  VERSION=0.10.0
3230
3231
3232 cat >>confdefs.h <<_ACEOF
3233 #define PACKAGE "$PACKAGE"
3234 _ACEOF
3235
3236
3237 cat >>confdefs.h <<_ACEOF
3238 #define VERSION "$VERSION"
3239 _ACEOF
3240
3241 # Some tools Automake needs.
3242
3243 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3244
3245
3246 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3247
3248
3249 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3250
3251
3252 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3253
3254
3255 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3256
3257 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3258
3259 # Installed binaries are usually stripped using `strip' when the user
3260 # run `make install-strip'.  However `strip' might not be the right
3261 # tool to use in cross-compilation environments, therefore Automake
3262 # will honor the `STRIP' environment variable to overrule this program.
3263 if test "$cross_compiling" != no; then
3264   if test -n "$ac_tool_prefix"; then
3265   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}strip; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_STRIP+:} false; then :
3270   $as_echo_n "(cached) " >&6
3271 else
3272   if test -n "$STRIP"; then
3273   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278   IFS=$as_save_IFS
3279   test -z "$as_dir" && as_dir=.
3280     for ac_exec_ext in '' $ac_executable_extensions; do
3281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284     break 2
3285   fi
3286 done
3287   done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 STRIP=$ac_cv_prog_STRIP
3293 if test -n "$STRIP"; then
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3295 $as_echo "$STRIP" >&6; }
3296 else
3297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 fi
3303 if test -z "$ac_cv_prog_STRIP"; then
3304   ac_ct_STRIP=$STRIP
3305   # Extract the first word of "strip", so it can be a program name with args.
3306 set dummy strip; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3310   $as_echo_n "(cached) " >&6
3311 else
3312   if test -n "$ac_ct_STRIP"; then
3313   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318   IFS=$as_save_IFS
3319   test -z "$as_dir" && as_dir=.
3320     for ac_exec_ext in '' $ac_executable_extensions; do
3321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322     ac_cv_prog_ac_ct_STRIP="strip"
3323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324     break 2
3325   fi
3326 done
3327   done
3328 IFS=$as_save_IFS
3329
3330 fi
3331 fi
3332 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3333 if test -n "$ac_ct_STRIP"; then
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3335 $as_echo "$ac_ct_STRIP" >&6; }
3336 else
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 fi
3340
3341   if test "x$ac_ct_STRIP" = x; then
3342     STRIP=":"
3343   else
3344     case $cross_compiling:$ac_tool_warned in
3345 yes:)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348 ac_tool_warned=yes ;;
3349 esac
3350     STRIP=$ac_ct_STRIP
3351   fi
3352 else
3353   STRIP="$ac_cv_prog_STRIP"
3354 fi
3355
3356 fi
3357 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3358
3359 # We need awk for the "check" target.  The system "awk" is bad on
3360 # some platforms.
3361 # Always define AMTAR for backward compatibility.
3362
3363 AMTAR=${AMTAR-"${am_missing_run}tar"}
3364
3365 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3366
3367
3368
3369
3370
3371
3372 # Checks for programs
3373 # ----------------------------------------------------------------------------
3374
3375 # Check whether --enable-shared was given.
3376 if test "${enable_shared+set}" = set; then :
3377   enableval=$enable_shared; p=${PACKAGE-default}
3378     case $enableval in
3379     yes) enable_shared=yes ;;
3380     no) enable_shared=no ;;
3381     *)
3382       enable_shared=no
3383       # Look at the argument we got.  We use all the common list separators.
3384       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3385       for pkg in $enableval; do
3386         IFS="$lt_save_ifs"
3387         if test "X$pkg" = "X$p"; then
3388           enable_shared=yes
3389         fi
3390       done
3391       IFS="$lt_save_ifs"
3392       ;;
3393     esac
3394 else
3395   enable_shared=yes
3396 fi
3397
3398
3399 # Check whether --enable-static was given.
3400 if test "${enable_static+set}" = set; then :
3401   enableval=$enable_static; p=${PACKAGE-default}
3402     case $enableval in
3403     yes) enable_static=yes ;;
3404     no) enable_static=no ;;
3405     *)
3406      enable_static=no
3407       # Look at the argument we got.  We use all the common list separators.
3408       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3409       for pkg in $enableval; do
3410         IFS="$lt_save_ifs"
3411         if test "X$pkg" = "X$p"; then
3412           enable_static=yes
3413         fi
3414       done
3415       IFS="$lt_save_ifs"
3416       ;;
3417     esac
3418 else
3419   enable_static=yes
3420 fi
3421
3422
3423 # Check whether --enable-fast-install was given.
3424 if test "${enable_fast_install+set}" = set; then :
3425   enableval=$enable_fast_install; p=${PACKAGE-default}
3426     case $enableval in
3427     yes) enable_fast_install=yes ;;
3428     no) enable_fast_install=no ;;
3429     *)
3430       enable_fast_install=no
3431       # Look at the argument we got.  We use all the common list separators.
3432       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3433       for pkg in $enableval; do
3434         IFS="$lt_save_ifs"
3435         if test "X$pkg" = "X$p"; then
3436           enable_fast_install=yes
3437         fi
3438       done
3439       IFS="$lt_save_ifs"
3440       ;;
3441     esac
3442 else
3443   enable_fast_install=yes
3444 fi
3445
3446
3447 DEPDIR="${am__leading_dot}deps"
3448
3449 ac_config_commands="$ac_config_commands depfiles"
3450
3451
3452 am_make=${MAKE-make}
3453 cat > confinc << 'END'
3454 am__doit:
3455         @echo done
3456 .PHONY: am__doit
3457 END
3458 # If we don't find an include directive, just comment out the code.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3460 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3461 am__include="#"
3462 am__quote=
3463 _am_result=none
3464 # First try GNU make style include.
3465 echo "include confinc" > confmf
3466 # We grep out `Entering directory' and `Leaving directory'
3467 # messages which can occur if `w' ends up in MAKEFLAGS.
3468 # In particular we don't look at `^make:' because GNU make might
3469 # be invoked under some other name (usually "gmake"), in which
3470 # case it prints its new name instead of `make'.
3471 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3472    am__include=include
3473    am__quote=
3474    _am_result=GNU
3475 fi
3476 # Now try BSD make style include.
3477 if test "$am__include" = "#"; then
3478    echo '.include "confinc"' > confmf
3479    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3480       am__include=.include
3481       am__quote="\""
3482       _am_result=BSD
3483    fi
3484 fi
3485
3486
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3488 $as_echo "$_am_result" >&6; }
3489 rm -f confinc confmf
3490
3491 # Check whether --enable-dependency-tracking was given.
3492 if test "${enable_dependency_tracking+set}" = set; then :
3493   enableval=$enable_dependency_tracking;
3494 fi
3495
3496 if test "x$enable_dependency_tracking" != xno; then
3497   am_depcomp="$ac_aux_dir/depcomp"
3498   AMDEPBACKSLASH='\'
3499 fi
3500
3501
3502 if test "x$enable_dependency_tracking" != xno; then
3503   AMDEP_TRUE=
3504   AMDEP_FALSE='#'
3505 else
3506   AMDEP_TRUE='#'
3507   AMDEP_FALSE=
3508 fi
3509
3510
3511
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_CC+:} false; then :
3523   $as_echo_n "(cached) " >&6
3524 else
3525   if test -n "$CC"; then
3526   ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531   IFS=$as_save_IFS
3532   test -z "$as_dir" && as_dir=.
3533     for ac_exec_ext in '' $ac_executable_extensions; do
3534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537     break 2
3538   fi
3539 done
3540   done
3541 IFS=$as_save_IFS
3542
3543 fi
3544 fi
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554
3555 fi
3556 if test -z "$ac_cv_prog_CC"; then
3557   ac_ct_CC=$CC
3558   # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3563   $as_echo_n "(cached) " >&6
3564 else
3565   if test -n "$ac_ct_CC"; then
3566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3570 do
3571   IFS=$as_save_IFS
3572   test -z "$as_dir" && as_dir=.
3573     for ac_exec_ext in '' $ac_executable_extensions; do
3574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575     ac_cv_prog_ac_ct_CC="gcc"
3576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577     break 2
3578   fi
3579 done
3580   done
3581 IFS=$as_save_IFS
3582
3583 fi
3584 fi
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3589 else
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 fi
3593
3594   if test "x$ac_ct_CC" = x; then
3595     CC=""
3596   else
3597     case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603     CC=$ac_ct_CC
3604   fi
3605 else
3606   CC="$ac_cv_prog_CC"
3607 fi
3608
3609 if test -z "$CC"; then
3610           if test -n "$ac_tool_prefix"; then
3611     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   if test -n "$CC"; then
3619   ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628     ac_cv_prog_CC="${ac_tool_prefix}cc"
3629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633   done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648   fi
3649 fi
3650 if test -z "$CC"; then
3651   # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test -n "$CC"; then
3659   ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661   ac_prog_rejected=no
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667     for ac_exec_ext in '' $ac_executable_extensions; do
3668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670        ac_prog_rejected=yes
3671        continue
3672      fi
3673     ac_cv_prog_CC="cc"
3674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678   done
3679 IFS=$as_save_IFS
3680
3681 if test $ac_prog_rejected = yes; then
3682   # We found a bogon in the path, so make sure we never use it.
3683   set dummy $ac_cv_prog_CC
3684   shift
3685   if test $# != 0; then
3686     # We chose a different compiler from the bogus one.
3687     # However, it has the same basename, so the bogon will be chosen
3688     # first if we set CC to just the basename; use the full file name.
3689     shift
3690     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3691   fi
3692 fi
3693 fi
3694 fi
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705 fi
3706 if test -z "$CC"; then
3707   if test -n "$ac_tool_prefix"; then
3708   for ac_prog in cl.exe
3709   do
3710     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if ${ac_cv_prog_CC+:} false; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   if test -n "$CC"; then
3718   ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725     for ac_exec_ext in '' $ac_executable_extensions; do
3726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732   done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3744 fi
3745
3746
3747     test -n "$CC" && break
3748   done
3749 fi
3750 if test -z "$CC"; then
3751   ac_ct_CC=$CC
3752   for ac_prog in cl.exe
3753 do
3754   # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   if test -n "$ac_ct_CC"; then
3762   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769     for ac_exec_ext in '' $ac_executable_extensions; do
3770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771     ac_cv_prog_ac_ct_CC="$ac_prog"
3772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773     break 2
3774   fi
3775 done
3776   done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3785 else
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791   test -n "$ac_ct_CC" && break
3792 done
3793
3794   if test "x$ac_ct_CC" = x; then
3795     CC=""
3796   else
3797     case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803     CC=$ac_ct_CC
3804   fi
3805 fi
3806
3807 fi
3808
3809
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details" "$LINENO" 5; }
3814
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820   { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828   ac_status=$?
3829   if test -s conftest.err; then
3830     sed '10a\
3831 ... rest of stderr output deleted ...
3832          10q' conftest.err >conftest.er1
3833     cat conftest.er1 >&5
3834   fi
3835   rm -f conftest.er1 conftest.err
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }
3838 done
3839
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3842
3843 int
3844 main ()
3845 {
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3855 # of exeext.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3857 $as_echo_n "checking whether the C compiler works... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3859
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3862
3863 ac_rmfiles=
3864 for ac_file in $ac_files
3865 do
3866   case $ac_file in
3867     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869   esac
3870 done
3871 rm -f $ac_rmfiles
3872
3873 if { { ac_try="$ac_link_default"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880   (eval "$ac_link_default") 2>&5
3881   ac_status=$?
3882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883   test $ac_status = 0; }; then :
3884   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3888 # Autoconf.
3889 for ac_file in $ac_files ''
3890 do
3891   test -f "$ac_file" || continue
3892   case $ac_file in
3893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3894         ;;
3895     [ab].out )
3896         # We found the default executable, but exeext='' is most
3897         # certainly right.
3898         break;;
3899     *.* )
3900         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3901         then :; else
3902            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3903         fi
3904         # We set ac_cv_exeext here because the later test for it is not
3905         # safe: cross compilers may not add the suffix if given an `-o'
3906         # argument, so we may need to know it at that point already.
3907         # Even if this section looks crufty: it has the advantage of
3908         # actually working.
3909         break;;
3910     * )
3911         break;;
3912   esac
3913 done
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3915
3916 else
3917   ac_file=''
3918 fi
3919 if test -z "$ac_file"; then :
3920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error 77 "C compiler cannot create executables
3928 See \`config.log' for more details" "$LINENO" 5; }
3929 else
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931 $as_echo "yes" >&6; }
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3934 $as_echo_n "checking for C compiler default output file name... " >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3936 $as_echo "$ac_file" >&6; }
3937 ac_exeext=$ac_cv_exeext
3938
3939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3940 ac_clean_files=$ac_clean_files_save
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3942 $as_echo_n "checking for suffix of executables... " >&6; }
3943 if { { ac_try="$ac_link"
3944 case "(($ac_try" in
3945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946   *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950   (eval "$ac_link") 2>&5
3951   ac_status=$?
3952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953   test $ac_status = 0; }; then :
3954   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3955 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3956 # work properly (i.e., refer to `conftest.exe'), while it won't with
3957 # `rm'.
3958 for ac_file in conftest.exe conftest conftest.*; do
3959   test -f "$ac_file" || continue
3960   case $ac_file in
3961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3963           break;;
3964     * ) break;;
3965   esac
3966 done
3967 else
3968   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3971 See \`config.log' for more details" "$LINENO" 5; }
3972 fi
3973 rm -f conftest conftest$ac_cv_exeext
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3975 $as_echo "$ac_cv_exeext" >&6; }
3976
3977 rm -f conftest.$ac_ext
3978 EXEEXT=$ac_cv_exeext
3979 ac_exeext=$EXEEXT
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h.  */
3982 #include <stdio.h>
3983 int
3984 main ()
3985 {
3986 FILE *f = fopen ("conftest.out", "w");
3987  return ferror (f) || fclose (f) != 0;
3988
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 ac_clean_files="$ac_clean_files conftest.out"
3994 # Check that the compiler produces executables we can run.  If not, either
3995 # the compiler is broken, or we cross compile.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997 $as_echo_n "checking whether we are cross compiling... " >&6; }
3998 if test "$cross_compiling" != yes; then
3999   { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006   (eval "$ac_link") 2>&5
4007   ac_status=$?
4008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009   test $ac_status = 0; }
4010   if { ac_try='./conftest$ac_cv_exeext'
4011   { { case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017   (eval "$ac_try") 2>&5
4018   ac_status=$?
4019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020   test $ac_status = 0; }; }; then
4021     cross_compiling=no
4022   else
4023     if test "$cross_compiling" = maybe; then
4024         cross_compiling=yes
4025     else
4026         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error $? "cannot run C compiled programs.
4029 If you meant to cross compile, use \`--host'.
4030 See \`config.log' for more details" "$LINENO" 5; }
4031     fi
4032   fi
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035 $as_echo "$cross_compiling" >&6; }
4036
4037 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4038 ac_clean_files=$ac_clean_files_save
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4040 $as_echo_n "checking for suffix of object files... " >&6; }
4041 if ${ac_cv_objext+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046
4047 int
4048 main ()
4049 {
4050
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 rm -f conftest.o conftest.obj
4056 if { { ac_try="$ac_compile"
4057 case "(($ac_try" in
4058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059   *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063   (eval "$ac_compile") 2>&5
4064   ac_status=$?
4065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066   test $ac_status = 0; }; then :
4067   for ac_file in conftest.o conftest.obj conftest.*; do
4068   test -f "$ac_file" || continue;
4069   case $ac_file in
4070     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4071     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4072        break;;
4073   esac
4074 done
4075 else
4076   $as_echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error $? "cannot compute suffix of object files: cannot compile
4082 See \`config.log' for more details" "$LINENO" 5; }
4083 fi
4084 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4087 $as_echo "$ac_cv_objext" >&6; }
4088 OBJEXT=$ac_cv_objext
4089 ac_objext=$OBJEXT
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4091 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4092 if ${ac_cv_c_compiler_gnu+:} false; then :
4093   $as_echo_n "(cached) " >&6
4094 else
4095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h.  */
4097
4098 int
4099 main ()
4100 {
4101 #ifndef __GNUC__
4102        choke me
4103 #endif
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110   ac_compiler_gnu=yes
4111 else
4112   ac_compiler_gnu=no
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4119 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4120 if test $ac_compiler_gnu = yes; then
4121   GCC=yes
4122 else
4123   GCC=
4124 fi
4125 ac_test_CFLAGS=${CFLAGS+set}
4126 ac_save_CFLAGS=$CFLAGS
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4128 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4129 if ${ac_cv_prog_cc_g+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   ac_save_c_werror_flag=$ac_c_werror_flag
4133    ac_c_werror_flag=yes
4134    ac_cv_prog_cc_g=no
4135    CFLAGS="-g"
4136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148   ac_cv_prog_cc_g=yes
4149 else
4150   CFLAGS=""
4151       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h.  */
4153
4154 int
4155 main ()
4156 {
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163
4164 else
4165   ac_c_werror_flag=$ac_save_c_werror_flag
4166          CFLAGS="-g"
4167          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h.  */
4169
4170 int
4171 main ()
4172 {
4173
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179   ac_cv_prog_cc_g=yes
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186    ac_c_werror_flag=$ac_save_c_werror_flag
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4189 $as_echo "$ac_cv_prog_cc_g" >&6; }
4190 if test "$ac_test_CFLAGS" = set; then
4191   CFLAGS=$ac_save_CFLAGS
4192 elif test $ac_cv_prog_cc_g = yes; then
4193   if test "$GCC" = yes; then
4194     CFLAGS="-g -O2"
4195   else
4196     CFLAGS="-g"
4197   fi
4198 else
4199   if test "$GCC" = yes; then
4200     CFLAGS="-O2"
4201   else
4202     CFLAGS=
4203   fi
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4206 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4207 if ${ac_cv_prog_cc_c89+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   ac_cv_prog_cc_c89=no
4211 ac_save_CC=$CC
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h.  */
4214 #include <stdarg.h>
4215 #include <stdio.h>
4216 struct stat;
4217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4218 struct buf { int x; };
4219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4220 static char *e (p, i)
4221      char **p;
4222      int i;
4223 {
4224   return p[i];
4225 }
4226 static char *f (char * (*g) (char **, int), char **p, ...)
4227 {
4228   char *s;
4229   va_list v;
4230   va_start (v,p);
4231   s = g (p, va_arg (v,int));
4232   va_end (v);
4233   return s;
4234 }
4235
4236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4237    function prototypes and stuff, but not '\xHH' hex character constants.
4238    These don't provoke an error unfortunately, instead are silently treated
4239    as 'x'.  The following induces an error, until -std is added to get
4240    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4241    array size at least.  It's necessary to write '\x00'==0 to get something
4242    that's true only with -std.  */
4243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4244
4245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4246    inside strings and character constants.  */
4247 #define FOO(x) 'x'
4248 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4249
4250 int test (int i, double x);
4251 struct s1 {int (*f) (int a);};
4252 struct s2 {int (*f) (double a);};
4253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4254 int argc;
4255 char **argv;
4256 int
4257 main ()
4258 {
4259 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4265         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4266 do
4267   CC="$ac_save_CC $ac_arg"
4268   if ac_fn_c_try_compile "$LINENO"; then :
4269   ac_cv_prog_cc_c89=$ac_arg
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext
4272   test "x$ac_cv_prog_cc_c89" != "xno" && break
4273 done
4274 rm -f conftest.$ac_ext
4275 CC=$ac_save_CC
4276
4277 fi
4278 # AC_CACHE_VAL
4279 case "x$ac_cv_prog_cc_c89" in
4280   x)
4281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4282 $as_echo "none needed" >&6; } ;;
4283   xno)
4284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4285 $as_echo "unsupported" >&6; } ;;
4286   *)
4287     CC="$CC $ac_cv_prog_cc_c89"
4288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4290 esac
4291 if test "x$ac_cv_prog_cc_c89" != xno; then :
4292
4293 fi
4294
4295 ac_ext=c
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300
4301 depcc="$CC"   am_compiler_list=
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304 $as_echo_n "checking dependency style of $depcc... " >&6; }
4305 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4309   # We make a subdir and do the tests there.  Otherwise we can end up
4310   # making bogus files that we don't know about and never remove.  For
4311   # instance it was reported that on HP-UX the gcc test will end up
4312   # making a dummy file named `D' -- because `-MD' means `put the output
4313   # in D'.
4314   mkdir conftest.dir
4315   # Copy depcomp to subdir because otherwise we won't find it if we're
4316   # using a relative directory.
4317   cp "$am_depcomp" conftest.dir
4318   cd conftest.dir
4319   # We will build objects and dependencies in a subdirectory because
4320   # it helps to detect inapplicable dependency modes.  For instance
4321   # both Tru64's cc and ICC support -MD to output dependencies as a
4322   # side effect of compilation, but ICC will put the dependencies in
4323   # the current directory while Tru64 will put them in the object
4324   # directory.
4325   mkdir sub
4326
4327   am_cv_CC_dependencies_compiler_type=none
4328   if test "$am_compiler_list" = ""; then
4329      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4330   fi
4331   for depmode in $am_compiler_list; do
4332     # Setup a source with many dependencies, because some compilers
4333     # like to wrap large dependency lists on column 80 (with \), and
4334     # we should not choose a depcomp mode which is confused by this.
4335     #
4336     # We need to recreate these files for each test, as the compiler may
4337     # overwrite some of them when testing with obscure command lines.
4338     # This happens at least with the AIX C compiler.
4339     : > sub/conftest.c
4340     for i in 1 2 3 4 5 6; do
4341       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4342       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4343       # Solaris 8's {/usr,}/bin/sh.
4344       touch sub/conftst$i.h
4345     done
4346     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4347
4348     case $depmode in
4349     nosideeffect)
4350       # after this tag, mechanisms are not by side-effect, so they'll
4351       # only be used when explicitly requested
4352       if test "x$enable_dependency_tracking" = xyes; then
4353         continue
4354       else
4355         break
4356       fi
4357       ;;
4358     none) break ;;
4359     esac
4360     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4361     # mode.  It turns out that the SunPro C++ compiler does not properly
4362     # handle `-M -o', and we need to detect this.
4363     if depmode=$depmode \
4364        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4365        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4366        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4367          >/dev/null 2>conftest.err &&
4368        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4370        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371       # icc doesn't choke on unknown options, it will just issue warnings
4372       # or remarks (even with -Werror).  So we grep stderr for any message
4373       # that says an option was ignored or not supported.
4374       # When given -MP, icc 7.0 and 7.1 complain thusly:
4375       #   icc: Command line warning: ignoring option '-M'; no argument required
4376       # The diagnosis changed in icc 8.0:
4377       #   icc: Command line remark: option '-MP' not supported
4378       if (grep 'ignoring option' conftest.err ||
4379           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380         am_cv_CC_dependencies_compiler_type=$depmode
4381         break
4382       fi
4383     fi
4384   done
4385
4386   cd ..
4387   rm -rf conftest.dir
4388 else
4389   am_cv_CC_dependencies_compiler_type=none
4390 fi
4391
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4396
4397
4398
4399 if
4400   test "x$enable_dependency_tracking" != xno \
4401   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4402   am__fastdepCC_TRUE=
4403   am__fastdepCC_FALSE='#'
4404 else
4405   am__fastdepCC_TRUE='#'
4406   am__fastdepCC_FALSE=
4407 fi
4408
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4411 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4412 if ${lt_cv_path_SED+:} false; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415   # Loop through the user's path and test for sed and gsed.
4416 # Then use that list of sed's as ones to test for truncation.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for lt_ac_prog in sed gsed; do
4423     for ac_exec_ext in '' $ac_executable_extensions; do
4424       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4425         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4426       fi
4427     done
4428   done
4429 done
4430 lt_ac_max=0
4431 lt_ac_count=0
4432 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4433 # along with /bin/sed that truncates output.
4434 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4435   test ! -f $lt_ac_sed && continue
4436   cat /dev/null > conftest.in
4437   lt_ac_count=0
4438   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4439   # Check for GNU sed and select it if it is found.
4440   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4441     lt_cv_path_SED=$lt_ac_sed
4442     break
4443   fi
4444   while true; do
4445     cat conftest.in conftest.in >conftest.tmp
4446     mv conftest.tmp conftest.in
4447     cp conftest.in conftest.nl
4448     echo >>conftest.nl
4449     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4450     cmp -s conftest.out conftest.nl || break
4451     # 10000 chars as input seems more than enough
4452     test $lt_ac_count -gt 10 && break
4453     lt_ac_count=`expr $lt_ac_count + 1`
4454     if test $lt_ac_count -gt $lt_ac_max; then
4455       lt_ac_max=$lt_ac_count
4456       lt_cv_path_SED=$lt_ac_sed
4457     fi
4458   done
4459 done
4460
4461 fi
4462
4463 SED=$lt_cv_path_SED
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4465 $as_echo "$SED" >&6; }
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4469 if ${ac_cv_path_GREP+:} false; then :
4470   $as_echo_n "(cached) " >&6
4471 else
4472   if test -z "$GREP"; then
4473   ac_path_GREP_found=false
4474   # Loop through the user's path and test for each of PROGNAME-LIST
4475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480     for ac_prog in grep ggrep; do
4481     for ac_exec_ext in '' $ac_executable_extensions; do
4482       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4483       as_fn_executable_p "$ac_path_GREP" || continue
4484 # Check for GNU ac_path_GREP and select it if it is found.
4485   # Check for GNU $ac_path_GREP
4486 case `"$ac_path_GREP" --version 2>&1` in
4487 *GNU*)
4488   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4489 *)
4490   ac_count=0
4491   $as_echo_n 0123456789 >"conftest.in"
4492   while :
4493   do
4494     cat "conftest.in" "conftest.in" >"conftest.tmp"
4495     mv "conftest.tmp" "conftest.in"
4496     cp "conftest.in" "conftest.nl"
4497     $as_echo 'GREP' >> "conftest.nl"
4498     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500     as_fn_arith $ac_count + 1 && ac_count=$as_val
4501     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4502       # Best one so far, save it but keep looking for a better one
4503       ac_cv_path_GREP="$ac_path_GREP"
4504       ac_path_GREP_max=$ac_count
4505     fi
4506     # 10*(2^10) chars as input seems more than enough
4507     test $ac_count -gt 10 && break
4508   done
4509   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510 esac
4511
4512       $ac_path_GREP_found && break 3
4513     done
4514   done
4515   done
4516 IFS=$as_save_IFS
4517   if test -z "$ac_cv_path_GREP"; then
4518     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4519   fi
4520 else
4521   ac_cv_path_GREP=$GREP
4522 fi
4523
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4526 $as_echo "$ac_cv_path_GREP" >&6; }
4527  GREP="$ac_cv_path_GREP"
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4531 $as_echo_n "checking for egrep... " >&6; }
4532 if ${ac_cv_path_EGREP+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4536    then ac_cv_path_EGREP="$GREP -E"
4537    else
4538      if test -z "$EGREP"; then
4539   ac_path_EGREP_found=false
4540   # Loop through the user's path and test for each of PROGNAME-LIST
4541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4543 do
4544   IFS=$as_save_IFS
4545   test -z "$as_dir" && as_dir=.
4546     for ac_prog in egrep; do
4547     for ac_exec_ext in '' $ac_executable_extensions; do
4548       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4549       as_fn_executable_p "$ac_path_EGREP" || continue
4550 # Check for GNU ac_path_EGREP and select it if it is found.
4551   # Check for GNU $ac_path_EGREP
4552 case `"$ac_path_EGREP" --version 2>&1` in
4553 *GNU*)
4554   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4555 *)
4556   ac_count=0
4557   $as_echo_n 0123456789 >"conftest.in"
4558   while :
4559   do
4560     cat "conftest.in" "conftest.in" >"conftest.tmp"
4561     mv "conftest.tmp" "conftest.in"
4562     cp "conftest.in" "conftest.nl"
4563     $as_echo 'EGREP' >> "conftest.nl"
4564     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4565     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4566     as_fn_arith $ac_count + 1 && ac_count=$as_val
4567     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4568       # Best one so far, save it but keep looking for a better one
4569       ac_cv_path_EGREP="$ac_path_EGREP"
4570       ac_path_EGREP_max=$ac_count
4571     fi
4572     # 10*(2^10) chars as input seems more than enough
4573     test $ac_count -gt 10 && break
4574   done
4575   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4576 esac
4577
4578       $ac_path_EGREP_found && break 3
4579     done
4580   done
4581   done
4582 IFS=$as_save_IFS
4583   if test -z "$ac_cv_path_EGREP"; then
4584     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4585   fi
4586 else
4587   ac_cv_path_EGREP=$EGREP
4588 fi
4589
4590    fi
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4593 $as_echo "$ac_cv_path_EGREP" >&6; }
4594  EGREP="$ac_cv_path_EGREP"
4595
4596
4597
4598 # Check whether --with-gnu-ld was given.
4599 if test "${with_gnu_ld+set}" = set; then :
4600   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4601 else
4602   with_gnu_ld=no
4603 fi
4604
4605 ac_prog=ld
4606 if test "$GCC" = yes; then
4607   # Check if gcc -print-prog-name=ld gives a path.
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4609 $as_echo_n "checking for ld used by $CC... " >&6; }
4610   case $host in
4611   *-*-mingw*)
4612     # gcc leaves a trailing carriage return which upsets mingw
4613     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4614   *)
4615     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4616   esac
4617   case $ac_prog in
4618     # Accept absolute paths.
4619     [\\/]* | ?:[\\/]*)
4620       re_direlt='/[^/][^/]*/\.\./'
4621       # Canonicalize the pathname of ld
4622       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4623       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4624         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4625       done
4626       test -z "$LD" && LD="$ac_prog"
4627       ;;
4628   "")
4629     # If it fails, then pretend we aren't using GCC.
4630     ac_prog=ld
4631     ;;
4632   *)
4633     # If it is relative, then search for the first ld in PATH.
4634     with_gnu_ld=unknown
4635     ;;
4636   esac
4637 elif test "$with_gnu_ld" = yes; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4639 $as_echo_n "checking for GNU ld... " >&6; }
4640 else
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4642 $as_echo_n "checking for non-GNU ld... " >&6; }
4643 fi
4644 if ${lt_cv_path_LD+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   if test -z "$LD"; then
4648   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4649   for ac_dir in $PATH; do
4650     IFS="$lt_save_ifs"
4651     test -z "$ac_dir" && ac_dir=.
4652     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4653       lt_cv_path_LD="$ac_dir/$ac_prog"
4654       # Check to see if the program is GNU ld.  I'd rather use --version,
4655       # but apparently some variants of GNU ld only accept -v.
4656       # Break only if it was the GNU/non-GNU ld that we prefer.
4657       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4658       *GNU* | *'with BFD'*)
4659         test "$with_gnu_ld" != no && break
4660         ;;
4661       *)
4662         test "$with_gnu_ld" != yes && break
4663         ;;
4664       esac
4665     fi
4666   done
4667   IFS="$lt_save_ifs"
4668 else
4669   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4670 fi
4671 fi
4672
4673 LD="$lt_cv_path_LD"
4674 if test -n "$LD"; then
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4676 $as_echo "$LD" >&6; }
4677 else
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4683 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4684 if ${lt_cv_prog_gnu_ld+:} false; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4688 case `$LD -v 2>&1 </dev/null` in
4689 *GNU* | *'with BFD'*)
4690   lt_cv_prog_gnu_ld=yes
4691   ;;
4692 *)
4693   lt_cv_prog_gnu_ld=no
4694   ;;
4695 esac
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4698 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4699 with_gnu_ld=$lt_cv_prog_gnu_ld
4700
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4704 if ${lt_cv_ld_reload_flag+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   lt_cv_ld_reload_flag='-r'
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4711 reload_flag=$lt_cv_ld_reload_flag
4712 case $reload_flag in
4713 "" | " "*) ;;
4714 *) reload_flag=" $reload_flag" ;;
4715 esac
4716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4717 case $host_os in
4718   darwin*)
4719     if test "$GCC" = yes; then
4720       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4721     else
4722       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4723     fi
4724     ;;
4725 esac
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4728 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4729 if ${lt_cv_path_NM+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   if test -n "$NM"; then
4733   # Let the user override the test.
4734   lt_cv_path_NM="$NM"
4735 else
4736   lt_nm_to_check="${ac_tool_prefix}nm"
4737   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4738     lt_nm_to_check="$lt_nm_to_check nm"
4739   fi
4740   for lt_tmp_nm in $lt_nm_to_check; do
4741     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4742     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4743       IFS="$lt_save_ifs"
4744       test -z "$ac_dir" && ac_dir=.
4745       tmp_nm="$ac_dir/$lt_tmp_nm"
4746       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4747         # Check to see if the nm accepts a BSD-compat flag.
4748         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4749         #   nm: unknown option "B" ignored
4750         # Tru64's nm complains that /dev/null is an invalid object file
4751         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4752         */dev/null* | *'Invalid file or object type'*)
4753           lt_cv_path_NM="$tmp_nm -B"
4754           break
4755           ;;
4756         *)
4757           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4758           */dev/null*)
4759             lt_cv_path_NM="$tmp_nm -p"
4760             break
4761             ;;
4762           *)
4763             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4764             continue # so that we can try to find one that supports BSD flags
4765             ;;
4766           esac
4767           ;;
4768         esac
4769       fi
4770     done
4771     IFS="$lt_save_ifs"
4772   done
4773   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4774 fi
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4777 $as_echo "$lt_cv_path_NM" >&6; }
4778 NM="$lt_cv_path_NM"
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4781 $as_echo_n "checking whether ln -s works... " >&6; }
4782 LN_S=$as_ln_s
4783 if test "$LN_S" = "ln -s"; then
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4785 $as_echo "yes" >&6; }
4786 else
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4788 $as_echo "no, using $LN_S" >&6; }
4789 fi
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4792 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4793 if ${lt_cv_deplibs_check_method+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   lt_cv_file_magic_cmd='$MAGIC_CMD'
4797 lt_cv_file_magic_test_file=
4798 lt_cv_deplibs_check_method='unknown'
4799 # Need to set the preceding variable on all platforms that support
4800 # interlibrary dependencies.
4801 # 'none' -- dependencies not supported.
4802 # `unknown' -- same as none, but documents that we really don't know.
4803 # 'pass_all' -- all dependencies passed with no checks.
4804 # 'test_compile' -- check by making test program.
4805 # 'file_magic [[regex]]' -- check by looking for files in library path
4806 # which responds to the $file_magic_cmd with a given extended regex.
4807 # If you have `file' or equivalent on your system and you're not sure
4808 # whether `pass_all' will *always* work, you probably want this one.
4809
4810 case $host_os in
4811 aix4* | aix5*)
4812   lt_cv_deplibs_check_method=pass_all
4813   ;;
4814
4815 beos*)
4816   lt_cv_deplibs_check_method=pass_all
4817   ;;
4818
4819 bsdi[45]*)
4820   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821   lt_cv_file_magic_cmd='/usr/bin/file -L'
4822   lt_cv_file_magic_test_file=/shlib/libc.so
4823   ;;
4824
4825 cygwin*)
4826   # func_win32_libid is a shell function defined in ltmain.sh
4827   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828   lt_cv_file_magic_cmd='func_win32_libid'
4829   ;;
4830
4831 mingw* | pw32*)
4832   # Base MSYS/MinGW do not provide the 'file' command needed by
4833   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4834   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4835   lt_cv_file_magic_cmd='$OBJDUMP -f'
4836   ;;
4837
4838 darwin* | rhapsody*)
4839   lt_cv_deplibs_check_method=pass_all
4840   ;;
4841
4842 freebsd* | kfreebsd*-gnu | dragonfly*)
4843   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4844     case $host_cpu in
4845     i*86 )
4846       # Not sure whether the presence of OpenBSD here was a mistake.
4847       # Let's accept both of them until this is cleared up.
4848       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4849       lt_cv_file_magic_cmd=/usr/bin/file
4850       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4851       ;;
4852     esac
4853   else
4854     lt_cv_deplibs_check_method=pass_all
4855   fi
4856   ;;
4857
4858 gnu*)
4859   lt_cv_deplibs_check_method=pass_all
4860   ;;
4861
4862 hpux10.20* | hpux11*)
4863   lt_cv_file_magic_cmd=/usr/bin/file
4864   case $host_cpu in
4865   ia64*)
4866     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4868     ;;
4869   hppa*64*)
4870     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4871     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4872     ;;
4873   *)
4874     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4875     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4876     ;;
4877   esac
4878   ;;
4879
4880 interix3*)
4881   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4882   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4883   ;;
4884
4885 irix5* | irix6* | nonstopux*)
4886   case $LD in
4887   *-32|*"-32 ") libmagic=32-bit;;
4888   *-n32|*"-n32 ") libmagic=N32;;
4889   *-64|*"-64 ") libmagic=64-bit;;
4890   *) libmagic=never-match;;
4891   esac
4892   lt_cv_deplibs_check_method=pass_all
4893   ;;
4894
4895 # This must be Linux ELF.
4896 linux*)
4897   lt_cv_deplibs_check_method=pass_all
4898   ;;
4899
4900 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4901   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4902     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4903   else
4904     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4905   fi
4906   ;;
4907
4908 newos6*)
4909   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4910   lt_cv_file_magic_cmd=/usr/bin/file
4911   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4912   ;;
4913
4914 nto-qnx*)
4915   lt_cv_deplibs_check_method=unknown
4916   ;;
4917
4918 openbsd*)
4919   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4920     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4921   else
4922     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923   fi
4924   ;;
4925
4926 osf3* | osf4* | osf5*)
4927   lt_cv_deplibs_check_method=pass_all
4928   ;;
4929
4930 solaris*)
4931   lt_cv_deplibs_check_method=pass_all
4932   ;;
4933
4934 sysv4 | sysv4.3*)
4935   case $host_vendor in
4936   motorola)
4937     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]'
4938     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4939     ;;
4940   ncr)
4941     lt_cv_deplibs_check_method=pass_all
4942     ;;
4943   sequent)
4944     lt_cv_file_magic_cmd='/bin/file'
4945     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4946     ;;
4947   sni)
4948     lt_cv_file_magic_cmd='/bin/file'
4949     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950     lt_cv_file_magic_test_file=/lib/libc.so
4951     ;;
4952   siemens)
4953     lt_cv_deplibs_check_method=pass_all
4954     ;;
4955   pc)
4956     lt_cv_deplibs_check_method=pass_all
4957     ;;
4958   esac
4959   ;;
4960
4961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4962   lt_cv_deplibs_check_method=pass_all
4963   ;;
4964 esac
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4968 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4969 file_magic_cmd=$lt_cv_file_magic_cmd
4970 deplibs_check_method=$lt_cv_deplibs_check_method
4971 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4972
4973
4974
4975
4976 # If no C compiler was specified, use CC.
4977 LTCC=${LTCC-"$CC"}
4978
4979 # If no C compiler flags were specified, use CFLAGS.
4980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4981
4982 # Allow CC to be a program name with arguments.
4983 compiler=$CC
4984
4985
4986 # Check whether --enable-libtool-lock was given.
4987 if test "${enable_libtool_lock+set}" = set; then :
4988   enableval=$enable_libtool_lock;
4989 fi
4990
4991 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4992
4993 # Some flags need to be propagated to the compiler or linker for good
4994 # libtool support.
4995 case $host in
4996 ia64-*-hpux*)
4997   # Find out which ABI we are using.
4998   echo 'int i;' > conftest.$ac_ext
4999   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5000   (eval $ac_compile) 2>&5
5001   ac_status=$?
5002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003   test $ac_status = 0; }; then
5004     case `/usr/bin/file conftest.$ac_objext` in
5005     *ELF-32*)
5006       HPUX_IA64_MODE="32"
5007       ;;
5008     *ELF-64*)
5009       HPUX_IA64_MODE="64"
5010       ;;
5011     esac
5012   fi
5013   rm -rf conftest*
5014   ;;
5015 *-*-irix6*)
5016   # Find out which ABI we are using.
5017   echo '#line 5017 "configure"' > conftest.$ac_ext
5018   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5019   (eval $ac_compile) 2>&5
5020   ac_status=$?
5021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5022   test $ac_status = 0; }; then
5023    if test "$lt_cv_prog_gnu_ld" = yes; then
5024     case `/usr/bin/file conftest.$ac_objext` in
5025     *32-bit*)
5026       LD="${LD-ld} -melf32bsmip"
5027       ;;
5028     *N32*)
5029       LD="${LD-ld} -melf32bmipn32"
5030       ;;
5031     *64-bit*)
5032       LD="${LD-ld} -melf64bmip"
5033       ;;
5034     esac
5035    else
5036     case `/usr/bin/file conftest.$ac_objext` in
5037     *32-bit*)
5038       LD="${LD-ld} -32"
5039       ;;
5040     *N32*)
5041       LD="${LD-ld} -n32"
5042       ;;
5043     *64-bit*)
5044       LD="${LD-ld} -64"
5045       ;;
5046     esac
5047    fi
5048   fi
5049   rm -rf conftest*
5050   ;;
5051
5052 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5053   # Find out which ABI we are using.
5054   echo 'int i;' > conftest.$ac_ext
5055   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5056   (eval $ac_compile) 2>&5
5057   ac_status=$?
5058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059   test $ac_status = 0; }; then
5060     case `/usr/bin/file conftest.o` in
5061     *32-bit*)
5062       case $host in
5063         x86_64-*linux*)
5064           LD="${LD-ld} -m elf_i386"
5065           ;;
5066         ppc64-*linux*|powerpc64-*linux*)
5067           LD="${LD-ld} -m elf32ppclinux"
5068           ;;
5069         s390x-*linux*)
5070           LD="${LD-ld} -m elf_s390"
5071           ;;
5072         sparc64-*linux*)
5073           LD="${LD-ld} -m elf32_sparc"
5074           ;;
5075       esac
5076       ;;
5077     *64-bit*)
5078       case $host in
5079         x86_64-*linux*)
5080           LD="${LD-ld} -m elf_x86_64"
5081           ;;
5082         ppc*-*linux*|powerpc*-*linux*)
5083           LD="${LD-ld} -m elf64ppc"
5084           ;;
5085         s390*-*linux*)
5086           LD="${LD-ld} -m elf64_s390"
5087           ;;
5088         sparc*-*linux*)
5089           LD="${LD-ld} -m elf64_sparc"
5090           ;;
5091       esac
5092       ;;
5093     esac
5094   fi
5095   rm -rf conftest*
5096   ;;
5097
5098 *-*-sco3.2v5*)
5099   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5100   SAVE_CFLAGS="$CFLAGS"
5101   CFLAGS="$CFLAGS -belf"
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5103 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5104 if ${lt_cv_cc_needs_belf+:} false; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107   ac_ext=c
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112
5113      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h.  */
5115
5116 int
5117 main ()
5118 {
5119
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 if ac_fn_c_try_link "$LINENO"; then :
5125   lt_cv_cc_needs_belf=yes
5126 else
5127   lt_cv_cc_needs_belf=no
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext \
5130     conftest$ac_exeext conftest.$ac_ext
5131      ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5139 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5140   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5141     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5142     CFLAGS="$SAVE_CFLAGS"
5143   fi
5144   ;;
5145 sparc*-*solaris*)
5146   # Find out which ABI we are using.
5147   echo 'int i;' > conftest.$ac_ext
5148   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5149   (eval $ac_compile) 2>&5
5150   ac_status=$?
5151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152   test $ac_status = 0; }; then
5153     case `/usr/bin/file conftest.o` in
5154     *64-bit*)
5155       case $lt_cv_prog_gnu_ld in
5156       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5157       *)    LD="${LD-ld} -64" ;;
5158       esac
5159       ;;
5160     esac
5161   fi
5162   rm -rf conftest*
5163   ;;
5164
5165
5166 esac
5167
5168 need_locks="$enable_libtool_lock"
5169
5170
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5178 # On Suns, sometimes $CPP names a directory.
5179 if test -n "$CPP" && test -d "$CPP"; then
5180   CPP=
5181 fi
5182 if test -z "$CPP"; then
5183   if ${ac_cv_prog_CPP+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186       # Double quotes because CPP needs to be expanded
5187     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188     do
5189       ac_preproc_ok=false
5190 for ac_c_preproc_warn_flag in '' yes
5191 do
5192   # Use a header file that comes with gcc, so configuring glibc
5193   # with a fresh cross-compiler works.
5194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195   # <limits.h> exists even on freestanding compilers.
5196   # On the NeXT, cc -E runs the code through the compiler's parser,
5197   # not just through cpp. "Syntax error" is here to catch this case.
5198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205                      Syntax error
5206 _ACEOF
5207 if ac_fn_c_try_cpp "$LINENO"; then :
5208
5209 else
5210   # Broken: fails on valid input.
5211 continue
5212 fi
5213 rm -f conftest.err conftest.i conftest.$ac_ext
5214
5215   # OK, works on sane cases.  Now check whether nonexistent headers
5216   # can be detected and how.
5217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h.  */
5219 #include <ac_nonexistent.h>
5220 _ACEOF
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222   # Broken: success on invalid input.
5223 continue
5224 else
5225   # Passes both tests.
5226 ac_preproc_ok=:
5227 break
5228 fi
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5230
5231 done
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.i conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then :
5235   break
5236 fi
5237
5238     done
5239     ac_cv_prog_CPP=$CPP
5240
5241 fi
5242   CPP=$ac_cv_prog_CPP
5243 else
5244   ac_cv_prog_CPP=$CPP
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247 $as_echo "$CPP" >&6; }
5248 ac_preproc_ok=false
5249 for ac_c_preproc_warn_flag in '' yes
5250 do
5251   # Use a header file that comes with gcc, so configuring glibc
5252   # with a fresh cross-compiler works.
5253   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254   # <limits.h> exists even on freestanding compilers.
5255   # On the NeXT, cc -E runs the code through the compiler's parser,
5256   # not just through cpp. "Syntax error" is here to catch this case.
5257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h.  */
5259 #ifdef __STDC__
5260 # include <limits.h>
5261 #else
5262 # include <assert.h>
5263 #endif
5264                      Syntax error
5265 _ACEOF
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5267
5268 else
5269   # Broken: fails on valid input.
5270 continue
5271 fi
5272 rm -f conftest.err conftest.i conftest.$ac_ext
5273
5274   # OK, works on sane cases.  Now check whether nonexistent headers
5275   # can be detected and how.
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include <ac_nonexistent.h>
5279 _ACEOF
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5281   # Broken: success on invalid input.
5282 continue
5283 else
5284   # Passes both tests.
5285 ac_preproc_ok=:
5286 break
5287 fi
5288 rm -f conftest.err conftest.i conftest.$ac_ext
5289
5290 done
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.i conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then :
5294
5295 else
5296   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5299 See \`config.log' for more details" "$LINENO" 5; }
5300 fi
5301
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5310 $as_echo_n "checking for ANSI C header files... " >&6; }
5311 if ${ac_cv_header_stdc+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h.  */
5316 #include <stdlib.h>
5317 #include <stdarg.h>
5318 #include <string.h>
5319 #include <float.h>
5320
5321 int
5322 main ()
5323 {
5324
5325   ;
5326   return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330   ac_cv_header_stdc=yes
5331 else
5332   ac_cv_header_stdc=no
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335
5336 if test $ac_cv_header_stdc = yes; then
5337   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h.  */
5340 #include <string.h>
5341
5342 _ACEOF
5343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344   $EGREP "memchr" >/dev/null 2>&1; then :
5345
5346 else
5347   ac_cv_header_stdc=no
5348 fi
5349 rm -f conftest*
5350
5351 fi
5352
5353 if test $ac_cv_header_stdc = yes; then
5354   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h.  */
5357 #include <stdlib.h>
5358
5359 _ACEOF
5360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5361   $EGREP "free" >/dev/null 2>&1; then :
5362
5363 else
5364   ac_cv_header_stdc=no
5365 fi
5366 rm -f conftest*
5367
5368 fi
5369
5370 if test $ac_cv_header_stdc = yes; then
5371   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5372   if test "$cross_compiling" = yes; then :
5373   :
5374 else
5375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h.  */
5377 #include <ctype.h>
5378 #include <stdlib.h>
5379 #if ((' ' & 0x0FF) == 0x020)
5380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5382 #else
5383 # define ISLOWER(c) \
5384                    (('a' <= (c) && (c) <= 'i') \
5385                      || ('j' <= (c) && (c) <= 'r') \
5386                      || ('s' <= (c) && (c) <= 'z'))
5387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5388 #endif
5389
5390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5391 int
5392 main ()
5393 {
5394   int i;
5395   for (i = 0; i < 256; i++)
5396     if (XOR (islower (i), ISLOWER (i))
5397         || toupper (i) != TOUPPER (i))
5398       return 2;
5399   return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_run "$LINENO"; then :
5403
5404 else
5405   ac_cv_header_stdc=no
5406 fi
5407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5408   conftest.$ac_objext conftest.beam conftest.$ac_ext
5409 fi
5410
5411 fi
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5414 $as_echo "$ac_cv_header_stdc" >&6; }
5415 if test $ac_cv_header_stdc = yes; then
5416
5417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5418
5419 fi
5420
5421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5423                   inttypes.h stdint.h unistd.h
5424 do :
5425   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5427 "
5428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5429   cat >>confdefs.h <<_ACEOF
5430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431 _ACEOF
5432
5433 fi
5434
5435 done
5436
5437
5438 for ac_header in dlfcn.h
5439 do :
5440   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5441 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5442   cat >>confdefs.h <<_ACEOF
5443 #define HAVE_DLFCN_H 1
5444 _ACEOF
5445
5446 fi
5447
5448 done
5449
5450 ac_ext=cpp
5451 ac_cpp='$CXXCPP $CPPFLAGS'
5452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5455 if test -z "$CXX"; then
5456   if test -n "$CCC"; then
5457     CXX=$CCC
5458   else
5459     if test -n "$ac_tool_prefix"; then
5460   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5461   do
5462     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_CXX+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   if test -n "$CXX"; then
5470   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477     for ac_exec_ext in '' $ac_executable_extensions; do
5478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484   done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 CXX=$ac_cv_prog_CXX
5490 if test -n "$CXX"; then
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5492 $as_echo "$CXX" >&6; }
5493 else
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498
5499     test -n "$CXX" && break
5500   done
5501 fi
5502 if test -z "$CXX"; then
5503   ac_ct_CXX=$CXX
5504   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5505 do
5506   # Extract the first word of "$ac_prog", so it can be a program name with args.
5507 set dummy $ac_prog; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$ac_ct_CXX"; then
5514   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521     for ac_exec_ext in '' $ac_executable_extensions; do
5522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523     ac_cv_prog_ac_ct_CXX="$ac_prog"
5524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528   done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5534 if test -n "$ac_ct_CXX"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5536 $as_echo "$ac_ct_CXX" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543   test -n "$ac_ct_CXX" && break
5544 done
5545
5546   if test "x$ac_ct_CXX" = x; then
5547     CXX="g++"
5548   else
5549     case $cross_compiling:$ac_tool_warned in
5550 yes:)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned=yes ;;
5554 esac
5555     CXX=$ac_ct_CXX
5556   fi
5557 fi
5558
5559   fi
5560 fi
5561 # Provide some information about the compiler.
5562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5563 set X $ac_compile
5564 ac_compiler=$2
5565 for ac_option in --version -v -V -qversion; do
5566   { { ac_try="$ac_compiler $ac_option >&5"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5574   ac_status=$?
5575   if test -s conftest.err; then
5576     sed '10a\
5577 ... rest of stderr output deleted ...
5578          10q' conftest.err >conftest.er1
5579     cat conftest.er1 >&5
5580   fi
5581   rm -f conftest.er1 conftest.err
5582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5583   test $ac_status = 0; }
5584 done
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5587 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5588 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h.  */
5593
5594 int
5595 main ()
5596 {
5597 #ifndef __GNUC__
5598        choke me
5599 #endif
5600
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 if ac_fn_cxx_try_compile "$LINENO"; then :
5606   ac_compiler_gnu=yes
5607 else
5608   ac_compiler_gnu=no
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5612
5613 fi
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5615 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5616 if test $ac_compiler_gnu = yes; then
5617   GXX=yes
5618 else
5619   GXX=
5620 fi
5621 ac_test_CXXFLAGS=${CXXFLAGS+set}
5622 ac_save_CXXFLAGS=$CXXFLAGS
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5624 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5625 if ${ac_cv_prog_cxx_g+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5629    ac_cxx_werror_flag=yes
5630    ac_cv_prog_cxx_g=no
5631    CXXFLAGS="-g"
5632    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634
5635 int
5636 main ()
5637 {
5638
5639   ;
5640   return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_cxx_try_compile "$LINENO"; then :
5644   ac_cv_prog_cxx_g=yes
5645 else
5646   CXXFLAGS=""
5647       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h.  */
5649
5650 int
5651 main ()
5652 {
5653
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_cxx_try_compile "$LINENO"; then :
5659
5660 else
5661   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5662          CXXFLAGS="-g"
5663          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h.  */
5665
5666 int
5667 main ()
5668 {
5669
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_cxx_try_compile "$LINENO"; then :
5675   ac_cv_prog_cxx_g=yes
5676 fi
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5685 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5686 if test "$ac_test_CXXFLAGS" = set; then
5687   CXXFLAGS=$ac_save_CXXFLAGS
5688 elif test $ac_cv_prog_cxx_g = yes; then
5689   if test "$GXX" = yes; then
5690     CXXFLAGS="-g -O2"
5691   else
5692     CXXFLAGS="-g"
5693   fi
5694 else
5695   if test "$GXX" = yes; then
5696     CXXFLAGS="-O2"
5697   else
5698     CXXFLAGS=
5699   fi
5700 fi
5701 ac_ext=cpp
5702 ac_cpp='$CXXCPP $CPPFLAGS'
5703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5706
5707 depcc="$CXX"  am_compiler_list=
5708
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5710 $as_echo_n "checking dependency style of $depcc... " >&6; }
5711 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5715   # We make a subdir and do the tests there.  Otherwise we can end up
5716   # making bogus files that we don't know about and never remove.  For
5717   # instance it was reported that on HP-UX the gcc test will end up
5718   # making a dummy file named `D' -- because `-MD' means `put the output
5719   # in D'.
5720   mkdir conftest.dir
5721   # Copy depcomp to subdir because otherwise we won't find it if we're
5722   # using a relative directory.
5723   cp "$am_depcomp" conftest.dir
5724   cd conftest.dir
5725   # We will build objects and dependencies in a subdirectory because
5726   # it helps to detect inapplicable dependency modes.  For instance
5727   # both Tru64's cc and ICC support -MD to output dependencies as a
5728   # side effect of compilation, but ICC will put the dependencies in
5729   # the current directory while Tru64 will put them in the object
5730   # directory.
5731   mkdir sub
5732
5733   am_cv_CXX_dependencies_compiler_type=none
5734   if test "$am_compiler_list" = ""; then
5735      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5736   fi
5737   for depmode in $am_compiler_list; do
5738     # Setup a source with many dependencies, because some compilers
5739     # like to wrap large dependency lists on column 80 (with \), and
5740     # we should not choose a depcomp mode which is confused by this.
5741     #
5742     # We need to recreate these files for each test, as the compiler may
5743     # overwrite some of them when testing with obscure command lines.
5744     # This happens at least with the AIX C compiler.
5745     : > sub/conftest.c
5746     for i in 1 2 3 4 5 6; do
5747       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5748       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5749       # Solaris 8's {/usr,}/bin/sh.
5750       touch sub/conftst$i.h
5751     done
5752     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5753
5754     case $depmode in
5755     nosideeffect)
5756       # after this tag, mechanisms are not by side-effect, so they'll
5757       # only be used when explicitly requested
5758       if test "x$enable_dependency_tracking" = xyes; then
5759         continue
5760       else
5761         break
5762       fi
5763       ;;
5764     none) break ;;
5765     esac
5766     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5767     # mode.  It turns out that the SunPro C++ compiler does not properly
5768     # handle `-M -o', and we need to detect this.
5769     if depmode=$depmode \
5770        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5771        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5772        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5773          >/dev/null 2>conftest.err &&
5774        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5775        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5776        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5777       # icc doesn't choke on unknown options, it will just issue warnings
5778       # or remarks (even with -Werror).  So we grep stderr for any message
5779       # that says an option was ignored or not supported.
5780       # When given -MP, icc 7.0 and 7.1 complain thusly:
5781       #   icc: Command line warning: ignoring option '-M'; no argument required
5782       # The diagnosis changed in icc 8.0:
5783       #   icc: Command line remark: option '-MP' not supported
5784       if (grep 'ignoring option' conftest.err ||
5785           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5786         am_cv_CXX_dependencies_compiler_type=$depmode
5787         break
5788       fi
5789     fi
5790   done
5791
5792   cd ..
5793   rm -rf conftest.dir
5794 else
5795   am_cv_CXX_dependencies_compiler_type=none
5796 fi
5797
5798 fi
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5800 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5801 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5802
5803
5804
5805 if
5806   test "x$enable_dependency_tracking" != xno \
5807   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5808   am__fastdepCXX_TRUE=
5809   am__fastdepCXX_FALSE='#'
5810 else
5811   am__fastdepCXX_TRUE='#'
5812   am__fastdepCXX_FALSE=
5813 fi
5814
5815
5816
5817
5818 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5819     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5820     (test "X$CXX" != "Xg++"))) ; then
5821   ac_ext=cpp
5822 ac_cpp='$CXXCPP $CPPFLAGS'
5823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5827 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5828 if test -z "$CXXCPP"; then
5829   if ${ac_cv_prog_CXXCPP+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832       # Double quotes because CXXCPP needs to be expanded
5833     for CXXCPP in "$CXX -E" "/lib/cpp"
5834     do
5835       ac_preproc_ok=false
5836 for ac_cxx_preproc_warn_flag in '' yes
5837 do
5838   # Use a header file that comes with gcc, so configuring glibc
5839   # with a fresh cross-compiler works.
5840   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841   # <limits.h> exists even on freestanding compilers.
5842   # On the NeXT, cc -E runs the code through the compiler's parser,
5843   # not just through cpp. "Syntax error" is here to catch this case.
5844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h.  */
5846 #ifdef __STDC__
5847 # include <limits.h>
5848 #else
5849 # include <assert.h>
5850 #endif
5851                      Syntax error
5852 _ACEOF
5853 if ac_fn_cxx_try_cpp "$LINENO"; then :
5854
5855 else
5856   # Broken: fails on valid input.
5857 continue
5858 fi
5859 rm -f conftest.err conftest.i conftest.$ac_ext
5860
5861   # OK, works on sane cases.  Now check whether nonexistent headers
5862   # can be detected and how.
5863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865 #include <ac_nonexistent.h>
5866 _ACEOF
5867 if ac_fn_cxx_try_cpp "$LINENO"; then :
5868   # Broken: success on invalid input.
5869 continue
5870 else
5871   # Passes both tests.
5872 ac_preproc_ok=:
5873 break
5874 fi
5875 rm -f conftest.err conftest.i conftest.$ac_ext
5876
5877 done
5878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879 rm -f conftest.i conftest.err conftest.$ac_ext
5880 if $ac_preproc_ok; then :
5881   break
5882 fi
5883
5884     done
5885     ac_cv_prog_CXXCPP=$CXXCPP
5886
5887 fi
5888   CXXCPP=$ac_cv_prog_CXXCPP
5889 else
5890   ac_cv_prog_CXXCPP=$CXXCPP
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5893 $as_echo "$CXXCPP" >&6; }
5894 ac_preproc_ok=false
5895 for ac_cxx_preproc_warn_flag in '' yes
5896 do
5897   # Use a header file that comes with gcc, so configuring glibc
5898   # with a fresh cross-compiler works.
5899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900   # <limits.h> exists even on freestanding compilers.
5901   # On the NeXT, cc -E runs the code through the compiler's parser,
5902   # not just through cpp. "Syntax error" is here to catch this case.
5903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h.  */
5905 #ifdef __STDC__
5906 # include <limits.h>
5907 #else
5908 # include <assert.h>
5909 #endif
5910                      Syntax error
5911 _ACEOF
5912 if ac_fn_cxx_try_cpp "$LINENO"; then :
5913
5914 else
5915   # Broken: fails on valid input.
5916 continue
5917 fi
5918 rm -f conftest.err conftest.i conftest.$ac_ext
5919
5920   # OK, works on sane cases.  Now check whether nonexistent headers
5921   # can be detected and how.
5922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h.  */
5924 #include <ac_nonexistent.h>
5925 _ACEOF
5926 if ac_fn_cxx_try_cpp "$LINENO"; then :
5927   # Broken: success on invalid input.
5928 continue
5929 else
5930   # Passes both tests.
5931 ac_preproc_ok=:
5932 break
5933 fi
5934 rm -f conftest.err conftest.i conftest.$ac_ext
5935
5936 done
5937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5938 rm -f conftest.i conftest.err conftest.$ac_ext
5939 if $ac_preproc_ok; then :
5940
5941 else
5942   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5944 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5945 See \`config.log' for more details" "$LINENO" 5; }
5946 fi
5947
5948 ac_ext=cpp
5949 ac_cpp='$CXXCPP $CPPFLAGS'
5950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5953
5954 fi
5955
5956
5957 ac_ext=f
5958 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5959 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5961 if test -n "$ac_tool_prefix"; then
5962   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5963   do
5964     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_F77+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   if test -n "$F77"; then
5972   ac_cv_prog_F77="$F77" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979     for ac_exec_ext in '' $ac_executable_extensions; do
5980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986   done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 F77=$ac_cv_prog_F77
5992 if test -n "$F77"; then
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5994 $as_echo "$F77" >&6; }
5995 else
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999
6000
6001     test -n "$F77" && break
6002   done
6003 fi
6004 if test -z "$F77"; then
6005   ac_ct_F77=$F77
6006   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6007 do
6008   # Extract the first word of "$ac_prog", so it can be a program name with args.
6009 set dummy $ac_prog; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   if test -n "$ac_ct_F77"; then
6016   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023     for ac_exec_ext in '' $ac_executable_extensions; do
6024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025     ac_cv_prog_ac_ct_F77="$ac_prog"
6026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030   done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6036 if test -n "$ac_ct_F77"; then
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6038 $as_echo "$ac_ct_F77" >&6; }
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044
6045   test -n "$ac_ct_F77" && break
6046 done
6047
6048   if test "x$ac_ct_F77" = x; then
6049     F77=""
6050   else
6051     case $cross_compiling:$ac_tool_warned in
6052 yes:)
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055 ac_tool_warned=yes ;;
6056 esac
6057     F77=$ac_ct_F77
6058   fi
6059 fi
6060
6061
6062 # Provide some information about the compiler.
6063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6064 set X $ac_compile
6065 ac_compiler=$2
6066 for ac_option in --version -v -V -qversion; do
6067   { { ac_try="$ac_compiler $ac_option >&5"
6068 case "(($ac_try" in
6069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070   *) ac_try_echo=$ac_try;;
6071 esac
6072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6073 $as_echo "$ac_try_echo"; } >&5
6074   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6075   ac_status=$?
6076   if test -s conftest.err; then
6077     sed '10a\
6078 ... rest of stderr output deleted ...
6079          10q' conftest.err >conftest.er1
6080     cat conftest.er1 >&5
6081   fi
6082   rm -f conftest.er1 conftest.err
6083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084   test $ac_status = 0; }
6085 done
6086 rm -f a.out
6087
6088 # If we don't use `.F' as extension, the preprocessor is not run on the
6089 # input file.  (Note that this only needs to work for GNU compilers.)
6090 ac_save_ext=$ac_ext
6091 ac_ext=F
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6093 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6094 if ${ac_cv_f77_compiler_gnu+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   cat > conftest.$ac_ext <<_ACEOF
6098       program main
6099 #ifndef __GNUC__
6100        choke me
6101 #endif
6102
6103       end
6104 _ACEOF
6105 if ac_fn_f77_try_compile "$LINENO"; then :
6106   ac_compiler_gnu=yes
6107 else
6108   ac_compiler_gnu=no
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6112
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6115 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6116 ac_ext=$ac_save_ext
6117 ac_test_FFLAGS=${FFLAGS+set}
6118 ac_save_FFLAGS=$FFLAGS
6119 FFLAGS=
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6121 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6122 if ${ac_cv_prog_f77_g+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   FFLAGS=-g
6126 cat > conftest.$ac_ext <<_ACEOF
6127       program main
6128
6129       end
6130 _ACEOF
6131 if ac_fn_f77_try_compile "$LINENO"; then :
6132   ac_cv_prog_f77_g=yes
6133 else
6134   ac_cv_prog_f77_g=no
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137
6138 fi
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6140 $as_echo "$ac_cv_prog_f77_g" >&6; }
6141 if test "$ac_test_FFLAGS" = set; then
6142   FFLAGS=$ac_save_FFLAGS
6143 elif test $ac_cv_prog_f77_g = yes; then
6144   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6145     FFLAGS="-g -O2"
6146   else
6147     FFLAGS="-g"
6148   fi
6149 else
6150   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6151     FFLAGS="-O2"
6152   else
6153     FFLAGS=
6154   fi
6155 fi
6156
6157 if test $ac_compiler_gnu = yes; then
6158   G77=yes
6159 else
6160   G77=
6161 fi
6162 ac_ext=c
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167
6168
6169
6170 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6171
6172 # find the maximum length of command line arguments
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6174 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6175 if ${lt_cv_sys_max_cmd_len+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178     i=0
6179   teststring="ABCD"
6180
6181   case $build_os in
6182   msdosdjgpp*)
6183     # On DJGPP, this test can blow up pretty badly due to problems in libc
6184     # (any single argument exceeding 2000 bytes causes a buffer overrun
6185     # during glob expansion).  Even if it were fixed, the result of this
6186     # check would be larger than it should be.
6187     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6188     ;;
6189
6190   gnu*)
6191     # Under GNU Hurd, this test is not required because there is
6192     # no limit to the length of command line arguments.
6193     # Libtool will interpret -1 as no limit whatsoever
6194     lt_cv_sys_max_cmd_len=-1;
6195     ;;
6196
6197   cygwin* | mingw*)
6198     # On Win9x/ME, this test blows up -- it succeeds, but takes
6199     # about 5 minutes as the teststring grows exponentially.
6200     # Worse, since 9x/ME are not pre-emptively multitasking,
6201     # you end up with a "frozen" computer, even though with patience
6202     # the test eventually succeeds (with a max line length of 256k).
6203     # Instead, let's just punt: use the minimum linelength reported by
6204     # all of the supported platforms: 8192 (on NT/2K/XP).
6205     lt_cv_sys_max_cmd_len=8192;
6206     ;;
6207
6208   amigaos*)
6209     # On AmigaOS with pdksh, this test takes hours, literally.
6210     # So we just punt and use a minimum line length of 8192.
6211     lt_cv_sys_max_cmd_len=8192;
6212     ;;
6213
6214   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6215     # This has been around since 386BSD, at least.  Likely further.
6216     if test -x /sbin/sysctl; then
6217       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6218     elif test -x /usr/sbin/sysctl; then
6219       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6220     else
6221       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6222     fi
6223     # And add a safety zone
6224     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6225     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6226     ;;
6227
6228   interix*)
6229     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6230     lt_cv_sys_max_cmd_len=196608
6231     ;;
6232
6233   osf*)
6234     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6235     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6236     # nice to cause kernel panics so lets avoid the loop below.
6237     # First set a reasonable default.
6238     lt_cv_sys_max_cmd_len=16384
6239     #
6240     if test -x /sbin/sysconfig; then
6241       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6242         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6243       esac
6244     fi
6245     ;;
6246   sco3.2v5*)
6247     lt_cv_sys_max_cmd_len=102400
6248     ;;
6249   sysv5* | sco5v6* | sysv4.2uw2*)
6250     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6251     if test -n "$kargmax"; then
6252       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6253     else
6254       lt_cv_sys_max_cmd_len=32768
6255     fi
6256     ;;
6257   *)
6258     # If test is not a shell built-in, we'll probably end up computing a
6259     # maximum length that is only half of the actual maximum length, but
6260     # we can't tell.
6261     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6262     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6263                = "XX$teststring") >/dev/null 2>&1 &&
6264             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6265             lt_cv_sys_max_cmd_len=$new_result &&
6266             test $i != 17 # 1/2 MB should be enough
6267     do
6268       i=`expr $i + 1`
6269       teststring=$teststring$teststring
6270     done
6271     teststring=
6272     # Add a significant safety factor because C++ compilers can tack on massive
6273     # amounts of additional arguments before passing them to the linker.
6274     # It appears as though 1/2 is a usable value.
6275     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6276     ;;
6277   esac
6278
6279 fi
6280
6281 if test -n $lt_cv_sys_max_cmd_len ; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286 $as_echo "none" >&6; }
6287 fi
6288
6289
6290
6291
6292 # Check for command to grab the raw symbol name followed by C symbol from nm.
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6294 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6295 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298
6299 # These are sane defaults that work on at least a few old systems.
6300 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6301
6302 # Character class describing NM global symbol codes.
6303 symcode='[BCDEGRST]'
6304
6305 # Regexp to match symbols that can be accessed directly from C.
6306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6307
6308 # Transform an extracted symbol line into a proper C declaration
6309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6310
6311 # Transform an extracted symbol line into symbol name and symbol address
6312 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6313
6314 # Define system-specific variables.
6315 case $host_os in
6316 aix*)
6317   symcode='[BCDT]'
6318   ;;
6319 cygwin* | mingw* | pw32*)
6320   symcode='[ABCDGISTW]'
6321   ;;
6322 hpux*) # Its linker distinguishes data from code symbols
6323   if test "$host_cpu" = ia64; then
6324     symcode='[ABCDEGRST]'
6325   fi
6326   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6327   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6328   ;;
6329 linux*)
6330   if test "$host_cpu" = ia64; then
6331     symcode='[ABCDGIRSTW]'
6332     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6333     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6334   fi
6335   ;;
6336 irix* | nonstopux*)
6337   symcode='[BCDEGRST]'
6338   ;;
6339 osf*)
6340   symcode='[BCDEGQRST]'
6341   ;;
6342 solaris*)
6343   symcode='[BDRT]'
6344   ;;
6345 sco3.2v5*)
6346   symcode='[DT]'
6347   ;;
6348 sysv4.2uw2*)
6349   symcode='[DT]'
6350   ;;
6351 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6352   symcode='[ABDT]'
6353   ;;
6354 sysv4)
6355   symcode='[DFNSTU]'
6356   ;;
6357 esac
6358
6359 # Handle CRLF in mingw tool chain
6360 opt_cr=
6361 case $build_os in
6362 mingw*)
6363   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6364   ;;
6365 esac
6366
6367 # If we're using GNU nm, then use its standard symbol codes.
6368 case `$NM -V 2>&1` in
6369 *GNU* | *'with BFD'*)
6370   symcode='[ABCDGIRSTW]' ;;
6371 esac
6372
6373 # Try without a prefix undercore, then with it.
6374 for ac_symprfx in "" "_"; do
6375
6376   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6377   symxfrm="\\1 $ac_symprfx\\2 \\2"
6378
6379   # Write the raw and C identifiers.
6380   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6381
6382   # Check to see that the pipe works correctly.
6383   pipe_works=no
6384
6385   rm -f conftest*
6386   cat > conftest.$ac_ext <<EOF
6387 #ifdef __cplusplus
6388 extern "C" {
6389 #endif
6390 char nm_test_var;
6391 void nm_test_func(){}
6392 #ifdef __cplusplus
6393 }
6394 #endif
6395 int main(){nm_test_var='a';nm_test_func();return(0);}
6396 EOF
6397
6398   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399   (eval $ac_compile) 2>&5
6400   ac_status=$?
6401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402   test $ac_status = 0; }; then
6403     # Now try to grab the symbols.
6404     nlist=conftest.nm
6405     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6406   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6407   ac_status=$?
6408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409   test $ac_status = 0; } && test -s "$nlist"; then
6410       # Try sorting and uniquifying the output.
6411       if sort "$nlist" | uniq > "$nlist"T; then
6412         mv -f "$nlist"T "$nlist"
6413       else
6414         rm -f "$nlist"T
6415       fi
6416
6417       # Make sure that we snagged all the symbols we need.
6418       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6419         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6420           cat <<EOF > conftest.$ac_ext
6421 #ifdef __cplusplus
6422 extern "C" {
6423 #endif
6424
6425 EOF
6426           # Now generate the symbol file.
6427           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6428
6429           cat <<EOF >> conftest.$ac_ext
6430 #if defined (__STDC__) && __STDC__
6431 # define lt_ptr_t void *
6432 #else
6433 # define lt_ptr_t char *
6434 # define const
6435 #endif
6436
6437 /* The mapping between symbol names and symbols. */
6438 const struct {
6439   const char *name;
6440   lt_ptr_t address;
6441 }
6442 lt_preloaded_symbols[] =
6443 {
6444 EOF
6445           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6446           cat <<\EOF >> conftest.$ac_ext
6447   {0, (lt_ptr_t) 0}
6448 };
6449
6450 #ifdef __cplusplus
6451 }
6452 #endif
6453 EOF
6454           # Now try linking the two files.
6455           mv conftest.$ac_objext conftstm.$ac_objext
6456           lt_save_LIBS="$LIBS"
6457           lt_save_CFLAGS="$CFLAGS"
6458           LIBS="conftstm.$ac_objext"
6459           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6460           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6461   (eval $ac_link) 2>&5
6462   ac_status=$?
6463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6465             pipe_works=yes
6466           fi
6467           LIBS="$lt_save_LIBS"
6468           CFLAGS="$lt_save_CFLAGS"
6469         else
6470           echo "cannot find nm_test_func in $nlist" >&5
6471         fi
6472       else
6473         echo "cannot find nm_test_var in $nlist" >&5
6474       fi
6475     else
6476       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6477     fi
6478   else
6479     echo "$progname: failed program was:" >&5
6480     cat conftest.$ac_ext >&5
6481   fi
6482   rm -f conftest* conftst*
6483
6484   # Do not use the global_symbol_pipe unless it works.
6485   if test "$pipe_works" = yes; then
6486     break
6487   else
6488     lt_cv_sys_global_symbol_pipe=
6489   fi
6490 done
6491
6492 fi
6493
6494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6495   lt_cv_sys_global_symbol_to_cdecl=
6496 fi
6497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6499 $as_echo "failed" >&6; }
6500 else
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6502 $as_echo "ok" >&6; }
6503 fi
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6506 $as_echo_n "checking for objdir... " >&6; }
6507 if ${lt_cv_objdir+:} false; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   rm -f .libs 2>/dev/null
6511 mkdir .libs 2>/dev/null
6512 if test -d .libs; then
6513   lt_cv_objdir=.libs
6514 else
6515   # MS-DOS does not allow filenames that begin with a dot.
6516   lt_cv_objdir=_libs
6517 fi
6518 rmdir .libs 2>/dev/null
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6521 $as_echo "$lt_cv_objdir" >&6; }
6522 objdir=$lt_cv_objdir
6523
6524
6525
6526
6527
6528 case $host_os in
6529 aix3*)
6530   # AIX sometimes has problems with the GCC collect2 program.  For some
6531   # reason, if we set the COLLECT_NAMES environment variable, the problems
6532   # vanish in a puff of smoke.
6533   if test "X${COLLECT_NAMES+set}" != Xset; then
6534     COLLECT_NAMES=
6535     export COLLECT_NAMES
6536   fi
6537   ;;
6538 esac
6539
6540 # Sed substitution that helps us do robust quoting.  It backslashifies
6541 # metacharacters that are still active within double-quoted strings.
6542 Xsed='sed -e 1s/^X//'
6543 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6544
6545 # Same as above, but do not quote variable references.
6546 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6547
6548 # Sed substitution to delay expansion of an escaped shell variable in a
6549 # double_quote_subst'ed string.
6550 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6551
6552 # Sed substitution to avoid accidental globbing in evaled expressions
6553 no_glob_subst='s/\*/\\\*/g'
6554
6555 # Constants:
6556 rm="rm -f"
6557
6558 # Global variables:
6559 default_ofile=libtool
6560 can_build_shared=yes
6561
6562 # All known linkers require a `.a' archive for static linking (except MSVC,
6563 # which needs '.lib').
6564 libext=a
6565 ltmain="$ac_aux_dir/ltmain.sh"
6566 ofile="$default_ofile"
6567 with_gnu_ld="$lt_cv_prog_gnu_ld"
6568
6569 if test -n "$ac_tool_prefix"; then
6570   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ar; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_AR+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$AR"; then
6578   ac_cv_prog_AR="$AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587     ac_cv_prog_AR="${ac_tool_prefix}ar"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 AR=$ac_cv_prog_AR
6598 if test -n "$AR"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6600 $as_echo "$AR" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606
6607 fi
6608 if test -z "$ac_cv_prog_AR"; then
6609   ac_ct_AR=$AR
6610   # Extract the first word of "ar", so it can be a program name with args.
6611 set dummy ar; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test -n "$ac_ct_AR"; then
6618   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627     ac_cv_prog_ac_ct_AR="ar"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6640 $as_echo "$ac_ct_AR" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646   if test "x$ac_ct_AR" = x; then
6647     AR="false"
6648   else
6649     case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653 ac_tool_warned=yes ;;
6654 esac
6655     AR=$ac_ct_AR
6656   fi
6657 else
6658   AR="$ac_cv_prog_AR"
6659 fi
6660
6661 if test -n "$ac_tool_prefix"; then
6662   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_RANLIB+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$RANLIB"; then
6670   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 RANLIB=$ac_cv_prog_RANLIB
6690 if test -n "$RANLIB"; then
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6692 $as_echo "$RANLIB" >&6; }
6693 else
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_RANLIB"; then
6701   ac_ct_RANLIB=$RANLIB
6702   # Extract the first word of "ranlib", so it can be a program name with args.
6703 set dummy ranlib; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   if test -n "$ac_ct_RANLIB"; then
6710   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_exec_ext in '' $ac_executable_extensions; do
6718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_prog_ac_ct_RANLIB="ranlib"
6720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724   done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6730 if test -n "$ac_ct_RANLIB"; then
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732 $as_echo "$ac_ct_RANLIB" >&6; }
6733 else
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738   if test "x$ac_ct_RANLIB" = x; then
6739     RANLIB=":"
6740   else
6741     case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747     RANLIB=$ac_ct_RANLIB
6748   fi
6749 else
6750   RANLIB="$ac_cv_prog_RANLIB"
6751 fi
6752
6753 if test -n "$ac_tool_prefix"; then
6754   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}strip; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_STRIP+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$STRIP"; then
6762   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 STRIP=$ac_cv_prog_STRIP
6782 if test -n "$STRIP"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6784 $as_echo "$STRIP" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790
6791 fi
6792 if test -z "$ac_cv_prog_STRIP"; then
6793   ac_ct_STRIP=$STRIP
6794   # Extract the first word of "strip", so it can be a program name with args.
6795 set dummy strip; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   if test -n "$ac_ct_STRIP"; then
6802   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809     for ac_exec_ext in '' $ac_executable_extensions; do
6810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811     ac_cv_prog_ac_ct_STRIP="strip"
6812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816   done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822 if test -n "$ac_ct_STRIP"; then
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6824 $as_echo "$ac_ct_STRIP" >&6; }
6825 else
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830   if test "x$ac_ct_STRIP" = x; then
6831     STRIP=":"
6832   else
6833     case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839     STRIP=$ac_ct_STRIP
6840   fi
6841 else
6842   STRIP="$ac_cv_prog_STRIP"
6843 fi
6844
6845
6846 old_CC="$CC"
6847 old_CFLAGS="$CFLAGS"
6848
6849 # Set sane defaults for various variables
6850 test -z "$AR" && AR=ar
6851 test -z "$AR_FLAGS" && AR_FLAGS=cru
6852 test -z "$AS" && AS=as
6853 test -z "$CC" && CC=cc
6854 test -z "$LTCC" && LTCC=$CC
6855 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6856 test -z "$DLLTOOL" && DLLTOOL=dlltool
6857 test -z "$LD" && LD=ld
6858 test -z "$LN_S" && LN_S="ln -s"
6859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6860 test -z "$NM" && NM=nm
6861 test -z "$SED" && SED=sed
6862 test -z "$OBJDUMP" && OBJDUMP=objdump
6863 test -z "$RANLIB" && RANLIB=:
6864 test -z "$STRIP" && STRIP=:
6865 test -z "$ac_objext" && ac_objext=o
6866
6867 # Determine commands to create old-style static archives.
6868 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6869 old_postinstall_cmds='chmod 644 $oldlib'
6870 old_postuninstall_cmds=
6871
6872 if test -n "$RANLIB"; then
6873   case $host_os in
6874   openbsd*)
6875     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6876     ;;
6877   *)
6878     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6879     ;;
6880   esac
6881   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6882 fi
6883
6884 for cc_temp in $compiler""; do
6885   case $cc_temp in
6886     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6887     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6888     \-*) ;;
6889     *) break;;
6890   esac
6891 done
6892 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6893
6894
6895 # Only perform the check for file, if the check method requires it
6896 case $deplibs_check_method in
6897 file_magic*)
6898   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6900 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6901 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6902   $as_echo_n "(cached) " >&6
6903 else
6904   case $MAGIC_CMD in
6905 [\\/*] |  ?:[\\/]*)
6906   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6907   ;;
6908 *)
6909   lt_save_MAGIC_CMD="$MAGIC_CMD"
6910   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6911   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6912   for ac_dir in $ac_dummy; do
6913     IFS="$lt_save_ifs"
6914     test -z "$ac_dir" && ac_dir=.
6915     if test -f $ac_dir/${ac_tool_prefix}file; then
6916       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6917       if test -n "$file_magic_test_file"; then
6918         case $deplibs_check_method in
6919         "file_magic "*)
6920           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6921           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6923             $EGREP "$file_magic_regex" > /dev/null; then
6924             :
6925           else
6926             cat <<EOF 1>&2
6927
6928 *** Warning: the command libtool uses to detect shared libraries,
6929 *** $file_magic_cmd, produces output that libtool cannot recognize.
6930 *** The result is that libtool may fail to recognize shared libraries
6931 *** as such.  This will affect the creation of libtool libraries that
6932 *** depend on shared libraries, but programs linked with such libtool
6933 *** libraries will work regardless of this problem.  Nevertheless, you
6934 *** may want to report the problem to your system manager and/or to
6935 *** bug-libtool@gnu.org
6936
6937 EOF
6938           fi ;;
6939         esac
6940       fi
6941       break
6942     fi
6943   done
6944   IFS="$lt_save_ifs"
6945   MAGIC_CMD="$lt_save_MAGIC_CMD"
6946   ;;
6947 esac
6948 fi
6949
6950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if test -n "$MAGIC_CMD"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6953 $as_echo "$MAGIC_CMD" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959 if test -z "$lt_cv_path_MAGIC_CMD"; then
6960   if test -n "$ac_tool_prefix"; then
6961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6962 $as_echo_n "checking for file... " >&6; }
6963 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   case $MAGIC_CMD in
6967 [\\/*] |  ?:[\\/]*)
6968   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6969   ;;
6970 *)
6971   lt_save_MAGIC_CMD="$MAGIC_CMD"
6972   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6973   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6974   for ac_dir in $ac_dummy; do
6975     IFS="$lt_save_ifs"
6976     test -z "$ac_dir" && ac_dir=.
6977     if test -f $ac_dir/file; then
6978       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6979       if test -n "$file_magic_test_file"; then
6980         case $deplibs_check_method in
6981         "file_magic "*)
6982           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6983           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6984           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6985             $EGREP "$file_magic_regex" > /dev/null; then
6986             :
6987           else
6988             cat <<EOF 1>&2
6989
6990 *** Warning: the command libtool uses to detect shared libraries,
6991 *** $file_magic_cmd, produces output that libtool cannot recognize.
6992 *** The result is that libtool may fail to recognize shared libraries
6993 *** as such.  This will affect the creation of libtool libraries that
6994 *** depend on shared libraries, but programs linked with such libtool
6995 *** libraries will work regardless of this problem.  Nevertheless, you
6996 *** may want to report the problem to your system manager and/or to
6997 *** bug-libtool@gnu.org
6998
6999 EOF
7000           fi ;;
7001         esac
7002       fi
7003       break
7004     fi
7005   done
7006   IFS="$lt_save_ifs"
7007   MAGIC_CMD="$lt_save_MAGIC_CMD"
7008   ;;
7009 esac
7010 fi
7011
7012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013 if test -n "$MAGIC_CMD"; then
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7015 $as_echo "$MAGIC_CMD" >&6; }
7016 else
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021   else
7022     MAGIC_CMD=:
7023   fi
7024 fi
7025
7026   fi
7027   ;;
7028 esac
7029
7030 enable_dlopen=no
7031 enable_win32_dll=no
7032
7033 # Check whether --enable-libtool-lock was given.
7034 if test "${enable_libtool_lock+set}" = set; then :
7035   enableval=$enable_libtool_lock;
7036 fi
7037
7038 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7039
7040
7041 # Check whether --with-pic was given.
7042 if test "${with_pic+set}" = set; then :
7043   withval=$with_pic; pic_mode="$withval"
7044 else
7045   pic_mode=default
7046 fi
7047
7048 test -z "$pic_mode" && pic_mode=default
7049
7050 # Use C for the default configuration in the libtool script
7051 tagname=
7052 lt_save_CC="$CC"
7053 ac_ext=c
7054 ac_cpp='$CPP $CPPFLAGS'
7055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059
7060 # Source file extension for C test sources.
7061 ac_ext=c
7062
7063 # Object file extension for compiled C test sources.
7064 objext=o
7065 objext=$objext
7066
7067 # Code to be used in simple compile tests
7068 lt_simple_compile_test_code="int some_variable = 0;\n"
7069
7070 # Code to be used in simple link tests
7071 lt_simple_link_test_code='int main(){return(0);}\n'
7072
7073
7074 # If no C compiler was specified, use CC.
7075 LTCC=${LTCC-"$CC"}
7076
7077 # If no C compiler flags were specified, use CFLAGS.
7078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7079
7080 # Allow CC to be a program name with arguments.
7081 compiler=$CC
7082
7083
7084 # save warnings/boilerplate of simple test code
7085 ac_outfile=conftest.$ac_objext
7086 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7088 _lt_compiler_boilerplate=`cat conftest.err`
7089 $rm conftest*
7090
7091 ac_outfile=conftest.$ac_objext
7092 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7094 _lt_linker_boilerplate=`cat conftest.err`
7095 $rm conftest*
7096
7097
7098
7099 lt_prog_compiler_no_builtin_flag=
7100
7101 if test "$GCC" = yes; then
7102   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7103
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7106 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7107 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   lt_cv_prog_compiler_rtti_exceptions=no
7111   ac_outfile=conftest.$ac_objext
7112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7113    lt_compiler_flag="-fno-rtti -fno-exceptions"
7114    # Insert the option either (1) after the last *FLAGS variable, or
7115    # (2) before a word containing "conftest.", or (3) at the end.
7116    # Note that $ac_compile itself does not contain backslashes and begins
7117    # with a dollar sign (not a hyphen), so the echo should work correctly.
7118    # The option is referenced via a variable to avoid confusing sed.
7119    lt_compile=`echo "$ac_compile" | $SED \
7120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122    -e 's:$: $lt_compiler_flag:'`
7123    (eval echo "\"\$as_me:7123: $lt_compile\"" >&5)
7124    (eval "$lt_compile" 2>conftest.err)
7125    ac_status=$?
7126    cat conftest.err >&5
7127    echo "$as_me:7127: \$? = $ac_status" >&5
7128    if (exit $ac_status) && test -s "$ac_outfile"; then
7129      # The compiler can only warn and ignore the option if not recognized
7130      # So say no if there are warnings other than the usual output.
7131      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7132      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7133      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7134        lt_cv_prog_compiler_rtti_exceptions=yes
7135      fi
7136    fi
7137    $rm conftest*
7138
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7141 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7142
7143 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7144     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7145 else
7146     :
7147 fi
7148
7149 fi
7150
7151 lt_prog_compiler_wl=
7152 lt_prog_compiler_pic=
7153 lt_prog_compiler_static=
7154
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7156 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7157
7158   if test "$GCC" = yes; then
7159     lt_prog_compiler_wl='-Wl,'
7160     lt_prog_compiler_static='-static'
7161
7162     case $host_os in
7163       aix*)
7164       # All AIX code is PIC.
7165       if test "$host_cpu" = ia64; then
7166         # AIX 5 now supports IA64 processor
7167         lt_prog_compiler_static='-Bstatic'
7168       fi
7169       ;;
7170
7171     amigaos*)
7172       # FIXME: we need at least 68020 code to build shared libraries, but
7173       # adding the `-m68020' flag to GCC prevents building anything better,
7174       # like `-m68040'.
7175       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7176       ;;
7177
7178     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7179       # PIC is the default for these OSes.
7180       ;;
7181
7182     mingw* | pw32* | os2*)
7183       # This hack is so that the source file can tell whether it is being
7184       # built for inclusion in a dll (and should export symbols for example).
7185       lt_prog_compiler_pic='-DDLL_EXPORT'
7186       ;;
7187
7188     darwin* | rhapsody*)
7189       # PIC is the default on this platform
7190       # Common symbols not allowed in MH_DYLIB files
7191       lt_prog_compiler_pic='-fno-common'
7192       ;;
7193
7194     interix3*)
7195       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7196       # Instead, we relocate shared libraries at runtime.
7197       ;;
7198
7199     msdosdjgpp*)
7200       # Just because we use GCC doesn't mean we suddenly get shared libraries
7201       # on systems that don't support them.
7202       lt_prog_compiler_can_build_shared=no
7203       enable_shared=no
7204       ;;
7205
7206     sysv4*MP*)
7207       if test -d /usr/nec; then
7208         lt_prog_compiler_pic=-Kconform_pic
7209       fi
7210       ;;
7211
7212     hpux*)
7213       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7214       # not for PA HP-UX.
7215       case $host_cpu in
7216       hppa*64*|ia64*)
7217         # +Z the default
7218         ;;
7219       *)
7220         lt_prog_compiler_pic='-fPIC'
7221         ;;
7222       esac
7223       ;;
7224
7225     *)
7226       lt_prog_compiler_pic='-fPIC'
7227       ;;
7228     esac
7229   else
7230     # PORTME Check for flag to pass linker flags through the system compiler.
7231     case $host_os in
7232     aix*)
7233       lt_prog_compiler_wl='-Wl,'
7234       if test "$host_cpu" = ia64; then
7235         # AIX 5 now supports IA64 processor
7236         lt_prog_compiler_static='-Bstatic'
7237       else
7238         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7239       fi
7240       ;;
7241       darwin*)
7242         # PIC is the default on this platform
7243         # Common symbols not allowed in MH_DYLIB files
7244        case $cc_basename in
7245          xlc*)
7246          lt_prog_compiler_pic='-qnocommon'
7247          lt_prog_compiler_wl='-Wl,'
7248          ;;
7249        esac
7250        ;;
7251
7252     mingw* | pw32* | os2*)
7253       # This hack is so that the source file can tell whether it is being
7254       # built for inclusion in a dll (and should export symbols for example).
7255       lt_prog_compiler_pic='-DDLL_EXPORT'
7256       ;;
7257
7258     hpux9* | hpux10* | hpux11*)
7259       lt_prog_compiler_wl='-Wl,'
7260       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7261       # not for PA HP-UX.
7262       case $host_cpu in
7263       hppa*64*|ia64*)
7264         # +Z the default
7265         ;;
7266       *)
7267         lt_prog_compiler_pic='+Z'
7268         ;;
7269       esac
7270       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7271       lt_prog_compiler_static='${wl}-a ${wl}archive'
7272       ;;
7273
7274     irix5* | irix6* | nonstopux*)
7275       lt_prog_compiler_wl='-Wl,'
7276       # PIC (with -KPIC) is the default.
7277       lt_prog_compiler_static='-non_shared'
7278       ;;
7279
7280     newsos6)
7281       lt_prog_compiler_pic='-KPIC'
7282       lt_prog_compiler_static='-Bstatic'
7283       ;;
7284
7285     linux*)
7286       case $cc_basename in
7287       icc* | ecc*)
7288         lt_prog_compiler_wl='-Wl,'
7289         lt_prog_compiler_pic='-KPIC'
7290         lt_prog_compiler_static='-static'
7291         ;;
7292       pgcc* | pgf77* | pgf90* | pgf95*)
7293         # Portland Group compilers (*not* the Pentium gcc compiler,
7294         # which looks to be a dead project)
7295         lt_prog_compiler_wl='-Wl,'
7296         lt_prog_compiler_pic='-fpic'
7297         lt_prog_compiler_static='-Bstatic'
7298         ;;
7299       ccc*)
7300         lt_prog_compiler_wl='-Wl,'
7301         # All Alpha code is PIC.
7302         lt_prog_compiler_static='-non_shared'
7303         ;;
7304       esac
7305       ;;
7306
7307     osf3* | osf4* | osf5*)
7308       lt_prog_compiler_wl='-Wl,'
7309       # All OSF/1 code is PIC.
7310       lt_prog_compiler_static='-non_shared'
7311       ;;
7312
7313     solaris*)
7314       lt_prog_compiler_pic='-KPIC'
7315       lt_prog_compiler_static='-Bstatic'
7316       case $cc_basename in
7317       f77* | f90* | f95*)
7318         lt_prog_compiler_wl='-Qoption ld ';;
7319       *)
7320         lt_prog_compiler_wl='-Wl,';;
7321       esac
7322       ;;
7323
7324     sunos4*)
7325       lt_prog_compiler_wl='-Qoption ld '
7326       lt_prog_compiler_pic='-PIC'
7327       lt_prog_compiler_static='-Bstatic'
7328       ;;
7329
7330     sysv4 | sysv4.2uw2* | sysv4.3*)
7331       lt_prog_compiler_wl='-Wl,'
7332       lt_prog_compiler_pic='-KPIC'
7333       lt_prog_compiler_static='-Bstatic'
7334       ;;
7335
7336     sysv4*MP*)
7337       if test -d /usr/nec ;then
7338         lt_prog_compiler_pic='-Kconform_pic'
7339         lt_prog_compiler_static='-Bstatic'
7340       fi
7341       ;;
7342
7343     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7344       lt_prog_compiler_wl='-Wl,'
7345       lt_prog_compiler_pic='-KPIC'
7346       lt_prog_compiler_static='-Bstatic'
7347       ;;
7348
7349     unicos*)
7350       lt_prog_compiler_wl='-Wl,'
7351       lt_prog_compiler_can_build_shared=no
7352       ;;
7353
7354     uts4*)
7355       lt_prog_compiler_pic='-pic'
7356       lt_prog_compiler_static='-Bstatic'
7357       ;;
7358
7359     *)
7360       lt_prog_compiler_can_build_shared=no
7361       ;;
7362     esac
7363   fi
7364
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7366 $as_echo "$lt_prog_compiler_pic" >&6; }
7367
7368 #
7369 # Check to make sure the PIC flag actually works.
7370 #
7371 if test -n "$lt_prog_compiler_pic"; then
7372
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7374 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7375 if ${lt_prog_compiler_pic_works+:} false; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   lt_prog_compiler_pic_works=no
7379   ac_outfile=conftest.$ac_objext
7380    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7381    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7382    # Insert the option either (1) after the last *FLAGS variable, or
7383    # (2) before a word containing "conftest.", or (3) at the end.
7384    # Note that $ac_compile itself does not contain backslashes and begins
7385    # with a dollar sign (not a hyphen), so the echo should work correctly.
7386    # The option is referenced via a variable to avoid confusing sed.
7387    lt_compile=`echo "$ac_compile" | $SED \
7388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7390    -e 's:$: $lt_compiler_flag:'`
7391    (eval echo "\"\$as_me:7391: $lt_compile\"" >&5)
7392    (eval "$lt_compile" 2>conftest.err)
7393    ac_status=$?
7394    cat conftest.err >&5
7395    echo "$as_me:7395: \$? = $ac_status" >&5
7396    if (exit $ac_status) && test -s "$ac_outfile"; then
7397      # The compiler can only warn and ignore the option if not recognized
7398      # So say no if there are warnings other than the usual output.
7399      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7402        lt_prog_compiler_pic_works=yes
7403      fi
7404    fi
7405    $rm conftest*
7406
7407 fi
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7409 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7410
7411 if test x"$lt_prog_compiler_pic_works" = xyes; then
7412     case $lt_prog_compiler_pic in
7413      "" | " "*) ;;
7414      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7415      esac
7416 else
7417     lt_prog_compiler_pic=
7418      lt_prog_compiler_can_build_shared=no
7419 fi
7420
7421 fi
7422 case $host_os in
7423   # For platforms which do not support PIC, -DPIC is meaningless:
7424   *djgpp*)
7425     lt_prog_compiler_pic=
7426     ;;
7427   *)
7428     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7429     ;;
7430 esac
7431
7432 #
7433 # Check to make sure the static flag actually works.
7434 #
7435 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7438 if ${lt_prog_compiler_static_works+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   lt_prog_compiler_static_works=no
7442    save_LDFLAGS="$LDFLAGS"
7443    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7444    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7445    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7446      # The linker can only warn and ignore the option if not recognized
7447      # So say no if there are warnings
7448      if test -s conftest.err; then
7449        # Append any errors to the config.log.
7450        cat conftest.err 1>&5
7451        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7452        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7453        if diff conftest.exp conftest.er2 >/dev/null; then
7454          lt_prog_compiler_static_works=yes
7455        fi
7456      else
7457        lt_prog_compiler_static_works=yes
7458      fi
7459    fi
7460    $rm conftest*
7461    LDFLAGS="$save_LDFLAGS"
7462
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7465 $as_echo "$lt_prog_compiler_static_works" >&6; }
7466
7467 if test x"$lt_prog_compiler_static_works" = xyes; then
7468     :
7469 else
7470     lt_prog_compiler_static=
7471 fi
7472
7473
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7475 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7476 if ${lt_cv_prog_compiler_c_o+:} false; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   lt_cv_prog_compiler_c_o=no
7480    $rm -r conftest 2>/dev/null
7481    mkdir conftest
7482    cd conftest
7483    mkdir out
7484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7485
7486    lt_compiler_flag="-o out/conftest2.$ac_objext"
7487    # Insert the option either (1) after the last *FLAGS variable, or
7488    # (2) before a word containing "conftest.", or (3) at the end.
7489    # Note that $ac_compile itself does not contain backslashes and begins
7490    # with a dollar sign (not a hyphen), so the echo should work correctly.
7491    lt_compile=`echo "$ac_compile" | $SED \
7492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7494    -e 's:$: $lt_compiler_flag:'`
7495    (eval echo "\"\$as_me:7495: $lt_compile\"" >&5)
7496    (eval "$lt_compile" 2>out/conftest.err)
7497    ac_status=$?
7498    cat out/conftest.err >&5
7499    echo "$as_me:7499: \$? = $ac_status" >&5
7500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7501    then
7502      # The compiler can only warn and ignore the option if not recognized
7503      # So say no if there are warnings
7504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7505      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7506      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7507        lt_cv_prog_compiler_c_o=yes
7508      fi
7509    fi
7510    chmod u+w . 2>&5
7511    $rm conftest*
7512    # SGI C++ compiler will create directory out/ii_files/ for
7513    # template instantiation
7514    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7515    $rm out/* && rmdir out
7516    cd ..
7517    rmdir conftest
7518    $rm conftest*
7519
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7522 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7523
7524
7525 hard_links="nottested"
7526 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7527   # do not overwrite the value of need_locks provided by the user
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7529 $as_echo_n "checking if we can lock with hard links... " >&6; }
7530   hard_links=yes
7531   $rm conftest*
7532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7533   touch conftest.a
7534   ln conftest.a conftest.b 2>&5 || hard_links=no
7535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7537 $as_echo "$hard_links" >&6; }
7538   if test "$hard_links" = no; then
7539     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7540 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7541     need_locks=warn
7542   fi
7543 else
7544   need_locks=no
7545 fi
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7548 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7549
7550   runpath_var=
7551   allow_undefined_flag=
7552   enable_shared_with_static_runtimes=no
7553   archive_cmds=
7554   archive_expsym_cmds=
7555   old_archive_From_new_cmds=
7556   old_archive_from_expsyms_cmds=
7557   export_dynamic_flag_spec=
7558   whole_archive_flag_spec=
7559   thread_safe_flag_spec=
7560   hardcode_libdir_flag_spec=
7561   hardcode_libdir_flag_spec_ld=
7562   hardcode_libdir_separator=
7563   hardcode_direct=no
7564   hardcode_minus_L=no
7565   hardcode_shlibpath_var=unsupported
7566   link_all_deplibs=unknown
7567   hardcode_automatic=no
7568   module_cmds=
7569   module_expsym_cmds=
7570   always_export_symbols=no
7571   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7572   # include_expsyms should be a list of space-separated symbols to be *always*
7573   # included in the symbol list
7574   include_expsyms=
7575   # exclude_expsyms can be an extended regexp of symbols to exclude
7576   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7577   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7578   # as well as any symbol that contains `d'.
7579   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7580   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7581   # platforms (ab)use it in PIC code, but their linkers get confused if
7582   # the symbol is explicitly referenced.  Since portable code cannot
7583   # rely on this symbol name, it's probably fine to never include it in
7584   # preloaded symbol tables.
7585   extract_expsyms_cmds=
7586   # Just being paranoid about ensuring that cc_basename is set.
7587   for cc_temp in $compiler""; do
7588   case $cc_temp in
7589     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7590     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7591     \-*) ;;
7592     *) break;;
7593   esac
7594 done
7595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7596
7597   case $host_os in
7598   cygwin* | mingw* | pw32*)
7599     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7600     # When not using gcc, we currently assume that we are using
7601     # Microsoft Visual C++.
7602     if test "$GCC" != yes; then
7603       with_gnu_ld=no
7604     fi
7605     ;;
7606   interix*)
7607     # we just hope/assume this is gcc and not c89 (= MSVC++)
7608     with_gnu_ld=yes
7609     ;;
7610   openbsd*)
7611     with_gnu_ld=no
7612     ;;
7613   esac
7614
7615   ld_shlibs=yes
7616   if test "$with_gnu_ld" = yes; then
7617     # If archive_cmds runs LD, not CC, wlarc should be empty
7618     wlarc='${wl}'
7619
7620     # Set some defaults for GNU ld with shared library support. These
7621     # are reset later if shared libraries are not supported. Putting them
7622     # here allows them to be overridden if necessary.
7623     runpath_var=LD_RUN_PATH
7624     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7625     export_dynamic_flag_spec='${wl}--export-dynamic'
7626     # ancient GNU ld didn't support --whole-archive et. al.
7627     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7628         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7629       else
7630         whole_archive_flag_spec=
7631     fi
7632     supports_anon_versioning=no
7633     case `$LD -v 2>/dev/null` in
7634       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7635       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7636       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7637       *\ 2.11.*) ;; # other 2.11 versions
7638       *) supports_anon_versioning=yes ;;
7639     esac
7640
7641     # See if GNU ld supports shared libraries.
7642     case $host_os in
7643     aix3* | aix4* | aix5*)
7644       # On AIX/PPC, the GNU linker is very broken
7645       if test "$host_cpu" != ia64; then
7646         ld_shlibs=no
7647         cat <<EOF 1>&2
7648
7649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7650 *** to be unable to reliably create shared libraries on AIX.
7651 *** Therefore, libtool is disabling shared libraries support.  If you
7652 *** really care for shared libraries, you may want to modify your PATH
7653 *** so that a non-GNU linker is found, and then restart.
7654
7655 EOF
7656       fi
7657       ;;
7658
7659     amigaos*)
7660       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)'
7661       hardcode_libdir_flag_spec='-L$libdir'
7662       hardcode_minus_L=yes
7663
7664       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7665       # that the semantics of dynamic libraries on AmigaOS, at least up
7666       # to version 4, is to share data among multiple programs linked
7667       # with the same dynamic library.  Since this doesn't match the
7668       # behavior of shared libraries on other platforms, we can't use
7669       # them.
7670       ld_shlibs=no
7671       ;;
7672
7673     beos*)
7674       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7675         allow_undefined_flag=unsupported
7676         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7677         # support --undefined.  This deserves some investigation.  FIXME
7678         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679       else
7680         ld_shlibs=no
7681       fi
7682       ;;
7683
7684     cygwin* | mingw* | pw32*)
7685       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7686       # as there is no search path for DLLs.
7687       hardcode_libdir_flag_spec='-L$libdir'
7688       allow_undefined_flag=unsupported
7689       always_export_symbols=no
7690       enable_shared_with_static_runtimes=yes
7691       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7692
7693       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7694         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7695         # If the export-symbols file already is a .def file (1st line
7696         # is EXPORTS), use it as is; otherwise, prepend...
7697         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7698           cp $export_symbols $output_objdir/$soname.def;
7699         else
7700           echo EXPORTS > $output_objdir/$soname.def;
7701           cat $export_symbols >> $output_objdir/$soname.def;
7702         fi~
7703         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7704       else
7705         ld_shlibs=no
7706       fi
7707       ;;
7708
7709     interix3*)
7710       hardcode_direct=no
7711       hardcode_shlibpath_var=no
7712       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7713       export_dynamic_flag_spec='${wl}-E'
7714       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7715       # Instead, shared libraries are loaded at an image base (0x10000000 by
7716       # default) and relocated if they conflict, which is a slow very memory
7717       # consuming and fragmenting process.  To avoid this, we pick a random,
7718       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7719       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7720       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7721       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'
7722       ;;
7723
7724     linux*)
7725       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7726         tmp_addflag=
7727         case $cc_basename,$host_cpu in
7728         pgcc*)                          # Portland Group C compiler
7729           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7730           tmp_addflag=' $pic_flag'
7731           ;;
7732         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7733           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7734           tmp_addflag=' $pic_flag -Mnomain' ;;
7735         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7736           tmp_addflag=' -i_dynamic' ;;
7737         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7738           tmp_addflag=' -i_dynamic -nofor_main' ;;
7739         ifc* | ifort*)                  # Intel Fortran compiler
7740           tmp_addflag=' -nofor_main' ;;
7741         esac
7742         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7743
7744         if test $supports_anon_versioning = yes; then
7745           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7746   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7747   $echo "local: *; };" >> $output_objdir/$libname.ver~
7748           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7749         fi
7750         link_all_deplibs=no
7751       else
7752         ld_shlibs=no
7753       fi
7754       ;;
7755
7756     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7757       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7758         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7759         wlarc=
7760       else
7761         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7762         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7763       fi
7764       ;;
7765
7766     solaris*)
7767       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7768         ld_shlibs=no
7769         cat <<EOF 1>&2
7770
7771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7772 *** create shared libraries on Solaris systems.  Therefore, libtool
7773 *** is disabling shared libraries support.  We urge you to upgrade GNU
7774 *** binutils to release 2.9.1 or newer.  Another option is to modify
7775 *** your PATH or compiler configuration so that the native linker is
7776 *** used, and then restart.
7777
7778 EOF
7779       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7780         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7782       else
7783         ld_shlibs=no
7784       fi
7785       ;;
7786
7787     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7788       case `$LD -v 2>&1` in
7789         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7790         ld_shlibs=no
7791         cat <<_LT_EOF 1>&2
7792
7793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7794 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7795 *** is disabling shared libraries support.  We urge you to upgrade GNU
7796 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7797 *** your PATH or compiler configuration so that the native linker is
7798 *** used, and then restart.
7799
7800 _LT_EOF
7801         ;;
7802         *)
7803           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7804             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7805             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7806             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7807           else
7808             ld_shlibs=no
7809           fi
7810         ;;
7811       esac
7812       ;;
7813
7814     sunos4*)
7815       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7816       wlarc=
7817       hardcode_direct=yes
7818       hardcode_shlibpath_var=no
7819       ;;
7820
7821     *)
7822       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7823         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825       else
7826         ld_shlibs=no
7827       fi
7828       ;;
7829     esac
7830
7831     if test "$ld_shlibs" = no; then
7832       runpath_var=
7833       hardcode_libdir_flag_spec=
7834       export_dynamic_flag_spec=
7835       whole_archive_flag_spec=
7836     fi
7837   else
7838     # PORTME fill in a description of your system's linker (not GNU ld)
7839     case $host_os in
7840     aix3*)
7841       allow_undefined_flag=unsupported
7842       always_export_symbols=yes
7843       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'
7844       # Note: this linker hardcodes the directories in LIBPATH if there
7845       # are no directories specified by -L.
7846       hardcode_minus_L=yes
7847       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7848         # Neither direct hardcoding nor static linking is supported with a
7849         # broken collect2.
7850         hardcode_direct=unsupported
7851       fi
7852       ;;
7853
7854     aix4* | aix5*)
7855       if test "$host_cpu" = ia64; then
7856         # On IA64, the linker does run time linking by default, so we don't
7857         # have to do anything special.
7858         aix_use_runtimelinking=no
7859         exp_sym_flag='-Bexport'
7860         no_entry_flag=""
7861       else
7862         # If we're using GNU nm, then we don't want the "-C" option.
7863         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7864         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7865           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7866         else
7867           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'
7868         fi
7869         aix_use_runtimelinking=no
7870
7871         # Test if we are trying to use run time linking or normal
7872         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7873         # need to do runtime linking.
7874         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7875           for ld_flag in $LDFLAGS; do
7876           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7877             aix_use_runtimelinking=yes
7878             break
7879           fi
7880           done
7881           ;;
7882         esac
7883
7884         exp_sym_flag='-bexport'
7885         no_entry_flag='-bnoentry'
7886       fi
7887
7888       # When large executables or shared objects are built, AIX ld can
7889       # have problems creating the table of contents.  If linking a library
7890       # or program results in "error TOC overflow" add -mminimal-toc to
7891       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7892       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7893
7894       archive_cmds=''
7895       hardcode_direct=yes
7896       hardcode_libdir_separator=':'
7897       link_all_deplibs=yes
7898
7899       if test "$GCC" = yes; then
7900         case $host_os in aix4.[012]|aix4.[012].*)
7901         # We only want to do this on AIX 4.2 and lower, the check
7902         # below for broken collect2 doesn't work under 4.3+
7903           collect2name=`${CC} -print-prog-name=collect2`
7904           if test -f "$collect2name" && \
7905            strings "$collect2name" | grep resolve_lib_name >/dev/null
7906           then
7907           # We have reworked collect2
7908           hardcode_direct=yes
7909           else
7910           # We have old collect2
7911           hardcode_direct=unsupported
7912           # It fails to find uninstalled libraries when the uninstalled
7913           # path is not listed in the libpath.  Setting hardcode_minus_L
7914           # to unsupported forces relinking
7915           hardcode_minus_L=yes
7916           hardcode_libdir_flag_spec='-L$libdir'
7917           hardcode_libdir_separator=
7918           fi
7919           ;;
7920         esac
7921         shared_flag='-shared'
7922         if test "$aix_use_runtimelinking" = yes; then
7923           shared_flag="$shared_flag "'${wl}-G'
7924         fi
7925       else
7926         # not using gcc
7927         if test "$host_cpu" = ia64; then
7928         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7929         # chokes on -Wl,-G. The following line is correct:
7930           shared_flag='-G'
7931         else
7932           if test "$aix_use_runtimelinking" = yes; then
7933             shared_flag='${wl}-G'
7934           else
7935             shared_flag='${wl}-bM:SRE'
7936           fi
7937         fi
7938       fi
7939
7940       # It seems that -bexpall does not export symbols beginning with
7941       # underscore (_), so it is better to generate a list of symbols to export.
7942       always_export_symbols=yes
7943       if test "$aix_use_runtimelinking" = yes; then
7944         # Warning - without using the other runtime loading flags (-brtl),
7945         # -berok will link without error, but may produce a broken library.
7946         allow_undefined_flag='-berok'
7947        # Determine the default libpath from the value encoded in an empty executable.
7948        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h.  */
7950
7951 int
7952 main ()
7953 {
7954
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 if ac_fn_c_try_link "$LINENO"; then :
7960
7961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7962 }'`
7963 # Check for a 64-bit object if we didn't find anything.
7964 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7965 }'`; fi
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext \
7968     conftest$ac_exeext conftest.$ac_ext
7969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7970
7971        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7972         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7973        else
7974         if test "$host_cpu" = ia64; then
7975           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7976           allow_undefined_flag="-z nodefs"
7977           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"
7978         else
7979          # Determine the default libpath from the value encoded in an empty executable.
7980          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h.  */
7982
7983 int
7984 main ()
7985 {
7986
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 if ac_fn_c_try_link "$LINENO"; then :
7992
7993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7994 }'`
7995 # Check for a 64-bit object if we didn't find anything.
7996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7997 }'`; fi
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext \
8000     conftest$ac_exeext conftest.$ac_ext
8001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8002
8003          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8004           # Warning - without using the other run time loading flags,
8005           # -berok will link without error, but may produce a broken library.
8006           no_undefined_flag=' ${wl}-bernotok'
8007           allow_undefined_flag=' ${wl}-berok'
8008           # Exported symbols can be pulled into shared objects from archives
8009           whole_archive_flag_spec='$convenience'
8010           archive_cmds_need_lc=yes
8011           # This is similar to how AIX traditionally builds its shared libraries.
8012           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'
8013         fi
8014       fi
8015       ;;
8016
8017     amigaos*)
8018       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)'
8019       hardcode_libdir_flag_spec='-L$libdir'
8020       hardcode_minus_L=yes
8021       # see comment about different semantics on the GNU ld section
8022       ld_shlibs=no
8023       ;;
8024
8025     bsdi[45]*)
8026       export_dynamic_flag_spec=-rdynamic
8027       ;;
8028
8029     cygwin* | mingw* | pw32*)
8030       # When not using gcc, we currently assume that we are using
8031       # Microsoft Visual C++.
8032       # hardcode_libdir_flag_spec is actually meaningless, as there is
8033       # no search path for DLLs.
8034       hardcode_libdir_flag_spec=' '
8035       allow_undefined_flag=unsupported
8036       # Tell ltmain to make .lib files, not .a files.
8037       libext=lib
8038       # Tell ltmain to make .dll files, not .so files.
8039       shrext_cmds=".dll"
8040       # FIXME: Setting linknames here is a bad hack.
8041       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8042       # The linker will automatically build a .lib file if we build a DLL.
8043       old_archive_From_new_cmds='true'
8044       # FIXME: Should let the user specify the lib program.
8045       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8046       fix_srcfile_path='`cygpath -w "$srcfile"`'
8047       enable_shared_with_static_runtimes=yes
8048       ;;
8049
8050     darwin* | rhapsody*)
8051       case $host_os in
8052         rhapsody* | darwin1.[012])
8053          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8054          ;;
8055        *) # Darwin 1.3 on
8056          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8057            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8058          else
8059            case ${MACOSX_DEPLOYMENT_TARGET} in
8060              10.[012])
8061                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8062                ;;
8063              10.*)
8064                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8065                ;;
8066            esac
8067          fi
8068          ;;
8069       esac
8070       archive_cmds_need_lc=no
8071       hardcode_direct=no
8072       hardcode_automatic=yes
8073       hardcode_shlibpath_var=unsupported
8074       whole_archive_flag_spec=''
8075       link_all_deplibs=yes
8076     if test "$GCC" = yes ; then
8077         output_verbose_link_cmd='echo'
8078         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8079       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8080       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8081       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8082       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8083     else
8084       case $cc_basename in
8085         xlc*)
8086          output_verbose_link_cmd='echo'
8087          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8088          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8089           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8090          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8091           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8092           ;;
8093        *)
8094          ld_shlibs=no
8095           ;;
8096       esac
8097     fi
8098       ;;
8099
8100     dgux*)
8101       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8102       hardcode_libdir_flag_spec='-L$libdir'
8103       hardcode_shlibpath_var=no
8104       ;;
8105
8106     freebsd1*)
8107       ld_shlibs=no
8108       ;;
8109
8110     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8111     # support.  Future versions do this automatically, but an explicit c++rt0.o
8112     # does not break anything, and helps significantly (at the cost of a little
8113     # extra space).
8114     freebsd2.2*)
8115       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8116       hardcode_libdir_flag_spec='-R$libdir'
8117       hardcode_direct=yes
8118       hardcode_shlibpath_var=no
8119       ;;
8120
8121     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8122     freebsd2*)
8123       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8124       hardcode_direct=yes
8125       hardcode_minus_L=yes
8126       hardcode_shlibpath_var=no
8127       ;;
8128
8129     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8130     freebsd* | dragonfly*)
8131       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8132       hardcode_libdir_flag_spec='-R$libdir'
8133       hardcode_direct=yes
8134       hardcode_shlibpath_var=no
8135       ;;
8136
8137     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8138     kfreebsd*-gnu)
8139       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8140       hardcode_libdir_flag_spec='-R$libdir'
8141       hardcode_direct=yes
8142       hardcode_shlibpath_var=no
8143       link_all_deplibs=no
8144       ;;
8145
8146     hpux9*)
8147       if test "$GCC" = yes; then
8148         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8149       else
8150         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'
8151       fi
8152       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8153       hardcode_libdir_separator=:
8154       hardcode_direct=yes
8155
8156       # hardcode_minus_L: Not really in the search PATH,
8157       # but as the default location of the library.
8158       hardcode_minus_L=yes
8159       export_dynamic_flag_spec='${wl}-E'
8160       ;;
8161
8162     hpux10*)
8163       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8164         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8165       else
8166         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8167       fi
8168       if test "$with_gnu_ld" = no; then
8169         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8170         hardcode_libdir_separator=:
8171
8172         hardcode_direct=yes
8173         export_dynamic_flag_spec='${wl}-E'
8174
8175         # hardcode_minus_L: Not really in the search PATH,
8176         # but as the default location of the library.
8177         hardcode_minus_L=yes
8178       fi
8179       ;;
8180
8181     hpux11*)
8182       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8183         case $host_cpu in
8184         hppa*64*)
8185           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8186           ;;
8187         ia64*)
8188           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8189           ;;
8190         *)
8191           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8192           ;;
8193         esac
8194       else
8195         case $host_cpu in
8196         hppa*64*)
8197           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8198           ;;
8199         ia64*)
8200           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8201           ;;
8202         *)
8203           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8204           ;;
8205         esac
8206       fi
8207       if test "$with_gnu_ld" = no; then
8208         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8209         hardcode_libdir_separator=:
8210
8211         case $host_cpu in
8212         hppa*64*|ia64*)
8213           hardcode_libdir_flag_spec_ld='+b $libdir'
8214           hardcode_direct=no
8215           hardcode_shlibpath_var=no
8216           ;;
8217         *)
8218           hardcode_direct=yes
8219           export_dynamic_flag_spec='${wl}-E'
8220
8221           # hardcode_minus_L: Not really in the search PATH,
8222           # but as the default location of the library.
8223           hardcode_minus_L=yes
8224           ;;
8225         esac
8226       fi
8227       ;;
8228
8229     irix5* | irix6* | nonstopux*)
8230       if test "$GCC" = yes; then
8231         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8232       else
8233         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8234         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8235       fi
8236       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8237       hardcode_libdir_separator=:
8238       link_all_deplibs=yes
8239       ;;
8240
8241     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8242       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8243         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8244       else
8245         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8246       fi
8247       hardcode_libdir_flag_spec='-R$libdir'
8248       hardcode_direct=yes
8249       hardcode_shlibpath_var=no
8250       ;;
8251
8252     newsos6)
8253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8254       hardcode_direct=yes
8255       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8256       hardcode_libdir_separator=:
8257       hardcode_shlibpath_var=no
8258       ;;
8259
8260     openbsd*)
8261       hardcode_direct=yes
8262       hardcode_shlibpath_var=no
8263       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8264         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8265         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8266         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8267         export_dynamic_flag_spec='${wl}-E'
8268       else
8269        case $host_os in
8270          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8271            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8272            hardcode_libdir_flag_spec='-R$libdir'
8273            ;;
8274          *)
8275            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8276            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8277            ;;
8278        esac
8279       fi
8280       ;;
8281
8282     os2*)
8283       hardcode_libdir_flag_spec='-L$libdir'
8284       hardcode_minus_L=yes
8285       allow_undefined_flag=unsupported
8286       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'
8287       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8288       ;;
8289
8290     osf3*)
8291       if test "$GCC" = yes; then
8292         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8293         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8294       else
8295         allow_undefined_flag=' -expect_unresolved \*'
8296         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8297       fi
8298       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8299       hardcode_libdir_separator=:
8300       ;;
8301
8302     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8303       if test "$GCC" = yes; then
8304         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8305         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8306         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8307       else
8308         allow_undefined_flag=' -expect_unresolved \*'
8309         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8310         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8311         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8312
8313         # Both c and cxx compiler support -rpath directly
8314         hardcode_libdir_flag_spec='-rpath $libdir'
8315       fi
8316       hardcode_libdir_separator=:
8317       ;;
8318
8319     solaris*)
8320       no_undefined_flag=' -z text'
8321       if test "$GCC" = yes; then
8322         wlarc='${wl}'
8323         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8324         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8325           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8326       else
8327         wlarc=''
8328         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8329         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8330         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8331       fi
8332       hardcode_libdir_flag_spec='-R$libdir'
8333       hardcode_shlibpath_var=no
8334       case $host_os in
8335       solaris2.[0-5] | solaris2.[0-5].*) ;;
8336       *)
8337         # The compiler driver will combine linker options so we
8338         # cannot just pass the convience library names through
8339         # without $wl, iff we do not link with $LD.
8340         # Luckily, gcc supports the same syntax we need for Sun Studio.
8341         # Supported since Solaris 2.6 (maybe 2.5.1?)
8342         case $wlarc in
8343         '')
8344           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8345         *)
8346           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8347         esac ;;
8348       esac
8349       link_all_deplibs=yes
8350       ;;
8351
8352     sunos4*)
8353       if test "x$host_vendor" = xsequent; then
8354         # Use $CC to link under sequent, because it throws in some extra .o
8355         # files that make .init and .fini sections work.
8356         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8357       else
8358         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8359       fi
8360       hardcode_libdir_flag_spec='-L$libdir'
8361       hardcode_direct=yes
8362       hardcode_minus_L=yes
8363       hardcode_shlibpath_var=no
8364       ;;
8365
8366     sysv4)
8367       case $host_vendor in
8368         sni)
8369           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8370           hardcode_direct=yes # is this really true???
8371         ;;
8372         siemens)
8373           ## LD is ld it makes a PLAMLIB
8374           ## CC just makes a GrossModule.
8375           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8376           reload_cmds='$CC -r -o $output$reload_objs'
8377           hardcode_direct=no
8378         ;;
8379         motorola)
8380           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8382         ;;
8383       esac
8384       runpath_var='LD_RUN_PATH'
8385       hardcode_shlibpath_var=no
8386       ;;
8387
8388     sysv4.3*)
8389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390       hardcode_shlibpath_var=no
8391       export_dynamic_flag_spec='-Bexport'
8392       ;;
8393
8394     sysv4*MP*)
8395       if test -d /usr/nec; then
8396         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397         hardcode_shlibpath_var=no
8398         runpath_var=LD_RUN_PATH
8399         hardcode_runpath_var=yes
8400         ld_shlibs=yes
8401       fi
8402       ;;
8403
8404     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8405       no_undefined_flag='${wl}-z,text'
8406       archive_cmds_need_lc=no
8407       hardcode_shlibpath_var=no
8408       runpath_var='LD_RUN_PATH'
8409
8410       if test "$GCC" = yes; then
8411         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8412         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8413       else
8414         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416       fi
8417       ;;
8418
8419     sysv5* | sco3.2v5* | sco5v6*)
8420       # Note: We can NOT use -z defs as we might desire, because we do not
8421       # link with -lc, and that would cause any symbols used from libc to
8422       # always be unresolved, which means just about no library would
8423       # ever link correctly.  If we're not using GNU ld we use -z text
8424       # though, which does catch some bad symbols but isn't as heavy-handed
8425       # as -z defs.
8426       no_undefined_flag='${wl}-z,text'
8427       allow_undefined_flag='${wl}-z,nodefs'
8428       archive_cmds_need_lc=no
8429       hardcode_shlibpath_var=no
8430       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8431       hardcode_libdir_separator=':'
8432       link_all_deplibs=yes
8433       export_dynamic_flag_spec='${wl}-Bexport'
8434       runpath_var='LD_RUN_PATH'
8435
8436       if test "$GCC" = yes; then
8437         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8438         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8439       else
8440         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442       fi
8443       ;;
8444
8445     uts4*)
8446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447       hardcode_libdir_flag_spec='-L$libdir'
8448       hardcode_shlibpath_var=no
8449       ;;
8450
8451     *)
8452       ld_shlibs=no
8453       ;;
8454     esac
8455   fi
8456
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8458 $as_echo "$ld_shlibs" >&6; }
8459 test "$ld_shlibs" = no && can_build_shared=no
8460
8461 #
8462 # Do we need to explicitly link libc?
8463 #
8464 case "x$archive_cmds_need_lc" in
8465 x|xyes)
8466   # Assume -lc should be added
8467   archive_cmds_need_lc=yes
8468
8469   if test "$enable_shared" = yes && test "$GCC" = yes; then
8470     case $archive_cmds in
8471     *'~'*)
8472       # FIXME: we may have to deal with multi-command sequences.
8473       ;;
8474     '$CC '*)
8475       # Test whether the compiler implicitly links with -lc since on some
8476       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8477       # to ld, don't add -lc before -lgcc.
8478       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8479 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8480       $rm conftest*
8481       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8482
8483       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8484   (eval $ac_compile) 2>&5
8485   ac_status=$?
8486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8487   test $ac_status = 0; } 2>conftest.err; then
8488         soname=conftest
8489         lib=conftest
8490         libobjs=conftest.$ac_objext
8491         deplibs=
8492         wl=$lt_prog_compiler_wl
8493         pic_flag=$lt_prog_compiler_pic
8494         compiler_flags=-v
8495         linker_flags=-v
8496         verstring=
8497         output_objdir=.
8498         libname=conftest
8499         lt_save_allow_undefined_flag=$allow_undefined_flag
8500         allow_undefined_flag=
8501         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8502   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8503   ac_status=$?
8504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8505   test $ac_status = 0; }
8506         then
8507           archive_cmds_need_lc=no
8508         else
8509           archive_cmds_need_lc=yes
8510         fi
8511         allow_undefined_flag=$lt_save_allow_undefined_flag
8512       else
8513         cat conftest.err 1>&5
8514       fi
8515       $rm conftest*
8516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8517 $as_echo "$archive_cmds_need_lc" >&6; }
8518       ;;
8519     esac
8520   fi
8521   ;;
8522 esac
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8525 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8526 library_names_spec=
8527 libname_spec='lib$name'
8528 soname_spec=
8529 shrext_cmds=".so"
8530 postinstall_cmds=
8531 postuninstall_cmds=
8532 finish_cmds=
8533 finish_eval=
8534 shlibpath_var=
8535 shlibpath_overrides_runpath=unknown
8536 version_type=none
8537 dynamic_linker="$host_os ld.so"
8538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8539 if test "$GCC" = yes; then
8540   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8541   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8542     # if the path contains ";" then we assume it to be the separator
8543     # otherwise default to the standard path separator (i.e. ":") - it is
8544     # assumed that no part of a normal pathname contains ";" but that should
8545     # okay in the real world where ";" in dirpaths is itself problematic.
8546     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8547   else
8548     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8549   fi
8550 else
8551   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8552 fi
8553 need_lib_prefix=unknown
8554 hardcode_into_libs=no
8555
8556 # when you set need_version to no, make sure it does not cause -set_version
8557 # flags to be left without arguments
8558 need_version=unknown
8559
8560 case $host_os in
8561 aix3*)
8562   version_type=linux
8563   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8564   shlibpath_var=LIBPATH
8565
8566   # AIX 3 has no versioning support, so we append a major version to the name.
8567   soname_spec='${libname}${release}${shared_ext}$major'
8568   ;;
8569
8570 aix4* | aix5*)
8571   version_type=linux
8572   need_lib_prefix=no
8573   need_version=no
8574   hardcode_into_libs=yes
8575   if test "$host_cpu" = ia64; then
8576     # AIX 5 supports IA64
8577     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8578     shlibpath_var=LD_LIBRARY_PATH
8579   else
8580     # With GCC up to 2.95.x, collect2 would create an import file
8581     # for dependence libraries.  The import file would start with
8582     # the line `#! .'.  This would cause the generated library to
8583     # depend on `.', always an invalid library.  This was fixed in
8584     # development snapshots of GCC prior to 3.0.
8585     case $host_os in
8586       aix4 | aix4.[01] | aix4.[01].*)
8587       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8588            echo ' yes '
8589            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8590         :
8591       else
8592         can_build_shared=no
8593       fi
8594       ;;
8595     esac
8596     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8597     # soname into executable. Probably we can add versioning support to
8598     # collect2, so additional links can be useful in future.
8599     if test "$aix_use_runtimelinking" = yes; then
8600       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8601       # instead of lib<name>.a to let people know that these are not
8602       # typical AIX shared libraries.
8603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604     else
8605       # We preserve .a as extension for shared libraries through AIX4.2
8606       # and later when we are not doing run time linking.
8607       library_names_spec='${libname}${release}.a $libname.a'
8608       soname_spec='${libname}${release}${shared_ext}$major'
8609     fi
8610     shlibpath_var=LIBPATH
8611   fi
8612   ;;
8613
8614 amigaos*)
8615   library_names_spec='$libname.ixlibrary $libname.a'
8616   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8617   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8618   ;;
8619
8620 beos*)
8621   library_names_spec='${libname}${shared_ext}'
8622   dynamic_linker="$host_os ld.so"
8623   shlibpath_var=LIBRARY_PATH
8624   ;;
8625
8626 bsdi[45]*)
8627   version_type=linux
8628   need_version=no
8629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8630   soname_spec='${libname}${release}${shared_ext}$major'
8631   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8632   shlibpath_var=LD_LIBRARY_PATH
8633   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8634   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8635   # the default ld.so.conf also contains /usr/contrib/lib and
8636   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8637   # libtool to hard-code these into programs
8638   ;;
8639
8640 cygwin* | mingw* | pw32*)
8641   version_type=windows
8642   shrext_cmds=".dll"
8643   need_version=no
8644   need_lib_prefix=no
8645
8646   case $GCC,$host_os in
8647   yes,cygwin* | yes,mingw* | yes,pw32*)
8648     library_names_spec='$libname.dll.a'
8649     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8650     postinstall_cmds='base_file=`basename \${file}`~
8651       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8652       dldir=$destdir/`dirname \$dlpath`~
8653       test -d \$dldir || mkdir -p \$dldir~
8654       $install_prog $dir/$dlname \$dldir/$dlname~
8655       chmod a+x \$dldir/$dlname'
8656     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8657       dlpath=$dir/\$dldll~
8658        $rm \$dlpath'
8659     shlibpath_overrides_runpath=yes
8660
8661     case $host_os in
8662     cygwin*)
8663       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8664       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8665       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8666       ;;
8667     mingw*)
8668       # MinGW DLLs use traditional 'lib' prefix
8669       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8670       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8671       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8672         # It is most probably a Windows format PATH printed by
8673         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8674         # path with ; separators, and with drive letters. We can handle the
8675         # drive letters (cygwin fileutils understands them), so leave them,
8676         # especially as we might pass files found there to a mingw objdump,
8677         # which wouldn't understand a cygwinified path. Ahh.
8678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8679       else
8680         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8681       fi
8682       ;;
8683     pw32*)
8684       # pw32 DLLs use 'pw' prefix rather than 'lib'
8685       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8686       ;;
8687     esac
8688     ;;
8689
8690   *)
8691     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8692     ;;
8693   esac
8694   dynamic_linker='Win32 ld.exe'
8695   # FIXME: first we should search . and the directory the executable is in
8696   shlibpath_var=PATH
8697   ;;
8698
8699 darwin* | rhapsody*)
8700   dynamic_linker="$host_os dyld"
8701   version_type=darwin
8702   need_lib_prefix=no
8703   need_version=no
8704   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8705   soname_spec='${libname}${release}${major}$shared_ext'
8706   shlibpath_overrides_runpath=yes
8707   shlibpath_var=DYLD_LIBRARY_PATH
8708   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8709   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8710   if test "$GCC" = yes; then
8711     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8712   else
8713     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8714   fi
8715   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8716   ;;
8717
8718 dgux*)
8719   version_type=linux
8720   need_lib_prefix=no
8721   need_version=no
8722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8723   soname_spec='${libname}${release}${shared_ext}$major'
8724   shlibpath_var=LD_LIBRARY_PATH
8725   ;;
8726
8727 freebsd1*)
8728   dynamic_linker=no
8729   ;;
8730
8731 kfreebsd*-gnu)
8732   version_type=linux
8733   need_lib_prefix=no
8734   need_version=no
8735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8736   soname_spec='${libname}${release}${shared_ext}$major'
8737   shlibpath_var=LD_LIBRARY_PATH
8738   shlibpath_overrides_runpath=no
8739   hardcode_into_libs=yes
8740   dynamic_linker='GNU ld.so'
8741   ;;
8742
8743 freebsd* | dragonfly*)
8744   # DragonFly does not have aout.  When/if they implement a new
8745   # versioning mechanism, adjust this.
8746   if test -x /usr/bin/objformat; then
8747     objformat=`/usr/bin/objformat`
8748   else
8749     case $host_os in
8750     freebsd[123]*) objformat=aout ;;
8751     *) objformat=elf ;;
8752     esac
8753   fi
8754   version_type=freebsd-$objformat
8755   case $version_type in
8756     freebsd-elf*)
8757       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8758       need_version=no
8759       need_lib_prefix=no
8760       ;;
8761     freebsd-*)
8762       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8763       need_version=yes
8764       ;;
8765   esac
8766   shlibpath_var=LD_LIBRARY_PATH
8767   case $host_os in
8768   freebsd2*)
8769     shlibpath_overrides_runpath=yes
8770     ;;
8771   freebsd3.[01]* | freebsdelf3.[01]*)
8772     shlibpath_overrides_runpath=yes
8773     hardcode_into_libs=yes
8774     ;;
8775   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8776   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8777     shlibpath_overrides_runpath=no
8778     hardcode_into_libs=yes
8779     ;;
8780   freebsd*) # from 4.6 on
8781     shlibpath_overrides_runpath=yes
8782     hardcode_into_libs=yes
8783     ;;
8784   esac
8785   ;;
8786
8787 gnu*)
8788   version_type=linux
8789   need_lib_prefix=no
8790   need_version=no
8791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8792   soname_spec='${libname}${release}${shared_ext}$major'
8793   shlibpath_var=LD_LIBRARY_PATH
8794   hardcode_into_libs=yes
8795   ;;
8796
8797 hpux9* | hpux10* | hpux11*)
8798   # Give a soname corresponding to the major version so that dld.sl refuses to
8799   # link against other versions.
8800   version_type=sunos
8801   need_lib_prefix=no
8802   need_version=no
8803   case $host_cpu in
8804   ia64*)
8805     shrext_cmds='.so'
8806     hardcode_into_libs=yes
8807     dynamic_linker="$host_os dld.so"
8808     shlibpath_var=LD_LIBRARY_PATH
8809     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811     soname_spec='${libname}${release}${shared_ext}$major'
8812     if test "X$HPUX_IA64_MODE" = X32; then
8813       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8814     else
8815       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8816     fi
8817     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8818     ;;
8819    hppa*64*)
8820      shrext_cmds='.sl'
8821      hardcode_into_libs=yes
8822      dynamic_linker="$host_os dld.sl"
8823      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8824      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8825      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826      soname_spec='${libname}${release}${shared_ext}$major'
8827      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8828      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8829      ;;
8830    *)
8831     shrext_cmds='.sl'
8832     dynamic_linker="$host_os dld.sl"
8833     shlibpath_var=SHLIB_PATH
8834     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836     soname_spec='${libname}${release}${shared_ext}$major'
8837     ;;
8838   esac
8839   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8840   postinstall_cmds='chmod 555 $lib'
8841   ;;
8842
8843 interix3*)
8844   version_type=linux
8845   need_lib_prefix=no
8846   need_version=no
8847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8848   soname_spec='${libname}${release}${shared_ext}$major'
8849   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8850   shlibpath_var=LD_LIBRARY_PATH
8851   shlibpath_overrides_runpath=no
8852   hardcode_into_libs=yes
8853   ;;
8854
8855 irix5* | irix6* | nonstopux*)
8856   case $host_os in
8857     nonstopux*) version_type=nonstopux ;;
8858     *)
8859         if test "$lt_cv_prog_gnu_ld" = yes; then
8860                 version_type=linux
8861         else
8862                 version_type=irix
8863         fi ;;
8864   esac
8865   need_lib_prefix=no
8866   need_version=no
8867   soname_spec='${libname}${release}${shared_ext}$major'
8868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8869   case $host_os in
8870   irix5* | nonstopux*)
8871     libsuff= shlibsuff=
8872     ;;
8873   *)
8874     case $LD in # libtool.m4 will add one of these switches to LD
8875     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8876       libsuff= shlibsuff= libmagic=32-bit;;
8877     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8878       libsuff=32 shlibsuff=N32 libmagic=N32;;
8879     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8880       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8881     *) libsuff= shlibsuff= libmagic=never-match;;
8882     esac
8883     ;;
8884   esac
8885   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8886   shlibpath_overrides_runpath=no
8887   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8888   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8889   hardcode_into_libs=yes
8890   ;;
8891
8892 # No shared lib support for Linux oldld, aout, or coff.
8893 linux*oldld* | linux*aout* | linux*coff*)
8894   dynamic_linker=no
8895   ;;
8896
8897 # This must be Linux ELF.
8898 linux*)
8899   version_type=linux
8900   need_lib_prefix=no
8901   need_version=no
8902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903   soname_spec='${libname}${release}${shared_ext}$major'
8904   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8905   shlibpath_var=LD_LIBRARY_PATH
8906   shlibpath_overrides_runpath=no
8907   # This implies no fast_install, which is unacceptable.
8908   # Some rework will be needed to allow for fast_install
8909   # before this can be enabled.
8910   hardcode_into_libs=yes
8911
8912   # Append ld.so.conf contents to the search path
8913   if test -f /etc/ld.so.conf; then
8914     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8915     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8916   fi
8917
8918   # We used to test for /lib/ld.so.1 and disable shared libraries on
8919   # powerpc, because MkLinux only supported shared libraries with the
8920   # GNU dynamic linker.  Since this was broken with cross compilers,
8921   # most powerpc-linux boxes support dynamic linking these days and
8922   # people can always --disable-shared, the test was removed, and we
8923   # assume the GNU/Linux dynamic linker is in use.
8924   dynamic_linker='GNU/Linux ld.so'
8925   ;;
8926
8927 netbsdelf*-gnu)
8928   version_type=linux
8929   need_lib_prefix=no
8930   need_version=no
8931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8932   soname_spec='${libname}${release}${shared_ext}$major'
8933   shlibpath_var=LD_LIBRARY_PATH
8934   shlibpath_overrides_runpath=no
8935   hardcode_into_libs=yes
8936   dynamic_linker='NetBSD ld.elf_so'
8937   ;;
8938
8939 knetbsd*-gnu)
8940   version_type=linux
8941   need_lib_prefix=no
8942   need_version=no
8943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944   soname_spec='${libname}${release}${shared_ext}$major'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   shlibpath_overrides_runpath=no
8947   hardcode_into_libs=yes
8948   dynamic_linker='GNU ld.so'
8949   ;;
8950
8951 netbsd*)
8952   version_type=sunos
8953   need_lib_prefix=no
8954   need_version=no
8955   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8958     dynamic_linker='NetBSD (a.out) ld.so'
8959   else
8960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8961     soname_spec='${libname}${release}${shared_ext}$major'
8962     dynamic_linker='NetBSD ld.elf_so'
8963   fi
8964   shlibpath_var=LD_LIBRARY_PATH
8965   shlibpath_overrides_runpath=yes
8966   hardcode_into_libs=yes
8967   ;;
8968
8969 newsos6)
8970   version_type=linux
8971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   shlibpath_overrides_runpath=yes
8974   ;;
8975
8976 nto-qnx*)
8977   version_type=linux
8978   need_lib_prefix=no
8979   need_version=no
8980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981   soname_spec='${libname}${release}${shared_ext}$major'
8982   shlibpath_var=LD_LIBRARY_PATH
8983   shlibpath_overrides_runpath=yes
8984   ;;
8985
8986 openbsd*)
8987   version_type=sunos
8988   sys_lib_dlsearch_path_spec="/usr/lib"
8989   need_lib_prefix=no
8990   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8991   case $host_os in
8992     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8993     *)                         need_version=no  ;;
8994   esac
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8997   shlibpath_var=LD_LIBRARY_PATH
8998   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8999     case $host_os in
9000       openbsd2.[89] | openbsd2.[89].*)
9001         shlibpath_overrides_runpath=no
9002         ;;
9003       *)
9004         shlibpath_overrides_runpath=yes
9005         ;;
9006       esac
9007   else
9008     shlibpath_overrides_runpath=yes
9009   fi
9010   ;;
9011
9012 os2*)
9013   libname_spec='$name'
9014   shrext_cmds=".dll"
9015   need_lib_prefix=no
9016   library_names_spec='$libname${shared_ext} $libname.a'
9017   dynamic_linker='OS/2 ld.exe'
9018   shlibpath_var=LIBPATH
9019   ;;
9020
9021 osf3* | osf4* | osf5*)
9022   version_type=osf
9023   need_lib_prefix=no
9024   need_version=no
9025   soname_spec='${libname}${release}${shared_ext}$major'
9026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9029   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9030   ;;
9031
9032 solaris*)
9033   version_type=linux
9034   need_lib_prefix=no
9035   need_version=no
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037   soname_spec='${libname}${release}${shared_ext}$major'
9038   shlibpath_var=LD_LIBRARY_PATH
9039   shlibpath_overrides_runpath=yes
9040   hardcode_into_libs=yes
9041   # ldd complains unless libraries are executable
9042   postinstall_cmds='chmod +x $lib'
9043   ;;
9044
9045 sunos4*)
9046   version_type=sunos
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   shlibpath_overrides_runpath=yes
9051   if test "$with_gnu_ld" = yes; then
9052     need_lib_prefix=no
9053   fi
9054   need_version=yes
9055   ;;
9056
9057 sysv4 | sysv4.3*)
9058   version_type=linux
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060   soname_spec='${libname}${release}${shared_ext}$major'
9061   shlibpath_var=LD_LIBRARY_PATH
9062   case $host_vendor in
9063     sni)
9064       shlibpath_overrides_runpath=no
9065       need_lib_prefix=no
9066       export_dynamic_flag_spec='${wl}-Blargedynsym'
9067       runpath_var=LD_RUN_PATH
9068       ;;
9069     siemens)
9070       need_lib_prefix=no
9071       ;;
9072     motorola)
9073       need_lib_prefix=no
9074       need_version=no
9075       shlibpath_overrides_runpath=no
9076       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9077       ;;
9078   esac
9079   ;;
9080
9081 sysv4*MP*)
9082   if test -d /usr/nec ;then
9083     version_type=linux
9084     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9085     soname_spec='$libname${shared_ext}.$major'
9086     shlibpath_var=LD_LIBRARY_PATH
9087   fi
9088   ;;
9089
9090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9091   version_type=freebsd-elf
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   hardcode_into_libs=yes
9098   if test "$with_gnu_ld" = yes; then
9099     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9100     shlibpath_overrides_runpath=no
9101   else
9102     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9103     shlibpath_overrides_runpath=yes
9104     case $host_os in
9105       sco3.2v5*)
9106         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9107         ;;
9108     esac
9109   fi
9110   sys_lib_dlsearch_path_spec='/usr/lib'
9111   ;;
9112
9113 uts4*)
9114   version_type=linux
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   shlibpath_var=LD_LIBRARY_PATH
9118   ;;
9119
9120 *)
9121   dynamic_linker=no
9122   ;;
9123 esac
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9125 $as_echo "$dynamic_linker" >&6; }
9126 test "$dynamic_linker" = no && can_build_shared=no
9127
9128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9129 if test "$GCC" = yes; then
9130   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9131 fi
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9134 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9135 hardcode_action=
9136 if test -n "$hardcode_libdir_flag_spec" || \
9137    test -n "$runpath_var" || \
9138    test "X$hardcode_automatic" = "Xyes" ; then
9139
9140   # We can hardcode non-existant directories.
9141   if test "$hardcode_direct" != no &&
9142      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9143      # have to relink, otherwise we might link with an installed library
9144      # when we should be linking with a yet-to-be-installed one
9145      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9146      test "$hardcode_minus_L" != no; then
9147     # Linking always hardcodes the temporary library directory.
9148     hardcode_action=relink
9149   else
9150     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9151     hardcode_action=immediate
9152   fi
9153 else
9154   # We cannot hardcode anything, or else we can only hardcode existing
9155   # directories.
9156   hardcode_action=unsupported
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9159 $as_echo "$hardcode_action" >&6; }
9160
9161 if test "$hardcode_action" = relink; then
9162   # Fast installation is not supported
9163   enable_fast_install=no
9164 elif test "$shlibpath_overrides_runpath" = yes ||
9165      test "$enable_shared" = no; then
9166   # Fast installation is not necessary
9167   enable_fast_install=needless
9168 fi
9169
9170 striplib=
9171 old_striplib=
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9173 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9174 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9175   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9176   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9178 $as_echo "yes" >&6; }
9179 else
9180 # FIXME - insert some real tests, host_os isn't really good enough
9181   case $host_os in
9182    darwin*)
9183        if test -n "$STRIP" ; then
9184          striplib="$STRIP -x"
9185          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9186 $as_echo "yes" >&6; }
9187        else
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9190 fi
9191        ;;
9192    *)
9193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9195     ;;
9196   esac
9197 fi
9198
9199 if test "x$enable_dlopen" != xyes; then
9200   enable_dlopen=unknown
9201   enable_dlopen_self=unknown
9202   enable_dlopen_self_static=unknown
9203 else
9204   lt_cv_dlopen=no
9205   lt_cv_dlopen_libs=
9206
9207   case $host_os in
9208   beos*)
9209     lt_cv_dlopen="load_add_on"
9210     lt_cv_dlopen_libs=
9211     lt_cv_dlopen_self=yes
9212     ;;
9213
9214   mingw* | pw32*)
9215     lt_cv_dlopen="LoadLibrary"
9216     lt_cv_dlopen_libs=
9217    ;;
9218
9219   cygwin*)
9220     lt_cv_dlopen="dlopen"
9221     lt_cv_dlopen_libs=
9222    ;;
9223
9224   darwin*)
9225   # if libdl is installed we need to link against it
9226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9228 if ${ac_cv_lib_dl_dlopen+:} false; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231   ac_check_lib_save_LIBS=$LIBS
9232 LIBS="-ldl  $LIBS"
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h.  */
9235
9236 /* Override any GCC internal prototype to avoid an error.
9237    Use char because int might match the return type of a GCC
9238    builtin and then its argument prototype would still apply.  */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char dlopen ();
9243 int
9244 main ()
9245 {
9246 return dlopen ();
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 if ac_fn_c_try_link "$LINENO"; then :
9252   ac_cv_lib_dl_dlopen=yes
9253 else
9254   ac_cv_lib_dl_dlopen=no
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext \
9257     conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9262 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9263   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9264 else
9265
9266     lt_cv_dlopen="dyld"
9267     lt_cv_dlopen_libs=
9268     lt_cv_dlopen_self=yes
9269
9270 fi
9271
9272    ;;
9273
9274   *)
9275     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9276 if test "x$ac_cv_func_shl_load" = xyes; then :
9277   lt_cv_dlopen="shl_load"
9278 else
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9280 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9281 if ${ac_cv_lib_dld_shl_load+:} false; then :
9282   $as_echo_n "(cached) " >&6
9283 else
9284   ac_check_lib_save_LIBS=$LIBS
9285 LIBS="-ldld  $LIBS"
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h.  */
9288
9289 /* Override any GCC internal prototype to avoid an error.
9290    Use char because int might match the return type of a GCC
9291    builtin and then its argument prototype would still apply.  */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 char shl_load ();
9296 int
9297 main ()
9298 {
9299 return shl_load ();
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 if ac_fn_c_try_link "$LINENO"; then :
9305   ac_cv_lib_dld_shl_load=yes
9306 else
9307   ac_cv_lib_dld_shl_load=no
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext \
9310     conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9314 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9315 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9316   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9317 else
9318   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9319 if test "x$ac_cv_func_dlopen" = xyes; then :
9320   lt_cv_dlopen="dlopen"
9321 else
9322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9324 if ${ac_cv_lib_dl_dlopen+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   ac_check_lib_save_LIBS=$LIBS
9328 LIBS="-ldl  $LIBS"
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h.  */
9331
9332 /* Override any GCC internal prototype to avoid an error.
9333    Use char because int might match the return type of a GCC
9334    builtin and then its argument prototype would still apply.  */
9335 #ifdef __cplusplus
9336 extern "C"
9337 #endif
9338 char dlopen ();
9339 int
9340 main ()
9341 {
9342 return dlopen ();
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348   ac_cv_lib_dl_dlopen=yes
9349 else
9350   ac_cv_lib_dl_dlopen=no
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext \
9353     conftest$ac_exeext conftest.$ac_ext
9354 LIBS=$ac_check_lib_save_LIBS
9355 fi
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9358 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9359   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9360 else
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9362 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9363 if ${ac_cv_lib_svld_dlopen+:} false; then :
9364   $as_echo_n "(cached) " >&6
9365 else
9366   ac_check_lib_save_LIBS=$LIBS
9367 LIBS="-lsvld  $LIBS"
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h.  */
9370
9371 /* Override any GCC internal prototype to avoid an error.
9372    Use char because int might match the return type of a GCC
9373    builtin and then its argument prototype would still apply.  */
9374 #ifdef __cplusplus
9375 extern "C"
9376 #endif
9377 char dlopen ();
9378 int
9379 main ()
9380 {
9381 return dlopen ();
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_link "$LINENO"; then :
9387   ac_cv_lib_svld_dlopen=yes
9388 else
9389   ac_cv_lib_svld_dlopen=no
9390 fi
9391 rm -f core conftest.err conftest.$ac_objext \
9392     conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9396 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9397 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9398   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9399 else
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9401 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9402 if ${ac_cv_lib_dld_dld_link+:} false; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   ac_check_lib_save_LIBS=$LIBS
9406 LIBS="-ldld  $LIBS"
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h.  */
9409
9410 /* Override any GCC internal prototype to avoid an error.
9411    Use char because int might match the return type of a GCC
9412    builtin and then its argument prototype would still apply.  */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 char dld_link ();
9417 int
9418 main ()
9419 {
9420 return dld_link ();
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 if ac_fn_c_try_link "$LINENO"; then :
9426   ac_cv_lib_dld_dld_link=yes
9427 else
9428   ac_cv_lib_dld_dld_link=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext \
9431     conftest$ac_exeext conftest.$ac_ext
9432 LIBS=$ac_check_lib_save_LIBS
9433 fi
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9436 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9437   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9438 fi
9439
9440
9441 fi
9442
9443
9444 fi
9445
9446
9447 fi
9448
9449
9450 fi
9451
9452
9453 fi
9454
9455     ;;
9456   esac
9457
9458   if test "x$lt_cv_dlopen" != xno; then
9459     enable_dlopen=yes
9460   else
9461     enable_dlopen=no
9462   fi
9463
9464   case $lt_cv_dlopen in
9465   dlopen)
9466     save_CPPFLAGS="$CPPFLAGS"
9467     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9468
9469     save_LDFLAGS="$LDFLAGS"
9470     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9471
9472     save_LIBS="$LIBS"
9473     LIBS="$lt_cv_dlopen_libs $LIBS"
9474
9475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9476 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9477 if ${lt_cv_dlopen_self+:} false; then :
9478   $as_echo_n "(cached) " >&6
9479 else
9480           if test "$cross_compiling" = yes; then :
9481   lt_cv_dlopen_self=cross
9482 else
9483   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9484   lt_status=$lt_dlunknown
9485   cat > conftest.$ac_ext <<EOF
9486 #line 9486 "configure"
9487 #include "confdefs.h"
9488
9489 #if HAVE_DLFCN_H
9490 #include <dlfcn.h>
9491 #endif
9492
9493 #include <stdio.h>
9494
9495 #ifdef RTLD_GLOBAL
9496 #  define LT_DLGLOBAL           RTLD_GLOBAL
9497 #else
9498 #  ifdef DL_GLOBAL
9499 #    define LT_DLGLOBAL         DL_GLOBAL
9500 #  else
9501 #    define LT_DLGLOBAL         0
9502 #  endif
9503 #endif
9504
9505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9506    find out it does not work in some platform. */
9507 #ifndef LT_DLLAZY_OR_NOW
9508 #  ifdef RTLD_LAZY
9509 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9510 #  else
9511 #    ifdef DL_LAZY
9512 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9513 #    else
9514 #      ifdef RTLD_NOW
9515 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9516 #      else
9517 #        ifdef DL_NOW
9518 #          define LT_DLLAZY_OR_NOW      DL_NOW
9519 #        else
9520 #          define LT_DLLAZY_OR_NOW      0
9521 #        endif
9522 #      endif
9523 #    endif
9524 #  endif
9525 #endif
9526
9527 #ifdef __cplusplus
9528 extern "C" void exit (int);
9529 #endif
9530
9531 void fnord() { int i=42;}
9532 int main ()
9533 {
9534   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9535   int status = $lt_dlunknown;
9536
9537   if (self)
9538     {
9539       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9540       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9541       /* dlclose (self); */
9542     }
9543   else
9544     puts (dlerror ());
9545
9546     exit (status);
9547 }
9548 EOF
9549   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9550   (eval $ac_link) 2>&5
9551   ac_status=$?
9552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9553   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9554     (./conftest; exit; ) >&5 2>/dev/null
9555     lt_status=$?
9556     case x$lt_status in
9557       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9558       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9559       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9560     esac
9561   else :
9562     # compilation failed
9563     lt_cv_dlopen_self=no
9564   fi
9565 fi
9566 rm -fr conftest*
9567
9568
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9571 $as_echo "$lt_cv_dlopen_self" >&6; }
9572
9573     if test "x$lt_cv_dlopen_self" = xyes; then
9574       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9575       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9576 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9577 if ${lt_cv_dlopen_self_static+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580           if test "$cross_compiling" = yes; then :
9581   lt_cv_dlopen_self_static=cross
9582 else
9583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9584   lt_status=$lt_dlunknown
9585   cat > conftest.$ac_ext <<EOF
9586 #line 9586 "configure"
9587 #include "confdefs.h"
9588
9589 #if HAVE_DLFCN_H
9590 #include <dlfcn.h>
9591 #endif
9592
9593 #include <stdio.h>
9594
9595 #ifdef RTLD_GLOBAL
9596 #  define LT_DLGLOBAL           RTLD_GLOBAL
9597 #else
9598 #  ifdef DL_GLOBAL
9599 #    define LT_DLGLOBAL         DL_GLOBAL
9600 #  else
9601 #    define LT_DLGLOBAL         0
9602 #  endif
9603 #endif
9604
9605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9606    find out it does not work in some platform. */
9607 #ifndef LT_DLLAZY_OR_NOW
9608 #  ifdef RTLD_LAZY
9609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9610 #  else
9611 #    ifdef DL_LAZY
9612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9613 #    else
9614 #      ifdef RTLD_NOW
9615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9616 #      else
9617 #        ifdef DL_NOW
9618 #          define LT_DLLAZY_OR_NOW      DL_NOW
9619 #        else
9620 #          define LT_DLLAZY_OR_NOW      0
9621 #        endif
9622 #      endif
9623 #    endif
9624 #  endif
9625 #endif
9626
9627 #ifdef __cplusplus
9628 extern "C" void exit (int);
9629 #endif
9630
9631 void fnord() { int i=42;}
9632 int main ()
9633 {
9634   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9635   int status = $lt_dlunknown;
9636
9637   if (self)
9638     {
9639       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9640       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9641       /* dlclose (self); */
9642     }
9643   else
9644     puts (dlerror ());
9645
9646     exit (status);
9647 }
9648 EOF
9649   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9650   (eval $ac_link) 2>&5
9651   ac_status=$?
9652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9653   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9654     (./conftest; exit; ) >&5 2>/dev/null
9655     lt_status=$?
9656     case x$lt_status in
9657       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9658       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9659       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9660     esac
9661   else :
9662     # compilation failed
9663     lt_cv_dlopen_self_static=no
9664   fi
9665 fi
9666 rm -fr conftest*
9667
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9671 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9672     fi
9673
9674     CPPFLAGS="$save_CPPFLAGS"
9675     LDFLAGS="$save_LDFLAGS"
9676     LIBS="$save_LIBS"
9677     ;;
9678   esac
9679
9680   case $lt_cv_dlopen_self in
9681   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9682   *) enable_dlopen_self=unknown ;;
9683   esac
9684
9685   case $lt_cv_dlopen_self_static in
9686   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9687   *) enable_dlopen_self_static=unknown ;;
9688   esac
9689 fi
9690
9691
9692 # Report which library types will actually be built
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9694 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9696 $as_echo "$can_build_shared" >&6; }
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9699 $as_echo_n "checking whether to build shared libraries... " >&6; }
9700 test "$can_build_shared" = "no" && enable_shared=no
9701
9702 # On AIX, shared libraries and static libraries use the same namespace, and
9703 # are all built from PIC.
9704 case $host_os in
9705 aix3*)
9706   test "$enable_shared" = yes && enable_static=no
9707   if test -n "$RANLIB"; then
9708     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9709     postinstall_cmds='$RANLIB $lib'
9710   fi
9711   ;;
9712
9713 aix4* | aix5*)
9714   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9715     test "$enable_shared" = yes && enable_static=no
9716   fi
9717     ;;
9718 esac
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9720 $as_echo "$enable_shared" >&6; }
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9723 $as_echo_n "checking whether to build static libraries... " >&6; }
9724 # Make sure either enable_shared or enable_static is yes.
9725 test "$enable_shared" = yes || enable_static=yes
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9727 $as_echo "$enable_static" >&6; }
9728
9729 # The else clause should only fire when bootstrapping the
9730 # libtool distribution, otherwise you forgot to ship ltmain.sh
9731 # with your package, and you will get complaints that there are
9732 # no rules to generate ltmain.sh.
9733 if test -f "$ltmain"; then
9734   # See if we are running on zsh, and set the options which allow our commands through
9735   # without removal of \ escapes.
9736   if test -n "${ZSH_VERSION+set}" ; then
9737     setopt NO_GLOB_SUBST
9738   fi
9739   # Now quote all the things that may contain metacharacters while being
9740   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9741   # variables and quote the copies for generation of the libtool script.
9742   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9743     SED SHELL STRIP \
9744     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9745     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9746     deplibs_check_method reload_flag reload_cmds need_locks \
9747     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9748     lt_cv_sys_global_symbol_to_c_name_address \
9749     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9750     old_postinstall_cmds old_postuninstall_cmds \
9751     compiler \
9752     CC \
9753     LD \
9754     lt_prog_compiler_wl \
9755     lt_prog_compiler_pic \
9756     lt_prog_compiler_static \
9757     lt_prog_compiler_no_builtin_flag \
9758     export_dynamic_flag_spec \
9759     thread_safe_flag_spec \
9760     whole_archive_flag_spec \
9761     enable_shared_with_static_runtimes \
9762     old_archive_cmds \
9763     old_archive_from_new_cmds \
9764     predep_objects \
9765     postdep_objects \
9766     predeps \
9767     postdeps \
9768     compiler_lib_search_path \
9769     archive_cmds \
9770     archive_expsym_cmds \
9771     postinstall_cmds \
9772     postuninstall_cmds \
9773     old_archive_from_expsyms_cmds \
9774     allow_undefined_flag \
9775     no_undefined_flag \
9776     export_symbols_cmds \
9777     hardcode_libdir_flag_spec \
9778     hardcode_libdir_flag_spec_ld \
9779     hardcode_libdir_separator \
9780     hardcode_automatic \
9781     module_cmds \
9782     module_expsym_cmds \
9783     lt_cv_prog_compiler_c_o \
9784     exclude_expsyms \
9785     include_expsyms; do
9786
9787     case $var in
9788     old_archive_cmds | \
9789     old_archive_from_new_cmds | \
9790     archive_cmds | \
9791     archive_expsym_cmds | \
9792     module_cmds | \
9793     module_expsym_cmds | \
9794     old_archive_from_expsyms_cmds | \
9795     export_symbols_cmds | \
9796     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9797     postinstall_cmds | postuninstall_cmds | \
9798     old_postinstall_cmds | old_postuninstall_cmds | \
9799     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9800       # Double-quote double-evaled strings.
9801       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9802       ;;
9803     *)
9804       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9805       ;;
9806     esac
9807   done
9808
9809   case $lt_echo in
9810   *'\$0 --fallback-echo"')
9811     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9812     ;;
9813   esac
9814
9815 cfgfile="${ofile}T"
9816   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9817   $rm -f "$cfgfile"
9818   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9819 $as_echo "$as_me: creating $ofile" >&6;}
9820
9821   cat <<__EOF__ >> "$cfgfile"
9822 #! $SHELL
9823
9824 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9825 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9826 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9827 #
9828 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9829 # Free Software Foundation, Inc.
9830 #
9831 # This file is part of GNU Libtool:
9832 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9833 #
9834 # This program is free software; you can redistribute it and/or modify
9835 # it under the terms of the GNU General Public License as published by
9836 # the Free Software Foundation; either version 2 of the License, or
9837 # (at your option) any later version.
9838 #
9839 # This program is distributed in the hope that it will be useful, but
9840 # WITHOUT ANY WARRANTY; without even the implied warranty of
9841 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9842 # General Public License for more details.
9843 #
9844 # You should have received a copy of the GNU General Public License
9845 # along with this program; if not, write to the Free Software
9846 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9847 #
9848 # As a special exception to the GNU General Public License, if you
9849 # distribute this file as part of a program that contains a
9850 # configuration script generated by Autoconf, you may include it under
9851 # the same distribution terms that you use for the rest of that program.
9852
9853 # A sed program that does not truncate output.
9854 SED=$lt_SED
9855
9856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9857 Xsed="$SED -e 1s/^X//"
9858
9859 # The HP-UX ksh and POSIX shell print the target directory to stdout
9860 # if CDPATH is set.
9861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9862
9863 # The names of the tagged configurations supported by this script.
9864 available_tags=
9865
9866 # ### BEGIN LIBTOOL CONFIG
9867
9868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9869
9870 # Shell to use when invoking shell scripts.
9871 SHELL=$lt_SHELL
9872
9873 # Whether or not to build shared libraries.
9874 build_libtool_libs=$enable_shared
9875
9876 # Whether or not to build static libraries.
9877 build_old_libs=$enable_static
9878
9879 # Whether or not to add -lc for building shared libraries.
9880 build_libtool_need_lc=$archive_cmds_need_lc
9881
9882 # Whether or not to disallow shared libs when runtime libs are static
9883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9884
9885 # Whether or not to optimize for fast installation.
9886 fast_install=$enable_fast_install
9887
9888 # The host system.
9889 host_alias=$host_alias
9890 host=$host
9891 host_os=$host_os
9892
9893 # The build system.
9894 build_alias=$build_alias
9895 build=$build
9896 build_os=$build_os
9897
9898 # An echo program that does not interpret backslashes.
9899 echo=$lt_echo
9900
9901 # The archiver.
9902 AR=$lt_AR
9903 AR_FLAGS=$lt_AR_FLAGS
9904
9905 # A C compiler.
9906 LTCC=$lt_LTCC
9907
9908 # LTCC compiler flags.
9909 LTCFLAGS=$lt_LTCFLAGS
9910
9911 # A language-specific compiler.
9912 CC=$lt_compiler
9913
9914 # Is the compiler the GNU C compiler?
9915 with_gcc=$GCC
9916
9917 # An ERE matcher.
9918 EGREP=$lt_EGREP
9919
9920 # The linker used to build libraries.
9921 LD=$lt_LD
9922
9923 # Whether we need hard or soft links.
9924 LN_S=$lt_LN_S
9925
9926 # A BSD-compatible nm program.
9927 NM=$lt_NM
9928
9929 # A symbol stripping program
9930 STRIP=$lt_STRIP
9931
9932 # Used to examine libraries when file_magic_cmd begins "file"
9933 MAGIC_CMD=$MAGIC_CMD
9934
9935 # Used on cygwin: DLL creation program.
9936 DLLTOOL="$DLLTOOL"
9937
9938 # Used on cygwin: object dumper.
9939 OBJDUMP="$OBJDUMP"
9940
9941 # Used on cygwin: assembler.
9942 AS="$AS"
9943
9944 # The name of the directory that contains temporary libtool files.
9945 objdir=$objdir
9946
9947 # How to create reloadable object files.
9948 reload_flag=$lt_reload_flag
9949 reload_cmds=$lt_reload_cmds
9950
9951 # How to pass a linker flag through the compiler.
9952 wl=$lt_lt_prog_compiler_wl
9953
9954 # Object file suffix (normally "o").
9955 objext="$ac_objext"
9956
9957 # Old archive suffix (normally "a").
9958 libext="$libext"
9959
9960 # Shared library suffix (normally ".so").
9961 shrext_cmds='$shrext_cmds'
9962
9963 # Executable file suffix (normally "").
9964 exeext="$exeext"
9965
9966 # Additional compiler flags for building library objects.
9967 pic_flag=$lt_lt_prog_compiler_pic
9968 pic_mode=$pic_mode
9969
9970 # What is the maximum length of a command?
9971 max_cmd_len=$lt_cv_sys_max_cmd_len
9972
9973 # Does compiler simultaneously support -c and -o options?
9974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9975
9976 # Must we lock files when doing compilation?
9977 need_locks=$lt_need_locks
9978
9979 # Do we need the lib prefix for modules?
9980 need_lib_prefix=$need_lib_prefix
9981
9982 # Do we need a version for libraries?
9983 need_version=$need_version
9984
9985 # Whether dlopen is supported.
9986 dlopen_support=$enable_dlopen
9987
9988 # Whether dlopen of programs is supported.
9989 dlopen_self=$enable_dlopen_self
9990
9991 # Whether dlopen of statically linked programs is supported.
9992 dlopen_self_static=$enable_dlopen_self_static
9993
9994 # Compiler flag to prevent dynamic linking.
9995 link_static_flag=$lt_lt_prog_compiler_static
9996
9997 # Compiler flag to turn off builtin functions.
9998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9999
10000 # Compiler flag to allow reflexive dlopens.
10001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10002
10003 # Compiler flag to generate shared objects directly from archives.
10004 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10005
10006 # Compiler flag to generate thread-safe objects.
10007 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10008
10009 # Library versioning type.
10010 version_type=$version_type
10011
10012 # Format of library name prefix.
10013 libname_spec=$lt_libname_spec
10014
10015 # List of archive names.  First name is the real one, the rest are links.
10016 # The last name is the one that the linker finds with -lNAME.
10017 library_names_spec=$lt_library_names_spec
10018
10019 # The coded name of the library, if different from the real name.
10020 soname_spec=$lt_soname_spec
10021
10022 # Commands used to build and install an old-style archive.
10023 RANLIB=$lt_RANLIB
10024 old_archive_cmds=$lt_old_archive_cmds
10025 old_postinstall_cmds=$lt_old_postinstall_cmds
10026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10027
10028 # Create an old-style archive from a shared archive.
10029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10030
10031 # Create a temporary old-style archive to link instead of a shared archive.
10032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10033
10034 # Commands used to build and install a shared archive.
10035 archive_cmds=$lt_archive_cmds
10036 archive_expsym_cmds=$lt_archive_expsym_cmds
10037 postinstall_cmds=$lt_postinstall_cmds
10038 postuninstall_cmds=$lt_postuninstall_cmds
10039
10040 # Commands used to build a loadable module (assumed same as above if empty)
10041 module_cmds=$lt_module_cmds
10042 module_expsym_cmds=$lt_module_expsym_cmds
10043
10044 # Commands to strip libraries.
10045 old_striplib=$lt_old_striplib
10046 striplib=$lt_striplib
10047
10048 # Dependencies to place before the objects being linked to create a
10049 # shared library.
10050 predep_objects=$lt_predep_objects
10051
10052 # Dependencies to place after the objects being linked to create a
10053 # shared library.
10054 postdep_objects=$lt_postdep_objects
10055
10056 # Dependencies to place before the objects being linked to create a
10057 # shared library.
10058 predeps=$lt_predeps
10059
10060 # Dependencies to place after the objects being linked to create a
10061 # shared library.
10062 postdeps=$lt_postdeps
10063
10064 # The library search path used internally by the compiler when linking
10065 # a shared library.
10066 compiler_lib_search_path=$lt_compiler_lib_search_path
10067
10068 # Method to check whether dependent libraries are shared objects.
10069 deplibs_check_method=$lt_deplibs_check_method
10070
10071 # Command to use when deplibs_check_method == file_magic.
10072 file_magic_cmd=$lt_file_magic_cmd
10073
10074 # Flag that allows shared libraries with undefined symbols to be built.
10075 allow_undefined_flag=$lt_allow_undefined_flag
10076
10077 # Flag that forces no undefined symbols.
10078 no_undefined_flag=$lt_no_undefined_flag
10079
10080 # Commands used to finish a libtool library installation in a directory.
10081 finish_cmds=$lt_finish_cmds
10082
10083 # Same as above, but a single script fragment to be evaled but not shown.
10084 finish_eval=$lt_finish_eval
10085
10086 # Take the output of nm and produce a listing of raw symbols and C names.
10087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10088
10089 # Transform the output of nm in a proper C declaration
10090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10091
10092 # Transform the output of nm in a C name address pair
10093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10094
10095 # This is the shared library runtime path variable.
10096 runpath_var=$runpath_var
10097
10098 # This is the shared library path variable.
10099 shlibpath_var=$shlibpath_var
10100
10101 # Is shlibpath searched before the hard-coded library search path?
10102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10103
10104 # How to hardcode a shared library path into an executable.
10105 hardcode_action=$hardcode_action
10106
10107 # Whether we should hardcode library paths into libraries.
10108 hardcode_into_libs=$hardcode_into_libs
10109
10110 # Flag to hardcode \$libdir into a binary during linking.
10111 # This must work even if \$libdir does not exist.
10112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10113
10114 # If ld is used when linking, flag to hardcode \$libdir into
10115 # a binary during linking. This must work even if \$libdir does
10116 # not exist.
10117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10118
10119 # Whether we need a single -rpath flag with a separated argument.
10120 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10121
10122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10123 # resulting binary.
10124 hardcode_direct=$hardcode_direct
10125
10126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10127 # resulting binary.
10128 hardcode_minus_L=$hardcode_minus_L
10129
10130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10131 # the resulting binary.
10132 hardcode_shlibpath_var=$hardcode_shlibpath_var
10133
10134 # Set to yes if building a shared library automatically hardcodes DIR into the library
10135 # and all subsequent libraries and executables linked against it.
10136 hardcode_automatic=$hardcode_automatic
10137
10138 # Variables whose values should be saved in libtool wrapper scripts and
10139 # restored at relink time.
10140 variables_saved_for_relink="$variables_saved_for_relink"
10141
10142 # Whether libtool must link a program against all its dependency libraries.
10143 link_all_deplibs=$link_all_deplibs
10144
10145 # Compile-time system search path for libraries
10146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10147
10148 # Run-time system search path for libraries
10149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10150
10151 # Fix the shell variable \$srcfile for the compiler.
10152 fix_srcfile_path="$fix_srcfile_path"
10153
10154 # Set to yes if exported symbols are required.
10155 always_export_symbols=$always_export_symbols
10156
10157 # The commands to list exported symbols.
10158 export_symbols_cmds=$lt_export_symbols_cmds
10159
10160 # The commands to extract the exported symbol list from a shared archive.
10161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10162
10163 # Symbols that should not be listed in the preloaded symbols.
10164 exclude_expsyms=$lt_exclude_expsyms
10165
10166 # Symbols that must always be exported.
10167 include_expsyms=$lt_include_expsyms
10168
10169 # ### END LIBTOOL CONFIG
10170
10171 __EOF__
10172
10173
10174   case $host_os in
10175   aix3*)
10176     cat <<\EOF >> "$cfgfile"
10177
10178 # AIX sometimes has problems with the GCC collect2 program.  For some
10179 # reason, if we set the COLLECT_NAMES environment variable, the problems
10180 # vanish in a puff of smoke.
10181 if test "X${COLLECT_NAMES+set}" != Xset; then
10182   COLLECT_NAMES=
10183   export COLLECT_NAMES
10184 fi
10185 EOF
10186     ;;
10187   esac
10188
10189   # We use sed instead of cat because bash on DJGPP gets confused if
10190   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10191   # text mode, it properly converts lines to CR/LF.  This bash problem
10192   # is reportedly fixed, but why not run on old versions too?
10193   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10194
10195   mv -f "$cfgfile" "$ofile" || \
10196     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10197   chmod +x "$ofile"
10198
10199 else
10200   # If there is no Makefile yet, we rely on a make rule to execute
10201   # `config.status --recheck' to rerun these tests and create the
10202   # libtool script then.
10203   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10204   if test -f "$ltmain_in"; then
10205     test -f Makefile && make "$ltmain"
10206   fi
10207 fi
10208
10209
10210 ac_ext=c
10211 ac_cpp='$CPP $CPPFLAGS'
10212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10215
10216 CC="$lt_save_CC"
10217
10218
10219 # Check whether --with-tags was given.
10220 if test "${with_tags+set}" = set; then :
10221   withval=$with_tags; tagnames="$withval"
10222 fi
10223
10224
10225 if test -f "$ltmain" && test -n "$tagnames"; then
10226   if test ! -f "${ofile}"; then
10227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10228 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10229   fi
10230
10231   if test -z "$LTCC"; then
10232     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10233     if test -z "$LTCC"; then
10234       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10235 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10236     else
10237       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10238 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10239     fi
10240   fi
10241   if test -z "$LTCFLAGS"; then
10242     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10243   fi
10244
10245   # Extract list of available tagged configurations in $ofile.
10246   # Note that this assumes the entire list is on one line.
10247   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10248
10249   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10250   for tagname in $tagnames; do
10251     IFS="$lt_save_ifs"
10252     # Check whether tagname contains only valid characters
10253     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10254     "") ;;
10255     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10256         ;;
10257     esac
10258
10259     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10260     then
10261       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10262     fi
10263
10264     # Update the list of available tags.
10265     if test -n "$tagname"; then
10266       echo appending configuration tag \"$tagname\" to $ofile
10267
10268       case $tagname in
10269       CXX)
10270         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10271             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10272             (test "X$CXX" != "Xg++"))) ; then
10273           ac_ext=cpp
10274 ac_cpp='$CXXCPP $CPPFLAGS'
10275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10278
10279
10280
10281
10282 archive_cmds_need_lc_CXX=no
10283 allow_undefined_flag_CXX=
10284 always_export_symbols_CXX=no
10285 archive_expsym_cmds_CXX=
10286 export_dynamic_flag_spec_CXX=
10287 hardcode_direct_CXX=no
10288 hardcode_libdir_flag_spec_CXX=
10289 hardcode_libdir_flag_spec_ld_CXX=
10290 hardcode_libdir_separator_CXX=
10291 hardcode_minus_L_CXX=no
10292 hardcode_shlibpath_var_CXX=unsupported
10293 hardcode_automatic_CXX=no
10294 module_cmds_CXX=
10295 module_expsym_cmds_CXX=
10296 link_all_deplibs_CXX=unknown
10297 old_archive_cmds_CXX=$old_archive_cmds
10298 no_undefined_flag_CXX=
10299 whole_archive_flag_spec_CXX=
10300 enable_shared_with_static_runtimes_CXX=no
10301
10302 # Dependencies to place before and after the object being linked:
10303 predep_objects_CXX=
10304 postdep_objects_CXX=
10305 predeps_CXX=
10306 postdeps_CXX=
10307 compiler_lib_search_path_CXX=
10308
10309 # Source file extension for C++ test sources.
10310 ac_ext=cpp
10311
10312 # Object file extension for compiled C++ test sources.
10313 objext=o
10314 objext_CXX=$objext
10315
10316 # Code to be used in simple compile tests
10317 lt_simple_compile_test_code="int some_variable = 0;\n"
10318
10319 # Code to be used in simple link tests
10320 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10321
10322 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10323
10324 # If no C compiler was specified, use CC.
10325 LTCC=${LTCC-"$CC"}
10326
10327 # If no C compiler flags were specified, use CFLAGS.
10328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10329
10330 # Allow CC to be a program name with arguments.
10331 compiler=$CC
10332
10333
10334 # save warnings/boilerplate of simple test code
10335 ac_outfile=conftest.$ac_objext
10336 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10338 _lt_compiler_boilerplate=`cat conftest.err`
10339 $rm conftest*
10340
10341 ac_outfile=conftest.$ac_objext
10342 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10344 _lt_linker_boilerplate=`cat conftest.err`
10345 $rm conftest*
10346
10347
10348 # Allow CC to be a program name with arguments.
10349 lt_save_CC=$CC
10350 lt_save_LD=$LD
10351 lt_save_GCC=$GCC
10352 GCC=$GXX
10353 lt_save_with_gnu_ld=$with_gnu_ld
10354 lt_save_path_LD=$lt_cv_path_LD
10355 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10356   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10357 else
10358   $as_unset lt_cv_prog_gnu_ld
10359 fi
10360 if test -n "${lt_cv_path_LDCXX+set}"; then
10361   lt_cv_path_LD=$lt_cv_path_LDCXX
10362 else
10363   $as_unset lt_cv_path_LD
10364 fi
10365 test -z "${LDCXX+set}" || LD=$LDCXX
10366 CC=${CXX-"c++"}
10367 compiler=$CC
10368 compiler_CXX=$CC
10369 for cc_temp in $compiler""; do
10370   case $cc_temp in
10371     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10372     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10373     \-*) ;;
10374     *) break;;
10375   esac
10376 done
10377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10378
10379
10380 # We don't want -fno-exception wen compiling C++ code, so set the
10381 # no_builtin_flag separately
10382 if test "$GXX" = yes; then
10383   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10384 else
10385   lt_prog_compiler_no_builtin_flag_CXX=
10386 fi
10387
10388 if test "$GXX" = yes; then
10389   # Set up default GNU C++ configuration
10390
10391
10392 # Check whether --with-gnu-ld was given.
10393 if test "${with_gnu_ld+set}" = set; then :
10394   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10395 else
10396   with_gnu_ld=no
10397 fi
10398
10399 ac_prog=ld
10400 if test "$GCC" = yes; then
10401   # Check if gcc -print-prog-name=ld gives a path.
10402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10403 $as_echo_n "checking for ld used by $CC... " >&6; }
10404   case $host in
10405   *-*-mingw*)
10406     # gcc leaves a trailing carriage return which upsets mingw
10407     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10408   *)
10409     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10410   esac
10411   case $ac_prog in
10412     # Accept absolute paths.
10413     [\\/]* | ?:[\\/]*)
10414       re_direlt='/[^/][^/]*/\.\./'
10415       # Canonicalize the pathname of ld
10416       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10417       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10418         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10419       done
10420       test -z "$LD" && LD="$ac_prog"
10421       ;;
10422   "")
10423     # If it fails, then pretend we aren't using GCC.
10424     ac_prog=ld
10425     ;;
10426   *)
10427     # If it is relative, then search for the first ld in PATH.
10428     with_gnu_ld=unknown
10429     ;;
10430   esac
10431 elif test "$with_gnu_ld" = yes; then
10432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10433 $as_echo_n "checking for GNU ld... " >&6; }
10434 else
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10436 $as_echo_n "checking for non-GNU ld... " >&6; }
10437 fi
10438 if ${lt_cv_path_LD+:} false; then :
10439   $as_echo_n "(cached) " >&6
10440 else
10441   if test -z "$LD"; then
10442   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10443   for ac_dir in $PATH; do
10444     IFS="$lt_save_ifs"
10445     test -z "$ac_dir" && ac_dir=.
10446     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10447       lt_cv_path_LD="$ac_dir/$ac_prog"
10448       # Check to see if the program is GNU ld.  I'd rather use --version,
10449       # but apparently some variants of GNU ld only accept -v.
10450       # Break only if it was the GNU/non-GNU ld that we prefer.
10451       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10452       *GNU* | *'with BFD'*)
10453         test "$with_gnu_ld" != no && break
10454         ;;
10455       *)
10456         test "$with_gnu_ld" != yes && break
10457         ;;
10458       esac
10459     fi
10460   done
10461   IFS="$lt_save_ifs"
10462 else
10463   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10464 fi
10465 fi
10466
10467 LD="$lt_cv_path_LD"
10468 if test -n "$LD"; then
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10470 $as_echo "$LD" >&6; }
10471 else
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10474 fi
10475 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10478 if ${lt_cv_prog_gnu_ld+:} false; then :
10479   $as_echo_n "(cached) " >&6
10480 else
10481   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10482 case `$LD -v 2>&1 </dev/null` in
10483 *GNU* | *'with BFD'*)
10484   lt_cv_prog_gnu_ld=yes
10485   ;;
10486 *)
10487   lt_cv_prog_gnu_ld=no
10488   ;;
10489 esac
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10493 with_gnu_ld=$lt_cv_prog_gnu_ld
10494
10495
10496
10497   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10498   # archiving commands below assume that GNU ld is being used.
10499   if test "$with_gnu_ld" = yes; then
10500     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10501     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10502
10503     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10504     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10505
10506     # If archive_cmds runs LD, not CC, wlarc should be empty
10507     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10508     #     investigate it a little bit more. (MM)
10509     wlarc='${wl}'
10510
10511     # ancient GNU ld didn't support --whole-archive et. al.
10512     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10513         grep 'no-whole-archive' > /dev/null; then
10514       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10515     else
10516       whole_archive_flag_spec_CXX=
10517     fi
10518   else
10519     with_gnu_ld=no
10520     wlarc=
10521
10522     # A generic and very simple default shared library creation
10523     # command for GNU C++ for the case where it uses the native
10524     # linker, instead of GNU ld.  If possible, this setting should
10525     # overridden to take advantage of the native linker features on
10526     # the platform it is being used on.
10527     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10528   fi
10529
10530   # Commands to make compiler produce verbose output that lists
10531   # what "hidden" libraries, object files and flags are used when
10532   # linking a shared library.
10533   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10534
10535 else
10536   GXX=no
10537   with_gnu_ld=no
10538   wlarc=
10539 fi
10540
10541 # PORTME: fill in a description of your system's C++ link characteristics
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10543 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10544 ld_shlibs_CXX=yes
10545 case $host_os in
10546   aix3*)
10547     # FIXME: insert proper C++ library support
10548     ld_shlibs_CXX=no
10549     ;;
10550   aix4* | aix5*)
10551     if test "$host_cpu" = ia64; then
10552       # On IA64, the linker does run time linking by default, so we don't
10553       # have to do anything special.
10554       aix_use_runtimelinking=no
10555       exp_sym_flag='-Bexport'
10556       no_entry_flag=""
10557     else
10558       aix_use_runtimelinking=no
10559
10560       # Test if we are trying to use run time linking or normal
10561       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10562       # need to do runtime linking.
10563       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10564         for ld_flag in $LDFLAGS; do
10565           case $ld_flag in
10566           *-brtl*)
10567             aix_use_runtimelinking=yes
10568             break
10569             ;;
10570           esac
10571         done
10572         ;;
10573       esac
10574
10575       exp_sym_flag='-bexport'
10576       no_entry_flag='-bnoentry'
10577     fi
10578
10579     # When large executables or shared objects are built, AIX ld can
10580     # have problems creating the table of contents.  If linking a library
10581     # or program results in "error TOC overflow" add -mminimal-toc to
10582     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10583     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10584
10585     archive_cmds_CXX=''
10586     hardcode_direct_CXX=yes
10587     hardcode_libdir_separator_CXX=':'
10588     link_all_deplibs_CXX=yes
10589
10590     if test "$GXX" = yes; then
10591       case $host_os in aix4.[012]|aix4.[012].*)
10592       # We only want to do this on AIX 4.2 and lower, the check
10593       # below for broken collect2 doesn't work under 4.3+
10594         collect2name=`${CC} -print-prog-name=collect2`
10595         if test -f "$collect2name" && \
10596            strings "$collect2name" | grep resolve_lib_name >/dev/null
10597         then
10598           # We have reworked collect2
10599           hardcode_direct_CXX=yes
10600         else
10601           # We have old collect2
10602           hardcode_direct_CXX=unsupported
10603           # It fails to find uninstalled libraries when the uninstalled
10604           # path is not listed in the libpath.  Setting hardcode_minus_L
10605           # to unsupported forces relinking
10606           hardcode_minus_L_CXX=yes
10607           hardcode_libdir_flag_spec_CXX='-L$libdir'
10608           hardcode_libdir_separator_CXX=
10609         fi
10610         ;;
10611       esac
10612       shared_flag='-shared'
10613       if test "$aix_use_runtimelinking" = yes; then
10614         shared_flag="$shared_flag "'${wl}-G'
10615       fi
10616     else
10617       # not using gcc
10618       if test "$host_cpu" = ia64; then
10619         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10620         # chokes on -Wl,-G. The following line is correct:
10621         shared_flag='-G'
10622       else
10623         if test "$aix_use_runtimelinking" = yes; then
10624           shared_flag='${wl}-G'
10625         else
10626           shared_flag='${wl}-bM:SRE'
10627         fi
10628       fi
10629     fi
10630
10631     # It seems that -bexpall does not export symbols beginning with
10632     # underscore (_), so it is better to generate a list of symbols to export.
10633     always_export_symbols_CXX=yes
10634     if test "$aix_use_runtimelinking" = yes; then
10635       # Warning - without using the other runtime loading flags (-brtl),
10636       # -berok will link without error, but may produce a broken library.
10637       allow_undefined_flag_CXX='-berok'
10638       # Determine the default libpath from the value encoded in an empty executable.
10639       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h.  */
10641
10642 int
10643 main ()
10644 {
10645
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 if ac_fn_cxx_try_link "$LINENO"; then :
10651
10652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10653 }'`
10654 # Check for a 64-bit object if we didn't find anything.
10655 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10656 }'`; fi
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext \
10659     conftest$ac_exeext conftest.$ac_ext
10660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10661
10662       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10663
10664       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10665      else
10666       if test "$host_cpu" = ia64; then
10667         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10668         allow_undefined_flag_CXX="-z nodefs"
10669         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10670       else
10671         # Determine the default libpath from the value encoded in an empty executable.
10672         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h.  */
10674
10675 int
10676 main ()
10677 {
10678
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 if ac_fn_cxx_try_link "$LINENO"; then :
10684
10685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10686 }'`
10687 # Check for a 64-bit object if we didn't find anything.
10688 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10689 }'`; fi
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692     conftest$ac_exeext conftest.$ac_ext
10693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10694
10695         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10696         # Warning - without using the other run time loading flags,
10697         # -berok will link without error, but may produce a broken library.
10698         no_undefined_flag_CXX=' ${wl}-bernotok'
10699         allow_undefined_flag_CXX=' ${wl}-berok'
10700         # Exported symbols can be pulled into shared objects from archives
10701         whole_archive_flag_spec_CXX='$convenience'
10702         archive_cmds_need_lc_CXX=yes
10703         # This is similar to how AIX traditionally builds its shared libraries.
10704         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10705       fi
10706     fi
10707     ;;
10708
10709   beos*)
10710     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10711       allow_undefined_flag_CXX=unsupported
10712       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10713       # support --undefined.  This deserves some investigation.  FIXME
10714       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10715     else
10716       ld_shlibs_CXX=no
10717     fi
10718     ;;
10719
10720   chorus*)
10721     case $cc_basename in
10722       *)
10723         # FIXME: insert proper C++ library support
10724         ld_shlibs_CXX=no
10725         ;;
10726     esac
10727     ;;
10728
10729   cygwin* | mingw* | pw32*)
10730     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10731     # as there is no search path for DLLs.
10732     hardcode_libdir_flag_spec_CXX='-L$libdir'
10733     allow_undefined_flag_CXX=unsupported
10734     always_export_symbols_CXX=no
10735     enable_shared_with_static_runtimes_CXX=yes
10736
10737     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10738       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10739       # If the export-symbols file already is a .def file (1st line
10740       # is EXPORTS), use it as is; otherwise, prepend...
10741       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10742         cp $export_symbols $output_objdir/$soname.def;
10743       else
10744         echo EXPORTS > $output_objdir/$soname.def;
10745         cat $export_symbols >> $output_objdir/$soname.def;
10746       fi~
10747       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10748     else
10749       ld_shlibs_CXX=no
10750     fi
10751   ;;
10752       darwin* | rhapsody*)
10753         case $host_os in
10754         rhapsody* | darwin1.[012])
10755          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10756          ;;
10757        *) # Darwin 1.3 on
10758          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10759            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10760          else
10761            case ${MACOSX_DEPLOYMENT_TARGET} in
10762              10.[012])
10763                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10764                ;;
10765              10.*)
10766                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10767                ;;
10768            esac
10769          fi
10770          ;;
10771         esac
10772       archive_cmds_need_lc_CXX=no
10773       hardcode_direct_CXX=no
10774       hardcode_automatic_CXX=yes
10775       hardcode_shlibpath_var_CXX=unsupported
10776       whole_archive_flag_spec_CXX=''
10777       link_all_deplibs_CXX=yes
10778
10779     if test "$GXX" = yes ; then
10780       lt_int_apple_cc_single_mod=no
10781       output_verbose_link_cmd='echo'
10782       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10783        lt_int_apple_cc_single_mod=yes
10784       fi
10785       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10786        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10787       else
10788           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10789         fi
10790         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10791         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10792           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10793             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10794           else
10795             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10796           fi
10797             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10798       else
10799       case $cc_basename in
10800         xlc*)
10801          output_verbose_link_cmd='echo'
10802           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10803           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10804           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10805           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10806           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10807           ;;
10808        *)
10809          ld_shlibs_CXX=no
10810           ;;
10811       esac
10812       fi
10813         ;;
10814
10815   dgux*)
10816     case $cc_basename in
10817       ec++*)
10818         # FIXME: insert proper C++ library support
10819         ld_shlibs_CXX=no
10820         ;;
10821       ghcx*)
10822         # Green Hills C++ Compiler
10823         # FIXME: insert proper C++ library support
10824         ld_shlibs_CXX=no
10825         ;;
10826       *)
10827         # FIXME: insert proper C++ library support
10828         ld_shlibs_CXX=no
10829         ;;
10830     esac
10831     ;;
10832   freebsd[12]*)
10833     # C++ shared libraries reported to be fairly broken before switch to ELF
10834     ld_shlibs_CXX=no
10835     ;;
10836   freebsd-elf*)
10837     archive_cmds_need_lc_CXX=no
10838     ;;
10839   freebsd* | kfreebsd*-gnu | dragonfly*)
10840     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10841     # conventions
10842     ld_shlibs_CXX=yes
10843     ;;
10844   gnu*)
10845     ;;
10846   hpux9*)
10847     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10848     hardcode_libdir_separator_CXX=:
10849     export_dynamic_flag_spec_CXX='${wl}-E'
10850     hardcode_direct_CXX=yes
10851     hardcode_minus_L_CXX=yes # Not in the search PATH,
10852                                 # but as the default
10853                                 # location of the library.
10854
10855     case $cc_basename in
10856     CC*)
10857       # FIXME: insert proper C++ library support
10858       ld_shlibs_CXX=no
10859       ;;
10860     aCC*)
10861       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10862       # Commands to make compiler produce verbose output that lists
10863       # what "hidden" libraries, object files and flags are used when
10864       # linking a shared library.
10865       #
10866       # There doesn't appear to be a way to prevent this compiler from
10867       # explicitly linking system object files so we need to strip them
10868       # from the output so that they don't get included in the library
10869       # dependencies.
10870       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10871       ;;
10872     *)
10873       if test "$GXX" = yes; then
10874         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10875       else
10876         # FIXME: insert proper C++ library support
10877         ld_shlibs_CXX=no
10878       fi
10879       ;;
10880     esac
10881     ;;
10882   hpux10*|hpux11*)
10883     if test $with_gnu_ld = no; then
10884       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10885       hardcode_libdir_separator_CXX=:
10886
10887       case $host_cpu in
10888       hppa*64*|ia64*)
10889         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10890         ;;
10891       *)
10892         export_dynamic_flag_spec_CXX='${wl}-E'
10893         ;;
10894       esac
10895     fi
10896     case $host_cpu in
10897     hppa*64*|ia64*)
10898       hardcode_direct_CXX=no
10899       hardcode_shlibpath_var_CXX=no
10900       ;;
10901     *)
10902       hardcode_direct_CXX=yes
10903       hardcode_minus_L_CXX=yes # Not in the search PATH,
10904                                               # but as the default
10905                                               # location of the library.
10906       ;;
10907     esac
10908
10909     case $cc_basename in
10910       CC*)
10911         # FIXME: insert proper C++ library support
10912         ld_shlibs_CXX=no
10913         ;;
10914       aCC*)
10915         case $host_cpu in
10916         hppa*64*)
10917           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10918           ;;
10919         ia64*)
10920           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10921           ;;
10922         *)
10923           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10924           ;;
10925         esac
10926         # Commands to make compiler produce verbose output that lists
10927         # what "hidden" libraries, object files and flags are used when
10928         # linking a shared library.
10929         #
10930         # There doesn't appear to be a way to prevent this compiler from
10931         # explicitly linking system object files so we need to strip them
10932         # from the output so that they don't get included in the library
10933         # dependencies.
10934         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10935         ;;
10936       *)
10937         if test "$GXX" = yes; then
10938           if test $with_gnu_ld = no; then
10939             case $host_cpu in
10940             hppa*64*)
10941               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10942               ;;
10943             ia64*)
10944               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10945               ;;
10946             *)
10947               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10948               ;;
10949             esac
10950           fi
10951         else
10952           # FIXME: insert proper C++ library support
10953           ld_shlibs_CXX=no
10954         fi
10955         ;;
10956     esac
10957     ;;
10958   interix3*)
10959     hardcode_direct_CXX=no
10960     hardcode_shlibpath_var_CXX=no
10961     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10962     export_dynamic_flag_spec_CXX='${wl}-E'
10963     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10964     # Instead, shared libraries are loaded at an image base (0x10000000 by
10965     # default) and relocated if they conflict, which is a slow very memory
10966     # consuming and fragmenting process.  To avoid this, we pick a random,
10967     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10968     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10969     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10970     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10971     ;;
10972   irix5* | irix6*)
10973     case $cc_basename in
10974       CC*)
10975         # SGI C++
10976         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10977
10978         # Archives containing C++ object files must be created using
10979         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10980         # necessary to make sure instantiated templates are included
10981         # in the archive.
10982         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10983         ;;
10984       *)
10985         if test "$GXX" = yes; then
10986           if test "$with_gnu_ld" = no; then
10987             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10988           else
10989             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10990           fi
10991         fi
10992         link_all_deplibs_CXX=yes
10993         ;;
10994     esac
10995     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10996     hardcode_libdir_separator_CXX=:
10997     ;;
10998   linux*)
10999     case $cc_basename in
11000       KCC*)
11001         # Kuck and Associates, Inc. (KAI) C++ Compiler
11002
11003         # KCC will only create a shared library if the output file
11004         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11005         # to its proper name (with version) after linking.
11006         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11007         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11008         # Commands to make compiler produce verbose output that lists
11009         # what "hidden" libraries, object files and flags are used when
11010         # linking a shared library.
11011         #
11012         # There doesn't appear to be a way to prevent this compiler from
11013         # explicitly linking system object files so we need to strip them
11014         # from the output so that they don't get included in the library
11015         # dependencies.
11016         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11017
11018         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11019         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11020
11021         # Archives containing C++ object files must be created using
11022         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11023         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11024         ;;
11025       icpc*)
11026         # Intel C++
11027         with_gnu_ld=yes
11028         # version 8.0 and above of icpc choke on multiply defined symbols
11029         # if we add $predep_objects and $postdep_objects, however 7.1 and
11030         # earlier do not add the objects themselves.
11031         case `$CC -V 2>&1` in
11032         *"Version 7."*)
11033           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11035           ;;
11036         *)  # Version 8.0 or newer
11037           tmp_idyn=
11038           case $host_cpu in
11039             ia64*) tmp_idyn=' -i_dynamic';;
11040           esac
11041           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11043           ;;
11044         esac
11045         archive_cmds_need_lc_CXX=no
11046         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11047         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11048         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11049         ;;
11050       pgCC*)
11051         # Portland Group C++ compiler
11052         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11053         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11054
11055         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11056         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11057         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11058         ;;
11059       cxx*)
11060         # Compaq C++
11061         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11063
11064         runpath_var=LD_RUN_PATH
11065         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11066         hardcode_libdir_separator_CXX=:
11067
11068         # Commands to make compiler produce verbose output that lists
11069         # what "hidden" libraries, object files and flags are used when
11070         # linking a shared library.
11071         #
11072         # There doesn't appear to be a way to prevent this compiler from
11073         # explicitly linking system object files so we need to strip them
11074         # from the output so that they don't get included in the library
11075         # dependencies.
11076         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11077         ;;
11078     esac
11079     ;;
11080   lynxos*)
11081     # FIXME: insert proper C++ library support
11082     ld_shlibs_CXX=no
11083     ;;
11084   m88k*)
11085     # FIXME: insert proper C++ library support
11086     ld_shlibs_CXX=no
11087     ;;
11088   mvs*)
11089     case $cc_basename in
11090       cxx*)
11091         # FIXME: insert proper C++ library support
11092         ld_shlibs_CXX=no
11093         ;;
11094       *)
11095         # FIXME: insert proper C++ library support
11096         ld_shlibs_CXX=no
11097         ;;
11098     esac
11099     ;;
11100   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11101     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11102       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11103       wlarc=
11104       hardcode_libdir_flag_spec_CXX='-R$libdir'
11105       hardcode_direct_CXX=yes
11106       hardcode_shlibpath_var_CXX=no
11107     fi
11108     # Workaround some broken pre-1.5 toolchains
11109     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11110     ;;
11111   openbsd2*)
11112     # C++ shared libraries are fairly broken
11113     ld_shlibs_CXX=no
11114     ;;
11115   openbsd*)
11116     hardcode_direct_CXX=yes
11117     hardcode_shlibpath_var_CXX=no
11118     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11119     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11120     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11121       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11122       export_dynamic_flag_spec_CXX='${wl}-E'
11123       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11124     fi
11125     output_verbose_link_cmd='echo'
11126     ;;
11127   osf3*)
11128     case $cc_basename in
11129       KCC*)
11130         # Kuck and Associates, Inc. (KAI) C++ Compiler
11131
11132         # KCC will only create a shared library if the output file
11133         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11134         # to its proper name (with version) after linking.
11135         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11136
11137         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11138         hardcode_libdir_separator_CXX=:
11139
11140         # Archives containing C++ object files must be created using
11141         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11142         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11143
11144         ;;
11145       RCC*)
11146         # Rational C++ 2.4.1
11147         # FIXME: insert proper C++ library support
11148         ld_shlibs_CXX=no
11149         ;;
11150       cxx*)
11151         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11152         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11153
11154         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11155         hardcode_libdir_separator_CXX=:
11156
11157         # Commands to make compiler produce verbose output that lists
11158         # what "hidden" libraries, object files and flags are used when
11159         # linking a shared library.
11160         #
11161         # There doesn't appear to be a way to prevent this compiler from
11162         # explicitly linking system object files so we need to strip them
11163         # from the output so that they don't get included in the library
11164         # dependencies.
11165         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11166         ;;
11167       *)
11168         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11169           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11170           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11171
11172           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11173           hardcode_libdir_separator_CXX=:
11174
11175           # Commands to make compiler produce verbose output that lists
11176           # what "hidden" libraries, object files and flags are used when
11177           # linking a shared library.
11178           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11179
11180         else
11181           # FIXME: insert proper C++ library support
11182           ld_shlibs_CXX=no
11183         fi
11184         ;;
11185     esac
11186     ;;
11187   osf4* | osf5*)
11188     case $cc_basename in
11189       KCC*)
11190         # Kuck and Associates, Inc. (KAI) C++ Compiler
11191
11192         # KCC will only create a shared library if the output file
11193         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11194         # to its proper name (with version) after linking.
11195         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11196
11197         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11198         hardcode_libdir_separator_CXX=:
11199
11200         # Archives containing C++ object files must be created using
11201         # the KAI C++ compiler.
11202         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11203         ;;
11204       RCC*)
11205         # Rational C++ 2.4.1
11206         # FIXME: insert proper C++ library support
11207         ld_shlibs_CXX=no
11208         ;;
11209       cxx*)
11210         allow_undefined_flag_CXX=' -expect_unresolved \*'
11211         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11212         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11213           echo "-hidden">> $lib.exp~
11214           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11215           $rm $lib.exp'
11216
11217         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11218         hardcode_libdir_separator_CXX=:
11219
11220         # Commands to make compiler produce verbose output that lists
11221         # what "hidden" libraries, object files and flags are used when
11222         # linking a shared library.
11223         #
11224         # There doesn't appear to be a way to prevent this compiler from
11225         # explicitly linking system object files so we need to strip them
11226         # from the output so that they don't get included in the library
11227         # dependencies.
11228         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11229         ;;
11230       *)
11231         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11232           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11233          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11234
11235           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11236           hardcode_libdir_separator_CXX=:
11237
11238           # Commands to make compiler produce verbose output that lists
11239           # what "hidden" libraries, object files and flags are used when
11240           # linking a shared library.
11241           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11242
11243         else
11244           # FIXME: insert proper C++ library support
11245           ld_shlibs_CXX=no
11246         fi
11247         ;;
11248     esac
11249     ;;
11250   psos*)
11251     # FIXME: insert proper C++ library support
11252     ld_shlibs_CXX=no
11253     ;;
11254   sunos4*)
11255     case $cc_basename in
11256       CC*)
11257         # Sun C++ 4.x
11258         # FIXME: insert proper C++ library support
11259         ld_shlibs_CXX=no
11260         ;;
11261       lcc*)
11262         # Lucid
11263         # FIXME: insert proper C++ library support
11264         ld_shlibs_CXX=no
11265         ;;
11266       *)
11267         # FIXME: insert proper C++ library support
11268         ld_shlibs_CXX=no
11269         ;;
11270     esac
11271     ;;
11272   solaris*)
11273     case $cc_basename in
11274       CC*)
11275         # Sun C++ 4.2, 5.x and Centerline C++
11276         archive_cmds_need_lc_CXX=yes
11277         no_undefined_flag_CXX=' -zdefs'
11278         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11279         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11280         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11281
11282         hardcode_libdir_flag_spec_CXX='-R$libdir'
11283         hardcode_shlibpath_var_CXX=no
11284         case $host_os in
11285           solaris2.[0-5] | solaris2.[0-5].*) ;;
11286           *)
11287             # The C++ compiler is used as linker so we must use $wl
11288             # flag to pass the commands to the underlying system
11289             # linker. We must also pass each convience library through
11290             # to the system linker between allextract/defaultextract.
11291             # The C++ compiler will combine linker options so we
11292             # cannot just pass the convience library names through
11293             # without $wl.
11294             # Supported since Solaris 2.6 (maybe 2.5.1?)
11295             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11296             ;;
11297         esac
11298         link_all_deplibs_CXX=yes
11299
11300         output_verbose_link_cmd='echo'
11301
11302         # Archives containing C++ object files must be created using
11303         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11304         # necessary to make sure instantiated templates are included
11305         # in the archive.
11306         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11307         ;;
11308       gcx*)
11309         # Green Hills C++ Compiler
11310         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11311
11312         # The C++ compiler must be used to create the archive.
11313         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11314         ;;
11315       *)
11316         # GNU C++ compiler with Solaris linker
11317         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11318           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11319           if $CC --version | grep -v '^2\.7' > /dev/null; then
11320             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11321             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11322                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11323
11324             # Commands to make compiler produce verbose output that lists
11325             # what "hidden" libraries, object files and flags are used when
11326             # linking a shared library.
11327             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11328           else
11329             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11330             # platform.
11331             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11332             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11333                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11334
11335             # Commands to make compiler produce verbose output that lists
11336             # what "hidden" libraries, object files and flags are used when
11337             # linking a shared library.
11338             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11339           fi
11340
11341           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11342         fi
11343         ;;
11344     esac
11345     ;;
11346   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11347     no_undefined_flag_CXX='${wl}-z,text'
11348     archive_cmds_need_lc_CXX=no
11349     hardcode_shlibpath_var_CXX=no
11350     runpath_var='LD_RUN_PATH'
11351
11352     case $cc_basename in
11353       CC*)
11354         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11355         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11356         ;;
11357       *)
11358         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11359         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11360         ;;
11361     esac
11362     ;;
11363   sysv5* | sco3.2v5* | sco5v6*)
11364     # Note: We can NOT use -z defs as we might desire, because we do not
11365     # link with -lc, and that would cause any symbols used from libc to
11366     # always be unresolved, which means just about no library would
11367     # ever link correctly.  If we're not using GNU ld we use -z text
11368     # though, which does catch some bad symbols but isn't as heavy-handed
11369     # as -z defs.
11370     # For security reasons, it is highly recommended that you always
11371     # use absolute paths for naming shared libraries, and exclude the
11372     # DT_RUNPATH tag from executables and libraries.  But doing so
11373     # requires that you compile everything twice, which is a pain.
11374     # So that behaviour is only enabled if SCOABSPATH is set to a
11375     # non-empty value in the environment.  Most likely only useful for
11376     # creating official distributions of packages.
11377     # This is a hack until libtool officially supports absolute path
11378     # names for shared libraries.
11379     no_undefined_flag_CXX='${wl}-z,text'
11380     allow_undefined_flag_CXX='${wl}-z,nodefs'
11381     archive_cmds_need_lc_CXX=no
11382     hardcode_shlibpath_var_CXX=no
11383     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11384     hardcode_libdir_separator_CXX=':'
11385     link_all_deplibs_CXX=yes
11386     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11387     runpath_var='LD_RUN_PATH'
11388
11389     case $cc_basename in
11390       CC*)
11391         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11392         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11393         ;;
11394       *)
11395         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11396         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11397         ;;
11398     esac
11399     ;;
11400   tandem*)
11401     case $cc_basename in
11402       NCC*)
11403         # NonStop-UX NCC 3.20
11404         # FIXME: insert proper C++ library support
11405         ld_shlibs_CXX=no
11406         ;;
11407       *)
11408         # FIXME: insert proper C++ library support
11409         ld_shlibs_CXX=no
11410         ;;
11411     esac
11412     ;;
11413   vxworks*)
11414     # FIXME: insert proper C++ library support
11415     ld_shlibs_CXX=no
11416     ;;
11417   *)
11418     # FIXME: insert proper C++ library support
11419     ld_shlibs_CXX=no
11420     ;;
11421 esac
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11423 $as_echo "$ld_shlibs_CXX" >&6; }
11424 test "$ld_shlibs_CXX" = no && can_build_shared=no
11425
11426 GCC_CXX="$GXX"
11427 LD_CXX="$LD"
11428
11429
11430 cat > conftest.$ac_ext <<EOF
11431 class Foo
11432 {
11433 public:
11434   Foo (void) { a = 0; }
11435 private:
11436   int a;
11437 };
11438 EOF
11439
11440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11441   (eval $ac_compile) 2>&5
11442   ac_status=$?
11443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444   test $ac_status = 0; }; then
11445   # Parse the compiler output and extract the necessary
11446   # objects, libraries and library flags.
11447
11448   # Sentinel used to keep track of whether or not we are before
11449   # the conftest object file.
11450   pre_test_object_deps_done=no
11451
11452   # The `*' in the case matches for architectures that use `case' in
11453   # $output_verbose_cmd can trigger glob expansion during the loop
11454   # eval without this substitution.
11455   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11456
11457   for p in `eval $output_verbose_link_cmd`; do
11458     case $p in
11459
11460     -L* | -R* | -l*)
11461        # Some compilers place space between "-{L,R}" and the path.
11462        # Remove the space.
11463        if test $p = "-L" \
11464           || test $p = "-R"; then
11465          prev=$p
11466          continue
11467        else
11468          prev=
11469        fi
11470
11471        if test "$pre_test_object_deps_done" = no; then
11472          case $p in
11473          -L* | -R*)
11474            # Internal compiler library paths should come after those
11475            # provided the user.  The postdeps already come after the
11476            # user supplied libs so there is no need to process them.
11477            if test -z "$compiler_lib_search_path_CXX"; then
11478              compiler_lib_search_path_CXX="${prev}${p}"
11479            else
11480              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11481            fi
11482            ;;
11483          # The "-l" case would never come before the object being
11484          # linked, so don't bother handling this case.
11485          esac
11486        else
11487          if test -z "$postdeps_CXX"; then
11488            postdeps_CXX="${prev}${p}"
11489          else
11490            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11491          fi
11492        fi
11493        ;;
11494
11495     *.$objext)
11496        # This assumes that the test object file only shows up
11497        # once in the compiler output.
11498        if test "$p" = "conftest.$objext"; then
11499          pre_test_object_deps_done=yes
11500          continue
11501        fi
11502
11503        if test "$pre_test_object_deps_done" = no; then
11504          if test -z "$predep_objects_CXX"; then
11505            predep_objects_CXX="$p"
11506          else
11507            predep_objects_CXX="$predep_objects_CXX $p"
11508          fi
11509        else
11510          if test -z "$postdep_objects_CXX"; then
11511            postdep_objects_CXX="$p"
11512          else
11513            postdep_objects_CXX="$postdep_objects_CXX $p"
11514          fi
11515        fi
11516        ;;
11517
11518     *) ;; # Ignore the rest.
11519
11520     esac
11521   done
11522
11523   # Clean up.
11524   rm -f a.out a.exe
11525 else
11526   echo "libtool.m4: error: problem compiling CXX test program"
11527 fi
11528
11529 $rm -f confest.$objext
11530
11531 # PORTME: override above test on systems where it is broken
11532 case $host_os in
11533 interix3*)
11534   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11535   # hack all around it, let's just trust "g++" to DTRT.
11536   predep_objects_CXX=
11537   postdep_objects_CXX=
11538   postdeps_CXX=
11539   ;;
11540
11541 solaris*)
11542   case $cc_basename in
11543   CC*)
11544     # Adding this requires a known-good setup of shared libraries for
11545     # Sun compiler versions before 5.6, else PIC objects from an old
11546     # archive will be linked into the output, leading to subtle bugs.
11547     postdeps_CXX='-lCstd -lCrun'
11548     ;;
11549   esac
11550   ;;
11551 esac
11552
11553
11554 case " $postdeps_CXX " in
11555 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11556 esac
11557
11558 lt_prog_compiler_wl_CXX=
11559 lt_prog_compiler_pic_CXX=
11560 lt_prog_compiler_static_CXX=
11561
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11563 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11564
11565   # C++ specific cases for pic, static, wl, etc.
11566   if test "$GXX" = yes; then
11567     lt_prog_compiler_wl_CXX='-Wl,'
11568     lt_prog_compiler_static_CXX='-static'
11569
11570     case $host_os in
11571     aix*)
11572       # All AIX code is PIC.
11573       if test "$host_cpu" = ia64; then
11574         # AIX 5 now supports IA64 processor
11575         lt_prog_compiler_static_CXX='-Bstatic'
11576       fi
11577       ;;
11578     amigaos*)
11579       # FIXME: we need at least 68020 code to build shared libraries, but
11580       # adding the `-m68020' flag to GCC prevents building anything better,
11581       # like `-m68040'.
11582       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11583       ;;
11584     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11585       # PIC is the default for these OSes.
11586       ;;
11587     mingw* | os2* | pw32*)
11588       # This hack is so that the source file can tell whether it is being
11589       # built for inclusion in a dll (and should export symbols for example).
11590       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11591       ;;
11592     darwin* | rhapsody*)
11593       # PIC is the default on this platform
11594       # Common symbols not allowed in MH_DYLIB files
11595       lt_prog_compiler_pic_CXX='-fno-common'
11596       ;;
11597     *djgpp*)
11598       # DJGPP does not support shared libraries at all
11599       lt_prog_compiler_pic_CXX=
11600       ;;
11601     interix3*)
11602       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11603       # Instead, we relocate shared libraries at runtime.
11604       ;;
11605     sysv4*MP*)
11606       if test -d /usr/nec; then
11607         lt_prog_compiler_pic_CXX=-Kconform_pic
11608       fi
11609       ;;
11610     hpux*)
11611       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11612       # not for PA HP-UX.
11613       case $host_cpu in
11614       hppa*64*|ia64*)
11615         ;;
11616       *)
11617         lt_prog_compiler_pic_CXX='-fPIC'
11618         ;;
11619       esac
11620       ;;
11621     *)
11622       lt_prog_compiler_pic_CXX='-fPIC'
11623       ;;
11624     esac
11625   else
11626     case $host_os in
11627       aix4* | aix5*)
11628         # All AIX code is PIC.
11629         if test "$host_cpu" = ia64; then
11630           # AIX 5 now supports IA64 processor
11631           lt_prog_compiler_static_CXX='-Bstatic'
11632         else
11633           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11634         fi
11635         ;;
11636       chorus*)
11637         case $cc_basename in
11638         cxch68*)
11639           # Green Hills C++ Compiler
11640           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11641           ;;
11642         esac
11643         ;;
11644        darwin*)
11645          # PIC is the default on this platform
11646          # Common symbols not allowed in MH_DYLIB files
11647          case $cc_basename in
11648            xlc*)
11649            lt_prog_compiler_pic_CXX='-qnocommon'
11650            lt_prog_compiler_wl_CXX='-Wl,'
11651            ;;
11652          esac
11653        ;;
11654       dgux*)
11655         case $cc_basename in
11656           ec++*)
11657             lt_prog_compiler_pic_CXX='-KPIC'
11658             ;;
11659           ghcx*)
11660             # Green Hills C++ Compiler
11661             lt_prog_compiler_pic_CXX='-pic'
11662             ;;
11663           *)
11664             ;;
11665         esac
11666         ;;
11667       freebsd* | kfreebsd*-gnu | dragonfly*)
11668         # FreeBSD uses GNU C++
11669         ;;
11670       hpux9* | hpux10* | hpux11*)
11671         case $cc_basename in
11672           CC*)
11673             lt_prog_compiler_wl_CXX='-Wl,'
11674             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11675             if test "$host_cpu" != ia64; then
11676               lt_prog_compiler_pic_CXX='+Z'
11677             fi
11678             ;;
11679           aCC*)
11680             lt_prog_compiler_wl_CXX='-Wl,'
11681             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11682             case $host_cpu in
11683             hppa*64*|ia64*)
11684               # +Z the default
11685               ;;
11686             *)
11687               lt_prog_compiler_pic_CXX='+Z'
11688               ;;
11689             esac
11690             ;;
11691           *)
11692             ;;
11693         esac
11694         ;;
11695       interix*)
11696         # This is c89, which is MS Visual C++ (no shared libs)
11697         # Anyone wants to do a port?
11698         ;;
11699       irix5* | irix6* | nonstopux*)
11700         case $cc_basename in
11701           CC*)
11702             lt_prog_compiler_wl_CXX='-Wl,'
11703             lt_prog_compiler_static_CXX='-non_shared'
11704             # CC pic flag -KPIC is the default.
11705             ;;
11706           *)
11707             ;;
11708         esac
11709         ;;
11710       linux*)
11711         case $cc_basename in
11712           KCC*)
11713             # KAI C++ Compiler
11714             lt_prog_compiler_wl_CXX='--backend -Wl,'
11715             lt_prog_compiler_pic_CXX='-fPIC'
11716             ;;
11717           icpc* | ecpc*)
11718             # Intel C++
11719             lt_prog_compiler_wl_CXX='-Wl,'
11720             lt_prog_compiler_pic_CXX='-KPIC'
11721             lt_prog_compiler_static_CXX='-static'
11722             ;;
11723           pgCC*)
11724             # Portland Group C++ compiler.
11725             lt_prog_compiler_wl_CXX='-Wl,'
11726             lt_prog_compiler_pic_CXX='-fpic'
11727             lt_prog_compiler_static_CXX='-Bstatic'
11728             ;;
11729           cxx*)
11730             # Compaq C++
11731             # Make sure the PIC flag is empty.  It appears that all Alpha
11732             # Linux and Compaq Tru64 Unix objects are PIC.
11733             lt_prog_compiler_pic_CXX=
11734             lt_prog_compiler_static_CXX='-non_shared'
11735             ;;
11736           *)
11737             ;;
11738         esac
11739         ;;
11740       lynxos*)
11741         ;;
11742       m88k*)
11743         ;;
11744       mvs*)
11745         case $cc_basename in
11746           cxx*)
11747             lt_prog_compiler_pic_CXX='-W c,exportall'
11748             ;;
11749           *)
11750             ;;
11751         esac
11752         ;;
11753       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11754         ;;
11755       osf3* | osf4* | osf5*)
11756         case $cc_basename in
11757           KCC*)
11758             lt_prog_compiler_wl_CXX='--backend -Wl,'
11759             ;;
11760           RCC*)
11761             # Rational C++ 2.4.1
11762             lt_prog_compiler_pic_CXX='-pic'
11763             ;;
11764           cxx*)
11765             # Digital/Compaq C++
11766             lt_prog_compiler_wl_CXX='-Wl,'
11767             # Make sure the PIC flag is empty.  It appears that all Alpha
11768             # Linux and Compaq Tru64 Unix objects are PIC.
11769             lt_prog_compiler_pic_CXX=
11770             lt_prog_compiler_static_CXX='-non_shared'
11771             ;;
11772           *)
11773             ;;
11774         esac
11775         ;;
11776       psos*)
11777         ;;
11778       solaris*)
11779         case $cc_basename in
11780           CC*)
11781             # Sun C++ 4.2, 5.x and Centerline C++
11782             lt_prog_compiler_pic_CXX='-KPIC'
11783             lt_prog_compiler_static_CXX='-Bstatic'
11784             lt_prog_compiler_wl_CXX='-Qoption ld '
11785             ;;
11786           gcx*)
11787             # Green Hills C++ Compiler
11788             lt_prog_compiler_pic_CXX='-PIC'
11789             ;;
11790           *)
11791             ;;
11792         esac
11793         ;;
11794       sunos4*)
11795         case $cc_basename in
11796           CC*)
11797             # Sun C++ 4.x
11798             lt_prog_compiler_pic_CXX='-pic'
11799             lt_prog_compiler_static_CXX='-Bstatic'
11800             ;;
11801           lcc*)
11802             # Lucid
11803             lt_prog_compiler_pic_CXX='-pic'
11804             ;;
11805           *)
11806             ;;
11807         esac
11808         ;;
11809       tandem*)
11810         case $cc_basename in
11811           NCC*)
11812             # NonStop-UX NCC 3.20
11813             lt_prog_compiler_pic_CXX='-KPIC'
11814             ;;
11815           *)
11816             ;;
11817         esac
11818         ;;
11819       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11820         case $cc_basename in
11821           CC*)
11822             lt_prog_compiler_wl_CXX='-Wl,'
11823             lt_prog_compiler_pic_CXX='-KPIC'
11824             lt_prog_compiler_static_CXX='-Bstatic'
11825             ;;
11826         esac
11827         ;;
11828       vxworks*)
11829         ;;
11830       *)
11831         lt_prog_compiler_can_build_shared_CXX=no
11832         ;;
11833     esac
11834   fi
11835
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11837 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11838
11839 #
11840 # Check to make sure the PIC flag actually works.
11841 #
11842 if test -n "$lt_prog_compiler_pic_CXX"; then
11843
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11845 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11846 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849   lt_prog_compiler_pic_works_CXX=no
11850   ac_outfile=conftest.$ac_objext
11851    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11852    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11853    # Insert the option either (1) after the last *FLAGS variable, or
11854    # (2) before a word containing "conftest.", or (3) at the end.
11855    # Note that $ac_compile itself does not contain backslashes and begins
11856    # with a dollar sign (not a hyphen), so the echo should work correctly.
11857    # The option is referenced via a variable to avoid confusing sed.
11858    lt_compile=`echo "$ac_compile" | $SED \
11859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11861    -e 's:$: $lt_compiler_flag:'`
11862    (eval echo "\"\$as_me:11862: $lt_compile\"" >&5)
11863    (eval "$lt_compile" 2>conftest.err)
11864    ac_status=$?
11865    cat conftest.err >&5
11866    echo "$as_me:11866: \$? = $ac_status" >&5
11867    if (exit $ac_status) && test -s "$ac_outfile"; then
11868      # The compiler can only warn and ignore the option if not recognized
11869      # So say no if there are warnings other than the usual output.
11870      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11871      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11872      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11873        lt_prog_compiler_pic_works_CXX=yes
11874      fi
11875    fi
11876    $rm conftest*
11877
11878 fi
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11880 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11881
11882 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11883     case $lt_prog_compiler_pic_CXX in
11884      "" | " "*) ;;
11885      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11886      esac
11887 else
11888     lt_prog_compiler_pic_CXX=
11889      lt_prog_compiler_can_build_shared_CXX=no
11890 fi
11891
11892 fi
11893 case $host_os in
11894   # For platforms which do not support PIC, -DPIC is meaningless:
11895   *djgpp*)
11896     lt_prog_compiler_pic_CXX=
11897     ;;
11898   *)
11899     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11900     ;;
11901 esac
11902
11903 #
11904 # Check to make sure the static flag actually works.
11905 #
11906 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11909 if ${lt_prog_compiler_static_works_CXX+:} false; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   lt_prog_compiler_static_works_CXX=no
11913    save_LDFLAGS="$LDFLAGS"
11914    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11915    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11916    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11917      # The linker can only warn and ignore the option if not recognized
11918      # So say no if there are warnings
11919      if test -s conftest.err; then
11920        # Append any errors to the config.log.
11921        cat conftest.err 1>&5
11922        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11923        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11924        if diff conftest.exp conftest.er2 >/dev/null; then
11925          lt_prog_compiler_static_works_CXX=yes
11926        fi
11927      else
11928        lt_prog_compiler_static_works_CXX=yes
11929      fi
11930    fi
11931    $rm conftest*
11932    LDFLAGS="$save_LDFLAGS"
11933
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11936 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11937
11938 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11939     :
11940 else
11941     lt_prog_compiler_static_CXX=
11942 fi
11943
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11946 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11947 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11948   $as_echo_n "(cached) " >&6
11949 else
11950   lt_cv_prog_compiler_c_o_CXX=no
11951    $rm -r conftest 2>/dev/null
11952    mkdir conftest
11953    cd conftest
11954    mkdir out
11955    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11956
11957    lt_compiler_flag="-o out/conftest2.$ac_objext"
11958    # Insert the option either (1) after the last *FLAGS variable, or
11959    # (2) before a word containing "conftest.", or (3) at the end.
11960    # Note that $ac_compile itself does not contain backslashes and begins
11961    # with a dollar sign (not a hyphen), so the echo should work correctly.
11962    lt_compile=`echo "$ac_compile" | $SED \
11963    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11965    -e 's:$: $lt_compiler_flag:'`
11966    (eval echo "\"\$as_me:11966: $lt_compile\"" >&5)
11967    (eval "$lt_compile" 2>out/conftest.err)
11968    ac_status=$?
11969    cat out/conftest.err >&5
11970    echo "$as_me:11970: \$? = $ac_status" >&5
11971    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11972    then
11973      # The compiler can only warn and ignore the option if not recognized
11974      # So say no if there are warnings
11975      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11976      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11977      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11978        lt_cv_prog_compiler_c_o_CXX=yes
11979      fi
11980    fi
11981    chmod u+w . 2>&5
11982    $rm conftest*
11983    # SGI C++ compiler will create directory out/ii_files/ for
11984    # template instantiation
11985    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11986    $rm out/* && rmdir out
11987    cd ..
11988    rmdir conftest
11989    $rm conftest*
11990
11991 fi
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11993 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11994
11995
11996 hard_links="nottested"
11997 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11998   # do not overwrite the value of need_locks provided by the user
11999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12000 $as_echo_n "checking if we can lock with hard links... " >&6; }
12001   hard_links=yes
12002   $rm conftest*
12003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12004   touch conftest.a
12005   ln conftest.a conftest.b 2>&5 || hard_links=no
12006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12008 $as_echo "$hard_links" >&6; }
12009   if test "$hard_links" = no; then
12010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12012     need_locks=warn
12013   fi
12014 else
12015   need_locks=no
12016 fi
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12019 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12020
12021   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12022   case $host_os in
12023   aix4* | aix5*)
12024     # If we're using GNU nm, then we don't want the "-C" option.
12025     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12026     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12027       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12028     else
12029       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12030     fi
12031     ;;
12032   pw32*)
12033     export_symbols_cmds_CXX="$ltdll_cmds"
12034   ;;
12035   cygwin* | mingw*)
12036     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12037   ;;
12038   kfreebsd*-gnu)
12039     link_all_deplibs_CXX=no
12040   ;;
12041   linux*)
12042     link_all_deplibs_CXX=no
12043   ;;
12044   *)
12045     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12046   ;;
12047   esac
12048
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12050 $as_echo "$ld_shlibs_CXX" >&6; }
12051 test "$ld_shlibs_CXX" = no && can_build_shared=no
12052
12053 #
12054 # Do we need to explicitly link libc?
12055 #
12056 case "x$archive_cmds_need_lc_CXX" in
12057 x|xyes)
12058   # Assume -lc should be added
12059   archive_cmds_need_lc_CXX=yes
12060
12061   if test "$enable_shared" = yes && test "$GCC" = yes; then
12062     case $archive_cmds_CXX in
12063     *'~'*)
12064       # FIXME: we may have to deal with multi-command sequences.
12065       ;;
12066     '$CC '*)
12067       # Test whether the compiler implicitly links with -lc since on some
12068       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12069       # to ld, don't add -lc before -lgcc.
12070       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12072       $rm conftest*
12073       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12074
12075       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12076   (eval $ac_compile) 2>&5
12077   ac_status=$?
12078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12079   test $ac_status = 0; } 2>conftest.err; then
12080         soname=conftest
12081         lib=conftest
12082         libobjs=conftest.$ac_objext
12083         deplibs=
12084         wl=$lt_prog_compiler_wl_CXX
12085         pic_flag=$lt_prog_compiler_pic_CXX
12086         compiler_flags=-v
12087         linker_flags=-v
12088         verstring=
12089         output_objdir=.
12090         libname=conftest
12091         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12092         allow_undefined_flag_CXX=
12093         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12094   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12095   ac_status=$?
12096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097   test $ac_status = 0; }
12098         then
12099           archive_cmds_need_lc_CXX=no
12100         else
12101           archive_cmds_need_lc_CXX=yes
12102         fi
12103         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12104       else
12105         cat conftest.err 1>&5
12106       fi
12107       $rm conftest*
12108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12109 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12110       ;;
12111     esac
12112   fi
12113   ;;
12114 esac
12115
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12118 library_names_spec=
12119 libname_spec='lib$name'
12120 soname_spec=
12121 shrext_cmds=".so"
12122 postinstall_cmds=
12123 postuninstall_cmds=
12124 finish_cmds=
12125 finish_eval=
12126 shlibpath_var=
12127 shlibpath_overrides_runpath=unknown
12128 version_type=none
12129 dynamic_linker="$host_os ld.so"
12130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12131 if test "$GCC" = yes; then
12132   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12133   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12134     # if the path contains ";" then we assume it to be the separator
12135     # otherwise default to the standard path separator (i.e. ":") - it is
12136     # assumed that no part of a normal pathname contains ";" but that should
12137     # okay in the real world where ";" in dirpaths is itself problematic.
12138     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12139   else
12140     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12141   fi
12142 else
12143   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12144 fi
12145 need_lib_prefix=unknown
12146 hardcode_into_libs=no
12147
12148 # when you set need_version to no, make sure it does not cause -set_version
12149 # flags to be left without arguments
12150 need_version=unknown
12151
12152 case $host_os in
12153 aix3*)
12154   version_type=linux
12155   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12156   shlibpath_var=LIBPATH
12157
12158   # AIX 3 has no versioning support, so we append a major version to the name.
12159   soname_spec='${libname}${release}${shared_ext}$major'
12160   ;;
12161
12162 aix4* | aix5*)
12163   version_type=linux
12164   need_lib_prefix=no
12165   need_version=no
12166   hardcode_into_libs=yes
12167   if test "$host_cpu" = ia64; then
12168     # AIX 5 supports IA64
12169     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12170     shlibpath_var=LD_LIBRARY_PATH
12171   else
12172     # With GCC up to 2.95.x, collect2 would create an import file
12173     # for dependence libraries.  The import file would start with
12174     # the line `#! .'.  This would cause the generated library to
12175     # depend on `.', always an invalid library.  This was fixed in
12176     # development snapshots of GCC prior to 3.0.
12177     case $host_os in
12178       aix4 | aix4.[01] | aix4.[01].*)
12179       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12180            echo ' yes '
12181            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12182         :
12183       else
12184         can_build_shared=no
12185       fi
12186       ;;
12187     esac
12188     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12189     # soname into executable. Probably we can add versioning support to
12190     # collect2, so additional links can be useful in future.
12191     if test "$aix_use_runtimelinking" = yes; then
12192       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12193       # instead of lib<name>.a to let people know that these are not
12194       # typical AIX shared libraries.
12195       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12196     else
12197       # We preserve .a as extension for shared libraries through AIX4.2
12198       # and later when we are not doing run time linking.
12199       library_names_spec='${libname}${release}.a $libname.a'
12200       soname_spec='${libname}${release}${shared_ext}$major'
12201     fi
12202     shlibpath_var=LIBPATH
12203   fi
12204   ;;
12205
12206 amigaos*)
12207   library_names_spec='$libname.ixlibrary $libname.a'
12208   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12209   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12210   ;;
12211
12212 beos*)
12213   library_names_spec='${libname}${shared_ext}'
12214   dynamic_linker="$host_os ld.so"
12215   shlibpath_var=LIBRARY_PATH
12216   ;;
12217
12218 bsdi[45]*)
12219   version_type=linux
12220   need_version=no
12221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222   soname_spec='${libname}${release}${shared_ext}$major'
12223   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12224   shlibpath_var=LD_LIBRARY_PATH
12225   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12226   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12227   # the default ld.so.conf also contains /usr/contrib/lib and
12228   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12229   # libtool to hard-code these into programs
12230   ;;
12231
12232 cygwin* | mingw* | pw32*)
12233   version_type=windows
12234   shrext_cmds=".dll"
12235   need_version=no
12236   need_lib_prefix=no
12237
12238   case $GCC,$host_os in
12239   yes,cygwin* | yes,mingw* | yes,pw32*)
12240     library_names_spec='$libname.dll.a'
12241     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12242     postinstall_cmds='base_file=`basename \${file}`~
12243       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12244       dldir=$destdir/`dirname \$dlpath`~
12245       test -d \$dldir || mkdir -p \$dldir~
12246       $install_prog $dir/$dlname \$dldir/$dlname~
12247       chmod a+x \$dldir/$dlname'
12248     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12249       dlpath=$dir/\$dldll~
12250        $rm \$dlpath'
12251     shlibpath_overrides_runpath=yes
12252
12253     case $host_os in
12254     cygwin*)
12255       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12256       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12257       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12258       ;;
12259     mingw*)
12260       # MinGW DLLs use traditional 'lib' prefix
12261       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12262       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12263       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12264         # It is most probably a Windows format PATH printed by
12265         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12266         # path with ; separators, and with drive letters. We can handle the
12267         # drive letters (cygwin fileutils understands them), so leave them,
12268         # especially as we might pass files found there to a mingw objdump,
12269         # which wouldn't understand a cygwinified path. Ahh.
12270         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12271       else
12272         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12273       fi
12274       ;;
12275     pw32*)
12276       # pw32 DLLs use 'pw' prefix rather than 'lib'
12277       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12278       ;;
12279     esac
12280     ;;
12281
12282   *)
12283     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12284     ;;
12285   esac
12286   dynamic_linker='Win32 ld.exe'
12287   # FIXME: first we should search . and the directory the executable is in
12288   shlibpath_var=PATH
12289   ;;
12290
12291 darwin* | rhapsody*)
12292   dynamic_linker="$host_os dyld"
12293   version_type=darwin
12294   need_lib_prefix=no
12295   need_version=no
12296   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12297   soname_spec='${libname}${release}${major}$shared_ext'
12298   shlibpath_overrides_runpath=yes
12299   shlibpath_var=DYLD_LIBRARY_PATH
12300   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12301   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12302   if test "$GCC" = yes; then
12303     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12304   else
12305     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12306   fi
12307   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12308   ;;
12309
12310 dgux*)
12311   version_type=linux
12312   need_lib_prefix=no
12313   need_version=no
12314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12315   soname_spec='${libname}${release}${shared_ext}$major'
12316   shlibpath_var=LD_LIBRARY_PATH
12317   ;;
12318
12319 freebsd1*)
12320   dynamic_linker=no
12321   ;;
12322
12323 kfreebsd*-gnu)
12324   version_type=linux
12325   need_lib_prefix=no
12326   need_version=no
12327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12328   soname_spec='${libname}${release}${shared_ext}$major'
12329   shlibpath_var=LD_LIBRARY_PATH
12330   shlibpath_overrides_runpath=no
12331   hardcode_into_libs=yes
12332   dynamic_linker='GNU ld.so'
12333   ;;
12334
12335 freebsd* | dragonfly*)
12336   # DragonFly does not have aout.  When/if they implement a new
12337   # versioning mechanism, adjust this.
12338   if test -x /usr/bin/objformat; then
12339     objformat=`/usr/bin/objformat`
12340   else
12341     case $host_os in
12342     freebsd[123]*) objformat=aout ;;
12343     *) objformat=elf ;;
12344     esac
12345   fi
12346   version_type=freebsd-$objformat
12347   case $version_type in
12348     freebsd-elf*)
12349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12350       need_version=no
12351       need_lib_prefix=no
12352       ;;
12353     freebsd-*)
12354       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12355       need_version=yes
12356       ;;
12357   esac
12358   shlibpath_var=LD_LIBRARY_PATH
12359   case $host_os in
12360   freebsd2*)
12361     shlibpath_overrides_runpath=yes
12362     ;;
12363   freebsd3.[01]* | freebsdelf3.[01]*)
12364     shlibpath_overrides_runpath=yes
12365     hardcode_into_libs=yes
12366     ;;
12367   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12368   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12369     shlibpath_overrides_runpath=no
12370     hardcode_into_libs=yes
12371     ;;
12372   freebsd*) # from 4.6 on
12373     shlibpath_overrides_runpath=yes
12374     hardcode_into_libs=yes
12375     ;;
12376   esac
12377   ;;
12378
12379 gnu*)
12380   version_type=linux
12381   need_lib_prefix=no
12382   need_version=no
12383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12384   soname_spec='${libname}${release}${shared_ext}$major'
12385   shlibpath_var=LD_LIBRARY_PATH
12386   hardcode_into_libs=yes
12387   ;;
12388
12389 hpux9* | hpux10* | hpux11*)
12390   # Give a soname corresponding to the major version so that dld.sl refuses to
12391   # link against other versions.
12392   version_type=sunos
12393   need_lib_prefix=no
12394   need_version=no
12395   case $host_cpu in
12396   ia64*)
12397     shrext_cmds='.so'
12398     hardcode_into_libs=yes
12399     dynamic_linker="$host_os dld.so"
12400     shlibpath_var=LD_LIBRARY_PATH
12401     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12403     soname_spec='${libname}${release}${shared_ext}$major'
12404     if test "X$HPUX_IA64_MODE" = X32; then
12405       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12406     else
12407       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12408     fi
12409     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12410     ;;
12411    hppa*64*)
12412      shrext_cmds='.sl'
12413      hardcode_into_libs=yes
12414      dynamic_linker="$host_os dld.sl"
12415      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12416      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12417      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418      soname_spec='${libname}${release}${shared_ext}$major'
12419      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12420      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12421      ;;
12422    *)
12423     shrext_cmds='.sl'
12424     dynamic_linker="$host_os dld.sl"
12425     shlibpath_var=SHLIB_PATH
12426     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12428     soname_spec='${libname}${release}${shared_ext}$major'
12429     ;;
12430   esac
12431   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12432   postinstall_cmds='chmod 555 $lib'
12433   ;;
12434
12435 interix3*)
12436   version_type=linux
12437   need_lib_prefix=no
12438   need_version=no
12439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12440   soname_spec='${libname}${release}${shared_ext}$major'
12441   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12442   shlibpath_var=LD_LIBRARY_PATH
12443   shlibpath_overrides_runpath=no
12444   hardcode_into_libs=yes
12445   ;;
12446
12447 irix5* | irix6* | nonstopux*)
12448   case $host_os in
12449     nonstopux*) version_type=nonstopux ;;
12450     *)
12451         if test "$lt_cv_prog_gnu_ld" = yes; then
12452                 version_type=linux
12453         else
12454                 version_type=irix
12455         fi ;;
12456   esac
12457   need_lib_prefix=no
12458   need_version=no
12459   soname_spec='${libname}${release}${shared_ext}$major'
12460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12461   case $host_os in
12462   irix5* | nonstopux*)
12463     libsuff= shlibsuff=
12464     ;;
12465   *)
12466     case $LD in # libtool.m4 will add one of these switches to LD
12467     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12468       libsuff= shlibsuff= libmagic=32-bit;;
12469     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12470       libsuff=32 shlibsuff=N32 libmagic=N32;;
12471     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12472       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12473     *) libsuff= shlibsuff= libmagic=never-match;;
12474     esac
12475     ;;
12476   esac
12477   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12478   shlibpath_overrides_runpath=no
12479   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12480   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12481   hardcode_into_libs=yes
12482   ;;
12483
12484 # No shared lib support for Linux oldld, aout, or coff.
12485 linux*oldld* | linux*aout* | linux*coff*)
12486   dynamic_linker=no
12487   ;;
12488
12489 # This must be Linux ELF.
12490 linux*)
12491   version_type=linux
12492   need_lib_prefix=no
12493   need_version=no
12494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495   soname_spec='${libname}${release}${shared_ext}$major'
12496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12497   shlibpath_var=LD_LIBRARY_PATH
12498   shlibpath_overrides_runpath=no
12499   # This implies no fast_install, which is unacceptable.
12500   # Some rework will be needed to allow for fast_install
12501   # before this can be enabled.
12502   hardcode_into_libs=yes
12503
12504   # Append ld.so.conf contents to the search path
12505   if test -f /etc/ld.so.conf; then
12506     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12507     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12508   fi
12509
12510   # We used to test for /lib/ld.so.1 and disable shared libraries on
12511   # powerpc, because MkLinux only supported shared libraries with the
12512   # GNU dynamic linker.  Since this was broken with cross compilers,
12513   # most powerpc-linux boxes support dynamic linking these days and
12514   # people can always --disable-shared, the test was removed, and we
12515   # assume the GNU/Linux dynamic linker is in use.
12516   dynamic_linker='GNU/Linux ld.so'
12517   ;;
12518
12519 netbsdelf*-gnu)
12520   version_type=linux
12521   need_lib_prefix=no
12522   need_version=no
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12524   soname_spec='${libname}${release}${shared_ext}$major'
12525   shlibpath_var=LD_LIBRARY_PATH
12526   shlibpath_overrides_runpath=no
12527   hardcode_into_libs=yes
12528   dynamic_linker='NetBSD ld.elf_so'
12529   ;;
12530
12531 knetbsd*-gnu)
12532   version_type=linux
12533   need_lib_prefix=no
12534   need_version=no
12535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12536   soname_spec='${libname}${release}${shared_ext}$major'
12537   shlibpath_var=LD_LIBRARY_PATH
12538   shlibpath_overrides_runpath=no
12539   hardcode_into_libs=yes
12540   dynamic_linker='GNU ld.so'
12541   ;;
12542
12543 netbsd*)
12544   version_type=sunos
12545   need_lib_prefix=no
12546   need_version=no
12547   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12549     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12550     dynamic_linker='NetBSD (a.out) ld.so'
12551   else
12552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12553     soname_spec='${libname}${release}${shared_ext}$major'
12554     dynamic_linker='NetBSD ld.elf_so'
12555   fi
12556   shlibpath_var=LD_LIBRARY_PATH
12557   shlibpath_overrides_runpath=yes
12558   hardcode_into_libs=yes
12559   ;;
12560
12561 newsos6)
12562   version_type=linux
12563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564   shlibpath_var=LD_LIBRARY_PATH
12565   shlibpath_overrides_runpath=yes
12566   ;;
12567
12568 nto-qnx*)
12569   version_type=linux
12570   need_lib_prefix=no
12571   need_version=no
12572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573   soname_spec='${libname}${release}${shared_ext}$major'
12574   shlibpath_var=LD_LIBRARY_PATH
12575   shlibpath_overrides_runpath=yes
12576   ;;
12577
12578 openbsd*)
12579   version_type=sunos
12580   sys_lib_dlsearch_path_spec="/usr/lib"
12581   need_lib_prefix=no
12582   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12583   case $host_os in
12584     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12585     *)                         need_version=no  ;;
12586   esac
12587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12588   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12589   shlibpath_var=LD_LIBRARY_PATH
12590   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12591     case $host_os in
12592       openbsd2.[89] | openbsd2.[89].*)
12593         shlibpath_overrides_runpath=no
12594         ;;
12595       *)
12596         shlibpath_overrides_runpath=yes
12597         ;;
12598       esac
12599   else
12600     shlibpath_overrides_runpath=yes
12601   fi
12602   ;;
12603
12604 os2*)
12605   libname_spec='$name'
12606   shrext_cmds=".dll"
12607   need_lib_prefix=no
12608   library_names_spec='$libname${shared_ext} $libname.a'
12609   dynamic_linker='OS/2 ld.exe'
12610   shlibpath_var=LIBPATH
12611   ;;
12612
12613 osf3* | osf4* | osf5*)
12614   version_type=osf
12615   need_lib_prefix=no
12616   need_version=no
12617   soname_spec='${libname}${release}${shared_ext}$major'
12618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12619   shlibpath_var=LD_LIBRARY_PATH
12620   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12621   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12622   ;;
12623
12624 solaris*)
12625   version_type=linux
12626   need_lib_prefix=no
12627   need_version=no
12628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12629   soname_spec='${libname}${release}${shared_ext}$major'
12630   shlibpath_var=LD_LIBRARY_PATH
12631   shlibpath_overrides_runpath=yes
12632   hardcode_into_libs=yes
12633   # ldd complains unless libraries are executable
12634   postinstall_cmds='chmod +x $lib'
12635   ;;
12636
12637 sunos4*)
12638   version_type=sunos
12639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12640   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12641   shlibpath_var=LD_LIBRARY_PATH
12642   shlibpath_overrides_runpath=yes
12643   if test "$with_gnu_ld" = yes; then
12644     need_lib_prefix=no
12645   fi
12646   need_version=yes
12647   ;;
12648
12649 sysv4 | sysv4.3*)
12650   version_type=linux
12651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652   soname_spec='${libname}${release}${shared_ext}$major'
12653   shlibpath_var=LD_LIBRARY_PATH
12654   case $host_vendor in
12655     sni)
12656       shlibpath_overrides_runpath=no
12657       need_lib_prefix=no
12658       export_dynamic_flag_spec='${wl}-Blargedynsym'
12659       runpath_var=LD_RUN_PATH
12660       ;;
12661     siemens)
12662       need_lib_prefix=no
12663       ;;
12664     motorola)
12665       need_lib_prefix=no
12666       need_version=no
12667       shlibpath_overrides_runpath=no
12668       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12669       ;;
12670   esac
12671   ;;
12672
12673 sysv4*MP*)
12674   if test -d /usr/nec ;then
12675     version_type=linux
12676     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12677     soname_spec='$libname${shared_ext}.$major'
12678     shlibpath_var=LD_LIBRARY_PATH
12679   fi
12680   ;;
12681
12682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12683   version_type=freebsd-elf
12684   need_lib_prefix=no
12685   need_version=no
12686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12687   soname_spec='${libname}${release}${shared_ext}$major'
12688   shlibpath_var=LD_LIBRARY_PATH
12689   hardcode_into_libs=yes
12690   if test "$with_gnu_ld" = yes; then
12691     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12692     shlibpath_overrides_runpath=no
12693   else
12694     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12695     shlibpath_overrides_runpath=yes
12696     case $host_os in
12697       sco3.2v5*)
12698         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12699         ;;
12700     esac
12701   fi
12702   sys_lib_dlsearch_path_spec='/usr/lib'
12703   ;;
12704
12705 uts4*)
12706   version_type=linux
12707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12708   soname_spec='${libname}${release}${shared_ext}$major'
12709   shlibpath_var=LD_LIBRARY_PATH
12710   ;;
12711
12712 *)
12713   dynamic_linker=no
12714   ;;
12715 esac
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12717 $as_echo "$dynamic_linker" >&6; }
12718 test "$dynamic_linker" = no && can_build_shared=no
12719
12720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12721 if test "$GCC" = yes; then
12722   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12723 fi
12724
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12726 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12727 hardcode_action_CXX=
12728 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12729    test -n "$runpath_var_CXX" || \
12730    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12731
12732   # We can hardcode non-existant directories.
12733   if test "$hardcode_direct_CXX" != no &&
12734      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12735      # have to relink, otherwise we might link with an installed library
12736      # when we should be linking with a yet-to-be-installed one
12737      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12738      test "$hardcode_minus_L_CXX" != no; then
12739     # Linking always hardcodes the temporary library directory.
12740     hardcode_action_CXX=relink
12741   else
12742     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12743     hardcode_action_CXX=immediate
12744   fi
12745 else
12746   # We cannot hardcode anything, or else we can only hardcode existing
12747   # directories.
12748   hardcode_action_CXX=unsupported
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12751 $as_echo "$hardcode_action_CXX" >&6; }
12752
12753 if test "$hardcode_action_CXX" = relink; then
12754   # Fast installation is not supported
12755   enable_fast_install=no
12756 elif test "$shlibpath_overrides_runpath" = yes ||
12757      test "$enable_shared" = no; then
12758   # Fast installation is not necessary
12759   enable_fast_install=needless
12760 fi
12761
12762
12763 # The else clause should only fire when bootstrapping the
12764 # libtool distribution, otherwise you forgot to ship ltmain.sh
12765 # with your package, and you will get complaints that there are
12766 # no rules to generate ltmain.sh.
12767 if test -f "$ltmain"; then
12768   # See if we are running on zsh, and set the options which allow our commands through
12769   # without removal of \ escapes.
12770   if test -n "${ZSH_VERSION+set}" ; then
12771     setopt NO_GLOB_SUBST
12772   fi
12773   # Now quote all the things that may contain metacharacters while being
12774   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12775   # variables and quote the copies for generation of the libtool script.
12776   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12777     SED SHELL STRIP \
12778     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12779     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12780     deplibs_check_method reload_flag reload_cmds need_locks \
12781     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12782     lt_cv_sys_global_symbol_to_c_name_address \
12783     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12784     old_postinstall_cmds old_postuninstall_cmds \
12785     compiler_CXX \
12786     CC_CXX \
12787     LD_CXX \
12788     lt_prog_compiler_wl_CXX \
12789     lt_prog_compiler_pic_CXX \
12790     lt_prog_compiler_static_CXX \
12791     lt_prog_compiler_no_builtin_flag_CXX \
12792     export_dynamic_flag_spec_CXX \
12793     thread_safe_flag_spec_CXX \
12794     whole_archive_flag_spec_CXX \
12795     enable_shared_with_static_runtimes_CXX \
12796     old_archive_cmds_CXX \
12797     old_archive_from_new_cmds_CXX \
12798     predep_objects_CXX \
12799     postdep_objects_CXX \
12800     predeps_CXX \
12801     postdeps_CXX \
12802     compiler_lib_search_path_CXX \
12803     archive_cmds_CXX \
12804     archive_expsym_cmds_CXX \
12805     postinstall_cmds_CXX \
12806     postuninstall_cmds_CXX \
12807     old_archive_from_expsyms_cmds_CXX \
12808     allow_undefined_flag_CXX \
12809     no_undefined_flag_CXX \
12810     export_symbols_cmds_CXX \
12811     hardcode_libdir_flag_spec_CXX \
12812     hardcode_libdir_flag_spec_ld_CXX \
12813     hardcode_libdir_separator_CXX \
12814     hardcode_automatic_CXX \
12815     module_cmds_CXX \
12816     module_expsym_cmds_CXX \
12817     lt_cv_prog_compiler_c_o_CXX \
12818     exclude_expsyms_CXX \
12819     include_expsyms_CXX; do
12820
12821     case $var in
12822     old_archive_cmds_CXX | \
12823     old_archive_from_new_cmds_CXX | \
12824     archive_cmds_CXX | \
12825     archive_expsym_cmds_CXX | \
12826     module_cmds_CXX | \
12827     module_expsym_cmds_CXX | \
12828     old_archive_from_expsyms_cmds_CXX | \
12829     export_symbols_cmds_CXX | \
12830     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12831     postinstall_cmds | postuninstall_cmds | \
12832     old_postinstall_cmds | old_postuninstall_cmds | \
12833     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12834       # Double-quote double-evaled strings.
12835       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12836       ;;
12837     *)
12838       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12839       ;;
12840     esac
12841   done
12842
12843   case $lt_echo in
12844   *'\$0 --fallback-echo"')
12845     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12846     ;;
12847   esac
12848
12849 cfgfile="$ofile"
12850
12851   cat <<__EOF__ >> "$cfgfile"
12852 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12853
12854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12855
12856 # Shell to use when invoking shell scripts.
12857 SHELL=$lt_SHELL
12858
12859 # Whether or not to build shared libraries.
12860 build_libtool_libs=$enable_shared
12861
12862 # Whether or not to build static libraries.
12863 build_old_libs=$enable_static
12864
12865 # Whether or not to add -lc for building shared libraries.
12866 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12867
12868 # Whether or not to disallow shared libs when runtime libs are static
12869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12870
12871 # Whether or not to optimize for fast installation.
12872 fast_install=$enable_fast_install
12873
12874 # The host system.
12875 host_alias=$host_alias
12876 host=$host
12877 host_os=$host_os
12878
12879 # The build system.
12880 build_alias=$build_alias
12881 build=$build
12882 build_os=$build_os
12883
12884 # An echo program that does not interpret backslashes.
12885 echo=$lt_echo
12886
12887 # The archiver.
12888 AR=$lt_AR
12889 AR_FLAGS=$lt_AR_FLAGS
12890
12891 # A C compiler.
12892 LTCC=$lt_LTCC
12893
12894 # LTCC compiler flags.
12895 LTCFLAGS=$lt_LTCFLAGS
12896
12897 # A language-specific compiler.
12898 CC=$lt_compiler_CXX
12899
12900 # Is the compiler the GNU C compiler?
12901 with_gcc=$GCC_CXX
12902
12903 # An ERE matcher.
12904 EGREP=$lt_EGREP
12905
12906 # The linker used to build libraries.
12907 LD=$lt_LD_CXX
12908
12909 # Whether we need hard or soft links.
12910 LN_S=$lt_LN_S
12911
12912 # A BSD-compatible nm program.
12913 NM=$lt_NM
12914
12915 # A symbol stripping program
12916 STRIP=$lt_STRIP
12917
12918 # Used to examine libraries when file_magic_cmd begins "file"
12919 MAGIC_CMD=$MAGIC_CMD
12920
12921 # Used on cygwin: DLL creation program.
12922 DLLTOOL="$DLLTOOL"
12923
12924 # Used on cygwin: object dumper.
12925 OBJDUMP="$OBJDUMP"
12926
12927 # Used on cygwin: assembler.
12928 AS="$AS"
12929
12930 # The name of the directory that contains temporary libtool files.
12931 objdir=$objdir
12932
12933 # How to create reloadable object files.
12934 reload_flag=$lt_reload_flag
12935 reload_cmds=$lt_reload_cmds
12936
12937 # How to pass a linker flag through the compiler.
12938 wl=$lt_lt_prog_compiler_wl_CXX
12939
12940 # Object file suffix (normally "o").
12941 objext="$ac_objext"
12942
12943 # Old archive suffix (normally "a").
12944 libext="$libext"
12945
12946 # Shared library suffix (normally ".so").
12947 shrext_cmds='$shrext_cmds'
12948
12949 # Executable file suffix (normally "").
12950 exeext="$exeext"
12951
12952 # Additional compiler flags for building library objects.
12953 pic_flag=$lt_lt_prog_compiler_pic_CXX
12954 pic_mode=$pic_mode
12955
12956 # What is the maximum length of a command?
12957 max_cmd_len=$lt_cv_sys_max_cmd_len
12958
12959 # Does compiler simultaneously support -c and -o options?
12960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12961
12962 # Must we lock files when doing compilation?
12963 need_locks=$lt_need_locks
12964
12965 # Do we need the lib prefix for modules?
12966 need_lib_prefix=$need_lib_prefix
12967
12968 # Do we need a version for libraries?
12969 need_version=$need_version
12970
12971 # Whether dlopen is supported.
12972 dlopen_support=$enable_dlopen
12973
12974 # Whether dlopen of programs is supported.
12975 dlopen_self=$enable_dlopen_self
12976
12977 # Whether dlopen of statically linked programs is supported.
12978 dlopen_self_static=$enable_dlopen_self_static
12979
12980 # Compiler flag to prevent dynamic linking.
12981 link_static_flag=$lt_lt_prog_compiler_static_CXX
12982
12983 # Compiler flag to turn off builtin functions.
12984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12985
12986 # Compiler flag to allow reflexive dlopens.
12987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12988
12989 # Compiler flag to generate shared objects directly from archives.
12990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12991
12992 # Compiler flag to generate thread-safe objects.
12993 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12994
12995 # Library versioning type.
12996 version_type=$version_type
12997
12998 # Format of library name prefix.
12999 libname_spec=$lt_libname_spec
13000
13001 # List of archive names.  First name is the real one, the rest are links.
13002 # The last name is the one that the linker finds with -lNAME.
13003 library_names_spec=$lt_library_names_spec
13004
13005 # The coded name of the library, if different from the real name.
13006 soname_spec=$lt_soname_spec
13007
13008 # Commands used to build and install an old-style archive.
13009 RANLIB=$lt_RANLIB
13010 old_archive_cmds=$lt_old_archive_cmds_CXX
13011 old_postinstall_cmds=$lt_old_postinstall_cmds
13012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13013
13014 # Create an old-style archive from a shared archive.
13015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13016
13017 # Create a temporary old-style archive to link instead of a shared archive.
13018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13019
13020 # Commands used to build and install a shared archive.
13021 archive_cmds=$lt_archive_cmds_CXX
13022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13023 postinstall_cmds=$lt_postinstall_cmds
13024 postuninstall_cmds=$lt_postuninstall_cmds
13025
13026 # Commands used to build a loadable module (assumed same as above if empty)
13027 module_cmds=$lt_module_cmds_CXX
13028 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13029
13030 # Commands to strip libraries.
13031 old_striplib=$lt_old_striplib
13032 striplib=$lt_striplib
13033
13034 # Dependencies to place before the objects being linked to create a
13035 # shared library.
13036 predep_objects=$lt_predep_objects_CXX
13037
13038 # Dependencies to place after the objects being linked to create a
13039 # shared library.
13040 postdep_objects=$lt_postdep_objects_CXX
13041
13042 # Dependencies to place before the objects being linked to create a
13043 # shared library.
13044 predeps=$lt_predeps_CXX
13045
13046 # Dependencies to place after the objects being linked to create a
13047 # shared library.
13048 postdeps=$lt_postdeps_CXX
13049
13050 # The library search path used internally by the compiler when linking
13051 # a shared library.
13052 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13053
13054 # Method to check whether dependent libraries are shared objects.
13055 deplibs_check_method=$lt_deplibs_check_method
13056
13057 # Command to use when deplibs_check_method == file_magic.
13058 file_magic_cmd=$lt_file_magic_cmd
13059
13060 # Flag that allows shared libraries with undefined symbols to be built.
13061 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13062
13063 # Flag that forces no undefined symbols.
13064 no_undefined_flag=$lt_no_undefined_flag_CXX
13065
13066 # Commands used to finish a libtool library installation in a directory.
13067 finish_cmds=$lt_finish_cmds
13068
13069 # Same as above, but a single script fragment to be evaled but not shown.
13070 finish_eval=$lt_finish_eval
13071
13072 # Take the output of nm and produce a listing of raw symbols and C names.
13073 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13074
13075 # Transform the output of nm in a proper C declaration
13076 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13077
13078 # Transform the output of nm in a C name address pair
13079 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13080
13081 # This is the shared library runtime path variable.
13082 runpath_var=$runpath_var
13083
13084 # This is the shared library path variable.
13085 shlibpath_var=$shlibpath_var
13086
13087 # Is shlibpath searched before the hard-coded library search path?
13088 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13089
13090 # How to hardcode a shared library path into an executable.
13091 hardcode_action=$hardcode_action_CXX
13092
13093 # Whether we should hardcode library paths into libraries.
13094 hardcode_into_libs=$hardcode_into_libs
13095
13096 # Flag to hardcode \$libdir into a binary during linking.
13097 # This must work even if \$libdir does not exist.
13098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13099
13100 # If ld is used when linking, flag to hardcode \$libdir into
13101 # a binary during linking. This must work even if \$libdir does
13102 # not exist.
13103 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13104
13105 # Whether we need a single -rpath flag with a separated argument.
13106 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13107
13108 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13109 # resulting binary.
13110 hardcode_direct=$hardcode_direct_CXX
13111
13112 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13113 # resulting binary.
13114 hardcode_minus_L=$hardcode_minus_L_CXX
13115
13116 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13117 # the resulting binary.
13118 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13119
13120 # Set to yes if building a shared library automatically hardcodes DIR into the library
13121 # and all subsequent libraries and executables linked against it.
13122 hardcode_automatic=$hardcode_automatic_CXX
13123
13124 # Variables whose values should be saved in libtool wrapper scripts and
13125 # restored at relink time.
13126 variables_saved_for_relink="$variables_saved_for_relink"
13127
13128 # Whether libtool must link a program against all its dependency libraries.
13129 link_all_deplibs=$link_all_deplibs_CXX
13130
13131 # Compile-time system search path for libraries
13132 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13133
13134 # Run-time system search path for libraries
13135 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13136
13137 # Fix the shell variable \$srcfile for the compiler.
13138 fix_srcfile_path="$fix_srcfile_path_CXX"
13139
13140 # Set to yes if exported symbols are required.
13141 always_export_symbols=$always_export_symbols_CXX
13142
13143 # The commands to list exported symbols.
13144 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13145
13146 # The commands to extract the exported symbol list from a shared archive.
13147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13148
13149 # Symbols that should not be listed in the preloaded symbols.
13150 exclude_expsyms=$lt_exclude_expsyms_CXX
13151
13152 # Symbols that must always be exported.
13153 include_expsyms=$lt_include_expsyms_CXX
13154
13155 # ### END LIBTOOL TAG CONFIG: $tagname
13156
13157 __EOF__
13158
13159
13160 else
13161   # If there is no Makefile yet, we rely on a make rule to execute
13162   # `config.status --recheck' to rerun these tests and create the
13163   # libtool script then.
13164   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13165   if test -f "$ltmain_in"; then
13166     test -f Makefile && make "$ltmain"
13167   fi
13168 fi
13169
13170
13171 ac_ext=c
13172 ac_cpp='$CPP $CPPFLAGS'
13173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13176
13177 CC=$lt_save_CC
13178 LDCXX=$LD
13179 LD=$lt_save_LD
13180 GCC=$lt_save_GCC
13181 with_gnu_ldcxx=$with_gnu_ld
13182 with_gnu_ld=$lt_save_with_gnu_ld
13183 lt_cv_path_LDCXX=$lt_cv_path_LD
13184 lt_cv_path_LD=$lt_save_path_LD
13185 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13186 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13187
13188         else
13189           tagname=""
13190         fi
13191         ;;
13192
13193       F77)
13194         if test -n "$F77" && test "X$F77" != "Xno"; then
13195
13196 ac_ext=f
13197 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13198 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13199 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13200
13201
13202 archive_cmds_need_lc_F77=no
13203 allow_undefined_flag_F77=
13204 always_export_symbols_F77=no
13205 archive_expsym_cmds_F77=
13206 export_dynamic_flag_spec_F77=
13207 hardcode_direct_F77=no
13208 hardcode_libdir_flag_spec_F77=
13209 hardcode_libdir_flag_spec_ld_F77=
13210 hardcode_libdir_separator_F77=
13211 hardcode_minus_L_F77=no
13212 hardcode_automatic_F77=no
13213 module_cmds_F77=
13214 module_expsym_cmds_F77=
13215 link_all_deplibs_F77=unknown
13216 old_archive_cmds_F77=$old_archive_cmds
13217 no_undefined_flag_F77=
13218 whole_archive_flag_spec_F77=
13219 enable_shared_with_static_runtimes_F77=no
13220
13221 # Source file extension for f77 test sources.
13222 ac_ext=f
13223
13224 # Object file extension for compiled f77 test sources.
13225 objext=o
13226 objext_F77=$objext
13227
13228 # Code to be used in simple compile tests
13229 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13230
13231 # Code to be used in simple link tests
13232 lt_simple_link_test_code="      program t\n      end\n"
13233
13234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13235
13236 # If no C compiler was specified, use CC.
13237 LTCC=${LTCC-"$CC"}
13238
13239 # If no C compiler flags were specified, use CFLAGS.
13240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13241
13242 # Allow CC to be a program name with arguments.
13243 compiler=$CC
13244
13245
13246 # save warnings/boilerplate of simple test code
13247 ac_outfile=conftest.$ac_objext
13248 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13250 _lt_compiler_boilerplate=`cat conftest.err`
13251 $rm conftest*
13252
13253 ac_outfile=conftest.$ac_objext
13254 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13256 _lt_linker_boilerplate=`cat conftest.err`
13257 $rm conftest*
13258
13259
13260 # Allow CC to be a program name with arguments.
13261 lt_save_CC="$CC"
13262 CC=${F77-"f77"}
13263 compiler=$CC
13264 compiler_F77=$CC
13265 for cc_temp in $compiler""; do
13266   case $cc_temp in
13267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13269     \-*) ;;
13270     *) break;;
13271   esac
13272 done
13273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13274
13275
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13277 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13279 $as_echo "$can_build_shared" >&6; }
13280
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13282 $as_echo_n "checking whether to build shared libraries... " >&6; }
13283 test "$can_build_shared" = "no" && enable_shared=no
13284
13285 # On AIX, shared libraries and static libraries use the same namespace, and
13286 # are all built from PIC.
13287 case $host_os in
13288 aix3*)
13289   test "$enable_shared" = yes && enable_static=no
13290   if test -n "$RANLIB"; then
13291     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13292     postinstall_cmds='$RANLIB $lib'
13293   fi
13294   ;;
13295 aix4* | aix5*)
13296   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13297     test "$enable_shared" = yes && enable_static=no
13298   fi
13299   ;;
13300 esac
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13302 $as_echo "$enable_shared" >&6; }
13303
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13305 $as_echo_n "checking whether to build static libraries... " >&6; }
13306 # Make sure either enable_shared or enable_static is yes.
13307 test "$enable_shared" = yes || enable_static=yes
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13309 $as_echo "$enable_static" >&6; }
13310
13311 GCC_F77="$G77"
13312 LD_F77="$LD"
13313
13314 lt_prog_compiler_wl_F77=
13315 lt_prog_compiler_pic_F77=
13316 lt_prog_compiler_static_F77=
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13319 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13320
13321   if test "$GCC" = yes; then
13322     lt_prog_compiler_wl_F77='-Wl,'
13323     lt_prog_compiler_static_F77='-static'
13324
13325     case $host_os in
13326       aix*)
13327       # All AIX code is PIC.
13328       if test "$host_cpu" = ia64; then
13329         # AIX 5 now supports IA64 processor
13330         lt_prog_compiler_static_F77='-Bstatic'
13331       fi
13332       ;;
13333
13334     amigaos*)
13335       # FIXME: we need at least 68020 code to build shared libraries, but
13336       # adding the `-m68020' flag to GCC prevents building anything better,
13337       # like `-m68040'.
13338       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13339       ;;
13340
13341     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13342       # PIC is the default for these OSes.
13343       ;;
13344
13345     mingw* | pw32* | os2*)
13346       # This hack is so that the source file can tell whether it is being
13347       # built for inclusion in a dll (and should export symbols for example).
13348       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13349       ;;
13350
13351     darwin* | rhapsody*)
13352       # PIC is the default on this platform
13353       # Common symbols not allowed in MH_DYLIB files
13354       lt_prog_compiler_pic_F77='-fno-common'
13355       ;;
13356
13357     interix3*)
13358       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13359       # Instead, we relocate shared libraries at runtime.
13360       ;;
13361
13362     msdosdjgpp*)
13363       # Just because we use GCC doesn't mean we suddenly get shared libraries
13364       # on systems that don't support them.
13365       lt_prog_compiler_can_build_shared_F77=no
13366       enable_shared=no
13367       ;;
13368
13369     sysv4*MP*)
13370       if test -d /usr/nec; then
13371         lt_prog_compiler_pic_F77=-Kconform_pic
13372       fi
13373       ;;
13374
13375     hpux*)
13376       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13377       # not for PA HP-UX.
13378       case $host_cpu in
13379       hppa*64*|ia64*)
13380         # +Z the default
13381         ;;
13382       *)
13383         lt_prog_compiler_pic_F77='-fPIC'
13384         ;;
13385       esac
13386       ;;
13387
13388     *)
13389       lt_prog_compiler_pic_F77='-fPIC'
13390       ;;
13391     esac
13392   else
13393     # PORTME Check for flag to pass linker flags through the system compiler.
13394     case $host_os in
13395     aix*)
13396       lt_prog_compiler_wl_F77='-Wl,'
13397       if test "$host_cpu" = ia64; then
13398         # AIX 5 now supports IA64 processor
13399         lt_prog_compiler_static_F77='-Bstatic'
13400       else
13401         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13402       fi
13403       ;;
13404       darwin*)
13405         # PIC is the default on this platform
13406         # Common symbols not allowed in MH_DYLIB files
13407        case $cc_basename in
13408          xlc*)
13409          lt_prog_compiler_pic_F77='-qnocommon'
13410          lt_prog_compiler_wl_F77='-Wl,'
13411          ;;
13412        esac
13413        ;;
13414
13415     mingw* | pw32* | os2*)
13416       # This hack is so that the source file can tell whether it is being
13417       # built for inclusion in a dll (and should export symbols for example).
13418       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13419       ;;
13420
13421     hpux9* | hpux10* | hpux11*)
13422       lt_prog_compiler_wl_F77='-Wl,'
13423       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13424       # not for PA HP-UX.
13425       case $host_cpu in
13426       hppa*64*|ia64*)
13427         # +Z the default
13428         ;;
13429       *)
13430         lt_prog_compiler_pic_F77='+Z'
13431         ;;
13432       esac
13433       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13434       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13435       ;;
13436
13437     irix5* | irix6* | nonstopux*)
13438       lt_prog_compiler_wl_F77='-Wl,'
13439       # PIC (with -KPIC) is the default.
13440       lt_prog_compiler_static_F77='-non_shared'
13441       ;;
13442
13443     newsos6)
13444       lt_prog_compiler_pic_F77='-KPIC'
13445       lt_prog_compiler_static_F77='-Bstatic'
13446       ;;
13447
13448     linux*)
13449       case $cc_basename in
13450       icc* | ecc*)
13451         lt_prog_compiler_wl_F77='-Wl,'
13452         lt_prog_compiler_pic_F77='-KPIC'
13453         lt_prog_compiler_static_F77='-static'
13454         ;;
13455       pgcc* | pgf77* | pgf90* | pgf95*)
13456         # Portland Group compilers (*not* the Pentium gcc compiler,
13457         # which looks to be a dead project)
13458         lt_prog_compiler_wl_F77='-Wl,'
13459         lt_prog_compiler_pic_F77='-fpic'
13460         lt_prog_compiler_static_F77='-Bstatic'
13461         ;;
13462       ccc*)
13463         lt_prog_compiler_wl_F77='-Wl,'
13464         # All Alpha code is PIC.
13465         lt_prog_compiler_static_F77='-non_shared'
13466         ;;
13467       esac
13468       ;;
13469
13470     osf3* | osf4* | osf5*)
13471       lt_prog_compiler_wl_F77='-Wl,'
13472       # All OSF/1 code is PIC.
13473       lt_prog_compiler_static_F77='-non_shared'
13474       ;;
13475
13476     solaris*)
13477       lt_prog_compiler_pic_F77='-KPIC'
13478       lt_prog_compiler_static_F77='-Bstatic'
13479       case $cc_basename in
13480       f77* | f90* | f95*)
13481         lt_prog_compiler_wl_F77='-Qoption ld ';;
13482       *)
13483         lt_prog_compiler_wl_F77='-Wl,';;
13484       esac
13485       ;;
13486
13487     sunos4*)
13488       lt_prog_compiler_wl_F77='-Qoption ld '
13489       lt_prog_compiler_pic_F77='-PIC'
13490       lt_prog_compiler_static_F77='-Bstatic'
13491       ;;
13492
13493     sysv4 | sysv4.2uw2* | sysv4.3*)
13494       lt_prog_compiler_wl_F77='-Wl,'
13495       lt_prog_compiler_pic_F77='-KPIC'
13496       lt_prog_compiler_static_F77='-Bstatic'
13497       ;;
13498
13499     sysv4*MP*)
13500       if test -d /usr/nec ;then
13501         lt_prog_compiler_pic_F77='-Kconform_pic'
13502         lt_prog_compiler_static_F77='-Bstatic'
13503       fi
13504       ;;
13505
13506     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13507       lt_prog_compiler_wl_F77='-Wl,'
13508       lt_prog_compiler_pic_F77='-KPIC'
13509       lt_prog_compiler_static_F77='-Bstatic'
13510       ;;
13511
13512     unicos*)
13513       lt_prog_compiler_wl_F77='-Wl,'
13514       lt_prog_compiler_can_build_shared_F77=no
13515       ;;
13516
13517     uts4*)
13518       lt_prog_compiler_pic_F77='-pic'
13519       lt_prog_compiler_static_F77='-Bstatic'
13520       ;;
13521
13522     *)
13523       lt_prog_compiler_can_build_shared_F77=no
13524       ;;
13525     esac
13526   fi
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13529 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13530
13531 #
13532 # Check to make sure the PIC flag actually works.
13533 #
13534 if test -n "$lt_prog_compiler_pic_F77"; then
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13537 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13538 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   lt_prog_compiler_pic_works_F77=no
13542   ac_outfile=conftest.$ac_objext
13543    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13544    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13545    # Insert the option either (1) after the last *FLAGS variable, or
13546    # (2) before a word containing "conftest.", or (3) at the end.
13547    # Note that $ac_compile itself does not contain backslashes and begins
13548    # with a dollar sign (not a hyphen), so the echo should work correctly.
13549    # The option is referenced via a variable to avoid confusing sed.
13550    lt_compile=`echo "$ac_compile" | $SED \
13551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13553    -e 's:$: $lt_compiler_flag:'`
13554    (eval echo "\"\$as_me:13554: $lt_compile\"" >&5)
13555    (eval "$lt_compile" 2>conftest.err)
13556    ac_status=$?
13557    cat conftest.err >&5
13558    echo "$as_me:13558: \$? = $ac_status" >&5
13559    if (exit $ac_status) && test -s "$ac_outfile"; then
13560      # The compiler can only warn and ignore the option if not recognized
13561      # So say no if there are warnings other than the usual output.
13562      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13563      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13564      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13565        lt_prog_compiler_pic_works_F77=yes
13566      fi
13567    fi
13568    $rm conftest*
13569
13570 fi
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13572 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13573
13574 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13575     case $lt_prog_compiler_pic_F77 in
13576      "" | " "*) ;;
13577      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13578      esac
13579 else
13580     lt_prog_compiler_pic_F77=
13581      lt_prog_compiler_can_build_shared_F77=no
13582 fi
13583
13584 fi
13585 case $host_os in
13586   # For platforms which do not support PIC, -DPIC is meaningless:
13587   *djgpp*)
13588     lt_prog_compiler_pic_F77=
13589     ;;
13590   *)
13591     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13592     ;;
13593 esac
13594
13595 #
13596 # Check to make sure the static flag actually works.
13597 #
13598 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13601 if ${lt_prog_compiler_static_works_F77+:} false; then :
13602   $as_echo_n "(cached) " >&6
13603 else
13604   lt_prog_compiler_static_works_F77=no
13605    save_LDFLAGS="$LDFLAGS"
13606    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13607    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13608    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13609      # The linker can only warn and ignore the option if not recognized
13610      # So say no if there are warnings
13611      if test -s conftest.err; then
13612        # Append any errors to the config.log.
13613        cat conftest.err 1>&5
13614        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13615        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13616        if diff conftest.exp conftest.er2 >/dev/null; then
13617          lt_prog_compiler_static_works_F77=yes
13618        fi
13619      else
13620        lt_prog_compiler_static_works_F77=yes
13621      fi
13622    fi
13623    $rm conftest*
13624    LDFLAGS="$save_LDFLAGS"
13625
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13628 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13629
13630 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13631     :
13632 else
13633     lt_prog_compiler_static_F77=
13634 fi
13635
13636
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13639 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13640   $as_echo_n "(cached) " >&6
13641 else
13642   lt_cv_prog_compiler_c_o_F77=no
13643    $rm -r conftest 2>/dev/null
13644    mkdir conftest
13645    cd conftest
13646    mkdir out
13647    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13648
13649    lt_compiler_flag="-o out/conftest2.$ac_objext"
13650    # Insert the option either (1) after the last *FLAGS variable, or
13651    # (2) before a word containing "conftest.", or (3) at the end.
13652    # Note that $ac_compile itself does not contain backslashes and begins
13653    # with a dollar sign (not a hyphen), so the echo should work correctly.
13654    lt_compile=`echo "$ac_compile" | $SED \
13655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13657    -e 's:$: $lt_compiler_flag:'`
13658    (eval echo "\"\$as_me:13658: $lt_compile\"" >&5)
13659    (eval "$lt_compile" 2>out/conftest.err)
13660    ac_status=$?
13661    cat out/conftest.err >&5
13662    echo "$as_me:13662: \$? = $ac_status" >&5
13663    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13664    then
13665      # The compiler can only warn and ignore the option if not recognized
13666      # So say no if there are warnings
13667      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13668      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13669      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13670        lt_cv_prog_compiler_c_o_F77=yes
13671      fi
13672    fi
13673    chmod u+w . 2>&5
13674    $rm conftest*
13675    # SGI C++ compiler will create directory out/ii_files/ for
13676    # template instantiation
13677    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13678    $rm out/* && rmdir out
13679    cd ..
13680    rmdir conftest
13681    $rm conftest*
13682
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13685 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13686
13687
13688 hard_links="nottested"
13689 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13690   # do not overwrite the value of need_locks provided by the user
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13692 $as_echo_n "checking if we can lock with hard links... " >&6; }
13693   hard_links=yes
13694   $rm conftest*
13695   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13696   touch conftest.a
13697   ln conftest.a conftest.b 2>&5 || hard_links=no
13698   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13700 $as_echo "$hard_links" >&6; }
13701   if test "$hard_links" = no; then
13702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13704     need_locks=warn
13705   fi
13706 else
13707   need_locks=no
13708 fi
13709
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13712
13713   runpath_var=
13714   allow_undefined_flag_F77=
13715   enable_shared_with_static_runtimes_F77=no
13716   archive_cmds_F77=
13717   archive_expsym_cmds_F77=
13718   old_archive_From_new_cmds_F77=
13719   old_archive_from_expsyms_cmds_F77=
13720   export_dynamic_flag_spec_F77=
13721   whole_archive_flag_spec_F77=
13722   thread_safe_flag_spec_F77=
13723   hardcode_libdir_flag_spec_F77=
13724   hardcode_libdir_flag_spec_ld_F77=
13725   hardcode_libdir_separator_F77=
13726   hardcode_direct_F77=no
13727   hardcode_minus_L_F77=no
13728   hardcode_shlibpath_var_F77=unsupported
13729   link_all_deplibs_F77=unknown
13730   hardcode_automatic_F77=no
13731   module_cmds_F77=
13732   module_expsym_cmds_F77=
13733   always_export_symbols_F77=no
13734   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13735   # include_expsyms should be a list of space-separated symbols to be *always*
13736   # included in the symbol list
13737   include_expsyms_F77=
13738   # exclude_expsyms can be an extended regexp of symbols to exclude
13739   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13740   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13741   # as well as any symbol that contains `d'.
13742   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13743   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13744   # platforms (ab)use it in PIC code, but their linkers get confused if
13745   # the symbol is explicitly referenced.  Since portable code cannot
13746   # rely on this symbol name, it's probably fine to never include it in
13747   # preloaded symbol tables.
13748   extract_expsyms_cmds=
13749   # Just being paranoid about ensuring that cc_basename is set.
13750   for cc_temp in $compiler""; do
13751   case $cc_temp in
13752     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13753     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13754     \-*) ;;
13755     *) break;;
13756   esac
13757 done
13758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13759
13760   case $host_os in
13761   cygwin* | mingw* | pw32*)
13762     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13763     # When not using gcc, we currently assume that we are using
13764     # Microsoft Visual C++.
13765     if test "$GCC" != yes; then
13766       with_gnu_ld=no
13767     fi
13768     ;;
13769   interix*)
13770     # we just hope/assume this is gcc and not c89 (= MSVC++)
13771     with_gnu_ld=yes
13772     ;;
13773   openbsd*)
13774     with_gnu_ld=no
13775     ;;
13776   esac
13777
13778   ld_shlibs_F77=yes
13779   if test "$with_gnu_ld" = yes; then
13780     # If archive_cmds runs LD, not CC, wlarc should be empty
13781     wlarc='${wl}'
13782
13783     # Set some defaults for GNU ld with shared library support. These
13784     # are reset later if shared libraries are not supported. Putting them
13785     # here allows them to be overridden if necessary.
13786     runpath_var=LD_RUN_PATH
13787     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13788     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13789     # ancient GNU ld didn't support --whole-archive et. al.
13790     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13791         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13792       else
13793         whole_archive_flag_spec_F77=
13794     fi
13795     supports_anon_versioning=no
13796     case `$LD -v 2>/dev/null` in
13797       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13798       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13799       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13800       *\ 2.11.*) ;; # other 2.11 versions
13801       *) supports_anon_versioning=yes ;;
13802     esac
13803
13804     # See if GNU ld supports shared libraries.
13805     case $host_os in
13806     aix3* | aix4* | aix5*)
13807       # On AIX/PPC, the GNU linker is very broken
13808       if test "$host_cpu" != ia64; then
13809         ld_shlibs_F77=no
13810         cat <<EOF 1>&2
13811
13812 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13813 *** to be unable to reliably create shared libraries on AIX.
13814 *** Therefore, libtool is disabling shared libraries support.  If you
13815 *** really care for shared libraries, you may want to modify your PATH
13816 *** so that a non-GNU linker is found, and then restart.
13817
13818 EOF
13819       fi
13820       ;;
13821
13822     amigaos*)
13823       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13824       hardcode_libdir_flag_spec_F77='-L$libdir'
13825       hardcode_minus_L_F77=yes
13826
13827       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13828       # that the semantics of dynamic libraries on AmigaOS, at least up
13829       # to version 4, is to share data among multiple programs linked
13830       # with the same dynamic library.  Since this doesn't match the
13831       # behavior of shared libraries on other platforms, we can't use
13832       # them.
13833       ld_shlibs_F77=no
13834       ;;
13835
13836     beos*)
13837       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13838         allow_undefined_flag_F77=unsupported
13839         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13840         # support --undefined.  This deserves some investigation.  FIXME
13841         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13842       else
13843         ld_shlibs_F77=no
13844       fi
13845       ;;
13846
13847     cygwin* | mingw* | pw32*)
13848       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13849       # as there is no search path for DLLs.
13850       hardcode_libdir_flag_spec_F77='-L$libdir'
13851       allow_undefined_flag_F77=unsupported
13852       always_export_symbols_F77=no
13853       enable_shared_with_static_runtimes_F77=yes
13854       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13855
13856       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13857         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13858         # If the export-symbols file already is a .def file (1st line
13859         # is EXPORTS), use it as is; otherwise, prepend...
13860         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13861           cp $export_symbols $output_objdir/$soname.def;
13862         else
13863           echo EXPORTS > $output_objdir/$soname.def;
13864           cat $export_symbols >> $output_objdir/$soname.def;
13865         fi~
13866         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13867       else
13868         ld_shlibs_F77=no
13869       fi
13870       ;;
13871
13872     interix3*)
13873       hardcode_direct_F77=no
13874       hardcode_shlibpath_var_F77=no
13875       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13876       export_dynamic_flag_spec_F77='${wl}-E'
13877       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13878       # Instead, shared libraries are loaded at an image base (0x10000000 by
13879       # default) and relocated if they conflict, which is a slow very memory
13880       # consuming and fragmenting process.  To avoid this, we pick a random,
13881       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13882       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13883       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13884       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13885       ;;
13886
13887     linux*)
13888       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13889         tmp_addflag=
13890         case $cc_basename,$host_cpu in
13891         pgcc*)                          # Portland Group C compiler
13892           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13893           tmp_addflag=' $pic_flag'
13894           ;;
13895         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13896           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13897           tmp_addflag=' $pic_flag -Mnomain' ;;
13898         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13899           tmp_addflag=' -i_dynamic' ;;
13900         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13901           tmp_addflag=' -i_dynamic -nofor_main' ;;
13902         ifc* | ifort*)                  # Intel Fortran compiler
13903           tmp_addflag=' -nofor_main' ;;
13904         esac
13905         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13906
13907         if test $supports_anon_versioning = yes; then
13908           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13909   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13910   $echo "local: *; };" >> $output_objdir/$libname.ver~
13911           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13912         fi
13913         link_all_deplibs_F77=no
13914       else
13915         ld_shlibs_F77=no
13916       fi
13917       ;;
13918
13919     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13920       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13921         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13922         wlarc=
13923       else
13924         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13925         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13926       fi
13927       ;;
13928
13929     solaris*)
13930       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13931         ld_shlibs_F77=no
13932         cat <<EOF 1>&2
13933
13934 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13935 *** create shared libraries on Solaris systems.  Therefore, libtool
13936 *** is disabling shared libraries support.  We urge you to upgrade GNU
13937 *** binutils to release 2.9.1 or newer.  Another option is to modify
13938 *** your PATH or compiler configuration so that the native linker is
13939 *** used, and then restart.
13940
13941 EOF
13942       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13943         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13944         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13945       else
13946         ld_shlibs_F77=no
13947       fi
13948       ;;
13949
13950     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13951       case `$LD -v 2>&1` in
13952         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13953         ld_shlibs_F77=no
13954         cat <<_LT_EOF 1>&2
13955
13956 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13957 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13958 *** is disabling shared libraries support.  We urge you to upgrade GNU
13959 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13960 *** your PATH or compiler configuration so that the native linker is
13961 *** used, and then restart.
13962
13963 _LT_EOF
13964         ;;
13965         *)
13966           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13967             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13968             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13969             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13970           else
13971             ld_shlibs_F77=no
13972           fi
13973         ;;
13974       esac
13975       ;;
13976
13977     sunos4*)
13978       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13979       wlarc=
13980       hardcode_direct_F77=yes
13981       hardcode_shlibpath_var_F77=no
13982       ;;
13983
13984     *)
13985       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13986         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13988       else
13989         ld_shlibs_F77=no
13990       fi
13991       ;;
13992     esac
13993
13994     if test "$ld_shlibs_F77" = no; then
13995       runpath_var=
13996       hardcode_libdir_flag_spec_F77=
13997       export_dynamic_flag_spec_F77=
13998       whole_archive_flag_spec_F77=
13999     fi
14000   else
14001     # PORTME fill in a description of your system's linker (not GNU ld)
14002     case $host_os in
14003     aix3*)
14004       allow_undefined_flag_F77=unsupported
14005       always_export_symbols_F77=yes
14006       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14007       # Note: this linker hardcodes the directories in LIBPATH if there
14008       # are no directories specified by -L.
14009       hardcode_minus_L_F77=yes
14010       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14011         # Neither direct hardcoding nor static linking is supported with a
14012         # broken collect2.
14013         hardcode_direct_F77=unsupported
14014       fi
14015       ;;
14016
14017     aix4* | aix5*)
14018       if test "$host_cpu" = ia64; then
14019         # On IA64, the linker does run time linking by default, so we don't
14020         # have to do anything special.
14021         aix_use_runtimelinking=no
14022         exp_sym_flag='-Bexport'
14023         no_entry_flag=""
14024       else
14025         # If we're using GNU nm, then we don't want the "-C" option.
14026         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14027         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14028           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14029         else
14030           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14031         fi
14032         aix_use_runtimelinking=no
14033
14034         # Test if we are trying to use run time linking or normal
14035         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14036         # need to do runtime linking.
14037         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14038           for ld_flag in $LDFLAGS; do
14039           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14040             aix_use_runtimelinking=yes
14041             break
14042           fi
14043           done
14044           ;;
14045         esac
14046
14047         exp_sym_flag='-bexport'
14048         no_entry_flag='-bnoentry'
14049       fi
14050
14051       # When large executables or shared objects are built, AIX ld can
14052       # have problems creating the table of contents.  If linking a library
14053       # or program results in "error TOC overflow" add -mminimal-toc to
14054       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14055       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14056
14057       archive_cmds_F77=''
14058       hardcode_direct_F77=yes
14059       hardcode_libdir_separator_F77=':'
14060       link_all_deplibs_F77=yes
14061
14062       if test "$GCC" = yes; then
14063         case $host_os in aix4.[012]|aix4.[012].*)
14064         # We only want to do this on AIX 4.2 and lower, the check
14065         # below for broken collect2 doesn't work under 4.3+
14066           collect2name=`${CC} -print-prog-name=collect2`
14067           if test -f "$collect2name" && \
14068            strings "$collect2name" | grep resolve_lib_name >/dev/null
14069           then
14070           # We have reworked collect2
14071           hardcode_direct_F77=yes
14072           else
14073           # We have old collect2
14074           hardcode_direct_F77=unsupported
14075           # It fails to find uninstalled libraries when the uninstalled
14076           # path is not listed in the libpath.  Setting hardcode_minus_L
14077           # to unsupported forces relinking
14078           hardcode_minus_L_F77=yes
14079           hardcode_libdir_flag_spec_F77='-L$libdir'
14080           hardcode_libdir_separator_F77=
14081           fi
14082           ;;
14083         esac
14084         shared_flag='-shared'
14085         if test "$aix_use_runtimelinking" = yes; then
14086           shared_flag="$shared_flag "'${wl}-G'
14087         fi
14088       else
14089         # not using gcc
14090         if test "$host_cpu" = ia64; then
14091         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14092         # chokes on -Wl,-G. The following line is correct:
14093           shared_flag='-G'
14094         else
14095           if test "$aix_use_runtimelinking" = yes; then
14096             shared_flag='${wl}-G'
14097           else
14098             shared_flag='${wl}-bM:SRE'
14099           fi
14100         fi
14101       fi
14102
14103       # It seems that -bexpall does not export symbols beginning with
14104       # underscore (_), so it is better to generate a list of symbols to export.
14105       always_export_symbols_F77=yes
14106       if test "$aix_use_runtimelinking" = yes; then
14107         # Warning - without using the other runtime loading flags (-brtl),
14108         # -berok will link without error, but may produce a broken library.
14109         allow_undefined_flag_F77='-berok'
14110        # Determine the default libpath from the value encoded in an empty executable.
14111        cat > conftest.$ac_ext <<_ACEOF
14112       program main
14113
14114       end
14115 _ACEOF
14116 if ac_fn_f77_try_link "$LINENO"; then :
14117
14118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14119 }'`
14120 # Check for a 64-bit object if we didn't find anything.
14121 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14122 }'`; fi
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext \
14125     conftest$ac_exeext conftest.$ac_ext
14126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14127
14128        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14129         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14130        else
14131         if test "$host_cpu" = ia64; then
14132           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14133           allow_undefined_flag_F77="-z nodefs"
14134           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14135         else
14136          # Determine the default libpath from the value encoded in an empty executable.
14137          cat > conftest.$ac_ext <<_ACEOF
14138       program main
14139
14140       end
14141 _ACEOF
14142 if ac_fn_f77_try_link "$LINENO"; then :
14143
14144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14145 }'`
14146 # Check for a 64-bit object if we didn't find anything.
14147 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14148 }'`; fi
14149 fi
14150 rm -f core conftest.err conftest.$ac_objext \
14151     conftest$ac_exeext conftest.$ac_ext
14152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14153
14154          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14155           # Warning - without using the other run time loading flags,
14156           # -berok will link without error, but may produce a broken library.
14157           no_undefined_flag_F77=' ${wl}-bernotok'
14158           allow_undefined_flag_F77=' ${wl}-berok'
14159           # Exported symbols can be pulled into shared objects from archives
14160           whole_archive_flag_spec_F77='$convenience'
14161           archive_cmds_need_lc_F77=yes
14162           # This is similar to how AIX traditionally builds its shared libraries.
14163           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14164         fi
14165       fi
14166       ;;
14167
14168     amigaos*)
14169       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14170       hardcode_libdir_flag_spec_F77='-L$libdir'
14171       hardcode_minus_L_F77=yes
14172       # see comment about different semantics on the GNU ld section
14173       ld_shlibs_F77=no
14174       ;;
14175
14176     bsdi[45]*)
14177       export_dynamic_flag_spec_F77=-rdynamic
14178       ;;
14179
14180     cygwin* | mingw* | pw32*)
14181       # When not using gcc, we currently assume that we are using
14182       # Microsoft Visual C++.
14183       # hardcode_libdir_flag_spec is actually meaningless, as there is
14184       # no search path for DLLs.
14185       hardcode_libdir_flag_spec_F77=' '
14186       allow_undefined_flag_F77=unsupported
14187       # Tell ltmain to make .lib files, not .a files.
14188       libext=lib
14189       # Tell ltmain to make .dll files, not .so files.
14190       shrext_cmds=".dll"
14191       # FIXME: Setting linknames here is a bad hack.
14192       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14193       # The linker will automatically build a .lib file if we build a DLL.
14194       old_archive_From_new_cmds_F77='true'
14195       # FIXME: Should let the user specify the lib program.
14196       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14197       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14198       enable_shared_with_static_runtimes_F77=yes
14199       ;;
14200
14201     darwin* | rhapsody*)
14202       case $host_os in
14203         rhapsody* | darwin1.[012])
14204          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14205          ;;
14206        *) # Darwin 1.3 on
14207          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14208            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14209          else
14210            case ${MACOSX_DEPLOYMENT_TARGET} in
14211              10.[012])
14212                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14213                ;;
14214              10.*)
14215                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14216                ;;
14217            esac
14218          fi
14219          ;;
14220       esac
14221       archive_cmds_need_lc_F77=no
14222       hardcode_direct_F77=no
14223       hardcode_automatic_F77=yes
14224       hardcode_shlibpath_var_F77=unsupported
14225       whole_archive_flag_spec_F77=''
14226       link_all_deplibs_F77=yes
14227     if test "$GCC" = yes ; then
14228         output_verbose_link_cmd='echo'
14229         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14230       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14231       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14232       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14233       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14234     else
14235       case $cc_basename in
14236         xlc*)
14237          output_verbose_link_cmd='echo'
14238          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14239          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14240           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14241          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14242           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14243           ;;
14244        *)
14245          ld_shlibs_F77=no
14246           ;;
14247       esac
14248     fi
14249       ;;
14250
14251     dgux*)
14252       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14253       hardcode_libdir_flag_spec_F77='-L$libdir'
14254       hardcode_shlibpath_var_F77=no
14255       ;;
14256
14257     freebsd1*)
14258       ld_shlibs_F77=no
14259       ;;
14260
14261     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14262     # support.  Future versions do this automatically, but an explicit c++rt0.o
14263     # does not break anything, and helps significantly (at the cost of a little
14264     # extra space).
14265     freebsd2.2*)
14266       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14267       hardcode_libdir_flag_spec_F77='-R$libdir'
14268       hardcode_direct_F77=yes
14269       hardcode_shlibpath_var_F77=no
14270       ;;
14271
14272     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14273     freebsd2*)
14274       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14275       hardcode_direct_F77=yes
14276       hardcode_minus_L_F77=yes
14277       hardcode_shlibpath_var_F77=no
14278       ;;
14279
14280     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14281     freebsd* | dragonfly*)
14282       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14283       hardcode_libdir_flag_spec_F77='-R$libdir'
14284       hardcode_direct_F77=yes
14285       hardcode_shlibpath_var_F77=no
14286       ;;
14287
14288     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14289     kfreebsd*-gnu)
14290       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14291       hardcode_libdir_flag_spec_F77='-R$libdir'
14292       hardcode_direct_F77=yes
14293       hardcode_shlibpath_var_F77=no
14294       link_all_deplibs_F77=no
14295       ;;
14296
14297     hpux9*)
14298       if test "$GCC" = yes; then
14299         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14300       else
14301         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14302       fi
14303       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14304       hardcode_libdir_separator_F77=:
14305       hardcode_direct_F77=yes
14306
14307       # hardcode_minus_L: Not really in the search PATH,
14308       # but as the default location of the library.
14309       hardcode_minus_L_F77=yes
14310       export_dynamic_flag_spec_F77='${wl}-E'
14311       ;;
14312
14313     hpux10*)
14314       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14315         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14316       else
14317         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14318       fi
14319       if test "$with_gnu_ld" = no; then
14320         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14321         hardcode_libdir_separator_F77=:
14322
14323         hardcode_direct_F77=yes
14324         export_dynamic_flag_spec_F77='${wl}-E'
14325
14326         # hardcode_minus_L: Not really in the search PATH,
14327         # but as the default location of the library.
14328         hardcode_minus_L_F77=yes
14329       fi
14330       ;;
14331
14332     hpux11*)
14333       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14334         case $host_cpu in
14335         hppa*64*)
14336           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14337           ;;
14338         ia64*)
14339           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14340           ;;
14341         *)
14342           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14343           ;;
14344         esac
14345       else
14346         case $host_cpu in
14347         hppa*64*)
14348           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14349           ;;
14350         ia64*)
14351           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14352           ;;
14353         *)
14354           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14355           ;;
14356         esac
14357       fi
14358       if test "$with_gnu_ld" = no; then
14359         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14360         hardcode_libdir_separator_F77=:
14361
14362         case $host_cpu in
14363         hppa*64*|ia64*)
14364           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14365           hardcode_direct_F77=no
14366           hardcode_shlibpath_var_F77=no
14367           ;;
14368         *)
14369           hardcode_direct_F77=yes
14370           export_dynamic_flag_spec_F77='${wl}-E'
14371
14372           # hardcode_minus_L: Not really in the search PATH,
14373           # but as the default location of the library.
14374           hardcode_minus_L_F77=yes
14375           ;;
14376         esac
14377       fi
14378       ;;
14379
14380     irix5* | irix6* | nonstopux*)
14381       if test "$GCC" = yes; then
14382         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14383       else
14384         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14385         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14386       fi
14387       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14388       hardcode_libdir_separator_F77=:
14389       link_all_deplibs_F77=yes
14390       ;;
14391
14392     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14393       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14394         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14395       else
14396         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14397       fi
14398       hardcode_libdir_flag_spec_F77='-R$libdir'
14399       hardcode_direct_F77=yes
14400       hardcode_shlibpath_var_F77=no
14401       ;;
14402
14403     newsos6)
14404       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14405       hardcode_direct_F77=yes
14406       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14407       hardcode_libdir_separator_F77=:
14408       hardcode_shlibpath_var_F77=no
14409       ;;
14410
14411     openbsd*)
14412       hardcode_direct_F77=yes
14413       hardcode_shlibpath_var_F77=no
14414       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14415         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14416         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14417         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14418         export_dynamic_flag_spec_F77='${wl}-E'
14419       else
14420        case $host_os in
14421          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14422            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14423            hardcode_libdir_flag_spec_F77='-R$libdir'
14424            ;;
14425          *)
14426            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14427            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14428            ;;
14429        esac
14430       fi
14431       ;;
14432
14433     os2*)
14434       hardcode_libdir_flag_spec_F77='-L$libdir'
14435       hardcode_minus_L_F77=yes
14436       allow_undefined_flag_F77=unsupported
14437       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14438       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14439       ;;
14440
14441     osf3*)
14442       if test "$GCC" = yes; then
14443         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14444         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14445       else
14446         allow_undefined_flag_F77=' -expect_unresolved \*'
14447         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14448       fi
14449       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14450       hardcode_libdir_separator_F77=:
14451       ;;
14452
14453     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14454       if test "$GCC" = yes; then
14455         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14456         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14457         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14458       else
14459         allow_undefined_flag_F77=' -expect_unresolved \*'
14460         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14461         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14462         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14463
14464         # Both c and cxx compiler support -rpath directly
14465         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14466       fi
14467       hardcode_libdir_separator_F77=:
14468       ;;
14469
14470     solaris*)
14471       no_undefined_flag_F77=' -z text'
14472       if test "$GCC" = yes; then
14473         wlarc='${wl}'
14474         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14475         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14476           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14477       else
14478         wlarc=''
14479         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14480         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14481         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14482       fi
14483       hardcode_libdir_flag_spec_F77='-R$libdir'
14484       hardcode_shlibpath_var_F77=no
14485       case $host_os in
14486       solaris2.[0-5] | solaris2.[0-5].*) ;;
14487       *)
14488         # The compiler driver will combine linker options so we
14489         # cannot just pass the convience library names through
14490         # without $wl, iff we do not link with $LD.
14491         # Luckily, gcc supports the same syntax we need for Sun Studio.
14492         # Supported since Solaris 2.6 (maybe 2.5.1?)
14493         case $wlarc in
14494         '')
14495           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14496         *)
14497           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14498         esac ;;
14499       esac
14500       link_all_deplibs_F77=yes
14501       ;;
14502
14503     sunos4*)
14504       if test "x$host_vendor" = xsequent; then
14505         # Use $CC to link under sequent, because it throws in some extra .o
14506         # files that make .init and .fini sections work.
14507         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14508       else
14509         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14510       fi
14511       hardcode_libdir_flag_spec_F77='-L$libdir'
14512       hardcode_direct_F77=yes
14513       hardcode_minus_L_F77=yes
14514       hardcode_shlibpath_var_F77=no
14515       ;;
14516
14517     sysv4)
14518       case $host_vendor in
14519         sni)
14520           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14521           hardcode_direct_F77=yes # is this really true???
14522         ;;
14523         siemens)
14524           ## LD is ld it makes a PLAMLIB
14525           ## CC just makes a GrossModule.
14526           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14527           reload_cmds_F77='$CC -r -o $output$reload_objs'
14528           hardcode_direct_F77=no
14529         ;;
14530         motorola)
14531           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14532           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14533         ;;
14534       esac
14535       runpath_var='LD_RUN_PATH'
14536       hardcode_shlibpath_var_F77=no
14537       ;;
14538
14539     sysv4.3*)
14540       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14541       hardcode_shlibpath_var_F77=no
14542       export_dynamic_flag_spec_F77='-Bexport'
14543       ;;
14544
14545     sysv4*MP*)
14546       if test -d /usr/nec; then
14547         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14548         hardcode_shlibpath_var_F77=no
14549         runpath_var=LD_RUN_PATH
14550         hardcode_runpath_var=yes
14551         ld_shlibs_F77=yes
14552       fi
14553       ;;
14554
14555     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14556       no_undefined_flag_F77='${wl}-z,text'
14557       archive_cmds_need_lc_F77=no
14558       hardcode_shlibpath_var_F77=no
14559       runpath_var='LD_RUN_PATH'
14560
14561       if test "$GCC" = yes; then
14562         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564       else
14565         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14567       fi
14568       ;;
14569
14570     sysv5* | sco3.2v5* | sco5v6*)
14571       # Note: We can NOT use -z defs as we might desire, because we do not
14572       # link with -lc, and that would cause any symbols used from libc to
14573       # always be unresolved, which means just about no library would
14574       # ever link correctly.  If we're not using GNU ld we use -z text
14575       # though, which does catch some bad symbols but isn't as heavy-handed
14576       # as -z defs.
14577       no_undefined_flag_F77='${wl}-z,text'
14578       allow_undefined_flag_F77='${wl}-z,nodefs'
14579       archive_cmds_need_lc_F77=no
14580       hardcode_shlibpath_var_F77=no
14581       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14582       hardcode_libdir_separator_F77=':'
14583       link_all_deplibs_F77=yes
14584       export_dynamic_flag_spec_F77='${wl}-Bexport'
14585       runpath_var='LD_RUN_PATH'
14586
14587       if test "$GCC" = yes; then
14588         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14589         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14590       else
14591         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14592         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14593       fi
14594       ;;
14595
14596     uts4*)
14597       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14598       hardcode_libdir_flag_spec_F77='-L$libdir'
14599       hardcode_shlibpath_var_F77=no
14600       ;;
14601
14602     *)
14603       ld_shlibs_F77=no
14604       ;;
14605     esac
14606   fi
14607
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14609 $as_echo "$ld_shlibs_F77" >&6; }
14610 test "$ld_shlibs_F77" = no && can_build_shared=no
14611
14612 #
14613 # Do we need to explicitly link libc?
14614 #
14615 case "x$archive_cmds_need_lc_F77" in
14616 x|xyes)
14617   # Assume -lc should be added
14618   archive_cmds_need_lc_F77=yes
14619
14620   if test "$enable_shared" = yes && test "$GCC" = yes; then
14621     case $archive_cmds_F77 in
14622     *'~'*)
14623       # FIXME: we may have to deal with multi-command sequences.
14624       ;;
14625     '$CC '*)
14626       # Test whether the compiler implicitly links with -lc since on some
14627       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14628       # to ld, don't add -lc before -lgcc.
14629       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14630 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14631       $rm conftest*
14632       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14633
14634       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14635   (eval $ac_compile) 2>&5
14636   ac_status=$?
14637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14638   test $ac_status = 0; } 2>conftest.err; then
14639         soname=conftest
14640         lib=conftest
14641         libobjs=conftest.$ac_objext
14642         deplibs=
14643         wl=$lt_prog_compiler_wl_F77
14644         pic_flag=$lt_prog_compiler_pic_F77
14645         compiler_flags=-v
14646         linker_flags=-v
14647         verstring=
14648         output_objdir=.
14649         libname=conftest
14650         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14651         allow_undefined_flag_F77=
14652         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14653   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14654   ac_status=$?
14655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14656   test $ac_status = 0; }
14657         then
14658           archive_cmds_need_lc_F77=no
14659         else
14660           archive_cmds_need_lc_F77=yes
14661         fi
14662         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14663       else
14664         cat conftest.err 1>&5
14665       fi
14666       $rm conftest*
14667       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14668 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14669       ;;
14670     esac
14671   fi
14672   ;;
14673 esac
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14677 library_names_spec=
14678 libname_spec='lib$name'
14679 soname_spec=
14680 shrext_cmds=".so"
14681 postinstall_cmds=
14682 postuninstall_cmds=
14683 finish_cmds=
14684 finish_eval=
14685 shlibpath_var=
14686 shlibpath_overrides_runpath=unknown
14687 version_type=none
14688 dynamic_linker="$host_os ld.so"
14689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14690 if test "$GCC" = yes; then
14691   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14692   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14693     # if the path contains ";" then we assume it to be the separator
14694     # otherwise default to the standard path separator (i.e. ":") - it is
14695     # assumed that no part of a normal pathname contains ";" but that should
14696     # okay in the real world where ";" in dirpaths is itself problematic.
14697     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14698   else
14699     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14700   fi
14701 else
14702   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14703 fi
14704 need_lib_prefix=unknown
14705 hardcode_into_libs=no
14706
14707 # when you set need_version to no, make sure it does not cause -set_version
14708 # flags to be left without arguments
14709 need_version=unknown
14710
14711 case $host_os in
14712 aix3*)
14713   version_type=linux
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14715   shlibpath_var=LIBPATH
14716
14717   # AIX 3 has no versioning support, so we append a major version to the name.
14718   soname_spec='${libname}${release}${shared_ext}$major'
14719   ;;
14720
14721 aix4* | aix5*)
14722   version_type=linux
14723   need_lib_prefix=no
14724   need_version=no
14725   hardcode_into_libs=yes
14726   if test "$host_cpu" = ia64; then
14727     # AIX 5 supports IA64
14728     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14729     shlibpath_var=LD_LIBRARY_PATH
14730   else
14731     # With GCC up to 2.95.x, collect2 would create an import file
14732     # for dependence libraries.  The import file would start with
14733     # the line `#! .'.  This would cause the generated library to
14734     # depend on `.', always an invalid library.  This was fixed in
14735     # development snapshots of GCC prior to 3.0.
14736     case $host_os in
14737       aix4 | aix4.[01] | aix4.[01].*)
14738       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14739            echo ' yes '
14740            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14741         :
14742       else
14743         can_build_shared=no
14744       fi
14745       ;;
14746     esac
14747     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14748     # soname into executable. Probably we can add versioning support to
14749     # collect2, so additional links can be useful in future.
14750     if test "$aix_use_runtimelinking" = yes; then
14751       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14752       # instead of lib<name>.a to let people know that these are not
14753       # typical AIX shared libraries.
14754       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755     else
14756       # We preserve .a as extension for shared libraries through AIX4.2
14757       # and later when we are not doing run time linking.
14758       library_names_spec='${libname}${release}.a $libname.a'
14759       soname_spec='${libname}${release}${shared_ext}$major'
14760     fi
14761     shlibpath_var=LIBPATH
14762   fi
14763   ;;
14764
14765 amigaos*)
14766   library_names_spec='$libname.ixlibrary $libname.a'
14767   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14768   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14769   ;;
14770
14771 beos*)
14772   library_names_spec='${libname}${shared_ext}'
14773   dynamic_linker="$host_os ld.so"
14774   shlibpath_var=LIBRARY_PATH
14775   ;;
14776
14777 bsdi[45]*)
14778   version_type=linux
14779   need_version=no
14780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781   soname_spec='${libname}${release}${shared_ext}$major'
14782   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14783   shlibpath_var=LD_LIBRARY_PATH
14784   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14785   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14786   # the default ld.so.conf also contains /usr/contrib/lib and
14787   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14788   # libtool to hard-code these into programs
14789   ;;
14790
14791 cygwin* | mingw* | pw32*)
14792   version_type=windows
14793   shrext_cmds=".dll"
14794   need_version=no
14795   need_lib_prefix=no
14796
14797   case $GCC,$host_os in
14798   yes,cygwin* | yes,mingw* | yes,pw32*)
14799     library_names_spec='$libname.dll.a'
14800     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14801     postinstall_cmds='base_file=`basename \${file}`~
14802       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14803       dldir=$destdir/`dirname \$dlpath`~
14804       test -d \$dldir || mkdir -p \$dldir~
14805       $install_prog $dir/$dlname \$dldir/$dlname~
14806       chmod a+x \$dldir/$dlname'
14807     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14808       dlpath=$dir/\$dldll~
14809        $rm \$dlpath'
14810     shlibpath_overrides_runpath=yes
14811
14812     case $host_os in
14813     cygwin*)
14814       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14815       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14816       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14817       ;;
14818     mingw*)
14819       # MinGW DLLs use traditional 'lib' prefix
14820       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14822       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14823         # It is most probably a Windows format PATH printed by
14824         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14825         # path with ; separators, and with drive letters. We can handle the
14826         # drive letters (cygwin fileutils understands them), so leave them,
14827         # especially as we might pass files found there to a mingw objdump,
14828         # which wouldn't understand a cygwinified path. Ahh.
14829         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14830       else
14831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14832       fi
14833       ;;
14834     pw32*)
14835       # pw32 DLLs use 'pw' prefix rather than 'lib'
14836       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14837       ;;
14838     esac
14839     ;;
14840
14841   *)
14842     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14843     ;;
14844   esac
14845   dynamic_linker='Win32 ld.exe'
14846   # FIXME: first we should search . and the directory the executable is in
14847   shlibpath_var=PATH
14848   ;;
14849
14850 darwin* | rhapsody*)
14851   dynamic_linker="$host_os dyld"
14852   version_type=darwin
14853   need_lib_prefix=no
14854   need_version=no
14855   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856   soname_spec='${libname}${release}${major}$shared_ext'
14857   shlibpath_overrides_runpath=yes
14858   shlibpath_var=DYLD_LIBRARY_PATH
14859   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14860   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14861   if test "$GCC" = yes; then
14862     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14863   else
14864     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14865   fi
14866   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14867   ;;
14868
14869 dgux*)
14870   version_type=linux
14871   need_lib_prefix=no
14872   need_version=no
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   ;;
14877
14878 freebsd1*)
14879   dynamic_linker=no
14880   ;;
14881
14882 kfreebsd*-gnu)
14883   version_type=linux
14884   need_lib_prefix=no
14885   need_version=no
14886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14887   soname_spec='${libname}${release}${shared_ext}$major'
14888   shlibpath_var=LD_LIBRARY_PATH
14889   shlibpath_overrides_runpath=no
14890   hardcode_into_libs=yes
14891   dynamic_linker='GNU ld.so'
14892   ;;
14893
14894 freebsd* | dragonfly*)
14895   # DragonFly does not have aout.  When/if they implement a new
14896   # versioning mechanism, adjust this.
14897   if test -x /usr/bin/objformat; then
14898     objformat=`/usr/bin/objformat`
14899   else
14900     case $host_os in
14901     freebsd[123]*) objformat=aout ;;
14902     *) objformat=elf ;;
14903     esac
14904   fi
14905   version_type=freebsd-$objformat
14906   case $version_type in
14907     freebsd-elf*)
14908       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14909       need_version=no
14910       need_lib_prefix=no
14911       ;;
14912     freebsd-*)
14913       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14914       need_version=yes
14915       ;;
14916   esac
14917   shlibpath_var=LD_LIBRARY_PATH
14918   case $host_os in
14919   freebsd2*)
14920     shlibpath_overrides_runpath=yes
14921     ;;
14922   freebsd3.[01]* | freebsdelf3.[01]*)
14923     shlibpath_overrides_runpath=yes
14924     hardcode_into_libs=yes
14925     ;;
14926   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14927   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14928     shlibpath_overrides_runpath=no
14929     hardcode_into_libs=yes
14930     ;;
14931   freebsd*) # from 4.6 on
14932     shlibpath_overrides_runpath=yes
14933     hardcode_into_libs=yes
14934     ;;
14935   esac
14936   ;;
14937
14938 gnu*)
14939   version_type=linux
14940   need_lib_prefix=no
14941   need_version=no
14942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14943   soname_spec='${libname}${release}${shared_ext}$major'
14944   shlibpath_var=LD_LIBRARY_PATH
14945   hardcode_into_libs=yes
14946   ;;
14947
14948 hpux9* | hpux10* | hpux11*)
14949   # Give a soname corresponding to the major version so that dld.sl refuses to
14950   # link against other versions.
14951   version_type=sunos
14952   need_lib_prefix=no
14953   need_version=no
14954   case $host_cpu in
14955   ia64*)
14956     shrext_cmds='.so'
14957     hardcode_into_libs=yes
14958     dynamic_linker="$host_os dld.so"
14959     shlibpath_var=LD_LIBRARY_PATH
14960     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962     soname_spec='${libname}${release}${shared_ext}$major'
14963     if test "X$HPUX_IA64_MODE" = X32; then
14964       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14965     else
14966       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14967     fi
14968     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14969     ;;
14970    hppa*64*)
14971      shrext_cmds='.sl'
14972      hardcode_into_libs=yes
14973      dynamic_linker="$host_os dld.sl"
14974      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14975      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14976      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977      soname_spec='${libname}${release}${shared_ext}$major'
14978      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14979      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14980      ;;
14981    *)
14982     shrext_cmds='.sl'
14983     dynamic_linker="$host_os dld.sl"
14984     shlibpath_var=SHLIB_PATH
14985     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987     soname_spec='${libname}${release}${shared_ext}$major'
14988     ;;
14989   esac
14990   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14991   postinstall_cmds='chmod 555 $lib'
14992   ;;
14993
14994 interix3*)
14995   version_type=linux
14996   need_lib_prefix=no
14997   need_version=no
14998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14999   soname_spec='${libname}${release}${shared_ext}$major'
15000   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15001   shlibpath_var=LD_LIBRARY_PATH
15002   shlibpath_overrides_runpath=no
15003   hardcode_into_libs=yes
15004   ;;
15005
15006 irix5* | irix6* | nonstopux*)
15007   case $host_os in
15008     nonstopux*) version_type=nonstopux ;;
15009     *)
15010         if test "$lt_cv_prog_gnu_ld" = yes; then
15011                 version_type=linux
15012         else
15013                 version_type=irix
15014         fi ;;
15015   esac
15016   need_lib_prefix=no
15017   need_version=no
15018   soname_spec='${libname}${release}${shared_ext}$major'
15019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15020   case $host_os in
15021   irix5* | nonstopux*)
15022     libsuff= shlibsuff=
15023     ;;
15024   *)
15025     case $LD in # libtool.m4 will add one of these switches to LD
15026     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15027       libsuff= shlibsuff= libmagic=32-bit;;
15028     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15029       libsuff=32 shlibsuff=N32 libmagic=N32;;
15030     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15031       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15032     *) libsuff= shlibsuff= libmagic=never-match;;
15033     esac
15034     ;;
15035   esac
15036   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15037   shlibpath_overrides_runpath=no
15038   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15039   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15040   hardcode_into_libs=yes
15041   ;;
15042
15043 # No shared lib support for Linux oldld, aout, or coff.
15044 linux*oldld* | linux*aout* | linux*coff*)
15045   dynamic_linker=no
15046   ;;
15047
15048 # This must be Linux ELF.
15049 linux*)
15050   version_type=linux
15051   need_lib_prefix=no
15052   need_version=no
15053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15054   soname_spec='${libname}${release}${shared_ext}$major'
15055   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15056   shlibpath_var=LD_LIBRARY_PATH
15057   shlibpath_overrides_runpath=no
15058   # This implies no fast_install, which is unacceptable.
15059   # Some rework will be needed to allow for fast_install
15060   # before this can be enabled.
15061   hardcode_into_libs=yes
15062
15063   # Append ld.so.conf contents to the search path
15064   if test -f /etc/ld.so.conf; then
15065     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15066     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15067   fi
15068
15069   # We used to test for /lib/ld.so.1 and disable shared libraries on
15070   # powerpc, because MkLinux only supported shared libraries with the
15071   # GNU dynamic linker.  Since this was broken with cross compilers,
15072   # most powerpc-linux boxes support dynamic linking these days and
15073   # people can always --disable-shared, the test was removed, and we
15074   # assume the GNU/Linux dynamic linker is in use.
15075   dynamic_linker='GNU/Linux ld.so'
15076   ;;
15077
15078 netbsdelf*-gnu)
15079   version_type=linux
15080   need_lib_prefix=no
15081   need_version=no
15082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15083   soname_spec='${libname}${release}${shared_ext}$major'
15084   shlibpath_var=LD_LIBRARY_PATH
15085   shlibpath_overrides_runpath=no
15086   hardcode_into_libs=yes
15087   dynamic_linker='NetBSD ld.elf_so'
15088   ;;
15089
15090 knetbsd*-gnu)
15091   version_type=linux
15092   need_lib_prefix=no
15093   need_version=no
15094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15095   soname_spec='${libname}${release}${shared_ext}$major'
15096   shlibpath_var=LD_LIBRARY_PATH
15097   shlibpath_overrides_runpath=no
15098   hardcode_into_libs=yes
15099   dynamic_linker='GNU ld.so'
15100   ;;
15101
15102 netbsd*)
15103   version_type=sunos
15104   need_lib_prefix=no
15105   need_version=no
15106   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15108     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15109     dynamic_linker='NetBSD (a.out) ld.so'
15110   else
15111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15112     soname_spec='${libname}${release}${shared_ext}$major'
15113     dynamic_linker='NetBSD ld.elf_so'
15114   fi
15115   shlibpath_var=LD_LIBRARY_PATH
15116   shlibpath_overrides_runpath=yes
15117   hardcode_into_libs=yes
15118   ;;
15119
15120 newsos6)
15121   version_type=linux
15122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123   shlibpath_var=LD_LIBRARY_PATH
15124   shlibpath_overrides_runpath=yes
15125   ;;
15126
15127 nto-qnx*)
15128   version_type=linux
15129   need_lib_prefix=no
15130   need_version=no
15131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132   soname_spec='${libname}${release}${shared_ext}$major'
15133   shlibpath_var=LD_LIBRARY_PATH
15134   shlibpath_overrides_runpath=yes
15135   ;;
15136
15137 openbsd*)
15138   version_type=sunos
15139   sys_lib_dlsearch_path_spec="/usr/lib"
15140   need_lib_prefix=no
15141   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15142   case $host_os in
15143     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15144     *)                         need_version=no  ;;
15145   esac
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15147   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15148   shlibpath_var=LD_LIBRARY_PATH
15149   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15150     case $host_os in
15151       openbsd2.[89] | openbsd2.[89].*)
15152         shlibpath_overrides_runpath=no
15153         ;;
15154       *)
15155         shlibpath_overrides_runpath=yes
15156         ;;
15157       esac
15158   else
15159     shlibpath_overrides_runpath=yes
15160   fi
15161   ;;
15162
15163 os2*)
15164   libname_spec='$name'
15165   shrext_cmds=".dll"
15166   need_lib_prefix=no
15167   library_names_spec='$libname${shared_ext} $libname.a'
15168   dynamic_linker='OS/2 ld.exe'
15169   shlibpath_var=LIBPATH
15170   ;;
15171
15172 osf3* | osf4* | osf5*)
15173   version_type=osf
15174   need_lib_prefix=no
15175   need_version=no
15176   soname_spec='${libname}${release}${shared_ext}$major'
15177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178   shlibpath_var=LD_LIBRARY_PATH
15179   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15180   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15181   ;;
15182
15183 solaris*)
15184   version_type=linux
15185   need_lib_prefix=no
15186   need_version=no
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188   soname_spec='${libname}${release}${shared_ext}$major'
15189   shlibpath_var=LD_LIBRARY_PATH
15190   shlibpath_overrides_runpath=yes
15191   hardcode_into_libs=yes
15192   # ldd complains unless libraries are executable
15193   postinstall_cmds='chmod +x $lib'
15194   ;;
15195
15196 sunos4*)
15197   version_type=sunos
15198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15199   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15200   shlibpath_var=LD_LIBRARY_PATH
15201   shlibpath_overrides_runpath=yes
15202   if test "$with_gnu_ld" = yes; then
15203     need_lib_prefix=no
15204   fi
15205   need_version=yes
15206   ;;
15207
15208 sysv4 | sysv4.3*)
15209   version_type=linux
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   soname_spec='${libname}${release}${shared_ext}$major'
15212   shlibpath_var=LD_LIBRARY_PATH
15213   case $host_vendor in
15214     sni)
15215       shlibpath_overrides_runpath=no
15216       need_lib_prefix=no
15217       export_dynamic_flag_spec='${wl}-Blargedynsym'
15218       runpath_var=LD_RUN_PATH
15219       ;;
15220     siemens)
15221       need_lib_prefix=no
15222       ;;
15223     motorola)
15224       need_lib_prefix=no
15225       need_version=no
15226       shlibpath_overrides_runpath=no
15227       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15228       ;;
15229   esac
15230   ;;
15231
15232 sysv4*MP*)
15233   if test -d /usr/nec ;then
15234     version_type=linux
15235     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15236     soname_spec='$libname${shared_ext}.$major'
15237     shlibpath_var=LD_LIBRARY_PATH
15238   fi
15239   ;;
15240
15241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15242   version_type=freebsd-elf
15243   need_lib_prefix=no
15244   need_version=no
15245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15246   soname_spec='${libname}${release}${shared_ext}$major'
15247   shlibpath_var=LD_LIBRARY_PATH
15248   hardcode_into_libs=yes
15249   if test "$with_gnu_ld" = yes; then
15250     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15251     shlibpath_overrides_runpath=no
15252   else
15253     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15254     shlibpath_overrides_runpath=yes
15255     case $host_os in
15256       sco3.2v5*)
15257         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15258         ;;
15259     esac
15260   fi
15261   sys_lib_dlsearch_path_spec='/usr/lib'
15262   ;;
15263
15264 uts4*)
15265   version_type=linux
15266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267   soname_spec='${libname}${release}${shared_ext}$major'
15268   shlibpath_var=LD_LIBRARY_PATH
15269   ;;
15270
15271 *)
15272   dynamic_linker=no
15273   ;;
15274 esac
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15276 $as_echo "$dynamic_linker" >&6; }
15277 test "$dynamic_linker" = no && can_build_shared=no
15278
15279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15280 if test "$GCC" = yes; then
15281   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15282 fi
15283
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15285 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15286 hardcode_action_F77=
15287 if test -n "$hardcode_libdir_flag_spec_F77" || \
15288    test -n "$runpath_var_F77" || \
15289    test "X$hardcode_automatic_F77" = "Xyes" ; then
15290
15291   # We can hardcode non-existant directories.
15292   if test "$hardcode_direct_F77" != no &&
15293      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15294      # have to relink, otherwise we might link with an installed library
15295      # when we should be linking with a yet-to-be-installed one
15296      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15297      test "$hardcode_minus_L_F77" != no; then
15298     # Linking always hardcodes the temporary library directory.
15299     hardcode_action_F77=relink
15300   else
15301     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15302     hardcode_action_F77=immediate
15303   fi
15304 else
15305   # We cannot hardcode anything, or else we can only hardcode existing
15306   # directories.
15307   hardcode_action_F77=unsupported
15308 fi
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15310 $as_echo "$hardcode_action_F77" >&6; }
15311
15312 if test "$hardcode_action_F77" = relink; then
15313   # Fast installation is not supported
15314   enable_fast_install=no
15315 elif test "$shlibpath_overrides_runpath" = yes ||
15316      test "$enable_shared" = no; then
15317   # Fast installation is not necessary
15318   enable_fast_install=needless
15319 fi
15320
15321
15322 # The else clause should only fire when bootstrapping the
15323 # libtool distribution, otherwise you forgot to ship ltmain.sh
15324 # with your package, and you will get complaints that there are
15325 # no rules to generate ltmain.sh.
15326 if test -f "$ltmain"; then
15327   # See if we are running on zsh, and set the options which allow our commands through
15328   # without removal of \ escapes.
15329   if test -n "${ZSH_VERSION+set}" ; then
15330     setopt NO_GLOB_SUBST
15331   fi
15332   # Now quote all the things that may contain metacharacters while being
15333   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15334   # variables and quote the copies for generation of the libtool script.
15335   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15336     SED SHELL STRIP \
15337     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15338     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15339     deplibs_check_method reload_flag reload_cmds need_locks \
15340     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15341     lt_cv_sys_global_symbol_to_c_name_address \
15342     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15343     old_postinstall_cmds old_postuninstall_cmds \
15344     compiler_F77 \
15345     CC_F77 \
15346     LD_F77 \
15347     lt_prog_compiler_wl_F77 \
15348     lt_prog_compiler_pic_F77 \
15349     lt_prog_compiler_static_F77 \
15350     lt_prog_compiler_no_builtin_flag_F77 \
15351     export_dynamic_flag_spec_F77 \
15352     thread_safe_flag_spec_F77 \
15353     whole_archive_flag_spec_F77 \
15354     enable_shared_with_static_runtimes_F77 \
15355     old_archive_cmds_F77 \
15356     old_archive_from_new_cmds_F77 \
15357     predep_objects_F77 \
15358     postdep_objects_F77 \
15359     predeps_F77 \
15360     postdeps_F77 \
15361     compiler_lib_search_path_F77 \
15362     archive_cmds_F77 \
15363     archive_expsym_cmds_F77 \
15364     postinstall_cmds_F77 \
15365     postuninstall_cmds_F77 \
15366     old_archive_from_expsyms_cmds_F77 \
15367     allow_undefined_flag_F77 \
15368     no_undefined_flag_F77 \
15369     export_symbols_cmds_F77 \
15370     hardcode_libdir_flag_spec_F77 \
15371     hardcode_libdir_flag_spec_ld_F77 \
15372     hardcode_libdir_separator_F77 \
15373     hardcode_automatic_F77 \
15374     module_cmds_F77 \
15375     module_expsym_cmds_F77 \
15376     lt_cv_prog_compiler_c_o_F77 \
15377     exclude_expsyms_F77 \
15378     include_expsyms_F77; do
15379
15380     case $var in
15381     old_archive_cmds_F77 | \
15382     old_archive_from_new_cmds_F77 | \
15383     archive_cmds_F77 | \
15384     archive_expsym_cmds_F77 | \
15385     module_cmds_F77 | \
15386     module_expsym_cmds_F77 | \
15387     old_archive_from_expsyms_cmds_F77 | \
15388     export_symbols_cmds_F77 | \
15389     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15390     postinstall_cmds | postuninstall_cmds | \
15391     old_postinstall_cmds | old_postuninstall_cmds | \
15392     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15393       # Double-quote double-evaled strings.
15394       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15395       ;;
15396     *)
15397       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15398       ;;
15399     esac
15400   done
15401
15402   case $lt_echo in
15403   *'\$0 --fallback-echo"')
15404     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15405     ;;
15406   esac
15407
15408 cfgfile="$ofile"
15409
15410   cat <<__EOF__ >> "$cfgfile"
15411 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15412
15413 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15414
15415 # Shell to use when invoking shell scripts.
15416 SHELL=$lt_SHELL
15417
15418 # Whether or not to build shared libraries.
15419 build_libtool_libs=$enable_shared
15420
15421 # Whether or not to build static libraries.
15422 build_old_libs=$enable_static
15423
15424 # Whether or not to add -lc for building shared libraries.
15425 build_libtool_need_lc=$archive_cmds_need_lc_F77
15426
15427 # Whether or not to disallow shared libs when runtime libs are static
15428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15429
15430 # Whether or not to optimize for fast installation.
15431 fast_install=$enable_fast_install
15432
15433 # The host system.
15434 host_alias=$host_alias
15435 host=$host
15436 host_os=$host_os
15437
15438 # The build system.
15439 build_alias=$build_alias
15440 build=$build
15441 build_os=$build_os
15442
15443 # An echo program that does not interpret backslashes.
15444 echo=$lt_echo
15445
15446 # The archiver.
15447 AR=$lt_AR
15448 AR_FLAGS=$lt_AR_FLAGS
15449
15450 # A C compiler.
15451 LTCC=$lt_LTCC
15452
15453 # LTCC compiler flags.
15454 LTCFLAGS=$lt_LTCFLAGS
15455
15456 # A language-specific compiler.
15457 CC=$lt_compiler_F77
15458
15459 # Is the compiler the GNU C compiler?
15460 with_gcc=$GCC_F77
15461
15462 # An ERE matcher.
15463 EGREP=$lt_EGREP
15464
15465 # The linker used to build libraries.
15466 LD=$lt_LD_F77
15467
15468 # Whether we need hard or soft links.
15469 LN_S=$lt_LN_S
15470
15471 # A BSD-compatible nm program.
15472 NM=$lt_NM
15473
15474 # A symbol stripping program
15475 STRIP=$lt_STRIP
15476
15477 # Used to examine libraries when file_magic_cmd begins "file"
15478 MAGIC_CMD=$MAGIC_CMD
15479
15480 # Used on cygwin: DLL creation program.
15481 DLLTOOL="$DLLTOOL"
15482
15483 # Used on cygwin: object dumper.
15484 OBJDUMP="$OBJDUMP"
15485
15486 # Used on cygwin: assembler.
15487 AS="$AS"
15488
15489 # The name of the directory that contains temporary libtool files.
15490 objdir=$objdir
15491
15492 # How to create reloadable object files.
15493 reload_flag=$lt_reload_flag
15494 reload_cmds=$lt_reload_cmds
15495
15496 # How to pass a linker flag through the compiler.
15497 wl=$lt_lt_prog_compiler_wl_F77
15498
15499 # Object file suffix (normally "o").
15500 objext="$ac_objext"
15501
15502 # Old archive suffix (normally "a").
15503 libext="$libext"
15504
15505 # Shared library suffix (normally ".so").
15506 shrext_cmds='$shrext_cmds'
15507
15508 # Executable file suffix (normally "").
15509 exeext="$exeext"
15510
15511 # Additional compiler flags for building library objects.
15512 pic_flag=$lt_lt_prog_compiler_pic_F77
15513 pic_mode=$pic_mode
15514
15515 # What is the maximum length of a command?
15516 max_cmd_len=$lt_cv_sys_max_cmd_len
15517
15518 # Does compiler simultaneously support -c and -o options?
15519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15520
15521 # Must we lock files when doing compilation?
15522 need_locks=$lt_need_locks
15523
15524 # Do we need the lib prefix for modules?
15525 need_lib_prefix=$need_lib_prefix
15526
15527 # Do we need a version for libraries?
15528 need_version=$need_version
15529
15530 # Whether dlopen is supported.
15531 dlopen_support=$enable_dlopen
15532
15533 # Whether dlopen of programs is supported.
15534 dlopen_self=$enable_dlopen_self
15535
15536 # Whether dlopen of statically linked programs is supported.
15537 dlopen_self_static=$enable_dlopen_self_static
15538
15539 # Compiler flag to prevent dynamic linking.
15540 link_static_flag=$lt_lt_prog_compiler_static_F77
15541
15542 # Compiler flag to turn off builtin functions.
15543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15544
15545 # Compiler flag to allow reflexive dlopens.
15546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15547
15548 # Compiler flag to generate shared objects directly from archives.
15549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15550
15551 # Compiler flag to generate thread-safe objects.
15552 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15553
15554 # Library versioning type.
15555 version_type=$version_type
15556
15557 # Format of library name prefix.
15558 libname_spec=$lt_libname_spec
15559
15560 # List of archive names.  First name is the real one, the rest are links.
15561 # The last name is the one that the linker finds with -lNAME.
15562 library_names_spec=$lt_library_names_spec
15563
15564 # The coded name of the library, if different from the real name.
15565 soname_spec=$lt_soname_spec
15566
15567 # Commands used to build and install an old-style archive.
15568 RANLIB=$lt_RANLIB
15569 old_archive_cmds=$lt_old_archive_cmds_F77
15570 old_postinstall_cmds=$lt_old_postinstall_cmds
15571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15572
15573 # Create an old-style archive from a shared archive.
15574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15575
15576 # Create a temporary old-style archive to link instead of a shared archive.
15577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15578
15579 # Commands used to build and install a shared archive.
15580 archive_cmds=$lt_archive_cmds_F77
15581 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15582 postinstall_cmds=$lt_postinstall_cmds
15583 postuninstall_cmds=$lt_postuninstall_cmds
15584
15585 # Commands used to build a loadable module (assumed same as above if empty)
15586 module_cmds=$lt_module_cmds_F77
15587 module_expsym_cmds=$lt_module_expsym_cmds_F77
15588
15589 # Commands to strip libraries.
15590 old_striplib=$lt_old_striplib
15591 striplib=$lt_striplib
15592
15593 # Dependencies to place before the objects being linked to create a
15594 # shared library.
15595 predep_objects=$lt_predep_objects_F77
15596
15597 # Dependencies to place after the objects being linked to create a
15598 # shared library.
15599 postdep_objects=$lt_postdep_objects_F77
15600
15601 # Dependencies to place before the objects being linked to create a
15602 # shared library.
15603 predeps=$lt_predeps_F77
15604
15605 # Dependencies to place after the objects being linked to create a
15606 # shared library.
15607 postdeps=$lt_postdeps_F77
15608
15609 # The library search path used internally by the compiler when linking
15610 # a shared library.
15611 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15612
15613 # Method to check whether dependent libraries are shared objects.
15614 deplibs_check_method=$lt_deplibs_check_method
15615
15616 # Command to use when deplibs_check_method == file_magic.
15617 file_magic_cmd=$lt_file_magic_cmd
15618
15619 # Flag that allows shared libraries with undefined symbols to be built.
15620 allow_undefined_flag=$lt_allow_undefined_flag_F77
15621
15622 # Flag that forces no undefined symbols.
15623 no_undefined_flag=$lt_no_undefined_flag_F77
15624
15625 # Commands used to finish a libtool library installation in a directory.
15626 finish_cmds=$lt_finish_cmds
15627
15628 # Same as above, but a single script fragment to be evaled but not shown.
15629 finish_eval=$lt_finish_eval
15630
15631 # Take the output of nm and produce a listing of raw symbols and C names.
15632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15633
15634 # Transform the output of nm in a proper C declaration
15635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15636
15637 # Transform the output of nm in a C name address pair
15638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15639
15640 # This is the shared library runtime path variable.
15641 runpath_var=$runpath_var
15642
15643 # This is the shared library path variable.
15644 shlibpath_var=$shlibpath_var
15645
15646 # Is shlibpath searched before the hard-coded library search path?
15647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15648
15649 # How to hardcode a shared library path into an executable.
15650 hardcode_action=$hardcode_action_F77
15651
15652 # Whether we should hardcode library paths into libraries.
15653 hardcode_into_libs=$hardcode_into_libs
15654
15655 # Flag to hardcode \$libdir into a binary during linking.
15656 # This must work even if \$libdir does not exist.
15657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15658
15659 # If ld is used when linking, flag to hardcode \$libdir into
15660 # a binary during linking. This must work even if \$libdir does
15661 # not exist.
15662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15663
15664 # Whether we need a single -rpath flag with a separated argument.
15665 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15666
15667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15668 # resulting binary.
15669 hardcode_direct=$hardcode_direct_F77
15670
15671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15672 # resulting binary.
15673 hardcode_minus_L=$hardcode_minus_L_F77
15674
15675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15676 # the resulting binary.
15677 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15678
15679 # Set to yes if building a shared library automatically hardcodes DIR into the library
15680 # and all subsequent libraries and executables linked against it.
15681 hardcode_automatic=$hardcode_automatic_F77
15682
15683 # Variables whose values should be saved in libtool wrapper scripts and
15684 # restored at relink time.
15685 variables_saved_for_relink="$variables_saved_for_relink"
15686
15687 # Whether libtool must link a program against all its dependency libraries.
15688 link_all_deplibs=$link_all_deplibs_F77
15689
15690 # Compile-time system search path for libraries
15691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15692
15693 # Run-time system search path for libraries
15694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15695
15696 # Fix the shell variable \$srcfile for the compiler.
15697 fix_srcfile_path="$fix_srcfile_path_F77"
15698
15699 # Set to yes if exported symbols are required.
15700 always_export_symbols=$always_export_symbols_F77
15701
15702 # The commands to list exported symbols.
15703 export_symbols_cmds=$lt_export_symbols_cmds_F77
15704
15705 # The commands to extract the exported symbol list from a shared archive.
15706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15707
15708 # Symbols that should not be listed in the preloaded symbols.
15709 exclude_expsyms=$lt_exclude_expsyms_F77
15710
15711 # Symbols that must always be exported.
15712 include_expsyms=$lt_include_expsyms_F77
15713
15714 # ### END LIBTOOL TAG CONFIG: $tagname
15715
15716 __EOF__
15717
15718
15719 else
15720   # If there is no Makefile yet, we rely on a make rule to execute
15721   # `config.status --recheck' to rerun these tests and create the
15722   # libtool script then.
15723   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15724   if test -f "$ltmain_in"; then
15725     test -f Makefile && make "$ltmain"
15726   fi
15727 fi
15728
15729
15730 ac_ext=c
15731 ac_cpp='$CPP $CPPFLAGS'
15732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15735
15736 CC="$lt_save_CC"
15737
15738         else
15739           tagname=""
15740         fi
15741         ;;
15742
15743       GCJ)
15744         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15745
15746
15747 # Source file extension for Java test sources.
15748 ac_ext=java
15749
15750 # Object file extension for compiled Java test sources.
15751 objext=o
15752 objext_GCJ=$objext
15753
15754 # Code to be used in simple compile tests
15755 lt_simple_compile_test_code="class foo {}\n"
15756
15757 # Code to be used in simple link tests
15758 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15759
15760 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15761
15762 # If no C compiler was specified, use CC.
15763 LTCC=${LTCC-"$CC"}
15764
15765 # If no C compiler flags were specified, use CFLAGS.
15766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15767
15768 # Allow CC to be a program name with arguments.
15769 compiler=$CC
15770
15771
15772 # save warnings/boilerplate of simple test code
15773 ac_outfile=conftest.$ac_objext
15774 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15776 _lt_compiler_boilerplate=`cat conftest.err`
15777 $rm conftest*
15778
15779 ac_outfile=conftest.$ac_objext
15780 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15782 _lt_linker_boilerplate=`cat conftest.err`
15783 $rm conftest*
15784
15785
15786 # Allow CC to be a program name with arguments.
15787 lt_save_CC="$CC"
15788 CC=${GCJ-"gcj"}
15789 compiler=$CC
15790 compiler_GCJ=$CC
15791 for cc_temp in $compiler""; do
15792   case $cc_temp in
15793     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15794     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15795     \-*) ;;
15796     *) break;;
15797   esac
15798 done
15799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15800
15801
15802 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15803 archive_cmds_need_lc_GCJ=no
15804
15805 old_archive_cmds_GCJ=$old_archive_cmds
15806
15807
15808 lt_prog_compiler_no_builtin_flag_GCJ=
15809
15810 if test "$GCC" = yes; then
15811   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15812
15813
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15815 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15816 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15817   $as_echo_n "(cached) " >&6
15818 else
15819   lt_cv_prog_compiler_rtti_exceptions=no
15820   ac_outfile=conftest.$ac_objext
15821    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15822    lt_compiler_flag="-fno-rtti -fno-exceptions"
15823    # Insert the option either (1) after the last *FLAGS variable, or
15824    # (2) before a word containing "conftest.", or (3) at the end.
15825    # Note that $ac_compile itself does not contain backslashes and begins
15826    # with a dollar sign (not a hyphen), so the echo should work correctly.
15827    # The option is referenced via a variable to avoid confusing sed.
15828    lt_compile=`echo "$ac_compile" | $SED \
15829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15831    -e 's:$: $lt_compiler_flag:'`
15832    (eval echo "\"\$as_me:15832: $lt_compile\"" >&5)
15833    (eval "$lt_compile" 2>conftest.err)
15834    ac_status=$?
15835    cat conftest.err >&5
15836    echo "$as_me:15836: \$? = $ac_status" >&5
15837    if (exit $ac_status) && test -s "$ac_outfile"; then
15838      # The compiler can only warn and ignore the option if not recognized
15839      # So say no if there are warnings other than the usual output.
15840      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15841      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15843        lt_cv_prog_compiler_rtti_exceptions=yes
15844      fi
15845    fi
15846    $rm conftest*
15847
15848 fi
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15850 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15851
15852 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15853     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15854 else
15855     :
15856 fi
15857
15858 fi
15859
15860 lt_prog_compiler_wl_GCJ=
15861 lt_prog_compiler_pic_GCJ=
15862 lt_prog_compiler_static_GCJ=
15863
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15865 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15866
15867   if test "$GCC" = yes; then
15868     lt_prog_compiler_wl_GCJ='-Wl,'
15869     lt_prog_compiler_static_GCJ='-static'
15870
15871     case $host_os in
15872       aix*)
15873       # All AIX code is PIC.
15874       if test "$host_cpu" = ia64; then
15875         # AIX 5 now supports IA64 processor
15876         lt_prog_compiler_static_GCJ='-Bstatic'
15877       fi
15878       ;;
15879
15880     amigaos*)
15881       # FIXME: we need at least 68020 code to build shared libraries, but
15882       # adding the `-m68020' flag to GCC prevents building anything better,
15883       # like `-m68040'.
15884       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15885       ;;
15886
15887     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15888       # PIC is the default for these OSes.
15889       ;;
15890
15891     mingw* | pw32* | os2*)
15892       # This hack is so that the source file can tell whether it is being
15893       # built for inclusion in a dll (and should export symbols for example).
15894       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15895       ;;
15896
15897     darwin* | rhapsody*)
15898       # PIC is the default on this platform
15899       # Common symbols not allowed in MH_DYLIB files
15900       lt_prog_compiler_pic_GCJ='-fno-common'
15901       ;;
15902
15903     interix3*)
15904       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15905       # Instead, we relocate shared libraries at runtime.
15906       ;;
15907
15908     msdosdjgpp*)
15909       # Just because we use GCC doesn't mean we suddenly get shared libraries
15910       # on systems that don't support them.
15911       lt_prog_compiler_can_build_shared_GCJ=no
15912       enable_shared=no
15913       ;;
15914
15915     sysv4*MP*)
15916       if test -d /usr/nec; then
15917         lt_prog_compiler_pic_GCJ=-Kconform_pic
15918       fi
15919       ;;
15920
15921     hpux*)
15922       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15923       # not for PA HP-UX.
15924       case $host_cpu in
15925       hppa*64*|ia64*)
15926         # +Z the default
15927         ;;
15928       *)
15929         lt_prog_compiler_pic_GCJ='-fPIC'
15930         ;;
15931       esac
15932       ;;
15933
15934     *)
15935       lt_prog_compiler_pic_GCJ='-fPIC'
15936       ;;
15937     esac
15938   else
15939     # PORTME Check for flag to pass linker flags through the system compiler.
15940     case $host_os in
15941     aix*)
15942       lt_prog_compiler_wl_GCJ='-Wl,'
15943       if test "$host_cpu" = ia64; then
15944         # AIX 5 now supports IA64 processor
15945         lt_prog_compiler_static_GCJ='-Bstatic'
15946       else
15947         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15948       fi
15949       ;;
15950       darwin*)
15951         # PIC is the default on this platform
15952         # Common symbols not allowed in MH_DYLIB files
15953        case $cc_basename in
15954          xlc*)
15955          lt_prog_compiler_pic_GCJ='-qnocommon'
15956          lt_prog_compiler_wl_GCJ='-Wl,'
15957          ;;
15958        esac
15959        ;;
15960
15961     mingw* | pw32* | os2*)
15962       # This hack is so that the source file can tell whether it is being
15963       # built for inclusion in a dll (and should export symbols for example).
15964       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15965       ;;
15966
15967     hpux9* | hpux10* | hpux11*)
15968       lt_prog_compiler_wl_GCJ='-Wl,'
15969       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15970       # not for PA HP-UX.
15971       case $host_cpu in
15972       hppa*64*|ia64*)
15973         # +Z the default
15974         ;;
15975       *)
15976         lt_prog_compiler_pic_GCJ='+Z'
15977         ;;
15978       esac
15979       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15980       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15981       ;;
15982
15983     irix5* | irix6* | nonstopux*)
15984       lt_prog_compiler_wl_GCJ='-Wl,'
15985       # PIC (with -KPIC) is the default.
15986       lt_prog_compiler_static_GCJ='-non_shared'
15987       ;;
15988
15989     newsos6)
15990       lt_prog_compiler_pic_GCJ='-KPIC'
15991       lt_prog_compiler_static_GCJ='-Bstatic'
15992       ;;
15993
15994     linux*)
15995       case $cc_basename in
15996       icc* | ecc*)
15997         lt_prog_compiler_wl_GCJ='-Wl,'
15998         lt_prog_compiler_pic_GCJ='-KPIC'
15999         lt_prog_compiler_static_GCJ='-static'
16000         ;;
16001       pgcc* | pgf77* | pgf90* | pgf95*)
16002         # Portland Group compilers (*not* the Pentium gcc compiler,
16003         # which looks to be a dead project)
16004         lt_prog_compiler_wl_GCJ='-Wl,'
16005         lt_prog_compiler_pic_GCJ='-fpic'
16006         lt_prog_compiler_static_GCJ='-Bstatic'
16007         ;;
16008       ccc*)
16009         lt_prog_compiler_wl_GCJ='-Wl,'
16010         # All Alpha code is PIC.
16011         lt_prog_compiler_static_GCJ='-non_shared'
16012         ;;
16013       esac
16014       ;;
16015
16016     osf3* | osf4* | osf5*)
16017       lt_prog_compiler_wl_GCJ='-Wl,'
16018       # All OSF/1 code is PIC.
16019       lt_prog_compiler_static_GCJ='-non_shared'
16020       ;;
16021
16022     solaris*)
16023       lt_prog_compiler_pic_GCJ='-KPIC'
16024       lt_prog_compiler_static_GCJ='-Bstatic'
16025       case $cc_basename in
16026       f77* | f90* | f95*)
16027         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16028       *)
16029         lt_prog_compiler_wl_GCJ='-Wl,';;
16030       esac
16031       ;;
16032
16033     sunos4*)
16034       lt_prog_compiler_wl_GCJ='-Qoption ld '
16035       lt_prog_compiler_pic_GCJ='-PIC'
16036       lt_prog_compiler_static_GCJ='-Bstatic'
16037       ;;
16038
16039     sysv4 | sysv4.2uw2* | sysv4.3*)
16040       lt_prog_compiler_wl_GCJ='-Wl,'
16041       lt_prog_compiler_pic_GCJ='-KPIC'
16042       lt_prog_compiler_static_GCJ='-Bstatic'
16043       ;;
16044
16045     sysv4*MP*)
16046       if test -d /usr/nec ;then
16047         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16048         lt_prog_compiler_static_GCJ='-Bstatic'
16049       fi
16050       ;;
16051
16052     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16053       lt_prog_compiler_wl_GCJ='-Wl,'
16054       lt_prog_compiler_pic_GCJ='-KPIC'
16055       lt_prog_compiler_static_GCJ='-Bstatic'
16056       ;;
16057
16058     unicos*)
16059       lt_prog_compiler_wl_GCJ='-Wl,'
16060       lt_prog_compiler_can_build_shared_GCJ=no
16061       ;;
16062
16063     uts4*)
16064       lt_prog_compiler_pic_GCJ='-pic'
16065       lt_prog_compiler_static_GCJ='-Bstatic'
16066       ;;
16067
16068     *)
16069       lt_prog_compiler_can_build_shared_GCJ=no
16070       ;;
16071     esac
16072   fi
16073
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16075 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16076
16077 #
16078 # Check to make sure the PIC flag actually works.
16079 #
16080 if test -n "$lt_prog_compiler_pic_GCJ"; then
16081
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16083 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16084 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16085   $as_echo_n "(cached) " >&6
16086 else
16087   lt_prog_compiler_pic_works_GCJ=no
16088   ac_outfile=conftest.$ac_objext
16089    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16090    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16091    # Insert the option either (1) after the last *FLAGS variable, or
16092    # (2) before a word containing "conftest.", or (3) at the end.
16093    # Note that $ac_compile itself does not contain backslashes and begins
16094    # with a dollar sign (not a hyphen), so the echo should work correctly.
16095    # The option is referenced via a variable to avoid confusing sed.
16096    lt_compile=`echo "$ac_compile" | $SED \
16097    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16098    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16099    -e 's:$: $lt_compiler_flag:'`
16100    (eval echo "\"\$as_me:16100: $lt_compile\"" >&5)
16101    (eval "$lt_compile" 2>conftest.err)
16102    ac_status=$?
16103    cat conftest.err >&5
16104    echo "$as_me:16104: \$? = $ac_status" >&5
16105    if (exit $ac_status) && test -s "$ac_outfile"; then
16106      # The compiler can only warn and ignore the option if not recognized
16107      # So say no if there are warnings other than the usual output.
16108      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16109      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16110      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16111        lt_prog_compiler_pic_works_GCJ=yes
16112      fi
16113    fi
16114    $rm conftest*
16115
16116 fi
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16118 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16119
16120 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16121     case $lt_prog_compiler_pic_GCJ in
16122      "" | " "*) ;;
16123      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16124      esac
16125 else
16126     lt_prog_compiler_pic_GCJ=
16127      lt_prog_compiler_can_build_shared_GCJ=no
16128 fi
16129
16130 fi
16131 case $host_os in
16132   # For platforms which do not support PIC, -DPIC is meaningless:
16133   *djgpp*)
16134     lt_prog_compiler_pic_GCJ=
16135     ;;
16136   *)
16137     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16138     ;;
16139 esac
16140
16141 #
16142 # Check to make sure the static flag actually works.
16143 #
16144 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16146 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16147 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16148   $as_echo_n "(cached) " >&6
16149 else
16150   lt_prog_compiler_static_works_GCJ=no
16151    save_LDFLAGS="$LDFLAGS"
16152    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16153    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16154    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16155      # The linker can only warn and ignore the option if not recognized
16156      # So say no if there are warnings
16157      if test -s conftest.err; then
16158        # Append any errors to the config.log.
16159        cat conftest.err 1>&5
16160        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16161        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16162        if diff conftest.exp conftest.er2 >/dev/null; then
16163          lt_prog_compiler_static_works_GCJ=yes
16164        fi
16165      else
16166        lt_prog_compiler_static_works_GCJ=yes
16167      fi
16168    fi
16169    $rm conftest*
16170    LDFLAGS="$save_LDFLAGS"
16171
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16174 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16175
16176 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16177     :
16178 else
16179     lt_prog_compiler_static_GCJ=
16180 fi
16181
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16185 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16186   $as_echo_n "(cached) " >&6
16187 else
16188   lt_cv_prog_compiler_c_o_GCJ=no
16189    $rm -r conftest 2>/dev/null
16190    mkdir conftest
16191    cd conftest
16192    mkdir out
16193    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16194
16195    lt_compiler_flag="-o out/conftest2.$ac_objext"
16196    # Insert the option either (1) after the last *FLAGS variable, or
16197    # (2) before a word containing "conftest.", or (3) at the end.
16198    # Note that $ac_compile itself does not contain backslashes and begins
16199    # with a dollar sign (not a hyphen), so the echo should work correctly.
16200    lt_compile=`echo "$ac_compile" | $SED \
16201    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16203    -e 's:$: $lt_compiler_flag:'`
16204    (eval echo "\"\$as_me:16204: $lt_compile\"" >&5)
16205    (eval "$lt_compile" 2>out/conftest.err)
16206    ac_status=$?
16207    cat out/conftest.err >&5
16208    echo "$as_me:16208: \$? = $ac_status" >&5
16209    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16210    then
16211      # The compiler can only warn and ignore the option if not recognized
16212      # So say no if there are warnings
16213      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16214      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16215      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16216        lt_cv_prog_compiler_c_o_GCJ=yes
16217      fi
16218    fi
16219    chmod u+w . 2>&5
16220    $rm conftest*
16221    # SGI C++ compiler will create directory out/ii_files/ for
16222    # template instantiation
16223    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16224    $rm out/* && rmdir out
16225    cd ..
16226    rmdir conftest
16227    $rm conftest*
16228
16229 fi
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16231 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16232
16233
16234 hard_links="nottested"
16235 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16236   # do not overwrite the value of need_locks provided by the user
16237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16238 $as_echo_n "checking if we can lock with hard links... " >&6; }
16239   hard_links=yes
16240   $rm conftest*
16241   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16242   touch conftest.a
16243   ln conftest.a conftest.b 2>&5 || hard_links=no
16244   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16246 $as_echo "$hard_links" >&6; }
16247   if test "$hard_links" = no; then
16248     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16249 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16250     need_locks=warn
16251   fi
16252 else
16253   need_locks=no
16254 fi
16255
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16258
16259   runpath_var=
16260   allow_undefined_flag_GCJ=
16261   enable_shared_with_static_runtimes_GCJ=no
16262   archive_cmds_GCJ=
16263   archive_expsym_cmds_GCJ=
16264   old_archive_From_new_cmds_GCJ=
16265   old_archive_from_expsyms_cmds_GCJ=
16266   export_dynamic_flag_spec_GCJ=
16267   whole_archive_flag_spec_GCJ=
16268   thread_safe_flag_spec_GCJ=
16269   hardcode_libdir_flag_spec_GCJ=
16270   hardcode_libdir_flag_spec_ld_GCJ=
16271   hardcode_libdir_separator_GCJ=
16272   hardcode_direct_GCJ=no
16273   hardcode_minus_L_GCJ=no
16274   hardcode_shlibpath_var_GCJ=unsupported
16275   link_all_deplibs_GCJ=unknown
16276   hardcode_automatic_GCJ=no
16277   module_cmds_GCJ=
16278   module_expsym_cmds_GCJ=
16279   always_export_symbols_GCJ=no
16280   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16281   # include_expsyms should be a list of space-separated symbols to be *always*
16282   # included in the symbol list
16283   include_expsyms_GCJ=
16284   # exclude_expsyms can be an extended regexp of symbols to exclude
16285   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16286   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16287   # as well as any symbol that contains `d'.
16288   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16289   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16290   # platforms (ab)use it in PIC code, but their linkers get confused if
16291   # the symbol is explicitly referenced.  Since portable code cannot
16292   # rely on this symbol name, it's probably fine to never include it in
16293   # preloaded symbol tables.
16294   extract_expsyms_cmds=
16295   # Just being paranoid about ensuring that cc_basename is set.
16296   for cc_temp in $compiler""; do
16297   case $cc_temp in
16298     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16299     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16300     \-*) ;;
16301     *) break;;
16302   esac
16303 done
16304 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16305
16306   case $host_os in
16307   cygwin* | mingw* | pw32*)
16308     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16309     # When not using gcc, we currently assume that we are using
16310     # Microsoft Visual C++.
16311     if test "$GCC" != yes; then
16312       with_gnu_ld=no
16313     fi
16314     ;;
16315   interix*)
16316     # we just hope/assume this is gcc and not c89 (= MSVC++)
16317     with_gnu_ld=yes
16318     ;;
16319   openbsd*)
16320     with_gnu_ld=no
16321     ;;
16322   esac
16323
16324   ld_shlibs_GCJ=yes
16325   if test "$with_gnu_ld" = yes; then
16326     # If archive_cmds runs LD, not CC, wlarc should be empty
16327     wlarc='${wl}'
16328
16329     # Set some defaults for GNU ld with shared library support. These
16330     # are reset later if shared libraries are not supported. Putting them
16331     # here allows them to be overridden if necessary.
16332     runpath_var=LD_RUN_PATH
16333     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16334     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16335     # ancient GNU ld didn't support --whole-archive et. al.
16336     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16337         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16338       else
16339         whole_archive_flag_spec_GCJ=
16340     fi
16341     supports_anon_versioning=no
16342     case `$LD -v 2>/dev/null` in
16343       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16344       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16345       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16346       *\ 2.11.*) ;; # other 2.11 versions
16347       *) supports_anon_versioning=yes ;;
16348     esac
16349
16350     # See if GNU ld supports shared libraries.
16351     case $host_os in
16352     aix3* | aix4* | aix5*)
16353       # On AIX/PPC, the GNU linker is very broken
16354       if test "$host_cpu" != ia64; then
16355         ld_shlibs_GCJ=no
16356         cat <<EOF 1>&2
16357
16358 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16359 *** to be unable to reliably create shared libraries on AIX.
16360 *** Therefore, libtool is disabling shared libraries support.  If you
16361 *** really care for shared libraries, you may want to modify your PATH
16362 *** so that a non-GNU linker is found, and then restart.
16363
16364 EOF
16365       fi
16366       ;;
16367
16368     amigaos*)
16369       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16370       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16371       hardcode_minus_L_GCJ=yes
16372
16373       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16374       # that the semantics of dynamic libraries on AmigaOS, at least up
16375       # to version 4, is to share data among multiple programs linked
16376       # with the same dynamic library.  Since this doesn't match the
16377       # behavior of shared libraries on other platforms, we can't use
16378       # them.
16379       ld_shlibs_GCJ=no
16380       ;;
16381
16382     beos*)
16383       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16384         allow_undefined_flag_GCJ=unsupported
16385         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16386         # support --undefined.  This deserves some investigation.  FIXME
16387         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16388       else
16389         ld_shlibs_GCJ=no
16390       fi
16391       ;;
16392
16393     cygwin* | mingw* | pw32*)
16394       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16395       # as there is no search path for DLLs.
16396       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397       allow_undefined_flag_GCJ=unsupported
16398       always_export_symbols_GCJ=no
16399       enable_shared_with_static_runtimes_GCJ=yes
16400       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16401
16402       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16403         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404         # If the export-symbols file already is a .def file (1st line
16405         # is EXPORTS), use it as is; otherwise, prepend...
16406         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16407           cp $export_symbols $output_objdir/$soname.def;
16408         else
16409           echo EXPORTS > $output_objdir/$soname.def;
16410           cat $export_symbols >> $output_objdir/$soname.def;
16411         fi~
16412         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16413       else
16414         ld_shlibs_GCJ=no
16415       fi
16416       ;;
16417
16418     interix3*)
16419       hardcode_direct_GCJ=no
16420       hardcode_shlibpath_var_GCJ=no
16421       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16422       export_dynamic_flag_spec_GCJ='${wl}-E'
16423       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16424       # Instead, shared libraries are loaded at an image base (0x10000000 by
16425       # default) and relocated if they conflict, which is a slow very memory
16426       # consuming and fragmenting process.  To avoid this, we pick a random,
16427       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16428       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16429       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16430       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16431       ;;
16432
16433     linux*)
16434       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16435         tmp_addflag=
16436         case $cc_basename,$host_cpu in
16437         pgcc*)                          # Portland Group C compiler
16438           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16439           tmp_addflag=' $pic_flag'
16440           ;;
16441         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16442           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16443           tmp_addflag=' $pic_flag -Mnomain' ;;
16444         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16445           tmp_addflag=' -i_dynamic' ;;
16446         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16447           tmp_addflag=' -i_dynamic -nofor_main' ;;
16448         ifc* | ifort*)                  # Intel Fortran compiler
16449           tmp_addflag=' -nofor_main' ;;
16450         esac
16451         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16452
16453         if test $supports_anon_versioning = yes; then
16454           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16455   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16456   $echo "local: *; };" >> $output_objdir/$libname.ver~
16457           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16458         fi
16459         link_all_deplibs_GCJ=no
16460       else
16461         ld_shlibs_GCJ=no
16462       fi
16463       ;;
16464
16465     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16466       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16467         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16468         wlarc=
16469       else
16470         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16472       fi
16473       ;;
16474
16475     solaris*)
16476       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16477         ld_shlibs_GCJ=no
16478         cat <<EOF 1>&2
16479
16480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16481 *** create shared libraries on Solaris systems.  Therefore, libtool
16482 *** is disabling shared libraries support.  We urge you to upgrade GNU
16483 *** binutils to release 2.9.1 or newer.  Another option is to modify
16484 *** your PATH or compiler configuration so that the native linker is
16485 *** used, and then restart.
16486
16487 EOF
16488       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16489         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16490         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16491       else
16492         ld_shlibs_GCJ=no
16493       fi
16494       ;;
16495
16496     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16497       case `$LD -v 2>&1` in
16498         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16499         ld_shlibs_GCJ=no
16500         cat <<_LT_EOF 1>&2
16501
16502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16503 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16504 *** is disabling shared libraries support.  We urge you to upgrade GNU
16505 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16506 *** your PATH or compiler configuration so that the native linker is
16507 *** used, and then restart.
16508
16509 _LT_EOF
16510         ;;
16511         *)
16512           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16513             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16514             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16515             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16516           else
16517             ld_shlibs_GCJ=no
16518           fi
16519         ;;
16520       esac
16521       ;;
16522
16523     sunos4*)
16524       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16525       wlarc=
16526       hardcode_direct_GCJ=yes
16527       hardcode_shlibpath_var_GCJ=no
16528       ;;
16529
16530     *)
16531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16532         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16533         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16534       else
16535         ld_shlibs_GCJ=no
16536       fi
16537       ;;
16538     esac
16539
16540     if test "$ld_shlibs_GCJ" = no; then
16541       runpath_var=
16542       hardcode_libdir_flag_spec_GCJ=
16543       export_dynamic_flag_spec_GCJ=
16544       whole_archive_flag_spec_GCJ=
16545     fi
16546   else
16547     # PORTME fill in a description of your system's linker (not GNU ld)
16548     case $host_os in
16549     aix3*)
16550       allow_undefined_flag_GCJ=unsupported
16551       always_export_symbols_GCJ=yes
16552       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16553       # Note: this linker hardcodes the directories in LIBPATH if there
16554       # are no directories specified by -L.
16555       hardcode_minus_L_GCJ=yes
16556       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16557         # Neither direct hardcoding nor static linking is supported with a
16558         # broken collect2.
16559         hardcode_direct_GCJ=unsupported
16560       fi
16561       ;;
16562
16563     aix4* | aix5*)
16564       if test "$host_cpu" = ia64; then
16565         # On IA64, the linker does run time linking by default, so we don't
16566         # have to do anything special.
16567         aix_use_runtimelinking=no
16568         exp_sym_flag='-Bexport'
16569         no_entry_flag=""
16570       else
16571         # If we're using GNU nm, then we don't want the "-C" option.
16572         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16573         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16574           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16575         else
16576           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16577         fi
16578         aix_use_runtimelinking=no
16579
16580         # Test if we are trying to use run time linking or normal
16581         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16582         # need to do runtime linking.
16583         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16584           for ld_flag in $LDFLAGS; do
16585           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16586             aix_use_runtimelinking=yes
16587             break
16588           fi
16589           done
16590           ;;
16591         esac
16592
16593         exp_sym_flag='-bexport'
16594         no_entry_flag='-bnoentry'
16595       fi
16596
16597       # When large executables or shared objects are built, AIX ld can
16598       # have problems creating the table of contents.  If linking a library
16599       # or program results in "error TOC overflow" add -mminimal-toc to
16600       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16601       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16602
16603       archive_cmds_GCJ=''
16604       hardcode_direct_GCJ=yes
16605       hardcode_libdir_separator_GCJ=':'
16606       link_all_deplibs_GCJ=yes
16607
16608       if test "$GCC" = yes; then
16609         case $host_os in aix4.[012]|aix4.[012].*)
16610         # We only want to do this on AIX 4.2 and lower, the check
16611         # below for broken collect2 doesn't work under 4.3+
16612           collect2name=`${CC} -print-prog-name=collect2`
16613           if test -f "$collect2name" && \
16614            strings "$collect2name" | grep resolve_lib_name >/dev/null
16615           then
16616           # We have reworked collect2
16617           hardcode_direct_GCJ=yes
16618           else
16619           # We have old collect2
16620           hardcode_direct_GCJ=unsupported
16621           # It fails to find uninstalled libraries when the uninstalled
16622           # path is not listed in the libpath.  Setting hardcode_minus_L
16623           # to unsupported forces relinking
16624           hardcode_minus_L_GCJ=yes
16625           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626           hardcode_libdir_separator_GCJ=
16627           fi
16628           ;;
16629         esac
16630         shared_flag='-shared'
16631         if test "$aix_use_runtimelinking" = yes; then
16632           shared_flag="$shared_flag "'${wl}-G'
16633         fi
16634       else
16635         # not using gcc
16636         if test "$host_cpu" = ia64; then
16637         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16638         # chokes on -Wl,-G. The following line is correct:
16639           shared_flag='-G'
16640         else
16641           if test "$aix_use_runtimelinking" = yes; then
16642             shared_flag='${wl}-G'
16643           else
16644             shared_flag='${wl}-bM:SRE'
16645           fi
16646         fi
16647       fi
16648
16649       # It seems that -bexpall does not export symbols beginning with
16650       # underscore (_), so it is better to generate a list of symbols to export.
16651       always_export_symbols_GCJ=yes
16652       if test "$aix_use_runtimelinking" = yes; then
16653         # Warning - without using the other runtime loading flags (-brtl),
16654         # -berok will link without error, but may produce a broken library.
16655         allow_undefined_flag_GCJ='-berok'
16656        # Determine the default libpath from the value encoded in an empty executable.
16657        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658 /* end confdefs.h.  */
16659
16660 int
16661 main ()
16662 {
16663
16664   ;
16665   return 0;
16666 }
16667 _ACEOF
16668 if ac_fn_c_try_link "$LINENO"; then :
16669
16670 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16671 }'`
16672 # Check for a 64-bit object if we didn't find anything.
16673 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16674 }'`; fi
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext \
16677     conftest$ac_exeext conftest.$ac_ext
16678 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16679
16680        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16681         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16682        else
16683         if test "$host_cpu" = ia64; then
16684           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16685           allow_undefined_flag_GCJ="-z nodefs"
16686           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16687         else
16688          # Determine the default libpath from the value encoded in an empty executable.
16689          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690 /* end confdefs.h.  */
16691
16692 int
16693 main ()
16694 {
16695
16696   ;
16697   return 0;
16698 }
16699 _ACEOF
16700 if ac_fn_c_try_link "$LINENO"; then :
16701
16702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16703 }'`
16704 # Check for a 64-bit object if we didn't find anything.
16705 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16706 }'`; fi
16707 fi
16708 rm -f core conftest.err conftest.$ac_objext \
16709     conftest$ac_exeext conftest.$ac_ext
16710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16711
16712          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16713           # Warning - without using the other run time loading flags,
16714           # -berok will link without error, but may produce a broken library.
16715           no_undefined_flag_GCJ=' ${wl}-bernotok'
16716           allow_undefined_flag_GCJ=' ${wl}-berok'
16717           # Exported symbols can be pulled into shared objects from archives
16718           whole_archive_flag_spec_GCJ='$convenience'
16719           archive_cmds_need_lc_GCJ=yes
16720           # This is similar to how AIX traditionally builds its shared libraries.
16721           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16722         fi
16723       fi
16724       ;;
16725
16726     amigaos*)
16727       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16728       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729       hardcode_minus_L_GCJ=yes
16730       # see comment about different semantics on the GNU ld section
16731       ld_shlibs_GCJ=no
16732       ;;
16733
16734     bsdi[45]*)
16735       export_dynamic_flag_spec_GCJ=-rdynamic
16736       ;;
16737
16738     cygwin* | mingw* | pw32*)
16739       # When not using gcc, we currently assume that we are using
16740       # Microsoft Visual C++.
16741       # hardcode_libdir_flag_spec is actually meaningless, as there is
16742       # no search path for DLLs.
16743       hardcode_libdir_flag_spec_GCJ=' '
16744       allow_undefined_flag_GCJ=unsupported
16745       # Tell ltmain to make .lib files, not .a files.
16746       libext=lib
16747       # Tell ltmain to make .dll files, not .so files.
16748       shrext_cmds=".dll"
16749       # FIXME: Setting linknames here is a bad hack.
16750       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16751       # The linker will automatically build a .lib file if we build a DLL.
16752       old_archive_From_new_cmds_GCJ='true'
16753       # FIXME: Should let the user specify the lib program.
16754       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16755       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16756       enable_shared_with_static_runtimes_GCJ=yes
16757       ;;
16758
16759     darwin* | rhapsody*)
16760       case $host_os in
16761         rhapsody* | darwin1.[012])
16762          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16763          ;;
16764        *) # Darwin 1.3 on
16765          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16766            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16767          else
16768            case ${MACOSX_DEPLOYMENT_TARGET} in
16769              10.[012])
16770                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16771                ;;
16772              10.*)
16773                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16774                ;;
16775            esac
16776          fi
16777          ;;
16778       esac
16779       archive_cmds_need_lc_GCJ=no
16780       hardcode_direct_GCJ=no
16781       hardcode_automatic_GCJ=yes
16782       hardcode_shlibpath_var_GCJ=unsupported
16783       whole_archive_flag_spec_GCJ=''
16784       link_all_deplibs_GCJ=yes
16785     if test "$GCC" = yes ; then
16786         output_verbose_link_cmd='echo'
16787         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16788       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16789       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16790       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16791       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16792     else
16793       case $cc_basename in
16794         xlc*)
16795          output_verbose_link_cmd='echo'
16796          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16797          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16798           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16799          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16800           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16801           ;;
16802        *)
16803          ld_shlibs_GCJ=no
16804           ;;
16805       esac
16806     fi
16807       ;;
16808
16809     dgux*)
16810       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16811       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16812       hardcode_shlibpath_var_GCJ=no
16813       ;;
16814
16815     freebsd1*)
16816       ld_shlibs_GCJ=no
16817       ;;
16818
16819     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16820     # support.  Future versions do this automatically, but an explicit c++rt0.o
16821     # does not break anything, and helps significantly (at the cost of a little
16822     # extra space).
16823     freebsd2.2*)
16824       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16825       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16826       hardcode_direct_GCJ=yes
16827       hardcode_shlibpath_var_GCJ=no
16828       ;;
16829
16830     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16831     freebsd2*)
16832       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16833       hardcode_direct_GCJ=yes
16834       hardcode_minus_L_GCJ=yes
16835       hardcode_shlibpath_var_GCJ=no
16836       ;;
16837
16838     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16839     freebsd* | dragonfly*)
16840       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16841       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16842       hardcode_direct_GCJ=yes
16843       hardcode_shlibpath_var_GCJ=no
16844       ;;
16845
16846     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16847     kfreebsd*-gnu)
16848       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16849       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16850       hardcode_direct_GCJ=yes
16851       hardcode_shlibpath_var_GCJ=no
16852       link_all_deplibs_GCJ=no
16853       ;;
16854
16855     hpux9*)
16856       if test "$GCC" = yes; then
16857         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16858       else
16859         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16860       fi
16861       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16862       hardcode_libdir_separator_GCJ=:
16863       hardcode_direct_GCJ=yes
16864
16865       # hardcode_minus_L: Not really in the search PATH,
16866       # but as the default location of the library.
16867       hardcode_minus_L_GCJ=yes
16868       export_dynamic_flag_spec_GCJ='${wl}-E'
16869       ;;
16870
16871     hpux10*)
16872       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16873         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16874       else
16875         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16876       fi
16877       if test "$with_gnu_ld" = no; then
16878         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16879         hardcode_libdir_separator_GCJ=:
16880
16881         hardcode_direct_GCJ=yes
16882         export_dynamic_flag_spec_GCJ='${wl}-E'
16883
16884         # hardcode_minus_L: Not really in the search PATH,
16885         # but as the default location of the library.
16886         hardcode_minus_L_GCJ=yes
16887       fi
16888       ;;
16889
16890     hpux11*)
16891       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16892         case $host_cpu in
16893         hppa*64*)
16894           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16895           ;;
16896         ia64*)
16897           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16898           ;;
16899         *)
16900           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16901           ;;
16902         esac
16903       else
16904         case $host_cpu in
16905         hppa*64*)
16906           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16907           ;;
16908         ia64*)
16909           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16910           ;;
16911         *)
16912           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16913           ;;
16914         esac
16915       fi
16916       if test "$with_gnu_ld" = no; then
16917         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16918         hardcode_libdir_separator_GCJ=:
16919
16920         case $host_cpu in
16921         hppa*64*|ia64*)
16922           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16923           hardcode_direct_GCJ=no
16924           hardcode_shlibpath_var_GCJ=no
16925           ;;
16926         *)
16927           hardcode_direct_GCJ=yes
16928           export_dynamic_flag_spec_GCJ='${wl}-E'
16929
16930           # hardcode_minus_L: Not really in the search PATH,
16931           # but as the default location of the library.
16932           hardcode_minus_L_GCJ=yes
16933           ;;
16934         esac
16935       fi
16936       ;;
16937
16938     irix5* | irix6* | nonstopux*)
16939       if test "$GCC" = yes; then
16940         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16941       else
16942         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16943         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16944       fi
16945       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16946       hardcode_libdir_separator_GCJ=:
16947       link_all_deplibs_GCJ=yes
16948       ;;
16949
16950     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16951       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16952         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16953       else
16954         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16955       fi
16956       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16957       hardcode_direct_GCJ=yes
16958       hardcode_shlibpath_var_GCJ=no
16959       ;;
16960
16961     newsos6)
16962       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963       hardcode_direct_GCJ=yes
16964       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16965       hardcode_libdir_separator_GCJ=:
16966       hardcode_shlibpath_var_GCJ=no
16967       ;;
16968
16969     openbsd*)
16970       hardcode_direct_GCJ=yes
16971       hardcode_shlibpath_var_GCJ=no
16972       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16973         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16974         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16975         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16976         export_dynamic_flag_spec_GCJ='${wl}-E'
16977       else
16978        case $host_os in
16979          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16980            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16981            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16982            ;;
16983          *)
16984            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16985            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16986            ;;
16987        esac
16988       fi
16989       ;;
16990
16991     os2*)
16992       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16993       hardcode_minus_L_GCJ=yes
16994       allow_undefined_flag_GCJ=unsupported
16995       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16996       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16997       ;;
16998
16999     osf3*)
17000       if test "$GCC" = yes; then
17001         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17002         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17003       else
17004         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17005         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17006       fi
17007       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17008       hardcode_libdir_separator_GCJ=:
17009       ;;
17010
17011     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17012       if test "$GCC" = yes; then
17013         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17014         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17015         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17016       else
17017         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17018         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17019         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17020         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17021
17022         # Both c and cxx compiler support -rpath directly
17023         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17024       fi
17025       hardcode_libdir_separator_GCJ=:
17026       ;;
17027
17028     solaris*)
17029       no_undefined_flag_GCJ=' -z text'
17030       if test "$GCC" = yes; then
17031         wlarc='${wl}'
17032         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17033         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17034           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17035       else
17036         wlarc=''
17037         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17038         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17039         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17040       fi
17041       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17042       hardcode_shlibpath_var_GCJ=no
17043       case $host_os in
17044       solaris2.[0-5] | solaris2.[0-5].*) ;;
17045       *)
17046         # The compiler driver will combine linker options so we
17047         # cannot just pass the convience library names through
17048         # without $wl, iff we do not link with $LD.
17049         # Luckily, gcc supports the same syntax we need for Sun Studio.
17050         # Supported since Solaris 2.6 (maybe 2.5.1?)
17051         case $wlarc in
17052         '')
17053           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17054         *)
17055           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17056         esac ;;
17057       esac
17058       link_all_deplibs_GCJ=yes
17059       ;;
17060
17061     sunos4*)
17062       if test "x$host_vendor" = xsequent; then
17063         # Use $CC to link under sequent, because it throws in some extra .o
17064         # files that make .init and .fini sections work.
17065         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17066       else
17067         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17068       fi
17069       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17070       hardcode_direct_GCJ=yes
17071       hardcode_minus_L_GCJ=yes
17072       hardcode_shlibpath_var_GCJ=no
17073       ;;
17074
17075     sysv4)
17076       case $host_vendor in
17077         sni)
17078           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079           hardcode_direct_GCJ=yes # is this really true???
17080         ;;
17081         siemens)
17082           ## LD is ld it makes a PLAMLIB
17083           ## CC just makes a GrossModule.
17084           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17085           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17086           hardcode_direct_GCJ=no
17087         ;;
17088         motorola)
17089           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17090           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17091         ;;
17092       esac
17093       runpath_var='LD_RUN_PATH'
17094       hardcode_shlibpath_var_GCJ=no
17095       ;;
17096
17097     sysv4.3*)
17098       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17099       hardcode_shlibpath_var_GCJ=no
17100       export_dynamic_flag_spec_GCJ='-Bexport'
17101       ;;
17102
17103     sysv4*MP*)
17104       if test -d /usr/nec; then
17105         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106         hardcode_shlibpath_var_GCJ=no
17107         runpath_var=LD_RUN_PATH
17108         hardcode_runpath_var=yes
17109         ld_shlibs_GCJ=yes
17110       fi
17111       ;;
17112
17113     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17114       no_undefined_flag_GCJ='${wl}-z,text'
17115       archive_cmds_need_lc_GCJ=no
17116       hardcode_shlibpath_var_GCJ=no
17117       runpath_var='LD_RUN_PATH'
17118
17119       if test "$GCC" = yes; then
17120         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17121         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17122       else
17123         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17124         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17125       fi
17126       ;;
17127
17128     sysv5* | sco3.2v5* | sco5v6*)
17129       # Note: We can NOT use -z defs as we might desire, because we do not
17130       # link with -lc, and that would cause any symbols used from libc to
17131       # always be unresolved, which means just about no library would
17132       # ever link correctly.  If we're not using GNU ld we use -z text
17133       # though, which does catch some bad symbols but isn't as heavy-handed
17134       # as -z defs.
17135       no_undefined_flag_GCJ='${wl}-z,text'
17136       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17137       archive_cmds_need_lc_GCJ=no
17138       hardcode_shlibpath_var_GCJ=no
17139       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17140       hardcode_libdir_separator_GCJ=':'
17141       link_all_deplibs_GCJ=yes
17142       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17143       runpath_var='LD_RUN_PATH'
17144
17145       if test "$GCC" = yes; then
17146         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17147         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17148       else
17149         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17150         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17151       fi
17152       ;;
17153
17154     uts4*)
17155       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17156       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157       hardcode_shlibpath_var_GCJ=no
17158       ;;
17159
17160     *)
17161       ld_shlibs_GCJ=no
17162       ;;
17163     esac
17164   fi
17165
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17167 $as_echo "$ld_shlibs_GCJ" >&6; }
17168 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17169
17170 #
17171 # Do we need to explicitly link libc?
17172 #
17173 case "x$archive_cmds_need_lc_GCJ" in
17174 x|xyes)
17175   # Assume -lc should be added
17176   archive_cmds_need_lc_GCJ=yes
17177
17178   if test "$enable_shared" = yes && test "$GCC" = yes; then
17179     case $archive_cmds_GCJ in
17180     *'~'*)
17181       # FIXME: we may have to deal with multi-command sequences.
17182       ;;
17183     '$CC '*)
17184       # Test whether the compiler implicitly links with -lc since on some
17185       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17186       # to ld, don't add -lc before -lgcc.
17187       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17188 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17189       $rm conftest*
17190       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17191
17192       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17193   (eval $ac_compile) 2>&5
17194   ac_status=$?
17195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17196   test $ac_status = 0; } 2>conftest.err; then
17197         soname=conftest
17198         lib=conftest
17199         libobjs=conftest.$ac_objext
17200         deplibs=
17201         wl=$lt_prog_compiler_wl_GCJ
17202         pic_flag=$lt_prog_compiler_pic_GCJ
17203         compiler_flags=-v
17204         linker_flags=-v
17205         verstring=
17206         output_objdir=.
17207         libname=conftest
17208         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17209         allow_undefined_flag_GCJ=
17210         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17211   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17212   ac_status=$?
17213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17214   test $ac_status = 0; }
17215         then
17216           archive_cmds_need_lc_GCJ=no
17217         else
17218           archive_cmds_need_lc_GCJ=yes
17219         fi
17220         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17221       else
17222         cat conftest.err 1>&5
17223       fi
17224       $rm conftest*
17225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17226 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17227       ;;
17228     esac
17229   fi
17230   ;;
17231 esac
17232
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17234 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17235 library_names_spec=
17236 libname_spec='lib$name'
17237 soname_spec=
17238 shrext_cmds=".so"
17239 postinstall_cmds=
17240 postuninstall_cmds=
17241 finish_cmds=
17242 finish_eval=
17243 shlibpath_var=
17244 shlibpath_overrides_runpath=unknown
17245 version_type=none
17246 dynamic_linker="$host_os ld.so"
17247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17248 if test "$GCC" = yes; then
17249   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17250   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17251     # if the path contains ";" then we assume it to be the separator
17252     # otherwise default to the standard path separator (i.e. ":") - it is
17253     # assumed that no part of a normal pathname contains ";" but that should
17254     # okay in the real world where ";" in dirpaths is itself problematic.
17255     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17256   else
17257     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17258   fi
17259 else
17260   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17261 fi
17262 need_lib_prefix=unknown
17263 hardcode_into_libs=no
17264
17265 # when you set need_version to no, make sure it does not cause -set_version
17266 # flags to be left without arguments
17267 need_version=unknown
17268
17269 case $host_os in
17270 aix3*)
17271   version_type=linux
17272   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17273   shlibpath_var=LIBPATH
17274
17275   # AIX 3 has no versioning support, so we append a major version to the name.
17276   soname_spec='${libname}${release}${shared_ext}$major'
17277   ;;
17278
17279 aix4* | aix5*)
17280   version_type=linux
17281   need_lib_prefix=no
17282   need_version=no
17283   hardcode_into_libs=yes
17284   if test "$host_cpu" = ia64; then
17285     # AIX 5 supports IA64
17286     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17287     shlibpath_var=LD_LIBRARY_PATH
17288   else
17289     # With GCC up to 2.95.x, collect2 would create an import file
17290     # for dependence libraries.  The import file would start with
17291     # the line `#! .'.  This would cause the generated library to
17292     # depend on `.', always an invalid library.  This was fixed in
17293     # development snapshots of GCC prior to 3.0.
17294     case $host_os in
17295       aix4 | aix4.[01] | aix4.[01].*)
17296       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17297            echo ' yes '
17298            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17299         :
17300       else
17301         can_build_shared=no
17302       fi
17303       ;;
17304     esac
17305     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17306     # soname into executable. Probably we can add versioning support to
17307     # collect2, so additional links can be useful in future.
17308     if test "$aix_use_runtimelinking" = yes; then
17309       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17310       # instead of lib<name>.a to let people know that these are not
17311       # typical AIX shared libraries.
17312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313     else
17314       # We preserve .a as extension for shared libraries through AIX4.2
17315       # and later when we are not doing run time linking.
17316       library_names_spec='${libname}${release}.a $libname.a'
17317       soname_spec='${libname}${release}${shared_ext}$major'
17318     fi
17319     shlibpath_var=LIBPATH
17320   fi
17321   ;;
17322
17323 amigaos*)
17324   library_names_spec='$libname.ixlibrary $libname.a'
17325   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17326   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17327   ;;
17328
17329 beos*)
17330   library_names_spec='${libname}${shared_ext}'
17331   dynamic_linker="$host_os ld.so"
17332   shlibpath_var=LIBRARY_PATH
17333   ;;
17334
17335 bsdi[45]*)
17336   version_type=linux
17337   need_version=no
17338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339   soname_spec='${libname}${release}${shared_ext}$major'
17340   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17341   shlibpath_var=LD_LIBRARY_PATH
17342   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17343   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17344   # the default ld.so.conf also contains /usr/contrib/lib and
17345   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17346   # libtool to hard-code these into programs
17347   ;;
17348
17349 cygwin* | mingw* | pw32*)
17350   version_type=windows
17351   shrext_cmds=".dll"
17352   need_version=no
17353   need_lib_prefix=no
17354
17355   case $GCC,$host_os in
17356   yes,cygwin* | yes,mingw* | yes,pw32*)
17357     library_names_spec='$libname.dll.a'
17358     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17359     postinstall_cmds='base_file=`basename \${file}`~
17360       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17361       dldir=$destdir/`dirname \$dlpath`~
17362       test -d \$dldir || mkdir -p \$dldir~
17363       $install_prog $dir/$dlname \$dldir/$dlname~
17364       chmod a+x \$dldir/$dlname'
17365     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17366       dlpath=$dir/\$dldll~
17367        $rm \$dlpath'
17368     shlibpath_overrides_runpath=yes
17369
17370     case $host_os in
17371     cygwin*)
17372       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17373       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17374       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17375       ;;
17376     mingw*)
17377       # MinGW DLLs use traditional 'lib' prefix
17378       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17379       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17380       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17381         # It is most probably a Windows format PATH printed by
17382         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17383         # path with ; separators, and with drive letters. We can handle the
17384         # drive letters (cygwin fileutils understands them), so leave them,
17385         # especially as we might pass files found there to a mingw objdump,
17386         # which wouldn't understand a cygwinified path. Ahh.
17387         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17388       else
17389         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17390       fi
17391       ;;
17392     pw32*)
17393       # pw32 DLLs use 'pw' prefix rather than 'lib'
17394       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17395       ;;
17396     esac
17397     ;;
17398
17399   *)
17400     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17401     ;;
17402   esac
17403   dynamic_linker='Win32 ld.exe'
17404   # FIXME: first we should search . and the directory the executable is in
17405   shlibpath_var=PATH
17406   ;;
17407
17408 darwin* | rhapsody*)
17409   dynamic_linker="$host_os dyld"
17410   version_type=darwin
17411   need_lib_prefix=no
17412   need_version=no
17413   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17414   soname_spec='${libname}${release}${major}$shared_ext'
17415   shlibpath_overrides_runpath=yes
17416   shlibpath_var=DYLD_LIBRARY_PATH
17417   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17418   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17419   if test "$GCC" = yes; then
17420     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17421   else
17422     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17423   fi
17424   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17425   ;;
17426
17427 dgux*)
17428   version_type=linux
17429   need_lib_prefix=no
17430   need_version=no
17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17432   soname_spec='${libname}${release}${shared_ext}$major'
17433   shlibpath_var=LD_LIBRARY_PATH
17434   ;;
17435
17436 freebsd1*)
17437   dynamic_linker=no
17438   ;;
17439
17440 kfreebsd*-gnu)
17441   version_type=linux
17442   need_lib_prefix=no
17443   need_version=no
17444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17445   soname_spec='${libname}${release}${shared_ext}$major'
17446   shlibpath_var=LD_LIBRARY_PATH
17447   shlibpath_overrides_runpath=no
17448   hardcode_into_libs=yes
17449   dynamic_linker='GNU ld.so'
17450   ;;
17451
17452 freebsd* | dragonfly*)
17453   # DragonFly does not have aout.  When/if they implement a new
17454   # versioning mechanism, adjust this.
17455   if test -x /usr/bin/objformat; then
17456     objformat=`/usr/bin/objformat`
17457   else
17458     case $host_os in
17459     freebsd[123]*) objformat=aout ;;
17460     *) objformat=elf ;;
17461     esac
17462   fi
17463   version_type=freebsd-$objformat
17464   case $version_type in
17465     freebsd-elf*)
17466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17467       need_version=no
17468       need_lib_prefix=no
17469       ;;
17470     freebsd-*)
17471       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17472       need_version=yes
17473       ;;
17474   esac
17475   shlibpath_var=LD_LIBRARY_PATH
17476   case $host_os in
17477   freebsd2*)
17478     shlibpath_overrides_runpath=yes
17479     ;;
17480   freebsd3.[01]* | freebsdelf3.[01]*)
17481     shlibpath_overrides_runpath=yes
17482     hardcode_into_libs=yes
17483     ;;
17484   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17485   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17486     shlibpath_overrides_runpath=no
17487     hardcode_into_libs=yes
17488     ;;
17489   freebsd*) # from 4.6 on
17490     shlibpath_overrides_runpath=yes
17491     hardcode_into_libs=yes
17492     ;;
17493   esac
17494   ;;
17495
17496 gnu*)
17497   version_type=linux
17498   need_lib_prefix=no
17499   need_version=no
17500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17501   soname_spec='${libname}${release}${shared_ext}$major'
17502   shlibpath_var=LD_LIBRARY_PATH
17503   hardcode_into_libs=yes
17504   ;;
17505
17506 hpux9* | hpux10* | hpux11*)
17507   # Give a soname corresponding to the major version so that dld.sl refuses to
17508   # link against other versions.
17509   version_type=sunos
17510   need_lib_prefix=no
17511   need_version=no
17512   case $host_cpu in
17513   ia64*)
17514     shrext_cmds='.so'
17515     hardcode_into_libs=yes
17516     dynamic_linker="$host_os dld.so"
17517     shlibpath_var=LD_LIBRARY_PATH
17518     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520     soname_spec='${libname}${release}${shared_ext}$major'
17521     if test "X$HPUX_IA64_MODE" = X32; then
17522       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17523     else
17524       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17525     fi
17526     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17527     ;;
17528    hppa*64*)
17529      shrext_cmds='.sl'
17530      hardcode_into_libs=yes
17531      dynamic_linker="$host_os dld.sl"
17532      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17533      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17534      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535      soname_spec='${libname}${release}${shared_ext}$major'
17536      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17537      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17538      ;;
17539    *)
17540     shrext_cmds='.sl'
17541     dynamic_linker="$host_os dld.sl"
17542     shlibpath_var=SHLIB_PATH
17543     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545     soname_spec='${libname}${release}${shared_ext}$major'
17546     ;;
17547   esac
17548   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17549   postinstall_cmds='chmod 555 $lib'
17550   ;;
17551
17552 interix3*)
17553   version_type=linux
17554   need_lib_prefix=no
17555   need_version=no
17556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17557   soname_spec='${libname}${release}${shared_ext}$major'
17558   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17559   shlibpath_var=LD_LIBRARY_PATH
17560   shlibpath_overrides_runpath=no
17561   hardcode_into_libs=yes
17562   ;;
17563
17564 irix5* | irix6* | nonstopux*)
17565   case $host_os in
17566     nonstopux*) version_type=nonstopux ;;
17567     *)
17568         if test "$lt_cv_prog_gnu_ld" = yes; then
17569                 version_type=linux
17570         else
17571                 version_type=irix
17572         fi ;;
17573   esac
17574   need_lib_prefix=no
17575   need_version=no
17576   soname_spec='${libname}${release}${shared_ext}$major'
17577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17578   case $host_os in
17579   irix5* | nonstopux*)
17580     libsuff= shlibsuff=
17581     ;;
17582   *)
17583     case $LD in # libtool.m4 will add one of these switches to LD
17584     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17585       libsuff= shlibsuff= libmagic=32-bit;;
17586     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17587       libsuff=32 shlibsuff=N32 libmagic=N32;;
17588     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17589       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17590     *) libsuff= shlibsuff= libmagic=never-match;;
17591     esac
17592     ;;
17593   esac
17594   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17595   shlibpath_overrides_runpath=no
17596   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17597   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17598   hardcode_into_libs=yes
17599   ;;
17600
17601 # No shared lib support for Linux oldld, aout, or coff.
17602 linux*oldld* | linux*aout* | linux*coff*)
17603   dynamic_linker=no
17604   ;;
17605
17606 # This must be Linux ELF.
17607 linux*)
17608   version_type=linux
17609   need_lib_prefix=no
17610   need_version=no
17611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612   soname_spec='${libname}${release}${shared_ext}$major'
17613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17614   shlibpath_var=LD_LIBRARY_PATH
17615   shlibpath_overrides_runpath=no
17616   # This implies no fast_install, which is unacceptable.
17617   # Some rework will be needed to allow for fast_install
17618   # before this can be enabled.
17619   hardcode_into_libs=yes
17620
17621   # Append ld.so.conf contents to the search path
17622   if test -f /etc/ld.so.conf; then
17623     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17625   fi
17626
17627   # We used to test for /lib/ld.so.1 and disable shared libraries on
17628   # powerpc, because MkLinux only supported shared libraries with the
17629   # GNU dynamic linker.  Since this was broken with cross compilers,
17630   # most powerpc-linux boxes support dynamic linking these days and
17631   # people can always --disable-shared, the test was removed, and we
17632   # assume the GNU/Linux dynamic linker is in use.
17633   dynamic_linker='GNU/Linux ld.so'
17634   ;;
17635
17636 netbsdelf*-gnu)
17637   version_type=linux
17638   need_lib_prefix=no
17639   need_version=no
17640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17641   soname_spec='${libname}${release}${shared_ext}$major'
17642   shlibpath_var=LD_LIBRARY_PATH
17643   shlibpath_overrides_runpath=no
17644   hardcode_into_libs=yes
17645   dynamic_linker='NetBSD ld.elf_so'
17646   ;;
17647
17648 knetbsd*-gnu)
17649   version_type=linux
17650   need_lib_prefix=no
17651   need_version=no
17652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17653   soname_spec='${libname}${release}${shared_ext}$major'
17654   shlibpath_var=LD_LIBRARY_PATH
17655   shlibpath_overrides_runpath=no
17656   hardcode_into_libs=yes
17657   dynamic_linker='GNU ld.so'
17658   ;;
17659
17660 netbsd*)
17661   version_type=sunos
17662   need_lib_prefix=no
17663   need_version=no
17664   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667     dynamic_linker='NetBSD (a.out) ld.so'
17668   else
17669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17670     soname_spec='${libname}${release}${shared_ext}$major'
17671     dynamic_linker='NetBSD ld.elf_so'
17672   fi
17673   shlibpath_var=LD_LIBRARY_PATH
17674   shlibpath_overrides_runpath=yes
17675   hardcode_into_libs=yes
17676   ;;
17677
17678 newsos6)
17679   version_type=linux
17680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681   shlibpath_var=LD_LIBRARY_PATH
17682   shlibpath_overrides_runpath=yes
17683   ;;
17684
17685 nto-qnx*)
17686   version_type=linux
17687   need_lib_prefix=no
17688   need_version=no
17689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690   soname_spec='${libname}${release}${shared_ext}$major'
17691   shlibpath_var=LD_LIBRARY_PATH
17692   shlibpath_overrides_runpath=yes
17693   ;;
17694
17695 openbsd*)
17696   version_type=sunos
17697   sys_lib_dlsearch_path_spec="/usr/lib"
17698   need_lib_prefix=no
17699   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17700   case $host_os in
17701     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17702     *)                         need_version=no  ;;
17703   esac
17704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17706   shlibpath_var=LD_LIBRARY_PATH
17707   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17708     case $host_os in
17709       openbsd2.[89] | openbsd2.[89].*)
17710         shlibpath_overrides_runpath=no
17711         ;;
17712       *)
17713         shlibpath_overrides_runpath=yes
17714         ;;
17715       esac
17716   else
17717     shlibpath_overrides_runpath=yes
17718   fi
17719   ;;
17720
17721 os2*)
17722   libname_spec='$name'
17723   shrext_cmds=".dll"
17724   need_lib_prefix=no
17725   library_names_spec='$libname${shared_ext} $libname.a'
17726   dynamic_linker='OS/2 ld.exe'
17727   shlibpath_var=LIBPATH
17728   ;;
17729
17730 osf3* | osf4* | osf5*)
17731   version_type=osf
17732   need_lib_prefix=no
17733   need_version=no
17734   soname_spec='${libname}${release}${shared_ext}$major'
17735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17736   shlibpath_var=LD_LIBRARY_PATH
17737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17738   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17739   ;;
17740
17741 solaris*)
17742   version_type=linux
17743   need_lib_prefix=no
17744   need_version=no
17745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746   soname_spec='${libname}${release}${shared_ext}$major'
17747   shlibpath_var=LD_LIBRARY_PATH
17748   shlibpath_overrides_runpath=yes
17749   hardcode_into_libs=yes
17750   # ldd complains unless libraries are executable
17751   postinstall_cmds='chmod +x $lib'
17752   ;;
17753
17754 sunos4*)
17755   version_type=sunos
17756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17757   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17758   shlibpath_var=LD_LIBRARY_PATH
17759   shlibpath_overrides_runpath=yes
17760   if test "$with_gnu_ld" = yes; then
17761     need_lib_prefix=no
17762   fi
17763   need_version=yes
17764   ;;
17765
17766 sysv4 | sysv4.3*)
17767   version_type=linux
17768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769   soname_spec='${libname}${release}${shared_ext}$major'
17770   shlibpath_var=LD_LIBRARY_PATH
17771   case $host_vendor in
17772     sni)
17773       shlibpath_overrides_runpath=no
17774       need_lib_prefix=no
17775       export_dynamic_flag_spec='${wl}-Blargedynsym'
17776       runpath_var=LD_RUN_PATH
17777       ;;
17778     siemens)
17779       need_lib_prefix=no
17780       ;;
17781     motorola)
17782       need_lib_prefix=no
17783       need_version=no
17784       shlibpath_overrides_runpath=no
17785       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17786       ;;
17787   esac
17788   ;;
17789
17790 sysv4*MP*)
17791   if test -d /usr/nec ;then
17792     version_type=linux
17793     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17794     soname_spec='$libname${shared_ext}.$major'
17795     shlibpath_var=LD_LIBRARY_PATH
17796   fi
17797   ;;
17798
17799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17800   version_type=freebsd-elf
17801   need_lib_prefix=no
17802   need_version=no
17803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17804   soname_spec='${libname}${release}${shared_ext}$major'
17805   shlibpath_var=LD_LIBRARY_PATH
17806   hardcode_into_libs=yes
17807   if test "$with_gnu_ld" = yes; then
17808     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17809     shlibpath_overrides_runpath=no
17810   else
17811     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17812     shlibpath_overrides_runpath=yes
17813     case $host_os in
17814       sco3.2v5*)
17815         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17816         ;;
17817     esac
17818   fi
17819   sys_lib_dlsearch_path_spec='/usr/lib'
17820   ;;
17821
17822 uts4*)
17823   version_type=linux
17824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17825   soname_spec='${libname}${release}${shared_ext}$major'
17826   shlibpath_var=LD_LIBRARY_PATH
17827   ;;
17828
17829 *)
17830   dynamic_linker=no
17831   ;;
17832 esac
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17834 $as_echo "$dynamic_linker" >&6; }
17835 test "$dynamic_linker" = no && can_build_shared=no
17836
17837 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17838 if test "$GCC" = yes; then
17839   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17840 fi
17841
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17843 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17844 hardcode_action_GCJ=
17845 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17846    test -n "$runpath_var_GCJ" || \
17847    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17848
17849   # We can hardcode non-existant directories.
17850   if test "$hardcode_direct_GCJ" != no &&
17851      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17852      # have to relink, otherwise we might link with an installed library
17853      # when we should be linking with a yet-to-be-installed one
17854      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17855      test "$hardcode_minus_L_GCJ" != no; then
17856     # Linking always hardcodes the temporary library directory.
17857     hardcode_action_GCJ=relink
17858   else
17859     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17860     hardcode_action_GCJ=immediate
17861   fi
17862 else
17863   # We cannot hardcode anything, or else we can only hardcode existing
17864   # directories.
17865   hardcode_action_GCJ=unsupported
17866 fi
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17868 $as_echo "$hardcode_action_GCJ" >&6; }
17869
17870 if test "$hardcode_action_GCJ" = relink; then
17871   # Fast installation is not supported
17872   enable_fast_install=no
17873 elif test "$shlibpath_overrides_runpath" = yes ||
17874      test "$enable_shared" = no; then
17875   # Fast installation is not necessary
17876   enable_fast_install=needless
17877 fi
17878
17879
17880 # The else clause should only fire when bootstrapping the
17881 # libtool distribution, otherwise you forgot to ship ltmain.sh
17882 # with your package, and you will get complaints that there are
17883 # no rules to generate ltmain.sh.
17884 if test -f "$ltmain"; then
17885   # See if we are running on zsh, and set the options which allow our commands through
17886   # without removal of \ escapes.
17887   if test -n "${ZSH_VERSION+set}" ; then
17888     setopt NO_GLOB_SUBST
17889   fi
17890   # Now quote all the things that may contain metacharacters while being
17891   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17892   # variables and quote the copies for generation of the libtool script.
17893   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17894     SED SHELL STRIP \
17895     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17896     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17897     deplibs_check_method reload_flag reload_cmds need_locks \
17898     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17899     lt_cv_sys_global_symbol_to_c_name_address \
17900     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17901     old_postinstall_cmds old_postuninstall_cmds \
17902     compiler_GCJ \
17903     CC_GCJ \
17904     LD_GCJ \
17905     lt_prog_compiler_wl_GCJ \
17906     lt_prog_compiler_pic_GCJ \
17907     lt_prog_compiler_static_GCJ \
17908     lt_prog_compiler_no_builtin_flag_GCJ \
17909     export_dynamic_flag_spec_GCJ \
17910     thread_safe_flag_spec_GCJ \
17911     whole_archive_flag_spec_GCJ \
17912     enable_shared_with_static_runtimes_GCJ \
17913     old_archive_cmds_GCJ \
17914     old_archive_from_new_cmds_GCJ \
17915     predep_objects_GCJ \
17916     postdep_objects_GCJ \
17917     predeps_GCJ \
17918     postdeps_GCJ \
17919     compiler_lib_search_path_GCJ \
17920     archive_cmds_GCJ \
17921     archive_expsym_cmds_GCJ \
17922     postinstall_cmds_GCJ \
17923     postuninstall_cmds_GCJ \
17924     old_archive_from_expsyms_cmds_GCJ \
17925     allow_undefined_flag_GCJ \
17926     no_undefined_flag_GCJ \
17927     export_symbols_cmds_GCJ \
17928     hardcode_libdir_flag_spec_GCJ \
17929     hardcode_libdir_flag_spec_ld_GCJ \
17930     hardcode_libdir_separator_GCJ \
17931     hardcode_automatic_GCJ \
17932     module_cmds_GCJ \
17933     module_expsym_cmds_GCJ \
17934     lt_cv_prog_compiler_c_o_GCJ \
17935     exclude_expsyms_GCJ \
17936     include_expsyms_GCJ; do
17937
17938     case $var in
17939     old_archive_cmds_GCJ | \
17940     old_archive_from_new_cmds_GCJ | \
17941     archive_cmds_GCJ | \
17942     archive_expsym_cmds_GCJ | \
17943     module_cmds_GCJ | \
17944     module_expsym_cmds_GCJ | \
17945     old_archive_from_expsyms_cmds_GCJ | \
17946     export_symbols_cmds_GCJ | \
17947     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17948     postinstall_cmds | postuninstall_cmds | \
17949     old_postinstall_cmds | old_postuninstall_cmds | \
17950     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17951       # Double-quote double-evaled strings.
17952       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17953       ;;
17954     *)
17955       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17956       ;;
17957     esac
17958   done
17959
17960   case $lt_echo in
17961   *'\$0 --fallback-echo"')
17962     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17963     ;;
17964   esac
17965
17966 cfgfile="$ofile"
17967
17968   cat <<__EOF__ >> "$cfgfile"
17969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17970
17971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17972
17973 # Shell to use when invoking shell scripts.
17974 SHELL=$lt_SHELL
17975
17976 # Whether or not to build shared libraries.
17977 build_libtool_libs=$enable_shared
17978
17979 # Whether or not to build static libraries.
17980 build_old_libs=$enable_static
17981
17982 # Whether or not to add -lc for building shared libraries.
17983 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17984
17985 # Whether or not to disallow shared libs when runtime libs are static
17986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17987
17988 # Whether or not to optimize for fast installation.
17989 fast_install=$enable_fast_install
17990
17991 # The host system.
17992 host_alias=$host_alias
17993 host=$host
17994 host_os=$host_os
17995
17996 # The build system.
17997 build_alias=$build_alias
17998 build=$build
17999 build_os=$build_os
18000
18001 # An echo program that does not interpret backslashes.
18002 echo=$lt_echo
18003
18004 # The archiver.
18005 AR=$lt_AR
18006 AR_FLAGS=$lt_AR_FLAGS
18007
18008 # A C compiler.
18009 LTCC=$lt_LTCC
18010
18011 # LTCC compiler flags.
18012 LTCFLAGS=$lt_LTCFLAGS
18013
18014 # A language-specific compiler.
18015 CC=$lt_compiler_GCJ
18016
18017 # Is the compiler the GNU C compiler?
18018 with_gcc=$GCC_GCJ
18019
18020 # An ERE matcher.
18021 EGREP=$lt_EGREP
18022
18023 # The linker used to build libraries.
18024 LD=$lt_LD_GCJ
18025
18026 # Whether we need hard or soft links.
18027 LN_S=$lt_LN_S
18028
18029 # A BSD-compatible nm program.
18030 NM=$lt_NM
18031
18032 # A symbol stripping program
18033 STRIP=$lt_STRIP
18034
18035 # Used to examine libraries when file_magic_cmd begins "file"
18036 MAGIC_CMD=$MAGIC_CMD
18037
18038 # Used on cygwin: DLL creation program.
18039 DLLTOOL="$DLLTOOL"
18040
18041 # Used on cygwin: object dumper.
18042 OBJDUMP="$OBJDUMP"
18043
18044 # Used on cygwin: assembler.
18045 AS="$AS"
18046
18047 # The name of the directory that contains temporary libtool files.
18048 objdir=$objdir
18049
18050 # How to create reloadable object files.
18051 reload_flag=$lt_reload_flag
18052 reload_cmds=$lt_reload_cmds
18053
18054 # How to pass a linker flag through the compiler.
18055 wl=$lt_lt_prog_compiler_wl_GCJ
18056
18057 # Object file suffix (normally "o").
18058 objext="$ac_objext"
18059
18060 # Old archive suffix (normally "a").
18061 libext="$libext"
18062
18063 # Shared library suffix (normally ".so").
18064 shrext_cmds='$shrext_cmds'
18065
18066 # Executable file suffix (normally "").
18067 exeext="$exeext"
18068
18069 # Additional compiler flags for building library objects.
18070 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18071 pic_mode=$pic_mode
18072
18073 # What is the maximum length of a command?
18074 max_cmd_len=$lt_cv_sys_max_cmd_len
18075
18076 # Does compiler simultaneously support -c and -o options?
18077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18078
18079 # Must we lock files when doing compilation?
18080 need_locks=$lt_need_locks
18081
18082 # Do we need the lib prefix for modules?
18083 need_lib_prefix=$need_lib_prefix
18084
18085 # Do we need a version for libraries?
18086 need_version=$need_version
18087
18088 # Whether dlopen is supported.
18089 dlopen_support=$enable_dlopen
18090
18091 # Whether dlopen of programs is supported.
18092 dlopen_self=$enable_dlopen_self
18093
18094 # Whether dlopen of statically linked programs is supported.
18095 dlopen_self_static=$enable_dlopen_self_static
18096
18097 # Compiler flag to prevent dynamic linking.
18098 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18099
18100 # Compiler flag to turn off builtin functions.
18101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18102
18103 # Compiler flag to allow reflexive dlopens.
18104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18105
18106 # Compiler flag to generate shared objects directly from archives.
18107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18108
18109 # Compiler flag to generate thread-safe objects.
18110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18111
18112 # Library versioning type.
18113 version_type=$version_type
18114
18115 # Format of library name prefix.
18116 libname_spec=$lt_libname_spec
18117
18118 # List of archive names.  First name is the real one, the rest are links.
18119 # The last name is the one that the linker finds with -lNAME.
18120 library_names_spec=$lt_library_names_spec
18121
18122 # The coded name of the library, if different from the real name.
18123 soname_spec=$lt_soname_spec
18124
18125 # Commands used to build and install an old-style archive.
18126 RANLIB=$lt_RANLIB
18127 old_archive_cmds=$lt_old_archive_cmds_GCJ
18128 old_postinstall_cmds=$lt_old_postinstall_cmds
18129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18130
18131 # Create an old-style archive from a shared archive.
18132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18133
18134 # Create a temporary old-style archive to link instead of a shared archive.
18135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18136
18137 # Commands used to build and install a shared archive.
18138 archive_cmds=$lt_archive_cmds_GCJ
18139 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18140 postinstall_cmds=$lt_postinstall_cmds
18141 postuninstall_cmds=$lt_postuninstall_cmds
18142
18143 # Commands used to build a loadable module (assumed same as above if empty)
18144 module_cmds=$lt_module_cmds_GCJ
18145 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18146
18147 # Commands to strip libraries.
18148 old_striplib=$lt_old_striplib
18149 striplib=$lt_striplib
18150
18151 # Dependencies to place before the objects being linked to create a
18152 # shared library.
18153 predep_objects=$lt_predep_objects_GCJ
18154
18155 # Dependencies to place after the objects being linked to create a
18156 # shared library.
18157 postdep_objects=$lt_postdep_objects_GCJ
18158
18159 # Dependencies to place before the objects being linked to create a
18160 # shared library.
18161 predeps=$lt_predeps_GCJ
18162
18163 # Dependencies to place after the objects being linked to create a
18164 # shared library.
18165 postdeps=$lt_postdeps_GCJ
18166
18167 # The library search path used internally by the compiler when linking
18168 # a shared library.
18169 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18170
18171 # Method to check whether dependent libraries are shared objects.
18172 deplibs_check_method=$lt_deplibs_check_method
18173
18174 # Command to use when deplibs_check_method == file_magic.
18175 file_magic_cmd=$lt_file_magic_cmd
18176
18177 # Flag that allows shared libraries with undefined symbols to be built.
18178 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18179
18180 # Flag that forces no undefined symbols.
18181 no_undefined_flag=$lt_no_undefined_flag_GCJ
18182
18183 # Commands used to finish a libtool library installation in a directory.
18184 finish_cmds=$lt_finish_cmds
18185
18186 # Same as above, but a single script fragment to be evaled but not shown.
18187 finish_eval=$lt_finish_eval
18188
18189 # Take the output of nm and produce a listing of raw symbols and C names.
18190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18191
18192 # Transform the output of nm in a proper C declaration
18193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18194
18195 # Transform the output of nm in a C name address pair
18196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18197
18198 # This is the shared library runtime path variable.
18199 runpath_var=$runpath_var
18200
18201 # This is the shared library path variable.
18202 shlibpath_var=$shlibpath_var
18203
18204 # Is shlibpath searched before the hard-coded library search path?
18205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18206
18207 # How to hardcode a shared library path into an executable.
18208 hardcode_action=$hardcode_action_GCJ
18209
18210 # Whether we should hardcode library paths into libraries.
18211 hardcode_into_libs=$hardcode_into_libs
18212
18213 # Flag to hardcode \$libdir into a binary during linking.
18214 # This must work even if \$libdir does not exist.
18215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18216
18217 # If ld is used when linking, flag to hardcode \$libdir into
18218 # a binary during linking. This must work even if \$libdir does
18219 # not exist.
18220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18221
18222 # Whether we need a single -rpath flag with a separated argument.
18223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18224
18225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18226 # resulting binary.
18227 hardcode_direct=$hardcode_direct_GCJ
18228
18229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18230 # resulting binary.
18231 hardcode_minus_L=$hardcode_minus_L_GCJ
18232
18233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18234 # the resulting binary.
18235 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18236
18237 # Set to yes if building a shared library automatically hardcodes DIR into the library
18238 # and all subsequent libraries and executables linked against it.
18239 hardcode_automatic=$hardcode_automatic_GCJ
18240
18241 # Variables whose values should be saved in libtool wrapper scripts and
18242 # restored at relink time.
18243 variables_saved_for_relink="$variables_saved_for_relink"
18244
18245 # Whether libtool must link a program against all its dependency libraries.
18246 link_all_deplibs=$link_all_deplibs_GCJ
18247
18248 # Compile-time system search path for libraries
18249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18250
18251 # Run-time system search path for libraries
18252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18253
18254 # Fix the shell variable \$srcfile for the compiler.
18255 fix_srcfile_path="$fix_srcfile_path_GCJ"
18256
18257 # Set to yes if exported symbols are required.
18258 always_export_symbols=$always_export_symbols_GCJ
18259
18260 # The commands to list exported symbols.
18261 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18262
18263 # The commands to extract the exported symbol list from a shared archive.
18264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18265
18266 # Symbols that should not be listed in the preloaded symbols.
18267 exclude_expsyms=$lt_exclude_expsyms_GCJ
18268
18269 # Symbols that must always be exported.
18270 include_expsyms=$lt_include_expsyms_GCJ
18271
18272 # ### END LIBTOOL TAG CONFIG: $tagname
18273
18274 __EOF__
18275
18276
18277 else
18278   # If there is no Makefile yet, we rely on a make rule to execute
18279   # `config.status --recheck' to rerun these tests and create the
18280   # libtool script then.
18281   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18282   if test -f "$ltmain_in"; then
18283     test -f Makefile && make "$ltmain"
18284   fi
18285 fi
18286
18287
18288 ac_ext=c
18289 ac_cpp='$CPP $CPPFLAGS'
18290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18293
18294 CC="$lt_save_CC"
18295
18296         else
18297           tagname=""
18298         fi
18299         ;;
18300
18301       RC)
18302
18303
18304 # Source file extension for RC test sources.
18305 ac_ext=rc
18306
18307 # Object file extension for compiled RC test sources.
18308 objext=o
18309 objext_RC=$objext
18310
18311 # Code to be used in simple compile tests
18312 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18313
18314 # Code to be used in simple link tests
18315 lt_simple_link_test_code="$lt_simple_compile_test_code"
18316
18317 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18318
18319 # If no C compiler was specified, use CC.
18320 LTCC=${LTCC-"$CC"}
18321
18322 # If no C compiler flags were specified, use CFLAGS.
18323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18324
18325 # Allow CC to be a program name with arguments.
18326 compiler=$CC
18327
18328
18329 # save warnings/boilerplate of simple test code
18330 ac_outfile=conftest.$ac_objext
18331 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18333 _lt_compiler_boilerplate=`cat conftest.err`
18334 $rm conftest*
18335
18336 ac_outfile=conftest.$ac_objext
18337 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18339 _lt_linker_boilerplate=`cat conftest.err`
18340 $rm conftest*
18341
18342
18343 # Allow CC to be a program name with arguments.
18344 lt_save_CC="$CC"
18345 CC=${RC-"windres"}
18346 compiler=$CC
18347 compiler_RC=$CC
18348 for cc_temp in $compiler""; do
18349   case $cc_temp in
18350     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18351     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18352     \-*) ;;
18353     *) break;;
18354   esac
18355 done
18356 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18357
18358 lt_cv_prog_compiler_c_o_RC=yes
18359
18360 # The else clause should only fire when bootstrapping the
18361 # libtool distribution, otherwise you forgot to ship ltmain.sh
18362 # with your package, and you will get complaints that there are
18363 # no rules to generate ltmain.sh.
18364 if test -f "$ltmain"; then
18365   # See if we are running on zsh, and set the options which allow our commands through
18366   # without removal of \ escapes.
18367   if test -n "${ZSH_VERSION+set}" ; then
18368     setopt NO_GLOB_SUBST
18369   fi
18370   # Now quote all the things that may contain metacharacters while being
18371   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18372   # variables and quote the copies for generation of the libtool script.
18373   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18374     SED SHELL STRIP \
18375     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18376     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18377     deplibs_check_method reload_flag reload_cmds need_locks \
18378     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18379     lt_cv_sys_global_symbol_to_c_name_address \
18380     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18381     old_postinstall_cmds old_postuninstall_cmds \
18382     compiler_RC \
18383     CC_RC \
18384     LD_RC \
18385     lt_prog_compiler_wl_RC \
18386     lt_prog_compiler_pic_RC \
18387     lt_prog_compiler_static_RC \
18388     lt_prog_compiler_no_builtin_flag_RC \
18389     export_dynamic_flag_spec_RC \
18390     thread_safe_flag_spec_RC \
18391     whole_archive_flag_spec_RC \
18392     enable_shared_with_static_runtimes_RC \
18393     old_archive_cmds_RC \
18394     old_archive_from_new_cmds_RC \
18395     predep_objects_RC \
18396     postdep_objects_RC \
18397     predeps_RC \
18398     postdeps_RC \
18399     compiler_lib_search_path_RC \
18400     archive_cmds_RC \
18401     archive_expsym_cmds_RC \
18402     postinstall_cmds_RC \
18403     postuninstall_cmds_RC \
18404     old_archive_from_expsyms_cmds_RC \
18405     allow_undefined_flag_RC \
18406     no_undefined_flag_RC \
18407     export_symbols_cmds_RC \
18408     hardcode_libdir_flag_spec_RC \
18409     hardcode_libdir_flag_spec_ld_RC \
18410     hardcode_libdir_separator_RC \
18411     hardcode_automatic_RC \
18412     module_cmds_RC \
18413     module_expsym_cmds_RC \
18414     lt_cv_prog_compiler_c_o_RC \
18415     exclude_expsyms_RC \
18416     include_expsyms_RC; do
18417
18418     case $var in
18419     old_archive_cmds_RC | \
18420     old_archive_from_new_cmds_RC | \
18421     archive_cmds_RC | \
18422     archive_expsym_cmds_RC | \
18423     module_cmds_RC | \
18424     module_expsym_cmds_RC | \
18425     old_archive_from_expsyms_cmds_RC | \
18426     export_symbols_cmds_RC | \
18427     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18428     postinstall_cmds | postuninstall_cmds | \
18429     old_postinstall_cmds | old_postuninstall_cmds | \
18430     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18431       # Double-quote double-evaled strings.
18432       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18433       ;;
18434     *)
18435       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18436       ;;
18437     esac
18438   done
18439
18440   case $lt_echo in
18441   *'\$0 --fallback-echo"')
18442     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18443     ;;
18444   esac
18445
18446 cfgfile="$ofile"
18447
18448   cat <<__EOF__ >> "$cfgfile"
18449 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18450
18451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18452
18453 # Shell to use when invoking shell scripts.
18454 SHELL=$lt_SHELL
18455
18456 # Whether or not to build shared libraries.
18457 build_libtool_libs=$enable_shared
18458
18459 # Whether or not to build static libraries.
18460 build_old_libs=$enable_static
18461
18462 # Whether or not to add -lc for building shared libraries.
18463 build_libtool_need_lc=$archive_cmds_need_lc_RC
18464
18465 # Whether or not to disallow shared libs when runtime libs are static
18466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18467
18468 # Whether or not to optimize for fast installation.
18469 fast_install=$enable_fast_install
18470
18471 # The host system.
18472 host_alias=$host_alias
18473 host=$host
18474 host_os=$host_os
18475
18476 # The build system.
18477 build_alias=$build_alias
18478 build=$build
18479 build_os=$build_os
18480
18481 # An echo program that does not interpret backslashes.
18482 echo=$lt_echo
18483
18484 # The archiver.
18485 AR=$lt_AR
18486 AR_FLAGS=$lt_AR_FLAGS
18487
18488 # A C compiler.
18489 LTCC=$lt_LTCC
18490
18491 # LTCC compiler flags.
18492 LTCFLAGS=$lt_LTCFLAGS
18493
18494 # A language-specific compiler.
18495 CC=$lt_compiler_RC
18496
18497 # Is the compiler the GNU C compiler?
18498 with_gcc=$GCC_RC
18499
18500 # An ERE matcher.
18501 EGREP=$lt_EGREP
18502
18503 # The linker used to build libraries.
18504 LD=$lt_LD_RC
18505
18506 # Whether we need hard or soft links.
18507 LN_S=$lt_LN_S
18508
18509 # A BSD-compatible nm program.
18510 NM=$lt_NM
18511
18512 # A symbol stripping program
18513 STRIP=$lt_STRIP
18514
18515 # Used to examine libraries when file_magic_cmd begins "file"
18516 MAGIC_CMD=$MAGIC_CMD
18517
18518 # Used on cygwin: DLL creation program.
18519 DLLTOOL="$DLLTOOL"
18520
18521 # Used on cygwin: object dumper.
18522 OBJDUMP="$OBJDUMP"
18523
18524 # Used on cygwin: assembler.
18525 AS="$AS"
18526
18527 # The name of the directory that contains temporary libtool files.
18528 objdir=$objdir
18529
18530 # How to create reloadable object files.
18531 reload_flag=$lt_reload_flag
18532 reload_cmds=$lt_reload_cmds
18533
18534 # How to pass a linker flag through the compiler.
18535 wl=$lt_lt_prog_compiler_wl_RC
18536
18537 # Object file suffix (normally "o").
18538 objext="$ac_objext"
18539
18540 # Old archive suffix (normally "a").
18541 libext="$libext"
18542
18543 # Shared library suffix (normally ".so").
18544 shrext_cmds='$shrext_cmds'
18545
18546 # Executable file suffix (normally "").
18547 exeext="$exeext"
18548
18549 # Additional compiler flags for building library objects.
18550 pic_flag=$lt_lt_prog_compiler_pic_RC
18551 pic_mode=$pic_mode
18552
18553 # What is the maximum length of a command?
18554 max_cmd_len=$lt_cv_sys_max_cmd_len
18555
18556 # Does compiler simultaneously support -c and -o options?
18557 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18558
18559 # Must we lock files when doing compilation?
18560 need_locks=$lt_need_locks
18561
18562 # Do we need the lib prefix for modules?
18563 need_lib_prefix=$need_lib_prefix
18564
18565 # Do we need a version for libraries?
18566 need_version=$need_version
18567
18568 # Whether dlopen is supported.
18569 dlopen_support=$enable_dlopen
18570
18571 # Whether dlopen of programs is supported.
18572 dlopen_self=$enable_dlopen_self
18573
18574 # Whether dlopen of statically linked programs is supported.
18575 dlopen_self_static=$enable_dlopen_self_static
18576
18577 # Compiler flag to prevent dynamic linking.
18578 link_static_flag=$lt_lt_prog_compiler_static_RC
18579
18580 # Compiler flag to turn off builtin functions.
18581 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18582
18583 # Compiler flag to allow reflexive dlopens.
18584 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18585
18586 # Compiler flag to generate shared objects directly from archives.
18587 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18588
18589 # Compiler flag to generate thread-safe objects.
18590 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18591
18592 # Library versioning type.
18593 version_type=$version_type
18594
18595 # Format of library name prefix.
18596 libname_spec=$lt_libname_spec
18597
18598 # List of archive names.  First name is the real one, the rest are links.
18599 # The last name is the one that the linker finds with -lNAME.
18600 library_names_spec=$lt_library_names_spec
18601
18602 # The coded name of the library, if different from the real name.
18603 soname_spec=$lt_soname_spec
18604
18605 # Commands used to build and install an old-style archive.
18606 RANLIB=$lt_RANLIB
18607 old_archive_cmds=$lt_old_archive_cmds_RC
18608 old_postinstall_cmds=$lt_old_postinstall_cmds
18609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18610
18611 # Create an old-style archive from a shared archive.
18612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18613
18614 # Create a temporary old-style archive to link instead of a shared archive.
18615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18616
18617 # Commands used to build and install a shared archive.
18618 archive_cmds=$lt_archive_cmds_RC
18619 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18620 postinstall_cmds=$lt_postinstall_cmds
18621 postuninstall_cmds=$lt_postuninstall_cmds
18622
18623 # Commands used to build a loadable module (assumed same as above if empty)
18624 module_cmds=$lt_module_cmds_RC
18625 module_expsym_cmds=$lt_module_expsym_cmds_RC
18626
18627 # Commands to strip libraries.
18628 old_striplib=$lt_old_striplib
18629 striplib=$lt_striplib
18630
18631 # Dependencies to place before the objects being linked to create a
18632 # shared library.
18633 predep_objects=$lt_predep_objects_RC
18634
18635 # Dependencies to place after the objects being linked to create a
18636 # shared library.
18637 postdep_objects=$lt_postdep_objects_RC
18638
18639 # Dependencies to place before the objects being linked to create a
18640 # shared library.
18641 predeps=$lt_predeps_RC
18642
18643 # Dependencies to place after the objects being linked to create a
18644 # shared library.
18645 postdeps=$lt_postdeps_RC
18646
18647 # The library search path used internally by the compiler when linking
18648 # a shared library.
18649 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18650
18651 # Method to check whether dependent libraries are shared objects.
18652 deplibs_check_method=$lt_deplibs_check_method
18653
18654 # Command to use when deplibs_check_method == file_magic.
18655 file_magic_cmd=$lt_file_magic_cmd
18656
18657 # Flag that allows shared libraries with undefined symbols to be built.
18658 allow_undefined_flag=$lt_allow_undefined_flag_RC
18659
18660 # Flag that forces no undefined symbols.
18661 no_undefined_flag=$lt_no_undefined_flag_RC
18662
18663 # Commands used to finish a libtool library installation in a directory.
18664 finish_cmds=$lt_finish_cmds
18665
18666 # Same as above, but a single script fragment to be evaled but not shown.
18667 finish_eval=$lt_finish_eval
18668
18669 # Take the output of nm and produce a listing of raw symbols and C names.
18670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18671
18672 # Transform the output of nm in a proper C declaration
18673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18674
18675 # Transform the output of nm in a C name address pair
18676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18677
18678 # This is the shared library runtime path variable.
18679 runpath_var=$runpath_var
18680
18681 # This is the shared library path variable.
18682 shlibpath_var=$shlibpath_var
18683
18684 # Is shlibpath searched before the hard-coded library search path?
18685 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18686
18687 # How to hardcode a shared library path into an executable.
18688 hardcode_action=$hardcode_action_RC
18689
18690 # Whether we should hardcode library paths into libraries.
18691 hardcode_into_libs=$hardcode_into_libs
18692
18693 # Flag to hardcode \$libdir into a binary during linking.
18694 # This must work even if \$libdir does not exist.
18695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18696
18697 # If ld is used when linking, flag to hardcode \$libdir into
18698 # a binary during linking. This must work even if \$libdir does
18699 # not exist.
18700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18701
18702 # Whether we need a single -rpath flag with a separated argument.
18703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18704
18705 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18706 # resulting binary.
18707 hardcode_direct=$hardcode_direct_RC
18708
18709 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18710 # resulting binary.
18711 hardcode_minus_L=$hardcode_minus_L_RC
18712
18713 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18714 # the resulting binary.
18715 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18716
18717 # Set to yes if building a shared library automatically hardcodes DIR into the library
18718 # and all subsequent libraries and executables linked against it.
18719 hardcode_automatic=$hardcode_automatic_RC
18720
18721 # Variables whose values should be saved in libtool wrapper scripts and
18722 # restored at relink time.
18723 variables_saved_for_relink="$variables_saved_for_relink"
18724
18725 # Whether libtool must link a program against all its dependency libraries.
18726 link_all_deplibs=$link_all_deplibs_RC
18727
18728 # Compile-time system search path for libraries
18729 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18730
18731 # Run-time system search path for libraries
18732 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18733
18734 # Fix the shell variable \$srcfile for the compiler.
18735 fix_srcfile_path="$fix_srcfile_path_RC"
18736
18737 # Set to yes if exported symbols are required.
18738 always_export_symbols=$always_export_symbols_RC
18739
18740 # The commands to list exported symbols.
18741 export_symbols_cmds=$lt_export_symbols_cmds_RC
18742
18743 # The commands to extract the exported symbol list from a shared archive.
18744 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18745
18746 # Symbols that should not be listed in the preloaded symbols.
18747 exclude_expsyms=$lt_exclude_expsyms_RC
18748
18749 # Symbols that must always be exported.
18750 include_expsyms=$lt_include_expsyms_RC
18751
18752 # ### END LIBTOOL TAG CONFIG: $tagname
18753
18754 __EOF__
18755
18756
18757 else
18758   # If there is no Makefile yet, we rely on a make rule to execute
18759   # `config.status --recheck' to rerun these tests and create the
18760   # libtool script then.
18761   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18762   if test -f "$ltmain_in"; then
18763     test -f Makefile && make "$ltmain"
18764   fi
18765 fi
18766
18767
18768 ac_ext=c
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18773
18774 CC="$lt_save_CC"
18775
18776         ;;
18777
18778       *)
18779         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18780         ;;
18781       esac
18782
18783       # Append the new tag name to the list of available tags.
18784       if test -n "$tagname" ; then
18785       available_tags="$available_tags $tagname"
18786     fi
18787     fi
18788   done
18789   IFS="$lt_save_ifs"
18790
18791   # Now substitute the updated list of available tags.
18792   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18793     mv "${ofile}T" "$ofile"
18794     chmod +x "$ofile"
18795   else
18796     rm -f "${ofile}T"
18797     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18798   fi
18799 fi
18800
18801
18802
18803 # This can be used to rebuild libtool when needed
18804 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18805
18806 # Always use our own libtool.
18807 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18808
18809 # Prevent multiple expansion
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18833 set x ${MAKE-make}
18834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
18836   $as_echo_n "(cached) " >&6
18837 else
18838   cat >conftest.make <<\_ACEOF
18839 SHELL = /bin/sh
18840 all:
18841         @echo '@@@%%%=$(MAKE)=@@@%%%'
18842 _ACEOF
18843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18845   *@@@%%%=?*=@@@%%%*)
18846     eval ac_cv_prog_make_${ac_make}_set=yes;;
18847   *)
18848     eval ac_cv_prog_make_${ac_make}_set=no;;
18849 esac
18850 rm -f conftest.make
18851 fi
18852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18854 $as_echo "yes" >&6; }
18855   SET_MAKE=
18856 else
18857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858 $as_echo "no" >&6; }
18859   SET_MAKE="MAKE=${MAKE-make}"
18860 fi
18861
18862
18863 ac_ext=cpp
18864 ac_cpp='$CXXCPP $CPPFLAGS'
18865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18868 if test -z "$CXX"; then
18869   if test -n "$CCC"; then
18870     CXX=$CCC
18871   else
18872     if test -n "$ac_tool_prefix"; then
18873   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
18874   do
18875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18878 $as_echo_n "checking for $ac_word... " >&6; }
18879 if ${ac_cv_prog_CXX+:} false; then :
18880   $as_echo_n "(cached) " >&6
18881 else
18882   if test -n "$CXX"; then
18883   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18884 else
18885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18887 do
18888   IFS=$as_save_IFS
18889   test -z "$as_dir" && as_dir=.
18890     for ac_exec_ext in '' $ac_executable_extensions; do
18891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18894     break 2
18895   fi
18896 done
18897   done
18898 IFS=$as_save_IFS
18899
18900 fi
18901 fi
18902 CXX=$ac_cv_prog_CXX
18903 if test -n "$CXX"; then
18904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
18905 $as_echo "$CXX" >&6; }
18906 else
18907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 $as_echo "no" >&6; }
18909 fi
18910
18911
18912     test -n "$CXX" && break
18913   done
18914 fi
18915 if test -z "$CXX"; then
18916   ac_ct_CXX=$CXX
18917   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
18918 do
18919   # Extract the first word of "$ac_prog", so it can be a program name with args.
18920 set dummy $ac_prog; ac_word=$2
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18922 $as_echo_n "checking for $ac_word... " >&6; }
18923 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
18924   $as_echo_n "(cached) " >&6
18925 else
18926   if test -n "$ac_ct_CXX"; then
18927   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18928 else
18929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930 for as_dir in $PATH
18931 do
18932   IFS=$as_save_IFS
18933   test -z "$as_dir" && as_dir=.
18934     for ac_exec_ext in '' $ac_executable_extensions; do
18935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18936     ac_cv_prog_ac_ct_CXX="$ac_prog"
18937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18938     break 2
18939   fi
18940 done
18941   done
18942 IFS=$as_save_IFS
18943
18944 fi
18945 fi
18946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18947 if test -n "$ac_ct_CXX"; then
18948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
18949 $as_echo "$ac_ct_CXX" >&6; }
18950 else
18951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18952 $as_echo "no" >&6; }
18953 fi
18954
18955
18956   test -n "$ac_ct_CXX" && break
18957 done
18958
18959   if test "x$ac_ct_CXX" = x; then
18960     CXX="g++"
18961   else
18962     case $cross_compiling:$ac_tool_warned in
18963 yes:)
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18966 ac_tool_warned=yes ;;
18967 esac
18968     CXX=$ac_ct_CXX
18969   fi
18970 fi
18971
18972   fi
18973 fi
18974 # Provide some information about the compiler.
18975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
18976 set X $ac_compile
18977 ac_compiler=$2
18978 for ac_option in --version -v -V -qversion; do
18979   { { ac_try="$ac_compiler $ac_option >&5"
18980 case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18985 $as_echo "$ac_try_echo"; } >&5
18986   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18987   ac_status=$?
18988   if test -s conftest.err; then
18989     sed '10a\
18990 ... rest of stderr output deleted ...
18991          10q' conftest.err >conftest.er1
18992     cat conftest.er1 >&5
18993   fi
18994   rm -f conftest.er1 conftest.err
18995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996   test $ac_status = 0; }
18997 done
18998
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
19000 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
19001 if ${ac_cv_cxx_compiler_gnu+:} false; then :
19002   $as_echo_n "(cached) " >&6
19003 else
19004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h.  */
19006
19007 int
19008 main ()
19009 {
19010 #ifndef __GNUC__
19011        choke me
19012 #endif
19013
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 if ac_fn_cxx_try_compile "$LINENO"; then :
19019   ac_compiler_gnu=yes
19020 else
19021   ac_compiler_gnu=no
19022 fi
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19025
19026 fi
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
19028 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
19029 if test $ac_compiler_gnu = yes; then
19030   GXX=yes
19031 else
19032   GXX=
19033 fi
19034 ac_test_CXXFLAGS=${CXXFLAGS+set}
19035 ac_save_CXXFLAGS=$CXXFLAGS
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
19037 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
19038 if ${ac_cv_prog_cxx_g+:} false; then :
19039   $as_echo_n "(cached) " >&6
19040 else
19041   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19042    ac_cxx_werror_flag=yes
19043    ac_cv_prog_cxx_g=no
19044    CXXFLAGS="-g"
19045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h.  */
19047
19048 int
19049 main ()
19050 {
19051
19052   ;
19053   return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_cxx_try_compile "$LINENO"; then :
19057   ac_cv_prog_cxx_g=yes
19058 else
19059   CXXFLAGS=""
19060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h.  */
19062
19063 int
19064 main ()
19065 {
19066
19067   ;
19068   return 0;
19069 }
19070 _ACEOF
19071 if ac_fn_cxx_try_compile "$LINENO"; then :
19072
19073 else
19074   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19075          CXXFLAGS="-g"
19076          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h.  */
19078
19079 int
19080 main ()
19081 {
19082
19083   ;
19084   return 0;
19085 }
19086 _ACEOF
19087 if ac_fn_cxx_try_compile "$LINENO"; then :
19088   ac_cv_prog_cxx_g=yes
19089 fi
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19091 fi
19092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093 fi
19094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19096 fi
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
19098 $as_echo "$ac_cv_prog_cxx_g" >&6; }
19099 if test "$ac_test_CXXFLAGS" = set; then
19100   CXXFLAGS=$ac_save_CXXFLAGS
19101 elif test $ac_cv_prog_cxx_g = yes; then
19102   if test "$GXX" = yes; then
19103     CXXFLAGS="-g -O2"
19104   else
19105     CXXFLAGS="-g"
19106   fi
19107 else
19108   if test "$GXX" = yes; then
19109     CXXFLAGS="-O2"
19110   else
19111     CXXFLAGS=
19112   fi
19113 fi
19114 ac_ext=c
19115 ac_cpp='$CPP $CPPFLAGS'
19116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19119
19120 depcc="$CXX"  am_compiler_list=
19121
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19123 $as_echo_n "checking dependency style of $depcc... " >&6; }
19124 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
19125   $as_echo_n "(cached) " >&6
19126 else
19127   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19128   # We make a subdir and do the tests there.  Otherwise we can end up
19129   # making bogus files that we don't know about and never remove.  For
19130   # instance it was reported that on HP-UX the gcc test will end up
19131   # making a dummy file named `D' -- because `-MD' means `put the output
19132   # in D'.
19133   mkdir conftest.dir
19134   # Copy depcomp to subdir because otherwise we won't find it if we're
19135   # using a relative directory.
19136   cp "$am_depcomp" conftest.dir
19137   cd conftest.dir
19138   # We will build objects and dependencies in a subdirectory because
19139   # it helps to detect inapplicable dependency modes.  For instance
19140   # both Tru64's cc and ICC support -MD to output dependencies as a
19141   # side effect of compilation, but ICC will put the dependencies in
19142   # the current directory while Tru64 will put them in the object
19143   # directory.
19144   mkdir sub
19145
19146   am_cv_CXX_dependencies_compiler_type=none
19147   if test "$am_compiler_list" = ""; then
19148      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19149   fi
19150   for depmode in $am_compiler_list; do
19151     # Setup a source with many dependencies, because some compilers
19152     # like to wrap large dependency lists on column 80 (with \), and
19153     # we should not choose a depcomp mode which is confused by this.
19154     #
19155     # We need to recreate these files for each test, as the compiler may
19156     # overwrite some of them when testing with obscure command lines.
19157     # This happens at least with the AIX C compiler.
19158     : > sub/conftest.c
19159     for i in 1 2 3 4 5 6; do
19160       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19161       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19162       # Solaris 8's {/usr,}/bin/sh.
19163       touch sub/conftst$i.h
19164     done
19165     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19166
19167     case $depmode in
19168     nosideeffect)
19169       # after this tag, mechanisms are not by side-effect, so they'll
19170       # only be used when explicitly requested
19171       if test "x$enable_dependency_tracking" = xyes; then
19172         continue
19173       else
19174         break
19175       fi
19176       ;;
19177     none) break ;;
19178     esac
19179     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19180     # mode.  It turns out that the SunPro C++ compiler does not properly
19181     # handle `-M -o', and we need to detect this.
19182     if depmode=$depmode \
19183        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19184        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19185        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19186          >/dev/null 2>conftest.err &&
19187        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19188        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19189        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19190       # icc doesn't choke on unknown options, it will just issue warnings
19191       # or remarks (even with -Werror).  So we grep stderr for any message
19192       # that says an option was ignored or not supported.
19193       # When given -MP, icc 7.0 and 7.1 complain thusly:
19194       #   icc: Command line warning: ignoring option '-M'; no argument required
19195       # The diagnosis changed in icc 8.0:
19196       #   icc: Command line remark: option '-MP' not supported
19197       if (grep 'ignoring option' conftest.err ||
19198           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19199         am_cv_CXX_dependencies_compiler_type=$depmode
19200         break
19201       fi
19202     fi
19203   done
19204
19205   cd ..
19206   rm -rf conftest.dir
19207 else
19208   am_cv_CXX_dependencies_compiler_type=none
19209 fi
19210
19211 fi
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
19213 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
19214 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19215
19216
19217
19218 if
19219   test "x$enable_dependency_tracking" != xno \
19220   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19221   am__fastdepCXX_TRUE=
19222   am__fastdepCXX_FALSE='#'
19223 else
19224   am__fastdepCXX_TRUE='#'
19225   am__fastdepCXX_FALSE=
19226 fi
19227
19228
19229
19230 ac_ext=cpp
19231 ac_cpp='$CXXCPP $CPPFLAGS'
19232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19236 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19237 if test -z "$CXXCPP"; then
19238   if ${ac_cv_prog_CXXCPP+:} false; then :
19239   $as_echo_n "(cached) " >&6
19240 else
19241       # Double quotes because CXXCPP needs to be expanded
19242     for CXXCPP in "$CXX -E" "/lib/cpp"
19243     do
19244       ac_preproc_ok=false
19245 for ac_cxx_preproc_warn_flag in '' yes
19246 do
19247   # Use a header file that comes with gcc, so configuring glibc
19248   # with a fresh cross-compiler works.
19249   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19250   # <limits.h> exists even on freestanding compilers.
19251   # On the NeXT, cc -E runs the code through the compiler's parser,
19252   # not just through cpp. "Syntax error" is here to catch this case.
19253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h.  */
19255 #ifdef __STDC__
19256 # include <limits.h>
19257 #else
19258 # include <assert.h>
19259 #endif
19260                      Syntax error
19261 _ACEOF
19262 if ac_fn_cxx_try_cpp "$LINENO"; then :
19263
19264 else
19265   # Broken: fails on valid input.
19266 continue
19267 fi
19268 rm -f conftest.err conftest.i conftest.$ac_ext
19269
19270   # OK, works on sane cases.  Now check whether nonexistent headers
19271   # can be detected and how.
19272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h.  */
19274 #include <ac_nonexistent.h>
19275 _ACEOF
19276 if ac_fn_cxx_try_cpp "$LINENO"; then :
19277   # Broken: success on invalid input.
19278 continue
19279 else
19280   # Passes both tests.
19281 ac_preproc_ok=:
19282 break
19283 fi
19284 rm -f conftest.err conftest.i conftest.$ac_ext
19285
19286 done
19287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19288 rm -f conftest.i conftest.err conftest.$ac_ext
19289 if $ac_preproc_ok; then :
19290   break
19291 fi
19292
19293     done
19294     ac_cv_prog_CXXCPP=$CXXCPP
19295
19296 fi
19297   CXXCPP=$ac_cv_prog_CXXCPP
19298 else
19299   ac_cv_prog_CXXCPP=$CXXCPP
19300 fi
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19302 $as_echo "$CXXCPP" >&6; }
19303 ac_preproc_ok=false
19304 for ac_cxx_preproc_warn_flag in '' yes
19305 do
19306   # Use a header file that comes with gcc, so configuring glibc
19307   # with a fresh cross-compiler works.
19308   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309   # <limits.h> exists even on freestanding compilers.
19310   # On the NeXT, cc -E runs the code through the compiler's parser,
19311   # not just through cpp. "Syntax error" is here to catch this case.
19312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h.  */
19314 #ifdef __STDC__
19315 # include <limits.h>
19316 #else
19317 # include <assert.h>
19318 #endif
19319                      Syntax error
19320 _ACEOF
19321 if ac_fn_cxx_try_cpp "$LINENO"; then :
19322
19323 else
19324   # Broken: fails on valid input.
19325 continue
19326 fi
19327 rm -f conftest.err conftest.i conftest.$ac_ext
19328
19329   # OK, works on sane cases.  Now check whether nonexistent headers
19330   # can be detected and how.
19331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332 /* end confdefs.h.  */
19333 #include <ac_nonexistent.h>
19334 _ACEOF
19335 if ac_fn_cxx_try_cpp "$LINENO"; then :
19336   # Broken: success on invalid input.
19337 continue
19338 else
19339   # Passes both tests.
19340 ac_preproc_ok=:
19341 break
19342 fi
19343 rm -f conftest.err conftest.i conftest.$ac_ext
19344
19345 done
19346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19347 rm -f conftest.i conftest.err conftest.$ac_ext
19348 if $ac_preproc_ok; then :
19349
19350 else
19351   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19353 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19354 See \`config.log' for more details" "$LINENO" 5; }
19355 fi
19356
19357 ac_ext=c
19358 ac_cpp='$CPP $CPPFLAGS'
19359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19362
19363 ac_ext=cpp
19364 ac_cpp='$CXXCPP $CPPFLAGS'
19365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19368
19369
19370 # CXX fine tuning
19371 case "$host" in
19372     *-dec-osf*)
19373         CXXFLAGS="$CXXFLAGS -std strict_ansi_errors"
19374         ;;
19375     *)
19376         ;;
19377 esac
19378
19379 # Doxygen
19380
19381 # Check whether --enable-doxygen was given.
19382 if test "${enable_doxygen+set}" = set; then :
19383   enableval=$enable_doxygen;
19384 fi
19385
19386
19387 # Check whether --enable-dot was given.
19388 if test "${enable_dot+set}" = set; then :
19389   enableval=$enable_dot;
19390 fi
19391
19392
19393 # Check whether --enable-html-docs was given.
19394 if test "${enable_html_docs+set}" = set; then :
19395   enableval=$enable_html_docs;
19396 else
19397   enable_html_docs=yes
19398 fi
19399
19400
19401 # Check whether --enable-latex-docs was given.
19402 if test "${enable_latex_docs+set}" = set; then :
19403   enableval=$enable_latex_docs;
19404 else
19405   enable_latex_docs=no
19406 fi
19407
19408
19409 if test "x$enable_doxygen" = xno; then
19410         enable_doc=no
19411 else
19412         # Extract the first word of "doxygen", so it can be a program name with args.
19413 set dummy doxygen; ac_word=$2
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19415 $as_echo_n "checking for $ac_word... " >&6; }
19416 if ${ac_cv_path_DOXYGEN+:} false; then :
19417   $as_echo_n "(cached) " >&6
19418 else
19419   case $DOXYGEN in
19420   [\\/]* | ?:[\\/]*)
19421   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19422   ;;
19423   *)
19424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19425 for as_dir in $PATH
19426 do
19427   IFS=$as_save_IFS
19428   test -z "$as_dir" && as_dir=.
19429     for ac_exec_ext in '' $ac_executable_extensions; do
19430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19431     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19433     break 2
19434   fi
19435 done
19436   done
19437 IFS=$as_save_IFS
19438
19439   ;;
19440 esac
19441 fi
19442 DOXYGEN=$ac_cv_path_DOXYGEN
19443 if test -n "$DOXYGEN"; then
19444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19445 $as_echo "$DOXYGEN" >&6; }
19446 else
19447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448 $as_echo "no" >&6; }
19449 fi
19450
19451
19452         if test "x$DOXYGEN" = x; then
19453                         if test "x$enable_doxygen" = xyes; then
19454                                         as_fn_error $? "could not find doxygen" "$LINENO" 5
19455                         fi
19456                         enable_doc=no
19457         else
19458                         enable_doc=yes
19459                         # Extract the first word of "dot", so it can be a program name with args.
19460 set dummy dot; ac_word=$2
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19462 $as_echo_n "checking for $ac_word... " >&6; }
19463 if ${ac_cv_path_DOT+:} false; then :
19464   $as_echo_n "(cached) " >&6
19465 else
19466   case $DOT in
19467   [\\/]* | ?:[\\/]*)
19468   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19469   ;;
19470   *)
19471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19472 for as_dir in $PATH
19473 do
19474   IFS=$as_save_IFS
19475   test -z "$as_dir" && as_dir=.
19476     for ac_exec_ext in '' $ac_executable_extensions; do
19477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19478     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19480     break 2
19481   fi
19482 done
19483   done
19484 IFS=$as_save_IFS
19485
19486   ;;
19487 esac
19488 fi
19489 DOT=$ac_cv_path_DOT
19490 if test -n "$DOT"; then
19491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19492 $as_echo "$DOT" >&6; }
19493 else
19494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495 $as_echo "no" >&6; }
19496 fi
19497
19498
19499         fi
19500 fi
19501
19502
19503 if test x$enable_doc = xyes; then
19504   DOC_TRUE=
19505   DOC_FALSE='#'
19506 else
19507   DOC_TRUE='#'
19508   DOC_FALSE=
19509 fi
19510
19511
19512
19513 if test x$enable_latex_docs = xyes; then
19514   LATEX_DOC_TRUE=
19515   LATEX_DOC_FALSE='#'
19516 else
19517   LATEX_DOC_TRUE='#'
19518   LATEX_DOC_FALSE=
19519 fi
19520
19521
19522 if test x$DOT = x; then
19523         if test "x$enable_dot" = xyes; then
19524                 as_fn_error $? "could not find dot" "$LINENO" 5
19525         fi
19526         enable_dot=no
19527 else
19528         enable_dot=yes
19529 fi
19530
19531 manual_dest="manual"
19532 base_dir=`(cd $srcdir && pwd)`
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543 # Checks header files
19544 # ----------------------------------------------------------------------------
19545
19546   apr_found="no"
19547
19548   if test "$target_os" = "os2-emx"; then
19549     # Scripts don't pass test -x on OS/2
19550     TEST_X="test -f"
19551   else
19552     TEST_X="test -x"
19553   fi
19554
19555   acceptable_majors="1"
19556
19557   apr_temp_acceptable_apr_config=""
19558   for apr_temp_major in $acceptable_majors
19559   do
19560     case $apr_temp_major in
19561       0)
19562       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19563       ;;
19564       *)
19565       apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19566       ;;
19567     esac
19568   done
19569
19570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19571 $as_echo_n "checking for APR... " >&6; }
19572
19573 # Check whether --with-apr was given.
19574 if test "${with_apr+set}" = set; then :
19575   withval=$with_apr;
19576     if test "$withval" = "no" || test "$withval" = "yes"; then
19577       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19578     fi
19579
19580     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19581     do
19582       for lookdir in "$withval/bin" "$withval"
19583       do
19584         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19585           apr_config="$lookdir/$apr_temp_apr_config_file"
19586
19587           apr_found="yes"
19588           break 2
19589         fi
19590       done
19591     done
19592
19593     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19594       apr_config="$withval"
19595       apr_found="yes"
19596     fi
19597
19598             if test "$apr_found" != "yes"; then
19599       as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
19600     fi
19601
19602 else
19603
19604         if test -n "1" && test "1" = "1"; then
19605       for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19606       do
19607         if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19608           apr_config="$apr_temp_apr_config_file"
19609
19610           apr_found="yes"
19611           break
19612         else
19613                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19614             if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19615               apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19616
19617               apr_found="yes"
19618               break 2
19619             fi
19620           done
19621         fi
19622       done
19623     fi
19624         if test "$apr_found" = "no" && test -d ""; then
19625       apr_temp_abs_srcdir="`cd  && pwd`"
19626       apr_found="reconfig"
19627       apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19628       case $apr_bundled_major in
19629         "")
19630           as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19631         ;;
19632         0)
19633           apr_temp_apr_config_file="apr-config"
19634         ;;
19635         *)
19636           apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19637         ;;
19638       esac
19639       if test -n ""; then
19640         apr_config="/$apr_temp_apr_config_file"
19641       else
19642         apr_config="/$apr_temp_apr_config_file"
19643       fi
19644     fi
19645
19646 fi
19647
19648
19649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19650 $as_echo "$apr_found" >&6; }
19651
19652 if test "$apr_found" = "no"; then
19653   as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5
19654 fi
19655
19656 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags` `$apr_config --includes`"
19657 APR_LIBS="`$apr_config --link-ld --libs`"
19658
19659 LDFLAGS="$LDFLAGS $APR_LIBS"
19660
19661
19662   apu_found="no"
19663
19664   if test "$target_os" = "os2-emx"; then
19665     # Scripts don't pass test -x on OS/2
19666     TEST_X="test -f"
19667   else
19668     TEST_X="test -x"
19669   fi
19670
19671   acceptable_majors="1"
19672
19673   apu_temp_acceptable_apu_config=""
19674   for apu_temp_major in $acceptable_majors
19675   do
19676     case $apu_temp_major in
19677       0)
19678       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
19679       ;;
19680       *)
19681       apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
19682       ;;
19683     esac
19684   done
19685
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
19687 $as_echo_n "checking for APR-util... " >&6; }
19688
19689 # Check whether --with-apr-util was given.
19690 if test "${with_apr_util+set}" = set; then :
19691   withval=$with_apr_util;
19692     if test "$withval" = "no" || test "$withval" = "yes"; then
19693       as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
19694     fi
19695
19696     for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
19697     do
19698       for lookdir in "$withval/bin" "$withval"
19699       do
19700         if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
19701           apu_config="$lookdir/$apu_temp_apu_config_file"
19702
19703           apu_found="yes"
19704           break 2
19705         fi
19706       done
19707     done
19708
19709     if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19710       apu_config="$withval"
19711       apu_found="yes"
19712     fi
19713
19714             if test "$apu_found" != "yes"; then
19715       as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
19716     fi
19717
19718 else
19719
19720     if test -n "1" && test "1" = "1"; then
19721       for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
19722       do
19723         if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
19724           apu_config="$apu_temp_apu_config_file"
19725
19726           apu_found="yes"
19727           break
19728         else
19729                     for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19730             if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
19731               apu_config="$lookdir/bin/$apu_temp_apu_config_file"
19732
19733               apu_found="yes"
19734               break 2
19735             fi
19736           done
19737         fi
19738       done
19739     fi
19740         if test "$apu_found" = "no" && test -d ""; then
19741       apu_temp_abs_srcdir="`cd  && pwd`"
19742       apu_found="reconfig"
19743       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apu_version.h\"`"
19744       case $apu_bundled_major in
19745         "")
19746           as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
19747         ;;
19748         0)
19749           apu_temp_apu_config_file="apu-config"
19750         ;;
19751         *)
19752           apu_temp_apu_config_file="apu-$apu_bundled_major-config"
19753         ;;
19754       esac
19755       if test -n ""; then
19756         apu_config="/$apu_temp_apu_config_file"
19757       else
19758         apu_config="/$apu_temp_apu_config_file"
19759       fi
19760     fi
19761
19762 fi
19763
19764
19765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
19766 $as_echo "$apu_found" >&6; }
19767
19768 if test "$apu_found" = "no"; then
19769  as_fn_error $? "APR-util could not be located. Please use the --with-apr-util option." "$LINENO" 5
19770 fi
19771
19772 CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
19773 APU_LIBS="`$apu_config --link-ld --libs`"
19774
19775 LDFLAGS="$LDFLAGS $APU_LIBS"
19776
19777 # Checks local idioms
19778 # ----------------------------------------------------------------------------
19779
19780 # for local syslog() function for SyslogAppender
19781 for ac_func in mbsrtowcs
19782 do :
19783   ac_fn_cxx_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
19784 if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
19785   cat >>confdefs.h <<_ACEOF
19786 #define HAVE_MBSRTOWCS 1
19787 _ACEOF
19788  have_mbsrtowcs=yes
19789 else
19790   have_mbsrtowcs=no
19791 fi
19792 done
19793
19794 if test "$have_mbsrtowcs" = "yes"
19795 then
19796  HAS_MBSRTOWCS=1
19797
19798 else
19799  HAS_MBSRTOWCS=0
19800
19801 fi
19802
19803 for ac_func in wcstombs
19804 do :
19805   ac_fn_cxx_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs"
19806 if test "x$ac_cv_func_wcstombs" = xyes; then :
19807   cat >>confdefs.h <<_ACEOF
19808 #define HAVE_WCSTOMBS 1
19809 _ACEOF
19810  have_wcstombs=yes
19811 else
19812   have_wcstombs=no
19813 fi
19814 done
19815
19816 if test "$have_wcstombs" = "yes"
19817 then
19818  HAS_WCSTOMBS=1
19819
19820 else
19821  HAS_WCSTOMBS=0
19822
19823 fi
19824
19825 # for local syslog() function for SyslogAppender
19826 for ac_func in syslog
19827 do :
19828   ac_fn_cxx_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
19829 if test "x$ac_cv_func_syslog" = xyes; then :
19830   cat >>confdefs.h <<_ACEOF
19831 #define HAVE_SYSLOG 1
19832 _ACEOF
19833  have_syslog=yes
19834 else
19835   have_syslog=no
19836 fi
19837 done
19838
19839 if test "$have_syslog" = "yes"
19840 then
19841  HAS_SYSLOG=1
19842
19843 else
19844  HAS_SYSLOG=0
19845
19846 fi
19847
19848
19849 ac_fn_cxx_check_header_mongrel "$LINENO" "locale" "ac_cv_header_locale" "$ac_includes_default"
19850 if test "x$ac_cv_header_locale" = xyes; then :
19851   have_locale=yes
19852 else
19853   have_locale=no
19854 fi
19855
19856
19857 if test "$have_locale" = "yes"
19858 then
19859  HAS_STD_LOCALE=1
19860
19861 else
19862  HAS_STD_LOCALE=0
19863
19864 fi
19865
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19867 $as_echo_n "checking for wchar_t... " >&6; }
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h.  */
19870
19871                    #include <string>
19872                    std::wstring w;
19873 _ACEOF
19874 if ac_fn_cxx_try_compile "$LINENO"; then :
19875   have_wchar_t=yes
19876 else
19877   have_wchar_t=no
19878 fi
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wchar_t" >&5
19881 $as_echo "$have_wchar_t" >&6; }
19882 if test "$have_wchar_t" = "yes"
19883 then
19884  HAS_WCHAR_T=1
19885
19886 else
19887  HAS_WCHAR_T=0
19888
19889 fi
19890
19891 for ac_func in fwide
19892 do :
19893   ac_fn_cxx_check_func "$LINENO" "fwide" "ac_cv_func_fwide"
19894 if test "x$ac_cv_func_fwide" = xyes; then :
19895   cat >>confdefs.h <<_ACEOF
19896 #define HAVE_FWIDE 1
19897 _ACEOF
19898  have_fwide=yes
19899 else
19900   have_fwide=no
19901 fi
19902 done
19903
19904 if test "$have_fwide" = "yes"
19905 then
19906  HAS_FWIDE=1
19907
19908 else
19909  HAS_FWIDE=0
19910
19911 fi
19912
19913
19914 # Checks for libraries
19915 # ----------------------------------------------------------------------------
19916
19917 if test -n "$ac_tool_prefix"; then
19918   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19921 $as_echo_n "checking for $ac_word... " >&6; }
19922 if ${ac_cv_prog_RANLIB+:} false; then :
19923   $as_echo_n "(cached) " >&6
19924 else
19925   if test -n "$RANLIB"; then
19926   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19927 else
19928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19929 for as_dir in $PATH
19930 do
19931   IFS=$as_save_IFS
19932   test -z "$as_dir" && as_dir=.
19933     for ac_exec_ext in '' $ac_executable_extensions; do
19934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19935     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19937     break 2
19938   fi
19939 done
19940   done
19941 IFS=$as_save_IFS
19942
19943 fi
19944 fi
19945 RANLIB=$ac_cv_prog_RANLIB
19946 if test -n "$RANLIB"; then
19947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19948 $as_echo "$RANLIB" >&6; }
19949 else
19950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19951 $as_echo "no" >&6; }
19952 fi
19953
19954
19955 fi
19956 if test -z "$ac_cv_prog_RANLIB"; then
19957   ac_ct_RANLIB=$RANLIB
19958   # Extract the first word of "ranlib", so it can be a program name with args.
19959 set dummy ranlib; ac_word=$2
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19961 $as_echo_n "checking for $ac_word... " >&6; }
19962 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19963   $as_echo_n "(cached) " >&6
19964 else
19965   if test -n "$ac_ct_RANLIB"; then
19966   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19967 else
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19970 do
19971   IFS=$as_save_IFS
19972   test -z "$as_dir" && as_dir=.
19973     for ac_exec_ext in '' $ac_executable_extensions; do
19974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19975     ac_cv_prog_ac_ct_RANLIB="ranlib"
19976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19977     break 2
19978   fi
19979 done
19980   done
19981 IFS=$as_save_IFS
19982
19983 fi
19984 fi
19985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19986 if test -n "$ac_ct_RANLIB"; then
19987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19988 $as_echo "$ac_ct_RANLIB" >&6; }
19989 else
19990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991 $as_echo "no" >&6; }
19992 fi
19993
19994   if test "x$ac_ct_RANLIB" = x; then
19995     RANLIB=":"
19996   else
19997     case $cross_compiling:$ac_tool_warned in
19998 yes:)
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20001 ac_tool_warned=yes ;;
20002 esac
20003     RANLIB=$ac_ct_RANLIB
20004   fi
20005 else
20006   RANLIB="$ac_cv_prog_RANLIB"
20007 fi
20008
20009
20010
20011 #for ODBCAppender
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC support" >&5
20013 $as_echo_n "checking for ODBC support... " >&6; }
20014
20015 # Check whether --with-ODBC was given.
20016 if test "${with_ODBC+set}" = set; then :
20017   withval=$with_ODBC; ac_with_odbc=$withval
20018 else
20019   ac_with_odbc=no
20020 fi
20021
20022 case "$ac_with_odbc" in
20023     Microsoft)
20024         HAS_ODBC=1
20025
20026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Microsoft" >&5
20027 $as_echo "Microsoft" >&6; }
20028         LIBS_ODBC="-lodbc32"
20029         ;;
20030     unixODBC)
20031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unixODBC" >&5
20032 $as_echo "unixODBC" >&6; }
20033         ac_fn_cxx_check_header_mongrel "$LINENO" "sqlext.h" "ac_cv_header_sqlext_h" "$ac_includes_default"
20034 if test "x$ac_cv_header_sqlext_h" = xyes; then :
20035
20036 else
20037   as_fn_error $? "unixODBC not found !" "$LINENO" 5
20038 fi
20039
20040
20041         HAS_ODBC=1
20042
20043         LIBS_ODBC="-lodbc"
20044         ;;
20045     iODBC)
20046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: iODBC" >&5
20047 $as_echo "iODBC" >&6; }
20048         # Extract the first word of "iodbc-config", so it can be a program name with args.
20049 set dummy iodbc-config; ac_word=$2
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20051 $as_echo_n "checking for $ac_word... " >&6; }
20052 if ${ac_cv_prog_IODBC_CONFIG+:} false; then :
20053   $as_echo_n "(cached) " >&6
20054 else
20055   if test -n "$IODBC_CONFIG"; then
20056   ac_cv_prog_IODBC_CONFIG="$IODBC_CONFIG" # Let the user override the test.
20057 else
20058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20059 for as_dir in $PATH
20060 do
20061   IFS=$as_save_IFS
20062   test -z "$as_dir" && as_dir=.
20063     for ac_exec_ext in '' $ac_executable_extensions; do
20064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20065     ac_cv_prog_IODBC_CONFIG="yes"
20066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20067     break 2
20068   fi
20069 done
20070   done
20071 IFS=$as_save_IFS
20072
20073   test -z "$ac_cv_prog_IODBC_CONFIG" && ac_cv_prog_IODBC_CONFIG="no"
20074 fi
20075 fi
20076 IODBC_CONFIG=$ac_cv_prog_IODBC_CONFIG
20077 if test -n "$IODBC_CONFIG"; then
20078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IODBC_CONFIG" >&5
20079 $as_echo "$IODBC_CONFIG" >&6; }
20080 else
20081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082 $as_echo "no" >&6; }
20083 fi
20084
20085
20086         if test "x$IODBC_CONFIG" = "xyes"
20087         then
20088                 HAS_ODBC=1
20089
20090                 LIBS_ODBC="`iodbc-config --libs`"
20091                 CPPFLAGS_ODBC="`iodbc-config --cflags`"
20092         else
20093                 as_fn_error $? "iODBC not found !" "$LINENO" 5
20094         fi
20095         ;;
20096         no)
20097         HAS_ODBC=0
20098
20099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100 $as_echo "no" >&6; }
20101         ;;
20102     *)
20103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20104 $as_echo "???" >&6; }
20105         as_fn_error $? "Unknown option : $ac_with_odbc" "$LINENO" 5
20106         ;;
20107 esac
20108
20109
20110
20111
20112 #for SMTPAppender
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMTP support" >&5
20114 $as_echo_n "checking for SMTP support... " >&6; }
20115
20116 # Check whether --with-SMTP was given.
20117 if test "${with_SMTP+set}" = set; then :
20118   withval=$with_SMTP; ac_with_smtp=$withval
20119 else
20120   ac_with_smtp=no
20121 fi
20122
20123 case "$ac_with_smtp" in
20124     libesmtp)
20125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libesmtp" >&5
20126 $as_echo "libesmtp" >&6; }
20127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
20128 $as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
20129 if ${ac_cv_lib_esmtp_smtp_create_session+:} false; then :
20130   $as_echo_n "(cached) " >&6
20131 else
20132   ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-lesmtp -lesmtp $LIBS"
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135 /* end confdefs.h.  */
20136
20137 /* Override any GCC internal prototype to avoid an error.
20138    Use char because int might match the return type of a GCC
20139    builtin and then its argument prototype would still apply.  */
20140 #ifdef __cplusplus
20141 extern "C"
20142 #endif
20143 char smtp_create_session ();
20144 int
20145 main ()
20146 {
20147 return smtp_create_session ();
20148   ;
20149   return 0;
20150 }
20151 _ACEOF
20152 if ac_fn_cxx_try_link "$LINENO"; then :
20153   ac_cv_lib_esmtp_smtp_create_session=yes
20154 else
20155   ac_cv_lib_esmtp_smtp_create_session=no
20156 fi
20157 rm -f core conftest.err conftest.$ac_objext \
20158     conftest$ac_exeext conftest.$ac_ext
20159 LIBS=$ac_check_lib_save_LIBS
20160 fi
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
20162 $as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
20163 if test "x$ac_cv_lib_esmtp_smtp_create_session" = xyes; then :
20164   cat >>confdefs.h <<_ACEOF
20165 #define HAVE_LIBESMTP 1
20166 _ACEOF
20167
20168   LIBS="-lesmtp $LIBS"
20169
20170 else
20171   as_fn_error $? "libesmtp library not found !" "$LINENO" 5
20172 fi
20173
20174         HAS_LIBESMTP=1
20175
20176         LIBS="-lesmtp $LIBS"
20177         ;;
20178         no)
20179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20180 $as_echo "no" >&6; }
20181         HAS_LIBESMTP=0
20182
20183         ;;
20184     *)
20185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20186 $as_echo "???" >&6; }
20187         as_fn_error $? "Unknown option : $ac_with_smtp" "$LINENO" 5
20188         ;;
20189 esac
20190
20191 #for char api
20192 # Check whether --enable-char was given.
20193 if test "${enable_char+set}" = set; then :
20194   enableval=$enable_char;
20195 fi
20196
20197 if test "x$enable_char" = xno; then
20198         have_char_api=no
20199 else
20200         have_char_api=yes
20201 fi
20202
20203 if test "$have_char_api" = "yes"
20204 then
20205     CHAR_API=1
20206
20207 else
20208     CHAR_API=0
20209
20210 fi
20211
20212 #for wchar_t api
20213 # Check whether --enable-wchar_t was given.
20214 if test "${enable_wchar_t+set}" = set; then :
20215   enableval=$enable_wchar_t;
20216 fi
20217
20218 if test "x$enable_wchar_t" = xno; then
20219         have_wchar_t_api=no
20220 else
20221     if test "$have_wchar_t" = "yes"
20222     then
20223         have_wchar_t_api=yes
20224     else
20225         have_wchar_t_api=no
20226     fi
20227 fi
20228
20229 if test "$have_wchar_t_api" = "yes"
20230 then
20231     WCHAR_T_API=1
20232
20233 else
20234     WCHAR_T_API=0
20235
20236 fi
20237
20238 #for unichar api
20239 # Check whether --enable-unichar was given.
20240 if test "${enable_unichar+set}" = set; then :
20241   enableval=$enable_unichar;
20242 fi
20243
20244 if test "x$enable_unichar" = "yes"
20245 then
20246     UNICHAR_API=1
20247
20248 else
20249     UNICHAR_API=0
20250
20251 fi
20252
20253 #for cfstring api
20254 # Check whether --enable-cfstring was given.
20255 if test "${enable_cfstring+set}" = set; then :
20256   enableval=$enable_cfstring;
20257 fi
20258
20259 if test "x$enable_cfstring" = xyes; then
20260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfstring" >&5
20261 $as_echo_n "checking for cfstring... " >&6; }
20262         CPPFLAGS="$CPPFLAGS -framework CoreFoundation"
20263         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h.  */
20265
20266                    #include <CoreFoundation/CFString.h>
20267                    CFStringRef x = CFSTR("Hello");
20268 _ACEOF
20269 if ac_fn_cxx_try_compile "$LINENO"; then :
20270   have_cfstring_api=yes
20271 else
20272   have_cfstring_api=no
20273 fi
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cfstring_api" >&5
20276 $as_echo "$have_cfstring_api" >&6; }
20277 else
20278         have_cfstring_api=no
20279 fi
20280
20281 if test "$have_cfstring_api" = "yes"
20282 then
20283     CFSTRING_API=1
20284
20285 else
20286     CFSTRING_API=0
20287
20288 fi
20289
20290 #determine charset type
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking charset type" >&5
20292 $as_echo_n "checking charset type... " >&6; }
20293
20294 # Check whether --with-charset was given.
20295 if test "${with_charset+set}" = set; then :
20296   withval=$with_charset; ac_with_charset=$withval
20297 else
20298   ac_with_charset=auto
20299 fi
20300
20301
20302 case "$ac_with_charset" in
20303     utf-8)
20304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: utf-8" >&5
20305 $as_echo "utf-8" >&6; }
20306         CHARSET_UTF8=1
20307
20308         CHARSET_ISO88591=0
20309
20310         CHARSET_USASCII=0
20311
20312         CHARSET_EBCDIC=0
20313
20314         ;;
20315
20316     iso-8859-1)
20317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: iso-8859-1" >&5
20318 $as_echo "iso-8859-1" >&6; }
20319         CHARSET_UTF8=0
20320
20321         CHARSET_ISO88591=1
20322
20323         CHARSET_USASCII=0
20324
20325         CHARSET_EBCDIC=0
20326
20327         ;;
20328
20329     usascii)
20330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: usascii" >&5
20331 $as_echo "usascii" >&6; }
20332         CHARSET_UTF8=0
20333
20334         CHARSET_ISO88591=0
20335
20336         CHARSET_USASCII=1
20337
20338         CHARSET_EBCDIC=0
20339
20340         ;;
20341
20342     ebcdic)
20343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: usascii" >&5
20344 $as_echo "usascii" >&6; }
20345         CHARSET_UTF8=0
20346
20347         CHARSET_ISO88591=0
20348
20349         CHARSET_USASCII=0
20350
20351         CHARSET_EBCDIC=1
20352
20353         ;;
20354
20355     auto)
20356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
20357 $as_echo "auto" >&6; }
20358         CHARSET_UTF8=0
20359
20360         CHARSET_ISO88591=0
20361
20362         CHARSET_USASCII=0
20363
20364         CHARSET_EBCDIC=0
20365
20366         ;;
20367
20368     *)
20369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20370 $as_echo "???" >&6; }
20371         as_fn_error $? "Invalid charset type: $ac_with_charset" "$LINENO" 5
20372         ;;
20373 esac
20374
20375
20376
20377 #determine logchar type
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logchar type" >&5
20379 $as_echo_n "checking logchar type... " >&6; }
20380
20381 # Check whether --with-logchar was given.
20382 if test "${with_logchar+set}" = set; then :
20383   withval=$with_logchar; ac_with_logchar=$withval
20384 else
20385   ac_with_logchar=utf-8
20386 fi
20387
20388
20389 case "$ac_with_logchar" in
20390     utf-8)
20391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: utf-8" >&5
20392 $as_echo "utf-8" >&6; }
20393         LOGCHAR_IS_UTF8=1
20394
20395         LOGCHAR_IS_WCHAR=0
20396
20397         LOGCHAR_IS_UNICHAR=0
20398
20399         ;;
20400
20401     wchar_t)
20402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: wchar_t" >&5
20403 $as_echo "wchar_t" >&6; }
20404         LOGCHAR_IS_UTF8=0
20405
20406         LOGCHAR_IS_WCHAR=1
20407
20408         LOGCHAR_IS_UNICHAR=0
20409
20410         ;;
20411
20412     unichar)
20413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unichar" >&5
20414 $as_echo "unichar" >&6; }
20415         LOGCHAR_IS_UTF8=0
20416
20417         LOGCHAR_IS_WCHAR=0
20418
20419         LOGCHAR_IS_UNICHAR=1
20420
20421         ;;
20422
20423     *)
20424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20425 $as_echo "???" >&6; }
20426         as_fn_error $? "Invalid logchar type: $ac_with_logchar" "$LINENO" 5
20427         ;;
20428 esac
20429
20430
20431
20432 # Create files
20433 # ----------------------------------------------------------------------------
20434
20435 ac_config_files="$ac_config_files Makefile liblog4cxx.pc src/Makefile src/main/Makefile src/main/cpp/Makefile src/main/include/Makefile src/main/include/log4cxx/log4cxx.h src/main/include/log4cxx/private/log4cxx_private.h src/main/include/log4cxx/private/Makefile src/main/include/log4cxx/Makefile src/main/include/log4cxx/helpers/Makefile src/main/include/log4cxx/net/Makefile src/main/include/log4cxx/nt/Makefile src/main/include/log4cxx/spi/Makefile src/main/include/log4cxx/spi/location/Makefile src/main/include/log4cxx/varia/Makefile src/main/include/log4cxx/xml/Makefile src/main/include/log4cxx/config/Makefile src/main/include/log4cxx/db/Makefile src/main/include/log4cxx/rolling/Makefile src/main/include/log4cxx/pattern/Makefile src/main/include/log4cxx/filter/Makefile src/site/Makefile src/site/doxy/Makefile src/site/doxy/Doxyfile src/test/Makefile src/test/resources/Makefile src/test/resources/input/Makefile src/test/resources/input/ndc/Makefile src/test/resources/input/rolling/Makefile src/test/resources/input/xml/Makefile src/test/cpp/Makefile src/test/resources/witness/Makefile src/test/resources/witness/encoding/Makefile src/test/resources/witness/ndc/Makefile src/test/resources/witness/rolling/Makefile src/examples/Makefile src/examples/cpp/Makefile"
20436
20437 cat >confcache <<\_ACEOF
20438 # This file is a shell script that caches the results of configure
20439 # tests run on this system so they can be shared between configure
20440 # scripts and configure runs, see configure's option --config-cache.
20441 # It is not useful on other systems.  If it contains results you don't
20442 # want to keep, you may remove or edit it.
20443 #
20444 # config.status only pays attention to the cache file if you give it
20445 # the --recheck option to rerun configure.
20446 #
20447 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20449 # following values.
20450
20451 _ACEOF
20452
20453 # The following way of writing the cache mishandles newlines in values,
20454 # but we know of no workaround that is simple, portable, and efficient.
20455 # So, we kill variables containing newlines.
20456 # Ultrix sh set writes to stderr and can't be redirected directly,
20457 # and sets the high bit in the cache file unless we assign to the vars.
20458 (
20459   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20460     eval ac_val=\$$ac_var
20461     case $ac_val in #(
20462     *${as_nl}*)
20463       case $ac_var in #(
20464       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20466       esac
20467       case $ac_var in #(
20468       _ | IFS | as_nl) ;; #(
20469       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20470       *) { eval $ac_var=; unset $ac_var;} ;;
20471       esac ;;
20472     esac
20473   done
20474
20475   (set) 2>&1 |
20476     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20477     *${as_nl}ac_space=\ *)
20478       # `set' does not quote correctly, so add quotes: double-quote
20479       # substitution turns \\\\ into \\, and sed turns \\ into \.
20480       sed -n \
20481         "s/'/'\\\\''/g;
20482           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20483       ;; #(
20484     *)
20485       # `set' quotes correctly as required by POSIX, so do not add quotes.
20486       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20487       ;;
20488     esac |
20489     sort
20490 ) |
20491   sed '
20492      /^ac_cv_env_/b end
20493      t clear
20494      :clear
20495      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20496      t end
20497      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20498      :end' >>confcache
20499 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20500   if test -w "$cache_file"; then
20501     if test "x$cache_file" != "x/dev/null"; then
20502       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20503 $as_echo "$as_me: updating cache $cache_file" >&6;}
20504       if test ! -f "$cache_file" || test -h "$cache_file"; then
20505         cat confcache >"$cache_file"
20506       else
20507         case $cache_file in #(
20508         */* | ?:*)
20509           mv -f confcache "$cache_file"$$ &&
20510           mv -f "$cache_file"$$ "$cache_file" ;; #(
20511         *)
20512           mv -f confcache "$cache_file" ;;
20513         esac
20514       fi
20515     fi
20516   else
20517     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20518 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20519   fi
20520 fi
20521 rm -f confcache
20522
20523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20524 # Let make expand exec_prefix.
20525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20526
20527 # Transform confdefs.h into DEFS.
20528 # Protect against shell expansion while executing Makefile rules.
20529 # Protect against Makefile macro expansion.
20530 #
20531 # If the first sed substitution is executed (which looks for macros that
20532 # take arguments), then branch to the quote section.  Otherwise,
20533 # look for a macro that doesn't take arguments.
20534 ac_script='
20535 :mline
20536 /\\$/{
20537  N
20538  s,\\\n,,
20539  b mline
20540 }
20541 t clear
20542 :clear
20543 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
20544 t quote
20545 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
20546 t quote
20547 b any
20548 :quote
20549 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20550 s/\[/\\&/g
20551 s/\]/\\&/g
20552 s/\$/$$/g
20553 H
20554 :any
20555 ${
20556         g
20557         s/^\n//
20558         s/\n/ /g
20559         p
20560 }
20561 '
20562 DEFS=`sed -n "$ac_script" confdefs.h`
20563
20564
20565 ac_libobjs=
20566 ac_ltlibobjs=
20567 U=
20568 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20569   # 1. Remove the extension, and $U if already installed.
20570   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20571   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20572   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20573   #    will be set to the directory where LIBOBJS objects are built.
20574   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20575   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20576 done
20577 LIBOBJS=$ac_libobjs
20578
20579 LTLIBOBJS=$ac_ltlibobjs
20580
20581
20582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20583   as_fn_error $? "conditional \"AMDEP\" was never defined.
20584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20585 fi
20586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20587   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20589 fi
20590 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20591   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20593 fi
20594 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20595   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20597 fi
20598 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
20599   as_fn_error $? "conditional \"DOC\" was never defined.
20600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20601 fi
20602 if test -z "${LATEX_DOC_TRUE}" && test -z "${LATEX_DOC_FALSE}"; then
20603   as_fn_error $? "conditional \"LATEX_DOC\" was never defined.
20604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20605 fi
20606
20607 : "${CONFIG_STATUS=./config.status}"
20608 ac_write_fail=0
20609 ac_clean_files_save=$ac_clean_files
20610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20612 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20613 as_write_fail=0
20614 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20615 #! $SHELL
20616 # Generated by $as_me.
20617 # Run this file to recreate the current configuration.
20618 # Compiler output produced by configure, useful for debugging
20619 # configure, is in config.log if it exists.
20620
20621 debug=false
20622 ac_cs_recheck=false
20623 ac_cs_silent=false
20624
20625 SHELL=\${CONFIG_SHELL-$SHELL}
20626 export SHELL
20627 _ASEOF
20628 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20629 ## -------------------- ##
20630 ## M4sh Initialization. ##
20631 ## -------------------- ##
20632
20633 # Be more Bourne compatible
20634 DUALCASE=1; export DUALCASE # for MKS sh
20635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20636   emulate sh
20637   NULLCMD=:
20638   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20639   # is contrary to our usage.  Disable this feature.
20640   alias -g '${1+"$@"}'='"$@"'
20641   setopt NO_GLOB_SUBST
20642 else
20643   case `(set -o) 2>/dev/null` in #(
20644   *posix*) :
20645     set -o posix ;; #(
20646   *) :
20647      ;;
20648 esac
20649 fi
20650
20651
20652 as_nl='
20653 '
20654 export as_nl
20655 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20656 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20657 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20659 # Prefer a ksh shell builtin over an external printf program on Solaris,
20660 # but without wasting forks for bash or zsh.
20661 if test -z "$BASH_VERSION$ZSH_VERSION" \
20662     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20663   as_echo='print -r --'
20664   as_echo_n='print -rn --'
20665 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20666   as_echo='printf %s\n'
20667   as_echo_n='printf %s'
20668 else
20669   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20670     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20671     as_echo_n='/usr/ucb/echo -n'
20672   else
20673     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20674     as_echo_n_body='eval
20675       arg=$1;
20676       case $arg in #(
20677       *"$as_nl"*)
20678         expr "X$arg" : "X\\(.*\\)$as_nl";
20679         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20680       esac;
20681       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20682     '
20683     export as_echo_n_body
20684     as_echo_n='sh -c $as_echo_n_body as_echo'
20685   fi
20686   export as_echo_body
20687   as_echo='sh -c $as_echo_body as_echo'
20688 fi
20689
20690 # The user is always right.
20691 if test "${PATH_SEPARATOR+set}" != set; then
20692   PATH_SEPARATOR=:
20693   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20694     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20695       PATH_SEPARATOR=';'
20696   }
20697 fi
20698
20699
20700 # IFS
20701 # We need space, tab and new line, in precisely that order.  Quoting is
20702 # there to prevent editors from complaining about space-tab.
20703 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20704 # splitting by setting IFS to empty value.)
20705 IFS=" ""        $as_nl"
20706
20707 # Find who we are.  Look in the path if we contain no directory separator.
20708 as_myself=
20709 case $0 in #((
20710   *[\\/]* ) as_myself=$0 ;;
20711   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20712 for as_dir in $PATH
20713 do
20714   IFS=$as_save_IFS
20715   test -z "$as_dir" && as_dir=.
20716     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20717   done
20718 IFS=$as_save_IFS
20719
20720      ;;
20721 esac
20722 # We did not find ourselves, most probably we were run as `sh COMMAND'
20723 # in which case we are not to be found in the path.
20724 if test "x$as_myself" = x; then
20725   as_myself=$0
20726 fi
20727 if test ! -f "$as_myself"; then
20728   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20729   exit 1
20730 fi
20731
20732 # Unset variables that we do not need and which cause bugs (e.g. in
20733 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20734 # suppresses any "Segmentation fault" message there.  '((' could
20735 # trigger a bug in pdksh 5.2.14.
20736 for as_var in BASH_ENV ENV MAIL MAILPATH
20737 do eval test x\${$as_var+set} = xset \
20738   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20739 done
20740 PS1='$ '
20741 PS2='> '
20742 PS4='+ '
20743
20744 # NLS nuisances.
20745 LC_ALL=C
20746 export LC_ALL
20747 LANGUAGE=C
20748 export LANGUAGE
20749
20750 # CDPATH.
20751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20752
20753
20754 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20755 # ----------------------------------------
20756 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20757 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20758 # script with STATUS, using 1 if that was 0.
20759 as_fn_error ()
20760 {
20761   as_status=$1; test $as_status -eq 0 && as_status=1
20762   if test "$4"; then
20763     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20764     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20765   fi
20766   $as_echo "$as_me: error: $2" >&2
20767   as_fn_exit $as_status
20768 } # as_fn_error
20769
20770
20771 # as_fn_set_status STATUS
20772 # -----------------------
20773 # Set $? to STATUS, without forking.
20774 as_fn_set_status ()
20775 {
20776   return $1
20777 } # as_fn_set_status
20778
20779 # as_fn_exit STATUS
20780 # -----------------
20781 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20782 as_fn_exit ()
20783 {
20784   set +e
20785   as_fn_set_status $1
20786   exit $1
20787 } # as_fn_exit
20788
20789 # as_fn_unset VAR
20790 # ---------------
20791 # Portably unset VAR.
20792 as_fn_unset ()
20793 {
20794   { eval $1=; unset $1;}
20795 }
20796 as_unset=as_fn_unset
20797 # as_fn_append VAR VALUE
20798 # ----------------------
20799 # Append the text in VALUE to the end of the definition contained in VAR. Take
20800 # advantage of any shell optimizations that allow amortized linear growth over
20801 # repeated appends, instead of the typical quadratic growth present in naive
20802 # implementations.
20803 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20804   eval 'as_fn_append ()
20805   {
20806     eval $1+=\$2
20807   }'
20808 else
20809   as_fn_append ()
20810   {
20811     eval $1=\$$1\$2
20812   }
20813 fi # as_fn_append
20814
20815 # as_fn_arith ARG...
20816 # ------------------
20817 # Perform arithmetic evaluation on the ARGs, and store the result in the
20818 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20819 # must be portable across $(()) and expr.
20820 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20821   eval 'as_fn_arith ()
20822   {
20823     as_val=$(( $* ))
20824   }'
20825 else
20826   as_fn_arith ()
20827   {
20828     as_val=`expr "$@" || test $? -eq 1`
20829   }
20830 fi # as_fn_arith
20831
20832
20833 if expr a : '\(a\)' >/dev/null 2>&1 &&
20834    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20835   as_expr=expr
20836 else
20837   as_expr=false
20838 fi
20839
20840 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20841   as_basename=basename
20842 else
20843   as_basename=false
20844 fi
20845
20846 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20847   as_dirname=dirname
20848 else
20849   as_dirname=false
20850 fi
20851
20852 as_me=`$as_basename -- "$0" ||
20853 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20854          X"$0" : 'X\(//\)$' \| \
20855          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20856 $as_echo X/"$0" |
20857     sed '/^.*\/\([^/][^/]*\)\/*$/{
20858             s//\1/
20859             q
20860           }
20861           /^X\/\(\/\/\)$/{
20862             s//\1/
20863             q
20864           }
20865           /^X\/\(\/\).*/{
20866             s//\1/
20867             q
20868           }
20869           s/.*/./; q'`
20870
20871 # Avoid depending upon Character Ranges.
20872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20875 as_cr_digits='0123456789'
20876 as_cr_alnum=$as_cr_Letters$as_cr_digits
20877
20878 ECHO_C= ECHO_N= ECHO_T=
20879 case `echo -n x` in #(((((
20880 -n*)
20881   case `echo 'xy\c'` in
20882   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20883   xy)  ECHO_C='\c';;
20884   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20885        ECHO_T=' ';;
20886   esac;;
20887 *)
20888   ECHO_N='-n';;
20889 esac
20890
20891 rm -f conf$$ conf$$.exe conf$$.file
20892 if test -d conf$$.dir; then
20893   rm -f conf$$.dir/conf$$.file
20894 else
20895   rm -f conf$$.dir
20896   mkdir conf$$.dir 2>/dev/null
20897 fi
20898 if (echo >conf$$.file) 2>/dev/null; then
20899   if ln -s conf$$.file conf$$ 2>/dev/null; then
20900     as_ln_s='ln -s'
20901     # ... but there are two gotchas:
20902     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20903     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20904     # In both cases, we have to default to `cp -pR'.
20905     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20906       as_ln_s='cp -pR'
20907   elif ln conf$$.file conf$$ 2>/dev/null; then
20908     as_ln_s=ln
20909   else
20910     as_ln_s='cp -pR'
20911   fi
20912 else
20913   as_ln_s='cp -pR'
20914 fi
20915 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20916 rmdir conf$$.dir 2>/dev/null
20917
20918
20919 # as_fn_mkdir_p
20920 # -------------
20921 # Create "$as_dir" as a directory, including parents if necessary.
20922 as_fn_mkdir_p ()
20923 {
20924
20925   case $as_dir in #(
20926   -*) as_dir=./$as_dir;;
20927   esac
20928   test -d "$as_dir" || eval $as_mkdir_p || {
20929     as_dirs=
20930     while :; do
20931       case $as_dir in #(
20932       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20933       *) as_qdir=$as_dir;;
20934       esac
20935       as_dirs="'$as_qdir' $as_dirs"
20936       as_dir=`$as_dirname -- "$as_dir" ||
20937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20938          X"$as_dir" : 'X\(//\)[^/]' \| \
20939          X"$as_dir" : 'X\(//\)$' \| \
20940          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20941 $as_echo X"$as_dir" |
20942     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20943             s//\1/
20944             q
20945           }
20946           /^X\(\/\/\)[^/].*/{
20947             s//\1/
20948             q
20949           }
20950           /^X\(\/\/\)$/{
20951             s//\1/
20952             q
20953           }
20954           /^X\(\/\).*/{
20955             s//\1/
20956             q
20957           }
20958           s/.*/./; q'`
20959       test -d "$as_dir" && break
20960     done
20961     test -z "$as_dirs" || eval "mkdir $as_dirs"
20962   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20963
20964
20965 } # as_fn_mkdir_p
20966 if mkdir -p . 2>/dev/null; then
20967   as_mkdir_p='mkdir -p "$as_dir"'
20968 else
20969   test -d ./-p && rmdir ./-p
20970   as_mkdir_p=false
20971 fi
20972
20973
20974 # as_fn_executable_p FILE
20975 # -----------------------
20976 # Test if FILE is an executable regular file.
20977 as_fn_executable_p ()
20978 {
20979   test -f "$1" && test -x "$1"
20980 } # as_fn_executable_p
20981 as_test_x='test -x'
20982 as_executable_p=as_fn_executable_p
20983
20984 # Sed expression to map a string onto a valid CPP name.
20985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20986
20987 # Sed expression to map a string onto a valid variable name.
20988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20989
20990
20991 exec 6>&1
20992 ## ----------------------------------- ##
20993 ## Main body of $CONFIG_STATUS script. ##
20994 ## ----------------------------------- ##
20995 _ASEOF
20996 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20997
20998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20999 # Save the log message, to keep $0 and so on meaningful, and to
21000 # report actual input values of CONFIG_FILES etc. instead of their
21001 # values after options handling.
21002 ac_log="
21003 This file was extended by $as_me, which was
21004 generated by GNU Autoconf 2.69.  Invocation command line was
21005
21006   CONFIG_FILES    = $CONFIG_FILES
21007   CONFIG_HEADERS  = $CONFIG_HEADERS
21008   CONFIG_LINKS    = $CONFIG_LINKS
21009   CONFIG_COMMANDS = $CONFIG_COMMANDS
21010   $ $0 $@
21011
21012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21013 "
21014
21015 _ACEOF
21016
21017 case $ac_config_files in *"
21018 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21019 esac
21020
21021
21022
21023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21024 # Files that config.status was made for.
21025 config_files="$ac_config_files"
21026 config_commands="$ac_config_commands"
21027
21028 _ACEOF
21029
21030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21031 ac_cs_usage="\
21032 \`$as_me' instantiates files and other configuration actions
21033 from templates according to the current configuration.  Unless the files
21034 and actions are specified as TAGs, all are instantiated by default.
21035
21036 Usage: $0 [OPTION]... [TAG]...
21037
21038   -h, --help       print this help, then exit
21039   -V, --version    print version number and configuration settings, then exit
21040       --config     print configuration, then exit
21041   -q, --quiet, --silent
21042                    do not print progress messages
21043   -d, --debug      don't remove temporary files
21044       --recheck    update $as_me by reconfiguring in the same conditions
21045       --file=FILE[:TEMPLATE]
21046                    instantiate the configuration file FILE
21047
21048 Configuration files:
21049 $config_files
21050
21051 Configuration commands:
21052 $config_commands
21053
21054 Report bugs to the package provider."
21055
21056 _ACEOF
21057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21058 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21059 ac_cs_version="\\
21060 config.status
21061 configured by $0, generated by GNU Autoconf 2.69,
21062   with options \\"\$ac_cs_config\\"
21063
21064 Copyright (C) 2012 Free Software Foundation, Inc.
21065 This config.status script is free software; the Free Software Foundation
21066 gives unlimited permission to copy, distribute and modify it."
21067
21068 ac_pwd='$ac_pwd'
21069 srcdir='$srcdir'
21070 INSTALL='$INSTALL'
21071 AWK='$AWK'
21072 test -n "\$AWK" || AWK=awk
21073 _ACEOF
21074
21075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21076 # The default lists apply if the user does not specify any file.
21077 ac_need_defaults=:
21078 while test $# != 0
21079 do
21080   case $1 in
21081   --*=?*)
21082     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21083     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21084     ac_shift=:
21085     ;;
21086   --*=)
21087     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21088     ac_optarg=
21089     ac_shift=:
21090     ;;
21091   *)
21092     ac_option=$1
21093     ac_optarg=$2
21094     ac_shift=shift
21095     ;;
21096   esac
21097
21098   case $ac_option in
21099   # Handling of the options.
21100   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21101     ac_cs_recheck=: ;;
21102   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21103     $as_echo "$ac_cs_version"; exit ;;
21104   --config | --confi | --conf | --con | --co | --c )
21105     $as_echo "$ac_cs_config"; exit ;;
21106   --debug | --debu | --deb | --de | --d | -d )
21107     debug=: ;;
21108   --file | --fil | --fi | --f )
21109     $ac_shift
21110     case $ac_optarg in
21111     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21112     '') as_fn_error $? "missing file argument" ;;
21113     esac
21114     as_fn_append CONFIG_FILES " '$ac_optarg'"
21115     ac_need_defaults=false;;
21116   --he | --h |  --help | --hel | -h )
21117     $as_echo "$ac_cs_usage"; exit ;;
21118   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21119   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21120     ac_cs_silent=: ;;
21121
21122   # This is an error.
21123   -*) as_fn_error $? "unrecognized option: \`$1'
21124 Try \`$0 --help' for more information." ;;
21125
21126   *) as_fn_append ac_config_targets " $1"
21127      ac_need_defaults=false ;;
21128
21129   esac
21130   shift
21131 done
21132
21133 ac_configure_extra_args=
21134
21135 if $ac_cs_silent; then
21136   exec 6>/dev/null
21137   ac_configure_extra_args="$ac_configure_extra_args --silent"
21138 fi
21139
21140 _ACEOF
21141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21142 if \$ac_cs_recheck; then
21143   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21144   shift
21145   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21146   CONFIG_SHELL='$SHELL'
21147   export CONFIG_SHELL
21148   exec "\$@"
21149 fi
21150
21151 _ACEOF
21152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21153 exec 5>>config.log
21154 {
21155   echo
21156   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21157 ## Running $as_me. ##
21158 _ASBOX
21159   $as_echo "$ac_log"
21160 } >&5
21161
21162 _ACEOF
21163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21164 #
21165 # INIT-COMMANDS
21166 #
21167 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21168
21169 _ACEOF
21170
21171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21172
21173 # Handling of arguments.
21174 for ac_config_target in $ac_config_targets
21175 do
21176   case $ac_config_target in
21177     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21178     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21179     "liblog4cxx.pc") CONFIG_FILES="$CONFIG_FILES liblog4cxx.pc" ;;
21180     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21181     "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
21182     "src/main/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/cpp/Makefile" ;;
21183     "src/main/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/Makefile" ;;
21184     "src/main/include/log4cxx/log4cxx.h") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/log4cxx.h" ;;
21185     "src/main/include/log4cxx/private/log4cxx_private.h") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/private/log4cxx_private.h" ;;
21186     "src/main/include/log4cxx/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/private/Makefile" ;;
21187     "src/main/include/log4cxx/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/Makefile" ;;
21188     "src/main/include/log4cxx/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/helpers/Makefile" ;;
21189     "src/main/include/log4cxx/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/net/Makefile" ;;
21190     "src/main/include/log4cxx/nt/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/nt/Makefile" ;;
21191     "src/main/include/log4cxx/spi/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/spi/Makefile" ;;
21192     "src/main/include/log4cxx/spi/location/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/spi/location/Makefile" ;;
21193     "src/main/include/log4cxx/varia/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/varia/Makefile" ;;
21194     "src/main/include/log4cxx/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/xml/Makefile" ;;
21195     "src/main/include/log4cxx/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/config/Makefile" ;;
21196     "src/main/include/log4cxx/db/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/db/Makefile" ;;
21197     "src/main/include/log4cxx/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/rolling/Makefile" ;;
21198     "src/main/include/log4cxx/pattern/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/pattern/Makefile" ;;
21199     "src/main/include/log4cxx/filter/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/filter/Makefile" ;;
21200     "src/site/Makefile") CONFIG_FILES="$CONFIG_FILES src/site/Makefile" ;;
21201     "src/site/doxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/site/doxy/Makefile" ;;
21202     "src/site/doxy/Doxyfile") CONFIG_FILES="$CONFIG_FILES src/site/doxy/Doxyfile" ;;
21203     "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
21204     "src/test/resources/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/Makefile" ;;
21205     "src/test/resources/input/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/Makefile" ;;
21206     "src/test/resources/input/ndc/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/ndc/Makefile" ;;
21207     "src/test/resources/input/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/rolling/Makefile" ;;
21208     "src/test/resources/input/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/xml/Makefile" ;;
21209     "src/test/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/cpp/Makefile" ;;
21210     "src/test/resources/witness/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/Makefile" ;;
21211     "src/test/resources/witness/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/encoding/Makefile" ;;
21212     "src/test/resources/witness/ndc/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/ndc/Makefile" ;;
21213     "src/test/resources/witness/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/rolling/Makefile" ;;
21214     "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
21215     "src/examples/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/cpp/Makefile" ;;
21216
21217   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21218   esac
21219 done
21220
21221
21222 # If the user did not use the arguments to specify the items to instantiate,
21223 # then the envvar interface is used.  Set only those that are not.
21224 # We use the long form for the default assignment because of an extremely
21225 # bizarre bug on SunOS 4.1.3.
21226 if $ac_need_defaults; then
21227   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21228   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21229 fi
21230
21231 # Have a temporary directory for convenience.  Make it in the build tree
21232 # simply because there is no reason against having it here, and in addition,
21233 # creating and moving files from /tmp can sometimes cause problems.
21234 # Hook for its removal unless debugging.
21235 # Note that there is a small window in which the directory will not be cleaned:
21236 # after its creation but before its name has been assigned to `$tmp'.
21237 $debug ||
21238 {
21239   tmp= ac_tmp=
21240   trap 'exit_status=$?
21241   : "${ac_tmp:=$tmp}"
21242   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21243 ' 0
21244   trap 'as_fn_exit 1' 1 2 13 15
21245 }
21246 # Create a (secure) tmp directory for tmp files.
21247
21248 {
21249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21250   test -d "$tmp"
21251 }  ||
21252 {
21253   tmp=./conf$$-$RANDOM
21254   (umask 077 && mkdir "$tmp")
21255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21256 ac_tmp=$tmp
21257
21258 # Set up the scripts for CONFIG_FILES section.
21259 # No need to generate them if there are no CONFIG_FILES.
21260 # This happens for instance with `./config.status config.h'.
21261 if test -n "$CONFIG_FILES"; then
21262
21263
21264 ac_cr=`echo X | tr X '\015'`
21265 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21266 # But we know of no other shell where ac_cr would be empty at this
21267 # point, so we can use a bashism as a fallback.
21268 if test "x$ac_cr" = x; then
21269   eval ac_cr=\$\'\\r\'
21270 fi
21271 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21272 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21273   ac_cs_awk_cr='\\r'
21274 else
21275   ac_cs_awk_cr=$ac_cr
21276 fi
21277
21278 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21279 _ACEOF
21280
21281
21282 {
21283   echo "cat >conf$$subs.awk <<_ACEOF" &&
21284   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21285   echo "_ACEOF"
21286 } >conf$$subs.sh ||
21287   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21288 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21289 ac_delim='%!_!# '
21290 for ac_last_try in false false false false false :; do
21291   . ./conf$$subs.sh ||
21292     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21293
21294   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21295   if test $ac_delim_n = $ac_delim_num; then
21296     break
21297   elif $ac_last_try; then
21298     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21299   else
21300     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21301   fi
21302 done
21303 rm -f conf$$subs.sh
21304
21305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21306 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21307 _ACEOF
21308 sed -n '
21309 h
21310 s/^/S["/; s/!.*/"]=/
21311 p
21312 g
21313 s/^[^!]*!//
21314 :repl
21315 t repl
21316 s/'"$ac_delim"'$//
21317 t delim
21318 :nl
21319 h
21320 s/\(.\{148\}\)..*/\1/
21321 t more1
21322 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21323 p
21324 n
21325 b repl
21326 :more1
21327 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21328 p
21329 g
21330 s/.\{148\}//
21331 t nl
21332 :delim
21333 h
21334 s/\(.\{148\}\)..*/\1/
21335 t more2
21336 s/["\\]/\\&/g; s/^/"/; s/$/"/
21337 p
21338 b
21339 :more2
21340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21341 p
21342 g
21343 s/.\{148\}//
21344 t delim
21345 ' <conf$$subs.awk | sed '
21346 /^[^""]/{
21347   N
21348   s/\n//
21349 }
21350 ' >>$CONFIG_STATUS || ac_write_fail=1
21351 rm -f conf$$subs.awk
21352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21353 _ACAWK
21354 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21355   for (key in S) S_is_set[key] = 1
21356   FS = "\a"
21357
21358 }
21359 {
21360   line = $ 0
21361   nfields = split(line, field, "@")
21362   substed = 0
21363   len = length(field[1])
21364   for (i = 2; i < nfields; i++) {
21365     key = field[i]
21366     keylen = length(key)
21367     if (S_is_set[key]) {
21368       value = S[key]
21369       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21370       len += length(value) + length(field[++i])
21371       substed = 1
21372     } else
21373       len += 1 + keylen
21374   }
21375
21376   print line
21377 }
21378
21379 _ACAWK
21380 _ACEOF
21381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21383   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21384 else
21385   cat
21386 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21387   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21388 _ACEOF
21389
21390 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21391 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21392 # trailing colons and then remove the whole line if VPATH becomes empty
21393 # (actually we leave an empty line to preserve line numbers).
21394 if test "x$srcdir" = x.; then
21395   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21396 h
21397 s///
21398 s/^/:/
21399 s/[      ]*$/:/
21400 s/:\$(srcdir):/:/g
21401 s/:\${srcdir}:/:/g
21402 s/:@srcdir@:/:/g
21403 s/^:*//
21404 s/:*$//
21405 x
21406 s/\(=[   ]*\).*/\1/
21407 G
21408 s/\n//
21409 s/^[^=]*=[       ]*$//
21410 }'
21411 fi
21412
21413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21414 fi # test -n "$CONFIG_FILES"
21415
21416
21417 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
21418 shift
21419 for ac_tag
21420 do
21421   case $ac_tag in
21422   :[FHLC]) ac_mode=$ac_tag; continue;;
21423   esac
21424   case $ac_mode$ac_tag in
21425   :[FHL]*:*);;
21426   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21427   :[FH]-) ac_tag=-:-;;
21428   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21429   esac
21430   ac_save_IFS=$IFS
21431   IFS=:
21432   set x $ac_tag
21433   IFS=$ac_save_IFS
21434   shift
21435   ac_file=$1
21436   shift
21437
21438   case $ac_mode in
21439   :L) ac_source=$1;;
21440   :[FH])
21441     ac_file_inputs=
21442     for ac_f
21443     do
21444       case $ac_f in
21445       -) ac_f="$ac_tmp/stdin";;
21446       *) # Look for the file first in the build tree, then in the source tree
21447          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21448          # because $ac_f cannot contain `:'.
21449          test -f "$ac_f" ||
21450            case $ac_f in
21451            [\\/$]*) false;;
21452            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21453            esac ||
21454            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21455       esac
21456       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21457       as_fn_append ac_file_inputs " '$ac_f'"
21458     done
21459
21460     # Let's still pretend it is `configure' which instantiates (i.e., don't
21461     # use $as_me), people would be surprised to read:
21462     #    /* config.h.  Generated by config.status.  */
21463     configure_input='Generated from '`
21464           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21465         `' by configure.'
21466     if test x"$ac_file" != x-; then
21467       configure_input="$ac_file.  $configure_input"
21468       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21469 $as_echo "$as_me: creating $ac_file" >&6;}
21470     fi
21471     # Neutralize special characters interpreted by sed in replacement strings.
21472     case $configure_input in #(
21473     *\&* | *\|* | *\\* )
21474        ac_sed_conf_input=`$as_echo "$configure_input" |
21475        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21476     *) ac_sed_conf_input=$configure_input;;
21477     esac
21478
21479     case $ac_tag in
21480     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21481       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21482     esac
21483     ;;
21484   esac
21485
21486   ac_dir=`$as_dirname -- "$ac_file" ||
21487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21488          X"$ac_file" : 'X\(//\)[^/]' \| \
21489          X"$ac_file" : 'X\(//\)$' \| \
21490          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21491 $as_echo X"$ac_file" |
21492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21493             s//\1/
21494             q
21495           }
21496           /^X\(\/\/\)[^/].*/{
21497             s//\1/
21498             q
21499           }
21500           /^X\(\/\/\)$/{
21501             s//\1/
21502             q
21503           }
21504           /^X\(\/\).*/{
21505             s//\1/
21506             q
21507           }
21508           s/.*/./; q'`
21509   as_dir="$ac_dir"; as_fn_mkdir_p
21510   ac_builddir=.
21511
21512 case "$ac_dir" in
21513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21514 *)
21515   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21516   # A ".." for each directory in $ac_dir_suffix.
21517   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21518   case $ac_top_builddir_sub in
21519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21521   esac ;;
21522 esac
21523 ac_abs_top_builddir=$ac_pwd
21524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21525 # for backward compatibility:
21526 ac_top_builddir=$ac_top_build_prefix
21527
21528 case $srcdir in
21529   .)  # We are building in place.
21530     ac_srcdir=.
21531     ac_top_srcdir=$ac_top_builddir_sub
21532     ac_abs_top_srcdir=$ac_pwd ;;
21533   [\\/]* | ?:[\\/]* )  # Absolute name.
21534     ac_srcdir=$srcdir$ac_dir_suffix;
21535     ac_top_srcdir=$srcdir
21536     ac_abs_top_srcdir=$srcdir ;;
21537   *) # Relative name.
21538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21539     ac_top_srcdir=$ac_top_build_prefix$srcdir
21540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21541 esac
21542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21543
21544
21545   case $ac_mode in
21546   :F)
21547   #
21548   # CONFIG_FILE
21549   #
21550
21551   case $INSTALL in
21552   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21553   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21554   esac
21555 _ACEOF
21556
21557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21558 # If the template does not know about datarootdir, expand it.
21559 # FIXME: This hack should be removed a few years after 2.60.
21560 ac_datarootdir_hack=; ac_datarootdir_seen=
21561 ac_sed_dataroot='
21562 /datarootdir/ {
21563   p
21564   q
21565 }
21566 /@datadir@/p
21567 /@docdir@/p
21568 /@infodir@/p
21569 /@localedir@/p
21570 /@mandir@/p'
21571 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21572 *datarootdir*) ac_datarootdir_seen=yes;;
21573 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21574   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21575 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21576 _ACEOF
21577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21578   ac_datarootdir_hack='
21579   s&@datadir@&$datadir&g
21580   s&@docdir@&$docdir&g
21581   s&@infodir@&$infodir&g
21582   s&@localedir@&$localedir&g
21583   s&@mandir@&$mandir&g
21584   s&\\\${datarootdir}&$datarootdir&g' ;;
21585 esac
21586 _ACEOF
21587
21588 # Neutralize VPATH when `$srcdir' = `.'.
21589 # Shell code in configure.ac might set extrasub.
21590 # FIXME: do we really want to maintain this feature?
21591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21592 ac_sed_extra="$ac_vpsub
21593 $extrasub
21594 _ACEOF
21595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21596 :t
21597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21598 s|@configure_input@|$ac_sed_conf_input|;t t
21599 s&@top_builddir@&$ac_top_builddir_sub&;t t
21600 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21601 s&@srcdir@&$ac_srcdir&;t t
21602 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21603 s&@top_srcdir@&$ac_top_srcdir&;t t
21604 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21605 s&@builddir@&$ac_builddir&;t t
21606 s&@abs_builddir@&$ac_abs_builddir&;t t
21607 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21608 s&@INSTALL@&$ac_INSTALL&;t t
21609 $ac_datarootdir_hack
21610 "
21611 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21612   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21613
21614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21615   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21616   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21617       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21618   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21619 which seems to be undefined.  Please make sure it is defined" >&5
21620 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21621 which seems to be undefined.  Please make sure it is defined" >&2;}
21622
21623   rm -f "$ac_tmp/stdin"
21624   case $ac_file in
21625   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21626   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21627   esac \
21628   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21629  ;;
21630
21631
21632   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21633 $as_echo "$as_me: executing $ac_file commands" >&6;}
21634  ;;
21635   esac
21636
21637
21638   case $ac_file$ac_mode in
21639     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21640   # Strip MF so we end up with the name of the file.
21641   mf=`echo "$mf" | sed -e 's/:.*$//'`
21642   # Check whether this is an Automake generated Makefile or not.
21643   # We used to match only the files named `Makefile.in', but
21644   # some people rename them; so instead we look at the file content.
21645   # Grep'ing the first line is not enough: some people post-process
21646   # each Makefile.in and add a new line on top of each file to say so.
21647   # So let's grep whole file.
21648   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21649     dirpart=`$as_dirname -- "$mf" ||
21650 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21651          X"$mf" : 'X\(//\)[^/]' \| \
21652          X"$mf" : 'X\(//\)$' \| \
21653          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21654 $as_echo X"$mf" |
21655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21656             s//\1/
21657             q
21658           }
21659           /^X\(\/\/\)[^/].*/{
21660             s//\1/
21661             q
21662           }
21663           /^X\(\/\/\)$/{
21664             s//\1/
21665             q
21666           }
21667           /^X\(\/\).*/{
21668             s//\1/
21669             q
21670           }
21671           s/.*/./; q'`
21672   else
21673     continue
21674   fi
21675   # Extract the definition of DEPDIR, am__include, and am__quote
21676   # from the Makefile without running `make'.
21677   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21678   test -z "$DEPDIR" && continue
21679   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21680   test -z "am__include" && continue
21681   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21682   # When using ansi2knr, U may be empty or an underscore; expand it
21683   U=`sed -n 's/^U = //p' < "$mf"`
21684   # Find all dependency output files, they are included files with
21685   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21686   # simplest approach to changing $(DEPDIR) to its actual value in the
21687   # expansion.
21688   for file in `sed -n "
21689     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21690        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21691     # Make sure the directory exists.
21692     test -f "$dirpart/$file" && continue
21693     fdir=`$as_dirname -- "$file" ||
21694 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21695          X"$file" : 'X\(//\)[^/]' \| \
21696          X"$file" : 'X\(//\)$' \| \
21697          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21698 $as_echo X"$file" |
21699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21700             s//\1/
21701             q
21702           }
21703           /^X\(\/\/\)[^/].*/{
21704             s//\1/
21705             q
21706           }
21707           /^X\(\/\/\)$/{
21708             s//\1/
21709             q
21710           }
21711           /^X\(\/\).*/{
21712             s//\1/
21713             q
21714           }
21715           s/.*/./; q'`
21716     as_dir=$dirpart/$fdir; as_fn_mkdir_p
21717     # echo "creating $dirpart/$file"
21718     echo '# dummy' > "$dirpart/$file"
21719   done
21720 done
21721  ;;
21722
21723   esac
21724 done # for ac_tag
21725
21726
21727 as_fn_exit 0
21728 _ACEOF
21729 ac_clean_files=$ac_clean_files_save
21730
21731 test $ac_write_fail = 0 ||
21732   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21733
21734
21735 # configure is writing to config.log, and then calls config.status.
21736 # config.status does its own redirection, appending to config.log.
21737 # Unfortunately, on DOS this fails, as config.log is still kept open
21738 # by configure, so config.status won't be able to write to it; its
21739 # output is simply discarded.  So we exec the FD to /dev/null,
21740 # effectively closing config.log, so it can be properly (re)opened and
21741 # appended to by config.status.  When coming back to configure, we
21742 # need to make the FD available again.
21743 if test "$no_create" != yes; then
21744   ac_cs_success=:
21745   ac_config_status_args=
21746   test "$silent" = yes &&
21747     ac_config_status_args="$ac_config_status_args --quiet"
21748   exec 5>/dev/null
21749   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21750   exec 5>>config.log
21751   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21752   # would make configure fail if this is the last instruction.
21753   $ac_cs_success || as_fn_exit 1
21754 fi
21755 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21756   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21757 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21758 fi
21759