Initialize Tizen 2.3
[external/opencore-amr.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for opencore-amr 0.1.3.
4 #
5 # Report bugs to <http://sourceforge.net/projects/opencore-amr/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://sourceforge.net/projects/opencore-amr/ about
251 $0: your system, including any error possibly output before
252 $0: this message. Then install a modern shell, or manually
253 $0: run the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='opencore-amr'
572 PACKAGE_TARNAME='opencore-amr'
573 PACKAGE_VERSION='0.1.3'
574 PACKAGE_STRING='opencore-amr 0.1.3'
575 PACKAGE_BUGREPORT='http://sourceforge.net/projects/opencore-amr/'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 OPENCORE_AMRWB_VERSION
618 OPENCORE_AMRNB_VERSION
619 LIBOBJS
620 LIBTOOL_DEPS
621 CXXCPP
622 CPP
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 MANIFEST_TOOL
629 RANLIB
630 ac_ct_AR
631 AR
632 DLLTOOL
633 OBJDUMP
634 NM
635 ac_ct_DUMPBIN
636 DUMPBIN
637 LD
638 FGREP
639 EGREP
640 GREP
641 SED
642 LIBTOOL
643 LN_S
644 am__fastdepCC_FALSE
645 am__fastdepCC_TRUE
646 CCDEPMODE
647 ac_ct_CC
648 CFLAGS
649 CC
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 am__nodep
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CXX
663 CPPFLAGS
664 LDFLAGS
665 CXXFLAGS
666 CXX
667 EXAMPLES_FALSE
668 EXAMPLES_TRUE
669 AMRNB_DECODER_FALSE
670 AMRNB_DECODER_TRUE
671 AMRNB_ENCODER_FALSE
672 AMRNB_ENCODER_TRUE
673 GCC_ARMV5_FALSE
674 GCC_ARMV5_TRUE
675 COMPILE_AS_C_FALSE
676 COMPILE_AS_C_TRUE
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_maintainer_mode
758 enable_compile_c
759 enable_gcc_armv5
760 enable_amrnb_encoder
761 enable_amrnb_decoder
762 enable_examples
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 '
772       ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CXX
776 CXXFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CCC
781 CC
782 CFLAGS
783 CPP
784 CXXCPP'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839   # If the previous option needs an argument, assign it.
840   if test -n "$ac_prev"; then
841     eval $ac_prev=\$ac_option
842     ac_prev=
843     continue
844   fi
845
846   case $ac_option in
847   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848   *=)   ac_optarg= ;;
849   *)    ac_optarg=yes ;;
850   esac
851
852   # Accept the important Cygnus configure options, so we can diagnose typos.
853
854   case $ac_dashdash$ac_option in
855   --)
856     ac_dashdash=yes ;;
857
858   -bindir | --bindir | --bindi | --bind | --bin | --bi)
859     ac_prev=bindir ;;
860   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861     bindir=$ac_optarg ;;
862
863   -build | --build | --buil | --bui | --bu)
864     ac_prev=build_alias ;;
865   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866     build_alias=$ac_optarg ;;
867
868   -cache-file | --cache-file | --cache-fil | --cache-fi \
869   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870     ac_prev=cache_file ;;
871   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873     cache_file=$ac_optarg ;;
874
875   --config-cache | -C)
876     cache_file=config.cache ;;
877
878   -datadir | --datadir | --datadi | --datad)
879     ac_prev=datadir ;;
880   -datadir=* | --datadir=* | --datadi=* | --datad=*)
881     datadir=$ac_optarg ;;
882
883   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884   | --dataroo | --dataro | --datar)
885     ac_prev=datarootdir ;;
886   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888     datarootdir=$ac_optarg ;;
889
890   -disable-* | --disable-*)
891     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892     # Reject names that are not valid shell variable names.
893     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894       as_fn_error $? "invalid feature name: $ac_useropt"
895     ac_useropt_orig=$ac_useropt
896     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897     case $ac_user_opts in
898       *"
899 "enable_$ac_useropt"
900 "*) ;;
901       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902          ac_unrecognized_sep=', ';;
903     esac
904     eval enable_$ac_useropt=no ;;
905
906   -docdir | --docdir | --docdi | --doc | --do)
907     ac_prev=docdir ;;
908   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909     docdir=$ac_optarg ;;
910
911   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912     ac_prev=dvidir ;;
913   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914     dvidir=$ac_optarg ;;
915
916   -enable-* | --enable-*)
917     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918     # Reject names that are not valid shell variable names.
919     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920       as_fn_error $? "invalid feature name: $ac_useropt"
921     ac_useropt_orig=$ac_useropt
922     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923     case $ac_user_opts in
924       *"
925 "enable_$ac_useropt"
926 "*) ;;
927       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928          ac_unrecognized_sep=', ';;
929     esac
930     eval enable_$ac_useropt=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124       as_fn_error $? "invalid package name: $ac_useropt"
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval with_$ac_useropt=\$ac_optarg ;;
1135
1136   -without-* | --without-*)
1137     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140       as_fn_error $? "invalid package name: $ac_useropt"
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval with_$ac_useropt=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172     ;;
1173
1174   *=*)
1175     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176     # Reject names that are not valid shell variable names.
1177     case $ac_envvar in #(
1178       '' | [0-9]* | *[!_$as_cr_alnum]* )
1179       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180     esac
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201   case $enable_option_checking in
1202     no) ;;
1203     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205   esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   # Remove trailing slashes.
1216   case $ac_val in
1217     */ )
1218       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219       eval $ac_var=\$ac_val;;
1220   esac
1221   # Be sure to have absolute directory names.
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238   if test "x$build_alias" = x; then
1239     cross_compiling=maybe
1240     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1241     If a cross compiler is detected then cross compile mode will be used" >&2
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$as_myself" : 'X\(//\)[^/]' \| \
1268          X"$as_myself" : 'X\(//\)$' \| \
1269          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures opencore-amr 0.1.3 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking ...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR            user executables [EPREFIX/bin]
1362   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR        program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR            object code libraries [EPREFIX/lib]
1368   --includedir=DIR        C header files [PREFIX/include]
1369   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR           info documentation [DATAROOTDIR/info]
1373   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR            man documentation [DATAROOTDIR/man]
1375   --docdir=DIR            documentation root [DATAROOTDIR/doc/opencore-amr]
1376   --htmldir=DIR           html documentation [DOCDIR]
1377   --dvidir=DIR            dvi documentation [DOCDIR]
1378   --pdfdir=DIR            pdf documentation [DOCDIR]
1379   --psdir=DIR             ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 Program names:
1385   --program-prefix=PREFIX            prepend PREFIX to installed program names
1386   --program-suffix=SUFFIX            append SUFFIX to installed program names
1387   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396   case $ac_init_help in
1397      short | recursive ) echo "Configuration of opencore-amr 0.1.3:";;
1398    esac
1399   cat <<\_ACEOF
1400
1401 Optional Features:
1402   --disable-option-checking  ignore unrecognized --enable/--with options
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-silent-rules          less verbose build output (undo: `make V=1')
1406   --disable-silent-rules         verbose build output (undo: `make V=0')
1407   --enable-maintainer-mode  enable make rules and dependencies not useful
1408                           (and sometimes confusing) to the casual installer
1409   --enable-compile-c      enable compiling as C program (default is yes)
1410   --enable-gcc-armv5      enable GCC specific ARMv5 assembler (default is no)
1411   --enable-amrnb-encoder  enable AMR-NB encoder (default is yes)
1412   --enable-amrnb-decoder  enable AMR-NB decoder (default is yes)
1413   --enable-examples       enable example encoding/decoding programs (default
1414                           is no)
1415   --disable-dependency-tracking  speeds up one-time build
1416   --enable-dependency-tracking   do not reject slow dependency extractors
1417   --enable-shared[=PKGS]  build shared libraries [default=yes]
1418   --enable-static[=PKGS]  build static libraries [default=yes]
1419   --enable-fast-install[=PKGS]
1420                           optimize for fast installation [default=yes]
1421   --disable-libtool-lock  avoid locking (might break parallel builds)
1422
1423 Optional Packages:
1424   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                           both]
1428   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429   --with-sysroot=DIR Search for dependent libraries within DIR
1430                         (or the compiler's sysroot if not specified).
1431
1432 Some influential environment variables:
1433   CXX         C++ compiler command
1434   CXXFLAGS    C++ compiler flags
1435   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436               nonstandard directory <lib dir>
1437   LIBS        libraries to pass to the linker, e.g. -l<library>
1438   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439               you have headers in a nonstandard directory <include dir>
1440   CC          C compiler command
1441   CFLAGS      C compiler flags
1442   CPP         C preprocessor
1443   CXXCPP      C++ preprocessor
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to <http://sourceforge.net/projects/opencore-amr/>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454   # If there are subdirs, report their specific --help.
1455   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456     test -d "$ac_dir" ||
1457       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458       continue
1459     ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465   # A ".." for each directory in $ac_dir_suffix.
1466   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467   case $ac_top_builddir_sub in
1468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470   esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478   .)  # We are building in place.
1479     ac_srcdir=.
1480     ac_top_srcdir=$ac_top_builddir_sub
1481     ac_abs_top_srcdir=$ac_pwd ;;
1482   [\\/]* | ?:[\\/]* )  # Absolute name.
1483     ac_srcdir=$srcdir$ac_dir_suffix;
1484     ac_top_srcdir=$srcdir
1485     ac_abs_top_srcdir=$srcdir ;;
1486   *) # Relative name.
1487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488     ac_top_srcdir=$ac_top_build_prefix$srcdir
1489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493     cd "$ac_dir" || { ac_status=$?; continue; }
1494     # Check for guested configure.
1495     if test -f "$ac_srcdir/configure.gnu"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498     elif test -f "$ac_srcdir/configure"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure" --help=recursive
1501     else
1502       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503     fi || ac_status=$?
1504     cd "$ac_pwd" || { ac_status=$?; break; }
1505   done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510   cat <<\_ACEOF
1511 opencore-amr configure 0.1.3
1512 generated by GNU Autoconf 2.68
1513
1514 Copyright (C) 2010 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518   exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_cxx_try_compile LINENO
1526 # ----------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_cxx_try_compile ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   rm -f conftest.$ac_objext
1532   if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_compile") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } && {
1548          test -z "$ac_cxx_werror_flag" ||
1549          test ! -s conftest.err
1550        } && test -s conftest.$ac_objext; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556         ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_cxx_try_compile
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext
1570   if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_compile") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_c_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest.$ac_objext; then :
1589   ac_retval=0
1590 else
1591   $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594         ac_retval=1
1595 fi
1596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597   as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_link ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   rm -f conftest.$ac_objext conftest$ac_exeext
1608   if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_link") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && {
1624          test -z "$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        } && test -s conftest$ac_exeext && {
1627          test "$cross_compiling" = yes ||
1628          $as_test_x conftest$ac_exeext
1629        }; then :
1630   ac_retval=0
1631 else
1632   $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635         ac_retval=1
1636 fi
1637   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639   # interfere with the next link command; also delete a directory that is
1640   # left behind by Apple's compiler.  We do this before executing the actions.
1641   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_link
1646
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657   $as_echo_n "(cached) " >&6
1658 else
1659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h.  */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665   eval "$3=yes"
1666 else
1667   eval "$3=no"
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 fi
1671 eval ac_res=\$$3
1672                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_header_compile
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } > conftest.i && {
1700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708     ac_retval=1
1709 fi
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_cpp
1714
1715 # ac_fn_c_try_run LINENO
1716 # ----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718 # that executables *can* be run.
1719 ac_fn_c_try_run ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_link") 2>&5
1730   ac_status=$?
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733   { { case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_try") 2>&5
1740   ac_status=$?
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; }; }; then :
1743   ac_retval=0
1744 else
1745   $as_echo "$as_me: program exited with status $ac_status" >&5
1746        $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749        ac_retval=$ac_status
1750 fi
1751   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753   as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_run
1756
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766   $as_echo_n "(cached) " >&6
1767 else
1768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1772 #define $2 innocuous_$2
1773
1774 /* System header to define __stub macros and hopefully few prototypes,
1775     which can conflict with char $2 (); below.
1776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777     <limits.h> exists even on freestanding compilers.  */
1778
1779 #ifdef __STDC__
1780 # include <limits.h>
1781 #else
1782 # include <assert.h>
1783 #endif
1784
1785 #undef $2
1786
1787 /* Override any GCC internal prototype to avoid an error.
1788    Use char because int might match the return type of a GCC
1789    builtin and then its argument prototype would still apply.  */
1790 #ifdef __cplusplus
1791 extern "C"
1792 #endif
1793 char $2 ();
1794 /* The GNU C library defines this for functions which it implements
1795     to always fail with ENOSYS.  Some functions are actually named
1796     something starting with __ and the normal name is an alias.  */
1797 #if defined __stub_$2 || defined __stub___$2
1798 choke me
1799 #endif
1800
1801 int
1802 main ()
1803 {
1804 return $2 ();
1805   ;
1806   return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_link "$LINENO"; then :
1810   eval "$3=yes"
1811 else
1812   eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext \
1815     conftest$ac_exeext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_func
1823
1824 # ac_fn_cxx_try_cpp LINENO
1825 # ------------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_cxx_try_cpp ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   if { { ac_try="$ac_cpp conftest.$ac_ext"
1831 case "(($ac_try" in
1832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833   *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838   ac_status=$?
1839   if test -s conftest.err; then
1840     grep -v '^ *+' conftest.err >conftest.er1
1841     cat conftest.er1 >&5
1842     mv -f conftest.er1 conftest.err
1843   fi
1844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845   test $ac_status = 0; } > conftest.i && {
1846          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1847          test ! -s conftest.err
1848        }; then :
1849   ac_retval=0
1850 else
1851   $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854     ac_retval=1
1855 fi
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857   as_fn_set_status $ac_retval
1858
1859 } # ac_fn_cxx_try_cpp
1860
1861 # ac_fn_cxx_try_link LINENO
1862 # -------------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_link ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   rm -f conftest.$ac_objext conftest$ac_exeext
1868   if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_link") 2>conftest.err
1876   ac_status=$?
1877   if test -s conftest.err; then
1878     grep -v '^ *+' conftest.err >conftest.er1
1879     cat conftest.er1 >&5
1880     mv -f conftest.er1 conftest.err
1881   fi
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; } && {
1884          test -z "$ac_cxx_werror_flag" ||
1885          test ! -s conftest.err
1886        } && test -s conftest$ac_exeext && {
1887          test "$cross_compiling" = yes ||
1888          $as_test_x conftest$ac_exeext
1889        }; then :
1890   ac_retval=0
1891 else
1892   $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895         ac_retval=1
1896 fi
1897   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899   # interfere with the next link command; also delete a directory that is
1900   # left behind by Apple's compiler.  We do this before executing the actions.
1901   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903   as_fn_set_status $ac_retval
1904
1905 } # ac_fn_cxx_try_link
1906
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1911 # accordingly.
1912 ac_fn_c_check_header_mongrel ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   if eval \${$3+:} false; then :
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 else
1925   # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 $4
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934   ac_header_compiler=yes
1935 else
1936   ac_header_compiler=no
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1941
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950   ac_header_preproc=yes
1951 else
1952   ac_header_preproc=no
1953 fi
1954 rm -f conftest.err conftest.i conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1957
1958 # So?  What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960   yes:no: )
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965     ;;
1966   no:yes:* )
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1971     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 ( $as_echo "## ------------------------------------------------------------ ##
1978 ## Report this to http://sourceforge.net/projects/opencore-amr/ ##
1979 ## ------------------------------------------------------------ ##"
1980      ) | sed "s/^/$as_me: WARNING:     /" >&2
1981     ;;
1982 esac
1983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986   $as_echo_n "(cached) " >&6
1987 else
1988   eval "$3=\$ac_header_compiler"
1989 fi
1990 eval ac_res=\$$3
1991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 fi
1994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_header_mongrel
1997
1998 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1999 # -------------------------------------------
2000 # Tests whether TYPE exists after having included INCLUDES, setting cache
2001 # variable VAR accordingly.
2002 ac_fn_c_check_type ()
2003 {
2004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008   $as_echo_n "(cached) " >&6
2009 else
2010   eval "$3=no"
2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $4
2014 int
2015 main ()
2016 {
2017 if (sizeof ($2))
2018          return 0;
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 if (sizeof (($2)))
2031             return 0;
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037
2038 else
2039   eval "$3=yes"
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 eval ac_res=\$$3
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050 } # ac_fn_c_check_type
2051
2052 # ac_fn_c_find_intX_t LINENO BITS VAR
2053 # -----------------------------------
2054 # Finds a signed integer type with width BITS, setting cache variable VAR
2055 # accordingly.
2056 ac_fn_c_find_intX_t ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2060 $as_echo_n "checking for int$2_t... " >&6; }
2061 if eval \${$3+:} false; then :
2062   $as_echo_n "(cached) " >&6
2063 else
2064   eval "$3=no"
2065      # Order is important - never check a type that is potentially smaller
2066      # than half of the expected target width.
2067      for ac_type in int$2_t 'int' 'long int' \
2068          'long long int' 'short int' 'signed char'; do
2069        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $ac_includes_default
2072              enum { N = $2 / 2 - 1 };
2073 int
2074 main ()
2075 {
2076 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2077 test_array [0] = 0
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h.  */
2086 $ac_includes_default
2087                 enum { N = $2 / 2 - 1 };
2088 int
2089 main ()
2090 {
2091 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2092                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2093 test_array [0] = 0
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100
2101 else
2102   case $ac_type in #(
2103   int$2_t) :
2104     eval "$3=yes" ;; #(
2105   *) :
2106     eval "$3=\$ac_type" ;;
2107 esac
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112        if eval test \"x\$"$3"\" = x"no"; then :
2113
2114 else
2115   break
2116 fi
2117      done
2118 fi
2119 eval ac_res=\$$3
2120                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124 } # ac_fn_c_find_intX_t
2125
2126 # ac_fn_c_find_uintX_t LINENO BITS VAR
2127 # ------------------------------------
2128 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2129 # accordingly.
2130 ac_fn_c_find_uintX_t ()
2131 {
2132   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2134 $as_echo_n "checking for uint$2_t... " >&6; }
2135 if eval \${$3+:} false; then :
2136   $as_echo_n "(cached) " >&6
2137 else
2138   eval "$3=no"
2139      # Order is important - never check a type that is potentially smaller
2140      # than half of the expected target width.
2141      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2142          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2143        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $ac_includes_default
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2150 test_array [0] = 0
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157   case $ac_type in #(
2158   uint$2_t) :
2159     eval "$3=yes" ;; #(
2160   *) :
2161     eval "$3=\$ac_type" ;;
2162 esac
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165        if eval test \"x\$"$3"\" = x"no"; then :
2166
2167 else
2168   break
2169 fi
2170      done
2171 fi
2172 eval ac_res=\$$3
2173                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176
2177 } # ac_fn_c_find_uintX_t
2178 cat >config.log <<_ACEOF
2179 This file contains any messages produced by compilers while
2180 running configure, to aid debugging if configure makes a mistake.
2181
2182 It was created by opencore-amr $as_me 0.1.3, which was
2183 generated by GNU Autoconf 2.68.  Invocation command line was
2184
2185   $ $0 $@
2186
2187 _ACEOF
2188 exec 5>>config.log
2189 {
2190 cat <<_ASUNAME
2191 ## --------- ##
2192 ## Platform. ##
2193 ## --------- ##
2194
2195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2200
2201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2203
2204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2211
2212 _ASUNAME
2213
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219     $as_echo "PATH: $as_dir"
2220   done
2221 IFS=$as_save_IFS
2222
2223 } >&5
2224
2225 cat >&5 <<_ACEOF
2226
2227
2228 ## ----------- ##
2229 ## Core tests. ##
2230 ## ----------- ##
2231
2232 _ACEOF
2233
2234
2235 # Keep a trace of the command line.
2236 # Strip out --no-create and --no-recursion so they do not pile up.
2237 # Strip out --silent because we don't want to record it for future runs.
2238 # Also quote any args containing shell meta-characters.
2239 # Make two passes to allow for proper duplicate-argument suppression.
2240 ac_configure_args=
2241 ac_configure_args0=
2242 ac_configure_args1=
2243 ac_must_keep_next=false
2244 for ac_pass in 1 2
2245 do
2246   for ac_arg
2247   do
2248     case $ac_arg in
2249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251     | -silent | --silent | --silen | --sile | --sil)
2252       continue ;;
2253     *\'*)
2254       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255     esac
2256     case $ac_pass in
2257     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258     2)
2259       as_fn_append ac_configure_args1 " '$ac_arg'"
2260       if test $ac_must_keep_next = true; then
2261         ac_must_keep_next=false # Got value, back to normal.
2262       else
2263         case $ac_arg in
2264           *=* | --config-cache | -C | -disable-* | --disable-* \
2265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267           | -with-* | --with-* | -without-* | --without-* | --x)
2268             case "$ac_configure_args0 " in
2269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270             esac
2271             ;;
2272           -* ) ac_must_keep_next=true ;;
2273         esac
2274       fi
2275       as_fn_append ac_configure_args " '$ac_arg'"
2276       ;;
2277     esac
2278   done
2279 done
2280 { ac_configure_args0=; unset ac_configure_args0;}
2281 { ac_configure_args1=; unset ac_configure_args1;}
2282
2283 # When interrupted or exit'd, cleanup temporary files, and complete
2284 # config.log.  We remove comments because anyway the quotes in there
2285 # would cause problems or look ugly.
2286 # WARNING: Use '\'' to represent an apostrophe within the trap.
2287 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288 trap 'exit_status=$?
2289   # Save into config.log some information that might help in debugging.
2290   {
2291     echo
2292
2293     $as_echo "## ---------------- ##
2294 ## Cache variables. ##
2295 ## ---------------- ##"
2296     echo
2297     # The following way of writing the cache mishandles newlines in values,
2298 (
2299   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300     eval ac_val=\$$ac_var
2301     case $ac_val in #(
2302     *${as_nl}*)
2303       case $ac_var in #(
2304       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306       esac
2307       case $ac_var in #(
2308       _ | IFS | as_nl) ;; #(
2309       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310       *) { eval $ac_var=; unset $ac_var;} ;;
2311       esac ;;
2312     esac
2313   done
2314   (set) 2>&1 |
2315     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316     *${as_nl}ac_space=\ *)
2317       sed -n \
2318         "s/'\''/'\''\\\\'\'''\''/g;
2319           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320       ;; #(
2321     *)
2322       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2323       ;;
2324     esac |
2325     sort
2326 )
2327     echo
2328
2329     $as_echo "## ----------------- ##
2330 ## Output variables. ##
2331 ## ----------------- ##"
2332     echo
2333     for ac_var in $ac_subst_vars
2334     do
2335       eval ac_val=\$$ac_var
2336       case $ac_val in
2337       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338       esac
2339       $as_echo "$ac_var='\''$ac_val'\''"
2340     done | sort
2341     echo
2342
2343     if test -n "$ac_subst_files"; then
2344       $as_echo "## ------------------- ##
2345 ## File substitutions. ##
2346 ## ------------------- ##"
2347       echo
2348       for ac_var in $ac_subst_files
2349       do
2350         eval ac_val=\$$ac_var
2351         case $ac_val in
2352         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353         esac
2354         $as_echo "$ac_var='\''$ac_val'\''"
2355       done | sort
2356       echo
2357     fi
2358
2359     if test -s confdefs.h; then
2360       $as_echo "## ----------- ##
2361 ## confdefs.h. ##
2362 ## ----------- ##"
2363       echo
2364       cat confdefs.h
2365       echo
2366     fi
2367     test "$ac_signal" != 0 &&
2368       $as_echo "$as_me: caught signal $ac_signal"
2369     $as_echo "$as_me: exit $exit_status"
2370   } >&5
2371   rm -f core *.core core.conftest.* &&
2372     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373     exit $exit_status
2374 ' 0
2375 for ac_signal in 1 2 13 15; do
2376   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377 done
2378 ac_signal=0
2379
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2381 rm -f -r conftest* confdefs.h
2382
2383 $as_echo "/* confdefs.h */" > confdefs.h
2384
2385 # Predefined preprocessor variables.
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_NAME "$PACKAGE_NAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_STRING "$PACKAGE_STRING"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_URL "$PACKAGE_URL"
2409 _ACEOF
2410
2411
2412 # Let the site file select an alternate cache file if it wants to.
2413 # Prefer an explicitly selected file to automatically selected ones.
2414 ac_site_file1=NONE
2415 ac_site_file2=NONE
2416 if test -n "$CONFIG_SITE"; then
2417   # We do not want a PATH search for config.site.
2418   case $CONFIG_SITE in #((
2419     -*)  ac_site_file1=./$CONFIG_SITE;;
2420     */*) ac_site_file1=$CONFIG_SITE;;
2421     *)   ac_site_file1=./$CONFIG_SITE;;
2422   esac
2423 elif test "x$prefix" != xNONE; then
2424   ac_site_file1=$prefix/share/config.site
2425   ac_site_file2=$prefix/etc/config.site
2426 else
2427   ac_site_file1=$ac_default_prefix/share/config.site
2428   ac_site_file2=$ac_default_prefix/etc/config.site
2429 fi
2430 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2431 do
2432   test "x$ac_site_file" = xNONE && continue
2433   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2434     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436     sed 's/^/| /' "$ac_site_file" >&5
2437     . "$ac_site_file" \
2438       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 as_fn_error $? "failed to load site script $ac_site_file
2441 See \`config.log' for more details" "$LINENO" 5; }
2442   fi
2443 done
2444
2445 if test -r "$cache_file"; then
2446   # Some versions of bash will fail to source /dev/null (special files
2447   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2448   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2449     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450 $as_echo "$as_me: loading cache $cache_file" >&6;}
2451     case $cache_file in
2452       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453       *)                      . "./$cache_file";;
2454     esac
2455   fi
2456 else
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458 $as_echo "$as_me: creating cache $cache_file" >&6;}
2459   >$cache_file
2460 fi
2461
2462 # Check that the precious variables saved in the cache have kept the same
2463 # value.
2464 ac_cache_corrupted=false
2465 for ac_var in $ac_precious_vars; do
2466   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467   eval ac_new_set=\$ac_env_${ac_var}_set
2468   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469   eval ac_new_val=\$ac_env_${ac_var}_value
2470   case $ac_old_set,$ac_new_set in
2471     set,)
2472       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474       ac_cache_corrupted=: ;;
2475     ,set)
2476       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478       ac_cache_corrupted=: ;;
2479     ,);;
2480     *)
2481       if test "x$ac_old_val" != "x$ac_new_val"; then
2482         # differences in whitespace do not lead to failure.
2483         ac_old_val_w=`echo x $ac_old_val`
2484         ac_new_val_w=`echo x $ac_new_val`
2485         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488           ac_cache_corrupted=:
2489         else
2490           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492           eval $ac_var=\$ac_old_val
2493         fi
2494         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2495 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2496         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2497 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2498       fi;;
2499   esac
2500   # Pass precious variables to config.status.
2501   if test "$ac_new_set" = set; then
2502     case $ac_new_val in
2503     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504     *) ac_arg=$ac_var=$ac_new_val ;;
2505     esac
2506     case " $ac_configure_args " in
2507       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2508       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509     esac
2510   fi
2511 done
2512 if $ac_cache_corrupted; then
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2518 fi
2519 ## -------------------- ##
2520 ## Main body of script. ##
2521 ## -------------------- ##
2522
2523 ac_ext=c
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530 ac_aux_dir=
2531 for ac_dir in . "$srcdir"/.; do
2532   if test -f "$ac_dir/install-sh"; then
2533     ac_aux_dir=$ac_dir
2534     ac_install_sh="$ac_aux_dir/install-sh -c"
2535     break
2536   elif test -f "$ac_dir/install.sh"; then
2537     ac_aux_dir=$ac_dir
2538     ac_install_sh="$ac_aux_dir/install.sh -c"
2539     break
2540   elif test -f "$ac_dir/shtool"; then
2541     ac_aux_dir=$ac_dir
2542     ac_install_sh="$ac_aux_dir/shtool install -c"
2543     break
2544   fi
2545 done
2546 if test -z "$ac_aux_dir"; then
2547   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2548 fi
2549
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2557
2558
2559
2560 am__api_version='1.11'
2561
2562 # Find a good install program.  We prefer a C program (faster),
2563 # so one script is as good as another.  But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2568 # AIX /bin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # OS/2's system install, which has a completely different semantic
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 # Reject install programs that cannot install multiple files.
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2578 if test -z "$INSTALL"; then
2579 if ${ac_cv_path_install+:} false; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587     # Account for people who put trailing slashes in PATH elements.
2588 case $as_dir/ in #((
2589   ./ | .// | /[cC]/* | \
2590   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592   /usr/ucb/* ) ;;
2593   *)
2594     # OSF1 and SCO ODT 3.0 have their own names for install.
2595     # Don't use installbsd from OSF since it installs stuff as root
2596     # by default.
2597     for ac_prog in ginstall scoinst install; do
2598       for ac_exec_ext in '' $ac_executable_extensions; do
2599         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2600           if test $ac_prog = install &&
2601             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602             # AIX install.  It has an incompatible calling convention.
2603             :
2604           elif test $ac_prog = install &&
2605             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606             # program-specific install script used by HP pwplus--don't use.
2607             :
2608           else
2609             rm -rf conftest.one conftest.two conftest.dir
2610             echo one > conftest.one
2611             echo two > conftest.two
2612             mkdir conftest.dir
2613             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614               test -s conftest.one && test -s conftest.two &&
2615               test -s conftest.dir/conftest.one &&
2616               test -s conftest.dir/conftest.two
2617             then
2618               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619               break 3
2620             fi
2621           fi
2622         fi
2623       done
2624     done
2625     ;;
2626 esac
2627
2628   done
2629 IFS=$as_save_IFS
2630
2631 rm -rf conftest.one conftest.two conftest.dir
2632
2633 fi
2634   if test "${ac_cv_path_install+set}" = set; then
2635     INSTALL=$ac_cv_path_install
2636   else
2637     # As a last resort, use the slow shell script.  Don't cache a
2638     # value for INSTALL within a source directory, because that will
2639     # break other packages using the cache if that directory is
2640     # removed, or if the value is a relative name.
2641     INSTALL=$ac_install_sh
2642   fi
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645 $as_echo "$INSTALL" >&6; }
2646
2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648 # It thinks the first close brace ends the variable substitution.
2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650
2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652
2653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656 $as_echo_n "checking whether build environment is sane... " >&6; }
2657 # Just in case
2658 sleep 1
2659 echo timestamp > conftest.file
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name.  Accept space and tab only in the latter.
2662 am_lf='
2663 '
2664 case `pwd` in
2665   *[\\\"\#\$\&\'\`$am_lf]*)
2666     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2667 esac
2668 case $srcdir in
2669   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2670     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2671 esac
2672
2673 # Do `set' in a subshell so we don't clobber the current shell's
2674 # arguments.  Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2677 # directory).
2678 if (
2679    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680    if test "$*" = "X"; then
2681       # -L didn't work.
2682       set X `ls -t "$srcdir/configure" conftest.file`
2683    fi
2684    rm -f conftest.file
2685    if test "$*" != "X $srcdir/configure conftest.file" \
2686       && test "$*" != "X conftest.file $srcdir/configure"; then
2687
2688       # If neither matched, then we have a broken ls.  This can happen
2689       # if, for instance, CONFIG_SHELL is bash and it inherits a
2690       # broken ls alias from the environment.  This has actually
2691       # happened.  Such a system could not be considered "sane".
2692       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694    fi
2695
2696    test "$2" = conftest.file
2697    )
2698 then
2699    # Ok.
2700    :
2701 else
2702    as_fn_error $? "newly created file is older than distributed files!
2703 Check your system clock" "$LINENO" 5
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706 $as_echo "yes" >&6; }
2707 test "$program_prefix" != NONE &&
2708   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2709 # Use a double $ so make ignores it.
2710 test "$program_suffix" != NONE &&
2711   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2712 # Double any \ or $.
2713 # By default was `s,x,x', remove it if useless.
2714 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2715 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2716
2717 # expand $ac_aux_dir to an absolute path
2718 am_aux_dir=`cd $ac_aux_dir && pwd`
2719
2720 if test x"${MISSING+set}" != xset; then
2721   case $am_aux_dir in
2722   *\ * | *\     *)
2723     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2724   *)
2725     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2726   esac
2727 fi
2728 # Use eval to expand $SHELL
2729 if eval "$MISSING --run true"; then
2730   am_missing_run="$MISSING --run "
2731 else
2732   am_missing_run=
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2735 fi
2736
2737 if test x"${install_sh}" != xset; then
2738   case $am_aux_dir in
2739   *\ * | *\     *)
2740     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2741   *)
2742     install_sh="\${SHELL} $am_aux_dir/install-sh"
2743   esac
2744 fi
2745
2746 # Installed binaries are usually stripped using `strip' when the user
2747 # run `make install-strip'.  However `strip' might not be the right
2748 # tool to use in cross-compilation environments, therefore Automake
2749 # will honor the `STRIP' environment variable to overrule this program.
2750 if test "$cross_compiling" != no; then
2751   if test -n "$ac_tool_prefix"; then
2752   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}strip; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_STRIP+:} false; then :
2757   $as_echo_n "(cached) " >&6
2758 else
2759   if test -n "$STRIP"; then
2760   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     for ac_exec_ext in '' $ac_executable_extensions; do
2768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774   done
2775 IFS=$as_save_IFS
2776
2777 fi
2778 fi
2779 STRIP=$ac_cv_prog_STRIP
2780 if test -n "$STRIP"; then
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2782 $as_echo "$STRIP" >&6; }
2783 else
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2786 fi
2787
2788
2789 fi
2790 if test -z "$ac_cv_prog_STRIP"; then
2791   ac_ct_STRIP=$STRIP
2792   # Extract the first word of "strip", so it can be a program name with args.
2793 set dummy strip; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2797   $as_echo_n "(cached) " >&6
2798 else
2799   if test -n "$ac_ct_STRIP"; then
2800   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807     for ac_exec_ext in '' $ac_executable_extensions; do
2808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809     ac_cv_prog_ac_ct_STRIP="strip"
2810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814   done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2820 if test -n "$ac_ct_STRIP"; then
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2822 $as_echo "$ac_ct_STRIP" >&6; }
2823 else
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828   if test "x$ac_ct_STRIP" = x; then
2829     STRIP=":"
2830   else
2831     case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837     STRIP=$ac_ct_STRIP
2838   fi
2839 else
2840   STRIP="$ac_cv_prog_STRIP"
2841 fi
2842
2843 fi
2844 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2845
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2848 if test -z "$MKDIR_P"; then
2849   if ${ac_cv_path_mkdir+:} false; then :
2850   $as_echo_n "(cached) " >&6
2851 else
2852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_prog in mkdir gmkdir; do
2858          for ac_exec_ext in '' $ac_executable_extensions; do
2859            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2860            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2861              'mkdir (GNU coreutils) '* | \
2862              'mkdir (coreutils) '* | \
2863              'mkdir (fileutils) '4.1*)
2864                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2865                break 3;;
2866            esac
2867          done
2868        done
2869   done
2870 IFS=$as_save_IFS
2871
2872 fi
2873
2874   test -d ./--version && rmdir ./--version
2875   if test "${ac_cv_path_mkdir+set}" = set; then
2876     MKDIR_P="$ac_cv_path_mkdir -p"
2877   else
2878     # As a last resort, use the slow shell script.  Don't cache a
2879     # value for MKDIR_P within a source directory, because that will
2880     # break other packages using the cache if that directory is
2881     # removed, or if the value is a relative name.
2882     MKDIR_P="$ac_install_sh -d"
2883   fi
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2886 $as_echo "$MKDIR_P" >&6; }
2887
2888 mkdir_p="$MKDIR_P"
2889 case $mkdir_p in
2890   [\\/$]* | ?:[\\/]*) ;;
2891   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2892 esac
2893
2894 for ac_prog in gawk mawk nawk awk
2895 do
2896   # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_AWK+:} false; then :
2901   $as_echo_n "(cached) " >&6
2902 else
2903   if test -n "$AWK"; then
2904   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911     for ac_exec_ext in '' $ac_executable_extensions; do
2912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913     ac_cv_prog_AWK="$ac_prog"
2914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918   done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 AWK=$ac_cv_prog_AWK
2924 if test -n "$AWK"; then
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2926 $as_echo "$AWK" >&6; }
2927 else
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932
2933   test -n "$AWK" && break
2934 done
2935
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2938 set x ${MAKE-make}
2939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2941   $as_echo_n "(cached) " >&6
2942 else
2943   cat >conftest.make <<\_ACEOF
2944 SHELL = /bin/sh
2945 all:
2946         @echo '@@@%%%=$(MAKE)=@@@%%%'
2947 _ACEOF
2948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2950   *@@@%%%=?*=@@@%%%*)
2951     eval ac_cv_prog_make_${ac_make}_set=yes;;
2952   *)
2953     eval ac_cv_prog_make_${ac_make}_set=no;;
2954 esac
2955 rm -f conftest.make
2956 fi
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960   SET_MAKE=
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964   SET_MAKE="MAKE=${MAKE-make}"
2965 fi
2966
2967 rm -rf .tst 2>/dev/null
2968 mkdir .tst 2>/dev/null
2969 if test -d .tst; then
2970   am__leading_dot=.
2971 else
2972   am__leading_dot=_
2973 fi
2974 rmdir .tst 2>/dev/null
2975
2976 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2977   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2978   # is not polluted with repeated "-I."
2979   am__isrc=' -I$(srcdir)'
2980   # test to see if srcdir already configured
2981   if test -f $srcdir/config.status; then
2982     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2983   fi
2984 fi
2985
2986 # test whether we have cygpath
2987 if test -z "$CYGPATH_W"; then
2988   if (cygpath --version) >/dev/null 2>/dev/null; then
2989     CYGPATH_W='cygpath -w'
2990   else
2991     CYGPATH_W=echo
2992   fi
2993 fi
2994
2995
2996 # Define the identity of the package.
2997  PACKAGE='opencore-amr'
2998  VERSION='0.1.3'
2999
3000
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE "$PACKAGE"
3003 _ACEOF
3004
3005
3006 cat >>confdefs.h <<_ACEOF
3007 #define VERSION "$VERSION"
3008 _ACEOF
3009
3010 # Some tools Automake needs.
3011
3012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3013
3014
3015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3016
3017
3018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3019
3020
3021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3022
3023
3024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3025
3026 # We need awk for the "check" target.  The system "awk" is bad on
3027 # some platforms.
3028 # Always define AMTAR for backward compatibility.  Yes, it's still used
3029 # in the wild :-(  We should find a proper way to deprecate it ...
3030 AMTAR='$${TAR-tar}'
3031
3032
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3034 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3035 # Loop over all known methods to create a tar archive until one works.
3036 _am_tools='gnutar plaintar pax cpio none'
3037 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3038 # Do not fold the above two line into one, because Tru64 sh and
3039 # Solaris sh will not grok spaces in the rhs of `-'.
3040 for _am_tool in $_am_tools
3041 do
3042   case $_am_tool in
3043   gnutar)
3044     for _am_tar in tar gnutar gtar;
3045     do
3046       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3047    ($_am_tar --version) >&5 2>&5
3048    ac_status=$?
3049    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050    (exit $ac_status); } && break
3051     done
3052     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3053     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3054     am__untar="$_am_tar -xf -"
3055     ;;
3056   plaintar)
3057     # Must skip GNU tar: if it does not support --format= it doesn't create
3058     # ustar tarball either.
3059     (tar --version) >/dev/null 2>&1 && continue
3060     am__tar='tar chf - "$$tardir"'
3061     am__tar_='tar chf - "$tardir"'
3062     am__untar='tar xf -'
3063     ;;
3064   pax)
3065     am__tar='pax -L -x ustar -w "$$tardir"'
3066     am__tar_='pax -L -x ustar -w "$tardir"'
3067     am__untar='pax -r'
3068     ;;
3069   cpio)
3070     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3071     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3072     am__untar='cpio -i -H ustar -d'
3073     ;;
3074   none)
3075     am__tar=false
3076     am__tar_=false
3077     am__untar=false
3078     ;;
3079   esac
3080
3081   # If the value was cached, stop now.  We just wanted to have am__tar
3082   # and am__untar set.
3083   test -n "${am_cv_prog_tar_ustar}" && break
3084
3085   # tar/untar a dummy directory, and stop if the command works
3086   rm -rf conftest.dir
3087   mkdir conftest.dir
3088   echo GrepMe > conftest.dir/file
3089   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3090    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3091    ac_status=$?
3092    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093    (exit $ac_status); }
3094   rm -rf conftest.dir
3095   if test -s conftest.tar; then
3096     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3097    ($am__untar <conftest.tar) >&5 2>&5
3098    ac_status=$?
3099    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100    (exit $ac_status); }
3101     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3102   fi
3103 done
3104 rm -rf conftest.dir
3105
3106 if ${am_cv_prog_tar_ustar+:} false; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   am_cv_prog_tar_ustar=$_am_tool
3110 fi
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3113 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3114
3115
3116
3117
3118
3119 # Check whether --enable-silent-rules was given.
3120 if test "${enable_silent_rules+set}" = set; then :
3121   enableval=$enable_silent_rules;
3122 fi
3123
3124 case $enable_silent_rules in
3125 yes) AM_DEFAULT_VERBOSITY=0;;
3126 no)  AM_DEFAULT_VERBOSITY=1;;
3127 *)   AM_DEFAULT_VERBOSITY=0;;
3128 esac
3129 am_make=${MAKE-make}
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3131 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3132 if ${am_cv_make_support_nested_variables+:} false; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if $as_echo 'TRUE=$(BAR$(V))
3136 BAR0=false
3137 BAR1=true
3138 V=1
3139 am__doit:
3140         @$(TRUE)
3141 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3142   am_cv_make_support_nested_variables=yes
3143 else
3144   am_cv_make_support_nested_variables=no
3145 fi
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3148 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3149 if test $am_cv_make_support_nested_variables = yes; then
3150     AM_V='$(V)'
3151   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3152 else
3153   AM_V=$AM_DEFAULT_VERBOSITY
3154   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3155 fi
3156 AM_BACKSLASH='\'
3157
3158 ac_config_headers="$ac_config_headers config.h"
3159
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3162 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3163     # Check whether --enable-maintainer-mode was given.
3164 if test "${enable_maintainer_mode+set}" = set; then :
3165   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3166 else
3167   USE_MAINTAINER_MODE=no
3168 fi
3169
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3171 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3172    if test $USE_MAINTAINER_MODE = yes; then
3173   MAINTAINER_MODE_TRUE=
3174   MAINTAINER_MODE_FALSE='#'
3175 else
3176   MAINTAINER_MODE_TRUE='#'
3177   MAINTAINER_MODE_FALSE=
3178 fi
3179
3180   MAINT=$MAINTAINER_MODE_TRUE
3181
3182
3183
3184 # Cross compiling support
3185 # Make sure we can run config.sub.
3186 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3187   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3188
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3190 $as_echo_n "checking build system type... " >&6; }
3191 if ${ac_cv_build+:} false; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   ac_build_alias=$build_alias
3195 test "x$ac_build_alias" = x &&
3196   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3197 test "x$ac_build_alias" = x &&
3198   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3199 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3200   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3201
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3204 $as_echo "$ac_cv_build" >&6; }
3205 case $ac_cv_build in
3206 *-*-*) ;;
3207 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3208 esac
3209 build=$ac_cv_build
3210 ac_save_IFS=$IFS; IFS='-'
3211 set x $ac_cv_build
3212 shift
3213 build_cpu=$1
3214 build_vendor=$2
3215 shift; shift
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3218 build_os=$*
3219 IFS=$ac_save_IFS
3220 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3221
3222
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3224 $as_echo_n "checking host system type... " >&6; }
3225 if ${ac_cv_host+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test "x$host_alias" = x; then
3229   ac_cv_host=$ac_cv_build
3230 else
3231   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3232     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3233 fi
3234
3235 fi
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3237 $as_echo "$ac_cv_host" >&6; }
3238 case $ac_cv_host in
3239 *-*-*) ;;
3240 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3241 esac
3242 host=$ac_cv_host
3243 ac_save_IFS=$IFS; IFS='-'
3244 set x $ac_cv_host
3245 shift
3246 host_cpu=$1
3247 host_vendor=$2
3248 shift; shift
3249 # Remember, the first character of IFS is used to create $*,
3250 # except with old shells:
3251 host_os=$*
3252 IFS=$ac_save_IFS
3253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3254
3255
3256
3257 # Various options for configure
3258 # Check whether --enable-compile-c was given.
3259 if test "${enable_compile_c+set}" = set; then :
3260   enableval=$enable_compile_c; compile_as_c=$enableval
3261 else
3262   compile_as_c=yes
3263 fi
3264
3265 # Check whether --enable-gcc-armv5 was given.
3266 if test "${enable_gcc_armv5+set}" = set; then :
3267   enableval=$enable_gcc_armv5; gcc_armv5=$enableval
3268 else
3269   gcc_armv5=no
3270 fi
3271
3272 # Check whether --enable-amrnb-encoder was given.
3273 if test "${enable_amrnb_encoder+set}" = set; then :
3274   enableval=$enable_amrnb_encoder; amrnb_encoder=$enableval
3275 else
3276   amrnb_encoder=yes
3277 fi
3278
3279 # Check whether --enable-amrnb-decoder was given.
3280 if test "${enable_amrnb_decoder+set}" = set; then :
3281   enableval=$enable_amrnb_decoder; amrnb_decoder=$enableval
3282 else
3283   amrnb_decoder=yes
3284 fi
3285
3286 # Check whether --enable-examples was given.
3287 if test "${enable_examples+set}" = set; then :
3288   enableval=$enable_examples; examples=$enableval
3289 else
3290   examples=no
3291 fi
3292
3293
3294 # Automake conditionals to set
3295  if test x$compile_as_c = xyes; then
3296   COMPILE_AS_C_TRUE=
3297   COMPILE_AS_C_FALSE='#'
3298 else
3299   COMPILE_AS_C_TRUE='#'
3300   COMPILE_AS_C_FALSE=
3301 fi
3302
3303  if test x$gcc_armv5 = xyes; then
3304   GCC_ARMV5_TRUE=
3305   GCC_ARMV5_FALSE='#'
3306 else
3307   GCC_ARMV5_TRUE='#'
3308   GCC_ARMV5_FALSE=
3309 fi
3310
3311  if test x$amrnb_encoder = xyes; then
3312   AMRNB_ENCODER_TRUE=
3313   AMRNB_ENCODER_FALSE='#'
3314 else
3315   AMRNB_ENCODER_TRUE='#'
3316   AMRNB_ENCODER_FALSE=
3317 fi
3318
3319  if test x$amrnb_decoder = xyes; then
3320   AMRNB_DECODER_TRUE=
3321   AMRNB_DECODER_FALSE='#'
3322 else
3323   AMRNB_DECODER_TRUE='#'
3324   AMRNB_DECODER_FALSE=
3325 fi
3326
3327  if test x$examples = xyes; then
3328   EXAMPLES_TRUE=
3329   EXAMPLES_FALSE='#'
3330 else
3331   EXAMPLES_TRUE='#'
3332   EXAMPLES_FALSE=
3333 fi
3334
3335
3336 # Checks for programs.
3337 ac_ext=cpp
3338 ac_cpp='$CXXCPP $CPPFLAGS'
3339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3342 if test -z "$CXX"; then
3343   if test -n "$CCC"; then
3344     CXX=$CCC
3345   else
3346     if test -n "$ac_tool_prefix"; then
3347   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3348   do
3349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CXX+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$CXX"; then
3357   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364     for ac_exec_ext in '' $ac_executable_extensions; do
3365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371   done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CXX=$ac_cv_prog_CXX
3377 if test -n "$CXX"; then
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3379 $as_echo "$CXX" >&6; }
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385
3386     test -n "$CXX" && break
3387   done
3388 fi
3389 if test -z "$CXX"; then
3390   ac_ct_CXX=$CXX
3391   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3392 do
3393   # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   if test -n "$ac_ct_CXX"; then
3401   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     ac_cv_prog_ac_ct_CXX="$ac_prog"
3411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415   done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3421 if test -n "$ac_ct_CXX"; then
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3423 $as_echo "$ac_ct_CXX" >&6; }
3424 else
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430   test -n "$ac_ct_CXX" && break
3431 done
3432
3433   if test "x$ac_ct_CXX" = x; then
3434     CXX="g++"
3435   else
3436     case $cross_compiling:$ac_tool_warned in
3437 yes:)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440 ac_tool_warned=yes ;;
3441 esac
3442     CXX=$ac_ct_CXX
3443   fi
3444 fi
3445
3446   fi
3447 fi
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3450 set X $ac_compile
3451 ac_compiler=$2
3452 for ac_option in --version -v -V -qversion; do
3453   { { ac_try="$ac_compiler $ac_option >&5"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461   ac_status=$?
3462   if test -s conftest.err; then
3463     sed '10a\
3464 ... rest of stderr output deleted ...
3465          10q' conftest.err >conftest.er1
3466     cat conftest.er1 >&5
3467   fi
3468   rm -f conftest.er1 conftest.err
3469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }
3471 done
3472
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 ac_clean_files_save=$ac_clean_files
3485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3486 # Try to create an executable without -o first, disregard a.out.
3487 # It will help us diagnose broken compilers, and finding out an intuition
3488 # of exeext.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3490 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492
3493 # The possible output files:
3494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495
3496 ac_rmfiles=
3497 for ac_file in $ac_files
3498 do
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3502   esac
3503 done
3504 rm -f $ac_rmfiles
3505
3506 if { { ac_try="$ac_link_default"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513   (eval "$ac_link_default") 2>&5
3514   ac_status=$?
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }; then :
3517   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3520 # so that the user can short-circuit this test for compilers unknown to
3521 # Autoconf.
3522 for ac_file in $ac_files ''
3523 do
3524   test -f "$ac_file" || continue
3525   case $ac_file in
3526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527         ;;
3528     [ab].out )
3529         # We found the default executable, but exeext='' is most
3530         # certainly right.
3531         break;;
3532     *.* )
3533         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534         then :; else
3535            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536         fi
3537         # We set ac_cv_exeext here because the later test for it is not
3538         # safe: cross compilers may not add the suffix if given an `-o'
3539         # argument, so we may need to know it at that point already.
3540         # Even if this section looks crufty: it has the advantage of
3541         # actually working.
3542         break;;
3543     * )
3544         break;;
3545   esac
3546 done
3547 test "$ac_cv_exeext" = no && ac_cv_exeext=
3548
3549 else
3550   ac_file=''
3551 fi
3552 if test -z "$ac_file"; then :
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error 77 "C++ compiler cannot create executables
3561 See \`config.log' for more details" "$LINENO" 5; }
3562 else
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3567 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 ac_exeext=$ac_cv_exeext
3571
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { { ac_try="$ac_link"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583   (eval "$ac_link") 2>&5
3584   ac_status=$?
3585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586   test $ac_status = 0; }; then :
3587   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3590 # `rm'.
3591 for ac_file in conftest.exe conftest conftest.*; do
3592   test -f "$ac_file" || continue
3593   case $ac_file in
3594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596           break;;
3597     * ) break;;
3598   esac
3599 done
3600 else
3601   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details" "$LINENO" 5; }
3605 fi
3606 rm -f conftest conftest$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 $as_echo "$ac_cv_exeext" >&6; }
3609
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3612 ac_exeext=$EXEEXT
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615 #include <stdio.h>
3616 int
3617 main ()
3618 {
3619 FILE *f = fopen ("conftest.out", "w");
3620  return ferror (f) || fclose (f) != 0;
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 ac_clean_files="$ac_clean_files conftest.out"
3627 # Check that the compiler produces executables we can run.  If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 if test "$cross_compiling" != yes; then
3632   { { ac_try="$ac_link"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639   (eval "$ac_link") 2>&5
3640   ac_status=$?
3641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642   test $ac_status = 0; }
3643   if { ac_try='./conftest$ac_cv_exeext'
3644   { { case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650   (eval "$ac_try") 2>&5
3651   ac_status=$?
3652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653   test $ac_status = 0; }; }; then
3654     cross_compiling=no
3655   else
3656     if test "$cross_compiling" = maybe; then
3657         cross_compiling=yes
3658     else
3659         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "cannot run C++ compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details" "$LINENO" 5; }
3664     fi
3665   fi
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3668 $as_echo "$cross_compiling" >&6; }
3669
3670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3671 ac_clean_files=$ac_clean_files_save
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if ${ac_cv_objext+:} false; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h.  */
3679
3680 int
3681 main ()
3682 {
3683
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.o conftest.obj
3689 if { { ac_try="$ac_compile"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_compile") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   for ac_file in conftest.o conftest.obj conftest.*; do
3701   test -f "$ac_file" || continue;
3702   case $ac_file in
3703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3704     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3705        break;;
3706   esac
3707 done
3708 else
3709   $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details" "$LINENO" 5; }
3716 fi
3717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3720 $as_echo "$ac_cv_objext" >&6; }
3721 OBJEXT=$ac_cv_objext
3722 ac_objext=$OBJEXT
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3724 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3725 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3726   $as_echo_n "(cached) " >&6
3727 else
3728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734 #ifndef __GNUC__
3735        choke me
3736 #endif
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3743   ac_compiler_gnu=yes
3744 else
3745   ac_compiler_gnu=no
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3749
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3752 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3754   GXX=yes
3755 else
3756   GXX=
3757 fi
3758 ac_test_CXXFLAGS=${CXXFLAGS+set}
3759 ac_save_CXXFLAGS=$CXXFLAGS
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3761 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3762 if ${ac_cv_prog_cxx_g+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3766    ac_cxx_werror_flag=yes
3767    ac_cv_prog_cxx_g=no
3768    CXXFLAGS="-g"
3769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_cxx_try_compile "$LINENO"; then :
3781   ac_cv_prog_cxx_g=yes
3782 else
3783   CXXFLAGS=""
3784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786
3787 int
3788 main ()
3789 {
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_cxx_try_compile "$LINENO"; then :
3796
3797 else
3798   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3799          CXXFLAGS="-g"
3800          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_cxx_try_compile "$LINENO"; then :
3812   ac_cv_prog_cxx_g=yes
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3822 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3823 if test "$ac_test_CXXFLAGS" = set; then
3824   CXXFLAGS=$ac_save_CXXFLAGS
3825 elif test $ac_cv_prog_cxx_g = yes; then
3826   if test "$GXX" = yes; then
3827     CXXFLAGS="-g -O2"
3828   else
3829     CXXFLAGS="-g"
3830   fi
3831 else
3832   if test "$GXX" = yes; then
3833     CXXFLAGS="-O2"
3834   else
3835     CXXFLAGS=
3836   fi
3837 fi
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 DEPDIR="${am__leading_dot}deps"
3844
3845 ac_config_commands="$ac_config_commands depfiles"
3846
3847
3848 am_make=${MAKE-make}
3849 cat > confinc << 'END'
3850 am__doit:
3851         @echo this is the am__doit target
3852 .PHONY: am__doit
3853 END
3854 # If we don't find an include directive, just comment out the code.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3856 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3857 am__include="#"
3858 am__quote=
3859 _am_result=none
3860 # First try GNU make style include.
3861 echo "include confinc" > confmf
3862 # Ignore all kinds of additional output from `make'.
3863 case `$am_make -s -f confmf 2> /dev/null` in #(
3864 *the\ am__doit\ target*)
3865   am__include=include
3866   am__quote=
3867   _am_result=GNU
3868   ;;
3869 esac
3870 # Now try BSD make style include.
3871 if test "$am__include" = "#"; then
3872    echo '.include "confinc"' > confmf
3873    case `$am_make -s -f confmf 2> /dev/null` in #(
3874    *the\ am__doit\ target*)
3875      am__include=.include
3876      am__quote="\""
3877      _am_result=BSD
3878      ;;
3879    esac
3880 fi
3881
3882
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3884 $as_echo "$_am_result" >&6; }
3885 rm -f confinc confmf
3886
3887 # Check whether --enable-dependency-tracking was given.
3888 if test "${enable_dependency_tracking+set}" = set; then :
3889   enableval=$enable_dependency_tracking;
3890 fi
3891
3892 if test "x$enable_dependency_tracking" != xno; then
3893   am_depcomp="$ac_aux_dir/depcomp"
3894   AMDEPBACKSLASH='\'
3895   am__nodep='_no'
3896 fi
3897  if test "x$enable_dependency_tracking" != xno; then
3898   AMDEP_TRUE=
3899   AMDEP_FALSE='#'
3900 else
3901   AMDEP_TRUE='#'
3902   AMDEP_FALSE=
3903 fi
3904
3905
3906
3907 depcc="$CXX"  am_compiler_list=
3908
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3910 $as_echo_n "checking dependency style of $depcc... " >&6; }
3911 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3912   $as_echo_n "(cached) " >&6
3913 else
3914   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3915   # We make a subdir and do the tests there.  Otherwise we can end up
3916   # making bogus files that we don't know about and never remove.  For
3917   # instance it was reported that on HP-UX the gcc test will end up
3918   # making a dummy file named `D' -- because `-MD' means `put the output
3919   # in D'.
3920   rm -rf conftest.dir
3921   mkdir conftest.dir
3922   # Copy depcomp to subdir because otherwise we won't find it if we're
3923   # using a relative directory.
3924   cp "$am_depcomp" conftest.dir
3925   cd conftest.dir
3926   # We will build objects and dependencies in a subdirectory because
3927   # it helps to detect inapplicable dependency modes.  For instance
3928   # both Tru64's cc and ICC support -MD to output dependencies as a
3929   # side effect of compilation, but ICC will put the dependencies in
3930   # the current directory while Tru64 will put them in the object
3931   # directory.
3932   mkdir sub
3933
3934   am_cv_CXX_dependencies_compiler_type=none
3935   if test "$am_compiler_list" = ""; then
3936      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3937   fi
3938   am__universal=false
3939   case " $depcc " in #(
3940      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3941      esac
3942
3943   for depmode in $am_compiler_list; do
3944     # Setup a source with many dependencies, because some compilers
3945     # like to wrap large dependency lists on column 80 (with \), and
3946     # we should not choose a depcomp mode which is confused by this.
3947     #
3948     # We need to recreate these files for each test, as the compiler may
3949     # overwrite some of them when testing with obscure command lines.
3950     # This happens at least with the AIX C compiler.
3951     : > sub/conftest.c
3952     for i in 1 2 3 4 5 6; do
3953       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3954       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3955       # Solaris 8's {/usr,}/bin/sh.
3956       touch sub/conftst$i.h
3957     done
3958     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3959
3960     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3961     # mode.  It turns out that the SunPro C++ compiler does not properly
3962     # handle `-M -o', and we need to detect this.  Also, some Intel
3963     # versions had trouble with output in subdirs
3964     am__obj=sub/conftest.${OBJEXT-o}
3965     am__minus_obj="-o $am__obj"
3966     case $depmode in
3967     gcc)
3968       # This depmode causes a compiler race in universal mode.
3969       test "$am__universal" = false || continue
3970       ;;
3971     nosideeffect)
3972       # after this tag, mechanisms are not by side-effect, so they'll
3973       # only be used when explicitly requested
3974       if test "x$enable_dependency_tracking" = xyes; then
3975         continue
3976       else
3977         break
3978       fi
3979       ;;
3980     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3981       # This compiler won't grok `-c -o', but also, the minuso test has
3982       # not run yet.  These depmodes are late enough in the game, and
3983       # so weak that their functioning should not be impacted.
3984       am__obj=conftest.${OBJEXT-o}
3985       am__minus_obj=
3986       ;;
3987     none) break ;;
3988     esac
3989     if depmode=$depmode \
3990        source=sub/conftest.c object=$am__obj \
3991        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3992        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3993          >/dev/null 2>conftest.err &&
3994        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3995        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3996        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3997        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3998       # icc doesn't choke on unknown options, it will just issue warnings
3999       # or remarks (even with -Werror).  So we grep stderr for any message
4000       # that says an option was ignored or not supported.
4001       # When given -MP, icc 7.0 and 7.1 complain thusly:
4002       #   icc: Command line warning: ignoring option '-M'; no argument required
4003       # The diagnosis changed in icc 8.0:
4004       #   icc: Command line remark: option '-MP' not supported
4005       if (grep 'ignoring option' conftest.err ||
4006           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4007         am_cv_CXX_dependencies_compiler_type=$depmode
4008         break
4009       fi
4010     fi
4011   done
4012
4013   cd ..
4014   rm -rf conftest.dir
4015 else
4016   am_cv_CXX_dependencies_compiler_type=none
4017 fi
4018
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4021 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4022 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4023
4024  if
4025   test "x$enable_dependency_tracking" != xno \
4026   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4027   am__fastdepCXX_TRUE=
4028   am__fastdepCXX_FALSE='#'
4029 else
4030   am__fastdepCXX_TRUE='#'
4031   am__fastdepCXX_FALSE=
4032 fi
4033
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test -n "$ac_tool_prefix"; then
4041   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_CC+:} false; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   if test -n "$CC"; then
4049   ac_cv_prog_CC="$CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056     for ac_exec_ext in '' $ac_executable_extensions; do
4057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063   done
4064 IFS=$as_save_IFS
4065
4066 fi
4067 fi
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4072 else
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077
4078 fi
4079 if test -z "$ac_cv_prog_CC"; then
4080   ac_ct_CC=$CC
4081   # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -n "$ac_ct_CC"; then
4089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096     for ac_exec_ext in '' $ac_executable_extensions; do
4097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098     ac_cv_prog_ac_ct_CC="gcc"
4099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103   done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 $as_echo "$ac_ct_CC" >&6; }
4112 else
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117   if test "x$ac_ct_CC" = x; then
4118     CC=""
4119   else
4120     case $cross_compiling:$ac_tool_warned in
4121 yes:)
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124 ac_tool_warned=yes ;;
4125 esac
4126     CC=$ac_ct_CC
4127   fi
4128 else
4129   CC="$ac_cv_prog_CC"
4130 fi
4131
4132 if test -z "$CC"; then
4133           if test -n "$ac_tool_prefix"; then
4134     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}cc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test -n "$CC"; then
4142   ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149     for ac_exec_ext in '' $ac_executable_extensions; do
4150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151     ac_cv_prog_CC="${ac_tool_prefix}cc"
4152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156   done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 CC=$ac_cv_prog_CC
4162 if test -n "$CC"; then
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4165 else
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170
4171   fi
4172 fi
4173 if test -z "$CC"; then
4174   # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_CC+:} false; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   if test -n "$CC"; then
4182   ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184   ac_prog_rejected=no
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193        ac_prog_rejected=yes
4194        continue
4195      fi
4196     ac_cv_prog_CC="cc"
4197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201   done
4202 IFS=$as_save_IFS
4203
4204 if test $ac_prog_rejected = yes; then
4205   # We found a bogon in the path, so make sure we never use it.
4206   set dummy $ac_cv_prog_CC
4207   shift
4208   if test $# != 0; then
4209     # We chose a different compiler from the bogus one.
4210     # However, it has the same basename, so the bogon will be chosen
4211     # first if we set CC to just the basename; use the full file name.
4212     shift
4213     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4214   fi
4215 fi
4216 fi
4217 fi
4218 CC=$ac_cv_prog_CC
4219 if test -n "$CC"; then
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4222 else
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227
4228 fi
4229 if test -z "$CC"; then
4230   if test -n "$ac_tool_prefix"; then
4231   for ac_prog in cl.exe
4232   do
4233     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -n "$CC"; then
4241   ac_cv_prog_CC="$CC" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255   done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 CC=$ac_cv_prog_CC
4261 if test -n "$CC"; then
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4264 else
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270     test -n "$CC" && break
4271   done
4272 fi
4273 if test -z "$CC"; then
4274   ac_ct_CC=$CC
4275   for ac_prog in cl.exe
4276 do
4277   # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -n "$ac_ct_CC"; then
4285   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292     for ac_exec_ext in '' $ac_executable_extensions; do
4293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294     ac_cv_prog_ac_ct_CC="$ac_prog"
4295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299   done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4305 if test -n "$ac_ct_CC"; then
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4307 $as_echo "$ac_ct_CC" >&6; }
4308 else
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314   test -n "$ac_ct_CC" && break
4315 done
4316
4317   if test "x$ac_ct_CC" = x; then
4318     CC=""
4319   else
4320     case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326     CC=$ac_ct_CC
4327   fi
4328 fi
4329
4330 fi
4331
4332
4333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $? "no acceptable C compiler found in \$PATH
4336 See \`config.log' for more details" "$LINENO" 5; }
4337
4338 # Provide some information about the compiler.
4339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4340 set X $ac_compile
4341 ac_compiler=$2
4342 for ac_option in --version -v -V -qversion; do
4343   { { ac_try="$ac_compiler $ac_option >&5"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4351   ac_status=$?
4352   if test -s conftest.err; then
4353     sed '10a\
4354 ... rest of stderr output deleted ...
4355          10q' conftest.err >conftest.er1
4356     cat conftest.er1 >&5
4357   fi
4358   rm -f conftest.er1 conftest.err
4359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360   test $ac_status = 0; }
4361 done
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4364 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4365 if ${ac_cv_c_compiler_gnu+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370
4371 int
4372 main ()
4373 {
4374 #ifndef __GNUC__
4375        choke me
4376 #endif
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383   ac_compiler_gnu=yes
4384 else
4385   ac_compiler_gnu=no
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4389
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4392 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4393 if test $ac_compiler_gnu = yes; then
4394   GCC=yes
4395 else
4396   GCC=
4397 fi
4398 ac_test_CFLAGS=${CFLAGS+set}
4399 ac_save_CFLAGS=$CFLAGS
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4401 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4402 if ${ac_cv_prog_cc_g+:} false; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   ac_save_c_werror_flag=$ac_c_werror_flag
4406    ac_c_werror_flag=yes
4407    ac_cv_prog_cc_g=no
4408    CFLAGS="-g"
4409    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411
4412 int
4413 main ()
4414 {
4415
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"; then :
4421   ac_cv_prog_cc_g=yes
4422 else
4423   CFLAGS=""
4424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426
4427 int
4428 main ()
4429 {
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_compile "$LINENO"; then :
4436
4437 else
4438   ac_c_werror_flag=$ac_save_c_werror_flag
4439          CFLAGS="-g"
4440          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h.  */
4442
4443 int
4444 main ()
4445 {
4446
4447   ;
4448   return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"; then :
4452   ac_cv_prog_cc_g=yes
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459    ac_c_werror_flag=$ac_save_c_werror_flag
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4462 $as_echo "$ac_cv_prog_cc_g" >&6; }
4463 if test "$ac_test_CFLAGS" = set; then
4464   CFLAGS=$ac_save_CFLAGS
4465 elif test $ac_cv_prog_cc_g = yes; then
4466   if test "$GCC" = yes; then
4467     CFLAGS="-g -O2"
4468   else
4469     CFLAGS="-g"
4470   fi
4471 else
4472   if test "$GCC" = yes; then
4473     CFLAGS="-O2"
4474   else
4475     CFLAGS=
4476   fi
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4479 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4480 if ${ac_cv_prog_cc_c89+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   ac_cv_prog_cc_c89=no
4484 ac_save_CC=$CC
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487 #include <stdarg.h>
4488 #include <stdio.h>
4489 #include <sys/types.h>
4490 #include <sys/stat.h>
4491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4492 struct buf { int x; };
4493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4494 static char *e (p, i)
4495      char **p;
4496      int i;
4497 {
4498   return p[i];
4499 }
4500 static char *f (char * (*g) (char **, int), char **p, ...)
4501 {
4502   char *s;
4503   va_list v;
4504   va_start (v,p);
4505   s = g (p, va_arg (v,int));
4506   va_end (v);
4507   return s;
4508 }
4509
4510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4511    function prototypes and stuff, but not '\xHH' hex character constants.
4512    These don't provoke an error unfortunately, instead are silently treated
4513    as 'x'.  The following induces an error, until -std is added to get
4514    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4515    array size at least.  It's necessary to write '\x00'==0 to get something
4516    that's true only with -std.  */
4517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4518
4519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4520    inside strings and character constants.  */
4521 #define FOO(x) 'x'
4522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4523
4524 int test (int i, double x);
4525 struct s1 {int (*f) (int a);};
4526 struct s2 {int (*f) (double a);};
4527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4528 int argc;
4529 char **argv;
4530 int
4531 main ()
4532 {
4533 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4539         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4540 do
4541   CC="$ac_save_CC $ac_arg"
4542   if ac_fn_c_try_compile "$LINENO"; then :
4543   ac_cv_prog_cc_c89=$ac_arg
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext
4546   test "x$ac_cv_prog_cc_c89" != "xno" && break
4547 done
4548 rm -f conftest.$ac_ext
4549 CC=$ac_save_CC
4550
4551 fi
4552 # AC_CACHE_VAL
4553 case "x$ac_cv_prog_cc_c89" in
4554   x)
4555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4556 $as_echo "none needed" >&6; } ;;
4557   xno)
4558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4559 $as_echo "unsupported" >&6; } ;;
4560   *)
4561     CC="$CC $ac_cv_prog_cc_c89"
4562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4564 esac
4565 if test "x$ac_cv_prog_cc_c89" != xno; then :
4566
4567 fi
4568
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4575 depcc="$CC"   am_compiler_list=
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4578 $as_echo_n "checking dependency style of $depcc... " >&6; }
4579 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4580   $as_echo_n "(cached) " >&6
4581 else
4582   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4583   # We make a subdir and do the tests there.  Otherwise we can end up
4584   # making bogus files that we don't know about and never remove.  For
4585   # instance it was reported that on HP-UX the gcc test will end up
4586   # making a dummy file named `D' -- because `-MD' means `put the output
4587   # in D'.
4588   rm -rf conftest.dir
4589   mkdir conftest.dir
4590   # Copy depcomp to subdir because otherwise we won't find it if we're
4591   # using a relative directory.
4592   cp "$am_depcomp" conftest.dir
4593   cd conftest.dir
4594   # We will build objects and dependencies in a subdirectory because
4595   # it helps to detect inapplicable dependency modes.  For instance
4596   # both Tru64's cc and ICC support -MD to output dependencies as a
4597   # side effect of compilation, but ICC will put the dependencies in
4598   # the current directory while Tru64 will put them in the object
4599   # directory.
4600   mkdir sub
4601
4602   am_cv_CC_dependencies_compiler_type=none
4603   if test "$am_compiler_list" = ""; then
4604      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4605   fi
4606   am__universal=false
4607   case " $depcc " in #(
4608      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4609      esac
4610
4611   for depmode in $am_compiler_list; do
4612     # Setup a source with many dependencies, because some compilers
4613     # like to wrap large dependency lists on column 80 (with \), and
4614     # we should not choose a depcomp mode which is confused by this.
4615     #
4616     # We need to recreate these files for each test, as the compiler may
4617     # overwrite some of them when testing with obscure command lines.
4618     # This happens at least with the AIX C compiler.
4619     : > sub/conftest.c
4620     for i in 1 2 3 4 5 6; do
4621       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4622       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4623       # Solaris 8's {/usr,}/bin/sh.
4624       touch sub/conftst$i.h
4625     done
4626     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4627
4628     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4629     # mode.  It turns out that the SunPro C++ compiler does not properly
4630     # handle `-M -o', and we need to detect this.  Also, some Intel
4631     # versions had trouble with output in subdirs
4632     am__obj=sub/conftest.${OBJEXT-o}
4633     am__minus_obj="-o $am__obj"
4634     case $depmode in
4635     gcc)
4636       # This depmode causes a compiler race in universal mode.
4637       test "$am__universal" = false || continue
4638       ;;
4639     nosideeffect)
4640       # after this tag, mechanisms are not by side-effect, so they'll
4641       # only be used when explicitly requested
4642       if test "x$enable_dependency_tracking" = xyes; then
4643         continue
4644       else
4645         break
4646       fi
4647       ;;
4648     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4649       # This compiler won't grok `-c -o', but also, the minuso test has
4650       # not run yet.  These depmodes are late enough in the game, and
4651       # so weak that their functioning should not be impacted.
4652       am__obj=conftest.${OBJEXT-o}
4653       am__minus_obj=
4654       ;;
4655     none) break ;;
4656     esac
4657     if depmode=$depmode \
4658        source=sub/conftest.c object=$am__obj \
4659        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4660        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4661          >/dev/null 2>conftest.err &&
4662        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4663        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4664        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4665        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4666       # icc doesn't choke on unknown options, it will just issue warnings
4667       # or remarks (even with -Werror).  So we grep stderr for any message
4668       # that says an option was ignored or not supported.
4669       # When given -MP, icc 7.0 and 7.1 complain thusly:
4670       #   icc: Command line warning: ignoring option '-M'; no argument required
4671       # The diagnosis changed in icc 8.0:
4672       #   icc: Command line remark: option '-MP' not supported
4673       if (grep 'ignoring option' conftest.err ||
4674           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4675         am_cv_CC_dependencies_compiler_type=$depmode
4676         break
4677       fi
4678     fi
4679   done
4680
4681   cd ..
4682   rm -rf conftest.dir
4683 else
4684   am_cv_CC_dependencies_compiler_type=none
4685 fi
4686
4687 fi
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4691
4692  if
4693   test "x$enable_dependency_tracking" != xno \
4694   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4695   am__fastdepCC_TRUE=
4696   am__fastdepCC_FALSE='#'
4697 else
4698   am__fastdepCC_TRUE='#'
4699   am__fastdepCC_FALSE=
4700 fi
4701
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4705 $as_echo_n "checking whether ln -s works... " >&6; }
4706 LN_S=$as_ln_s
4707 if test "$LN_S" = "ln -s"; then
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4709 $as_echo "yes" >&6; }
4710 else
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4712 $as_echo "no, using $LN_S" >&6; }
4713 fi
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4717 set x ${MAKE-make}
4718 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4719 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   cat >conftest.make <<\_ACEOF
4723 SHELL = /bin/sh
4724 all:
4725         @echo '@@@%%%=$(MAKE)=@@@%%%'
4726 _ACEOF
4727 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4729   *@@@%%%=?*=@@@%%%*)
4730     eval ac_cv_prog_make_${ac_make}_set=yes;;
4731   *)
4732     eval ac_cv_prog_make_${ac_make}_set=no;;
4733 esac
4734 rm -f conftest.make
4735 fi
4736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738 $as_echo "yes" >&6; }
4739   SET_MAKE=
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743   SET_MAKE="MAKE=${MAKE-make}"
4744 fi
4745
4746
4747 # Setup for libtool
4748 case `pwd` in
4749   *\ * | *\     *)
4750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4751 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4752 esac
4753
4754
4755
4756 macro_version='2.4.2'
4757 macro_revision='1.3337'
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771 ltmain="$ac_aux_dir/ltmain.sh"
4772
4773 # Backslashify metacharacters that are still active within
4774 # double-quoted strings.
4775 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4776
4777 # Same as above, but do not quote variable references.
4778 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4779
4780 # Sed substitution to delay expansion of an escaped shell variable in a
4781 # double_quote_subst'ed string.
4782 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4783
4784 # Sed substitution to delay expansion of an escaped single quote.
4785 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4786
4787 # Sed substitution to avoid accidental globbing in evaled expressions
4788 no_glob_subst='s/\*/\\\*/g'
4789
4790 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4791 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4792 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4795 $as_echo_n "checking how to print strings... " >&6; }
4796 # Test print first, because it will be a builtin if present.
4797 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4798    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4799   ECHO='print -r --'
4800 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4801   ECHO='printf %s\n'
4802 else
4803   # Use this function as a fallback that always works.
4804   func_fallback_echo ()
4805   {
4806     eval 'cat <<_LTECHO_EOF
4807 $1
4808 _LTECHO_EOF'
4809   }
4810   ECHO='func_fallback_echo'
4811 fi
4812
4813 # func_echo_all arg...
4814 # Invoke $ECHO with all args, space-separated.
4815 func_echo_all ()
4816 {
4817     $ECHO ""
4818 }
4819
4820 case "$ECHO" in
4821   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4822 $as_echo "printf" >&6; } ;;
4823   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4824 $as_echo "print -r" >&6; } ;;
4825   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4826 $as_echo "cat" >&6; } ;;
4827 esac
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4843 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4844 if ${ac_cv_path_SED+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4848      for ac_i in 1 2 3 4 5 6 7; do
4849        ac_script="$ac_script$as_nl$ac_script"
4850      done
4851      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4852      { ac_script=; unset ac_script;}
4853      if test -z "$SED"; then
4854   ac_path_SED_found=false
4855   # Loop through the user's path and test for each of PROGNAME-LIST
4856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861     for ac_prog in sed gsed; do
4862     for ac_exec_ext in '' $ac_executable_extensions; do
4863       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4864       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4865 # Check for GNU ac_path_SED and select it if it is found.
4866   # Check for GNU $ac_path_SED
4867 case `"$ac_path_SED" --version 2>&1` in
4868 *GNU*)
4869   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4870 *)
4871   ac_count=0
4872   $as_echo_n 0123456789 >"conftest.in"
4873   while :
4874   do
4875     cat "conftest.in" "conftest.in" >"conftest.tmp"
4876     mv "conftest.tmp" "conftest.in"
4877     cp "conftest.in" "conftest.nl"
4878     $as_echo '' >> "conftest.nl"
4879     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4880     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4881     as_fn_arith $ac_count + 1 && ac_count=$as_val
4882     if test $ac_count -gt ${ac_path_SED_max-0}; then
4883       # Best one so far, save it but keep looking for a better one
4884       ac_cv_path_SED="$ac_path_SED"
4885       ac_path_SED_max=$ac_count
4886     fi
4887     # 10*(2^10) chars as input seems more than enough
4888     test $ac_count -gt 10 && break
4889   done
4890   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4891 esac
4892
4893       $ac_path_SED_found && break 3
4894     done
4895   done
4896   done
4897 IFS=$as_save_IFS
4898   if test -z "$ac_cv_path_SED"; then
4899     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4900   fi
4901 else
4902   ac_cv_path_SED=$SED
4903 fi
4904
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4907 $as_echo "$ac_cv_path_SED" >&6; }
4908  SED="$ac_cv_path_SED"
4909   rm -f conftest.sed
4910
4911 test -z "$SED" && SED=sed
4912 Xsed="$SED -e 1s/^X//"
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4925 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4926 if ${ac_cv_path_GREP+:} false; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -z "$GREP"; then
4930   ac_path_GREP_found=false
4931   # Loop through the user's path and test for each of PROGNAME-LIST
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_prog in grep ggrep; do
4938     for ac_exec_ext in '' $ac_executable_extensions; do
4939       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4940       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4941 # Check for GNU ac_path_GREP and select it if it is found.
4942   # Check for GNU $ac_path_GREP
4943 case `"$ac_path_GREP" --version 2>&1` in
4944 *GNU*)
4945   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4946 *)
4947   ac_count=0
4948   $as_echo_n 0123456789 >"conftest.in"
4949   while :
4950   do
4951     cat "conftest.in" "conftest.in" >"conftest.tmp"
4952     mv "conftest.tmp" "conftest.in"
4953     cp "conftest.in" "conftest.nl"
4954     $as_echo 'GREP' >> "conftest.nl"
4955     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957     as_fn_arith $ac_count + 1 && ac_count=$as_val
4958     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4959       # Best one so far, save it but keep looking for a better one
4960       ac_cv_path_GREP="$ac_path_GREP"
4961       ac_path_GREP_max=$ac_count
4962     fi
4963     # 10*(2^10) chars as input seems more than enough
4964     test $ac_count -gt 10 && break
4965   done
4966   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4967 esac
4968
4969       $ac_path_GREP_found && break 3
4970     done
4971   done
4972   done
4973 IFS=$as_save_IFS
4974   if test -z "$ac_cv_path_GREP"; then
4975     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976   fi
4977 else
4978   ac_cv_path_GREP=$GREP
4979 fi
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4983 $as_echo "$ac_cv_path_GREP" >&6; }
4984  GREP="$ac_cv_path_GREP"
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4988 $as_echo_n "checking for egrep... " >&6; }
4989 if ${ac_cv_path_EGREP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993    then ac_cv_path_EGREP="$GREP -E"
4994    else
4995      if test -z "$EGREP"; then
4996   ac_path_EGREP_found=false
4997   # Loop through the user's path and test for each of PROGNAME-LIST
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_prog in egrep; do
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5006       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5007 # Check for GNU ac_path_EGREP and select it if it is found.
5008   # Check for GNU $ac_path_EGREP
5009 case `"$ac_path_EGREP" --version 2>&1` in
5010 *GNU*)
5011   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5012 *)
5013   ac_count=0
5014   $as_echo_n 0123456789 >"conftest.in"
5015   while :
5016   do
5017     cat "conftest.in" "conftest.in" >"conftest.tmp"
5018     mv "conftest.tmp" "conftest.in"
5019     cp "conftest.in" "conftest.nl"
5020     $as_echo 'EGREP' >> "conftest.nl"
5021     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023     as_fn_arith $ac_count + 1 && ac_count=$as_val
5024     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5025       # Best one so far, save it but keep looking for a better one
5026       ac_cv_path_EGREP="$ac_path_EGREP"
5027       ac_path_EGREP_max=$ac_count
5028     fi
5029     # 10*(2^10) chars as input seems more than enough
5030     test $ac_count -gt 10 && break
5031   done
5032   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 esac
5034
5035       $ac_path_EGREP_found && break 3
5036     done
5037   done
5038   done
5039 IFS=$as_save_IFS
5040   if test -z "$ac_cv_path_EGREP"; then
5041     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042   fi
5043 else
5044   ac_cv_path_EGREP=$EGREP
5045 fi
5046
5047    fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5050 $as_echo "$ac_cv_path_EGREP" >&6; }
5051  EGREP="$ac_cv_path_EGREP"
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5055 $as_echo_n "checking for fgrep... " >&6; }
5056 if ${ac_cv_path_FGREP+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5060    then ac_cv_path_FGREP="$GREP -F"
5061    else
5062      if test -z "$FGREP"; then
5063   ac_path_FGREP_found=false
5064   # Loop through the user's path and test for each of PROGNAME-LIST
5065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070     for ac_prog in fgrep; do
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5073       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5074 # Check for GNU ac_path_FGREP and select it if it is found.
5075   # Check for GNU $ac_path_FGREP
5076 case `"$ac_path_FGREP" --version 2>&1` in
5077 *GNU*)
5078   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5079 *)
5080   ac_count=0
5081   $as_echo_n 0123456789 >"conftest.in"
5082   while :
5083   do
5084     cat "conftest.in" "conftest.in" >"conftest.tmp"
5085     mv "conftest.tmp" "conftest.in"
5086     cp "conftest.in" "conftest.nl"
5087     $as_echo 'FGREP' >> "conftest.nl"
5088     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090     as_fn_arith $ac_count + 1 && ac_count=$as_val
5091     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5092       # Best one so far, save it but keep looking for a better one
5093       ac_cv_path_FGREP="$ac_path_FGREP"
5094       ac_path_FGREP_max=$ac_count
5095     fi
5096     # 10*(2^10) chars as input seems more than enough
5097     test $ac_count -gt 10 && break
5098   done
5099   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100 esac
5101
5102       $ac_path_FGREP_found && break 3
5103     done
5104   done
5105   done
5106 IFS=$as_save_IFS
5107   if test -z "$ac_cv_path_FGREP"; then
5108     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5109   fi
5110 else
5111   ac_cv_path_FGREP=$FGREP
5112 fi
5113
5114    fi
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5117 $as_echo "$ac_cv_path_FGREP" >&6; }
5118  FGREP="$ac_cv_path_FGREP"
5119
5120
5121 test -z "$GREP" && GREP=grep
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 # Check whether --with-gnu-ld was given.
5142 if test "${with_gnu_ld+set}" = set; then :
5143   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5144 else
5145   with_gnu_ld=no
5146 fi
5147
5148 ac_prog=ld
5149 if test "$GCC" = yes; then
5150   # Check if gcc -print-prog-name=ld gives a path.
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5152 $as_echo_n "checking for ld used by $CC... " >&6; }
5153   case $host in
5154   *-*-mingw*)
5155     # gcc leaves a trailing carriage return which upsets mingw
5156     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5157   *)
5158     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5159   esac
5160   case $ac_prog in
5161     # Accept absolute paths.
5162     [\\/]* | ?:[\\/]*)
5163       re_direlt='/[^/][^/]*/\.\./'
5164       # Canonicalize the pathname of ld
5165       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5166       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5167         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5168       done
5169       test -z "$LD" && LD="$ac_prog"
5170       ;;
5171   "")
5172     # If it fails, then pretend we aren't using GCC.
5173     ac_prog=ld
5174     ;;
5175   *)
5176     # If it is relative, then search for the first ld in PATH.
5177     with_gnu_ld=unknown
5178     ;;
5179   esac
5180 elif test "$with_gnu_ld" = yes; then
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5182 $as_echo_n "checking for GNU ld... " >&6; }
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5185 $as_echo_n "checking for non-GNU ld... " >&6; }
5186 fi
5187 if ${lt_cv_path_LD+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   if test -z "$LD"; then
5191   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192   for ac_dir in $PATH; do
5193     IFS="$lt_save_ifs"
5194     test -z "$ac_dir" && ac_dir=.
5195     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196       lt_cv_path_LD="$ac_dir/$ac_prog"
5197       # Check to see if the program is GNU ld.  I'd rather use --version,
5198       # but apparently some variants of GNU ld only accept -v.
5199       # Break only if it was the GNU/non-GNU ld that we prefer.
5200       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5201       *GNU* | *'with BFD'*)
5202         test "$with_gnu_ld" != no && break
5203         ;;
5204       *)
5205         test "$with_gnu_ld" != yes && break
5206         ;;
5207       esac
5208     fi
5209   done
5210   IFS="$lt_save_ifs"
5211 else
5212   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5213 fi
5214 fi
5215
5216 LD="$lt_cv_path_LD"
5217 if test -n "$LD"; then
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5219 $as_echo "$LD" >&6; }
5220 else
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 fi
5224 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5227 if ${lt_cv_prog_gnu_ld+:} false; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5231 case `$LD -v 2>&1 </dev/null` in
5232 *GNU* | *'with BFD'*)
5233   lt_cv_prog_gnu_ld=yes
5234   ;;
5235 *)
5236   lt_cv_prog_gnu_ld=no
5237   ;;
5238 esac
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5241 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5242 with_gnu_ld=$lt_cv_prog_gnu_ld
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5253 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5254 if ${lt_cv_path_NM+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$NM"; then
5258   # Let the user override the test.
5259   lt_cv_path_NM="$NM"
5260 else
5261   lt_nm_to_check="${ac_tool_prefix}nm"
5262   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5263     lt_nm_to_check="$lt_nm_to_check nm"
5264   fi
5265   for lt_tmp_nm in $lt_nm_to_check; do
5266     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5267     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5268       IFS="$lt_save_ifs"
5269       test -z "$ac_dir" && ac_dir=.
5270       tmp_nm="$ac_dir/$lt_tmp_nm"
5271       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5272         # Check to see if the nm accepts a BSD-compat flag.
5273         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5274         #   nm: unknown option "B" ignored
5275         # Tru64's nm complains that /dev/null is an invalid object file
5276         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5277         */dev/null* | *'Invalid file or object type'*)
5278           lt_cv_path_NM="$tmp_nm -B"
5279           break
5280           ;;
5281         *)
5282           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5283           */dev/null*)
5284             lt_cv_path_NM="$tmp_nm -p"
5285             break
5286             ;;
5287           *)
5288             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5289             continue # so that we can try to find one that supports BSD flags
5290             ;;
5291           esac
5292           ;;
5293         esac
5294       fi
5295     done
5296     IFS="$lt_save_ifs"
5297   done
5298   : ${lt_cv_path_NM=no}
5299 fi
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5302 $as_echo "$lt_cv_path_NM" >&6; }
5303 if test "$lt_cv_path_NM" != "no"; then
5304   NM="$lt_cv_path_NM"
5305 else
5306   # Didn't find any BSD compatible name lister, look for dumpbin.
5307   if test -n "$DUMPBIN"; then :
5308     # Let the user override the test.
5309   else
5310     if test -n "$ac_tool_prefix"; then
5311   for ac_prog in dumpbin "link -dump"
5312   do
5313     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_DUMPBIN+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$DUMPBIN"; then
5321   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328     for ac_exec_ext in '' $ac_executable_extensions; do
5329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335   done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 DUMPBIN=$ac_cv_prog_DUMPBIN
5341 if test -n "$DUMPBIN"; then
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5343 $as_echo "$DUMPBIN" >&6; }
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350     test -n "$DUMPBIN" && break
5351   done
5352 fi
5353 if test -z "$DUMPBIN"; then
5354   ac_ct_DUMPBIN=$DUMPBIN
5355   for ac_prog in dumpbin "link -dump"
5356 do
5357   # Extract the first word of "$ac_prog", so it can be a program name with args.
5358 set dummy $ac_prog; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   if test -n "$ac_ct_DUMPBIN"; then
5365   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370   IFS=$as_save_IFS
5371   test -z "$as_dir" && as_dir=.
5372     for ac_exec_ext in '' $ac_executable_extensions; do
5373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376     break 2
5377   fi
5378 done
5379   done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5385 if test -n "$ac_ct_DUMPBIN"; then
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5387 $as_echo "$ac_ct_DUMPBIN" >&6; }
5388 else
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394   test -n "$ac_ct_DUMPBIN" && break
5395 done
5396
5397   if test "x$ac_ct_DUMPBIN" = x; then
5398     DUMPBIN=":"
5399   else
5400     case $cross_compiling:$ac_tool_warned in
5401 yes:)
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404 ac_tool_warned=yes ;;
5405 esac
5406     DUMPBIN=$ac_ct_DUMPBIN
5407   fi
5408 fi
5409
5410     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5411     *COFF*)
5412       DUMPBIN="$DUMPBIN -symbols"
5413       ;;
5414     *)
5415       DUMPBIN=:
5416       ;;
5417     esac
5418   fi
5419
5420   if test "$DUMPBIN" != ":"; then
5421     NM="$DUMPBIN"
5422   fi
5423 fi
5424 test -z "$NM" && NM=nm
5425
5426
5427
5428
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5432 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5433 if ${lt_cv_nm_interface+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   lt_cv_nm_interface="BSD nm"
5437   echo "int some_variable = 0;" > conftest.$ac_ext
5438   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5439   (eval "$ac_compile" 2>conftest.err)
5440   cat conftest.err >&5
5441   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5442   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5443   cat conftest.err >&5
5444   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5445   cat conftest.out >&5
5446   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5447     lt_cv_nm_interface="MS dumpbin"
5448   fi
5449   rm -f conftest*
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5452 $as_echo "$lt_cv_nm_interface" >&6; }
5453
5454 # find the maximum length of command line arguments
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5456 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5457 if ${lt_cv_sys_max_cmd_len+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460     i=0
5461   teststring="ABCD"
5462
5463   case $build_os in
5464   msdosdjgpp*)
5465     # On DJGPP, this test can blow up pretty badly due to problems in libc
5466     # (any single argument exceeding 2000 bytes causes a buffer overrun
5467     # during glob expansion).  Even if it were fixed, the result of this
5468     # check would be larger than it should be.
5469     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5470     ;;
5471
5472   gnu*)
5473     # Under GNU Hurd, this test is not required because there is
5474     # no limit to the length of command line arguments.
5475     # Libtool will interpret -1 as no limit whatsoever
5476     lt_cv_sys_max_cmd_len=-1;
5477     ;;
5478
5479   cygwin* | mingw* | cegcc*)
5480     # On Win9x/ME, this test blows up -- it succeeds, but takes
5481     # about 5 minutes as the teststring grows exponentially.
5482     # Worse, since 9x/ME are not pre-emptively multitasking,
5483     # you end up with a "frozen" computer, even though with patience
5484     # the test eventually succeeds (with a max line length of 256k).
5485     # Instead, let's just punt: use the minimum linelength reported by
5486     # all of the supported platforms: 8192 (on NT/2K/XP).
5487     lt_cv_sys_max_cmd_len=8192;
5488     ;;
5489
5490   mint*)
5491     # On MiNT this can take a long time and run out of memory.
5492     lt_cv_sys_max_cmd_len=8192;
5493     ;;
5494
5495   amigaos*)
5496     # On AmigaOS with pdksh, this test takes hours, literally.
5497     # So we just punt and use a minimum line length of 8192.
5498     lt_cv_sys_max_cmd_len=8192;
5499     ;;
5500
5501   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5502     # This has been around since 386BSD, at least.  Likely further.
5503     if test -x /sbin/sysctl; then
5504       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5505     elif test -x /usr/sbin/sysctl; then
5506       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5507     else
5508       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5509     fi
5510     # And add a safety zone
5511     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5512     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5513     ;;
5514
5515   interix*)
5516     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5517     lt_cv_sys_max_cmd_len=196608
5518     ;;
5519
5520   os2*)
5521     # The test takes a long time on OS/2.
5522     lt_cv_sys_max_cmd_len=8192
5523     ;;
5524
5525   osf*)
5526     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5527     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5528     # nice to cause kernel panics so lets avoid the loop below.
5529     # First set a reasonable default.
5530     lt_cv_sys_max_cmd_len=16384
5531     #
5532     if test -x /sbin/sysconfig; then
5533       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5534         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5535       esac
5536     fi
5537     ;;
5538   sco3.2v5*)
5539     lt_cv_sys_max_cmd_len=102400
5540     ;;
5541   sysv5* | sco5v6* | sysv4.2uw2*)
5542     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5543     if test -n "$kargmax"; then
5544       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5545     else
5546       lt_cv_sys_max_cmd_len=32768
5547     fi
5548     ;;
5549   *)
5550     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5551     if test -n "$lt_cv_sys_max_cmd_len"; then
5552       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5553       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5554     else
5555       # Make teststring a little bigger before we do anything with it.
5556       # a 1K string should be a reasonable start.
5557       for i in 1 2 3 4 5 6 7 8 ; do
5558         teststring=$teststring$teststring
5559       done
5560       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5561       # If test is not a shell built-in, we'll probably end up computing a
5562       # maximum length that is only half of the actual maximum length, but
5563       # we can't tell.
5564       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5565                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5566               test $i != 17 # 1/2 MB should be enough
5567       do
5568         i=`expr $i + 1`
5569         teststring=$teststring$teststring
5570       done
5571       # Only check the string length outside the loop.
5572       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5573       teststring=
5574       # Add a significant safety factor because C++ compilers can tack on
5575       # massive amounts of additional arguments before passing them to the
5576       # linker.  It appears as though 1/2 is a usable value.
5577       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5578     fi
5579     ;;
5580   esac
5581
5582 fi
5583
5584 if test -n $lt_cv_sys_max_cmd_len ; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5586 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5589 $as_echo "none" >&6; }
5590 fi
5591 max_cmd_len=$lt_cv_sys_max_cmd_len
5592
5593
5594
5595
5596
5597
5598 : ${CP="cp -f"}
5599 : ${MV="mv -f"}
5600 : ${RM="rm -f"}
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5603 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5604 # Try some XSI features
5605 xsi_shell=no
5606 ( _lt_dummy="a/b/c"
5607   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5608       = c,a/b,b/c, \
5609     && eval 'test $(( 1 + 1 )) -eq 2 \
5610     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5611   && xsi_shell=yes
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5613 $as_echo "$xsi_shell" >&6; }
5614
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5617 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5618 lt_shell_append=no
5619 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5620     >/dev/null 2>&1 \
5621   && lt_shell_append=yes
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5623 $as_echo "$lt_shell_append" >&6; }
5624
5625
5626 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5627   lt_unset=unset
5628 else
5629   lt_unset=false
5630 fi
5631
5632
5633
5634
5635
5636 # test EBCDIC or ASCII
5637 case `echo X|tr X '\101'` in
5638  A) # ASCII based system
5639     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5640   lt_SP2NL='tr \040 \012'
5641   lt_NL2SP='tr \015\012 \040\040'
5642   ;;
5643  *) # EBCDIC based system
5644   lt_SP2NL='tr \100 \n'
5645   lt_NL2SP='tr \r\n \100\100'
5646   ;;
5647 esac
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5658 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5659 if ${lt_cv_to_host_file_cmd+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   case $host in
5663   *-*-mingw* )
5664     case $build in
5665       *-*-mingw* ) # actually msys
5666         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5667         ;;
5668       *-*-cygwin* )
5669         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5670         ;;
5671       * ) # otherwise, assume *nix
5672         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5673         ;;
5674     esac
5675     ;;
5676   *-*-cygwin* )
5677     case $build in
5678       *-*-mingw* ) # actually msys
5679         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5680         ;;
5681       *-*-cygwin* )
5682         lt_cv_to_host_file_cmd=func_convert_file_noop
5683         ;;
5684       * ) # otherwise, assume *nix
5685         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5686         ;;
5687     esac
5688     ;;
5689   * ) # unhandled hosts (and "normal" native builds)
5690     lt_cv_to_host_file_cmd=func_convert_file_noop
5691     ;;
5692 esac
5693
5694 fi
5695
5696 to_host_file_cmd=$lt_cv_to_host_file_cmd
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5698 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5699
5700
5701
5702
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5705 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5706 if ${lt_cv_to_tool_file_cmd+:} false; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709   #assume ordinary cross tools, or native build.
5710 lt_cv_to_tool_file_cmd=func_convert_file_noop
5711 case $host in
5712   *-*-mingw* )
5713     case $build in
5714       *-*-mingw* ) # actually msys
5715         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5716         ;;
5717     esac
5718     ;;
5719 esac
5720
5721 fi
5722
5723 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5725 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5726
5727
5728
5729
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5732 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5733 if ${lt_cv_ld_reload_flag+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   lt_cv_ld_reload_flag='-r'
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5739 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5740 reload_flag=$lt_cv_ld_reload_flag
5741 case $reload_flag in
5742 "" | " "*) ;;
5743 *) reload_flag=" $reload_flag" ;;
5744 esac
5745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5746 case $host_os in
5747   cygwin* | mingw* | pw32* | cegcc*)
5748     if test "$GCC" != yes; then
5749       reload_cmds=false
5750     fi
5751     ;;
5752   darwin*)
5753     if test "$GCC" = yes; then
5754       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5755     else
5756       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5757     fi
5758     ;;
5759 esac
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 if test -n "$ac_tool_prefix"; then
5770   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5771 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_OBJDUMP+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if test -n "$OBJDUMP"; then
5778   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785     for ac_exec_ext in '' $ac_executable_extensions; do
5786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789     break 2
5790   fi
5791 done
5792   done
5793 IFS=$as_save_IFS
5794
5795 fi
5796 fi
5797 OBJDUMP=$ac_cv_prog_OBJDUMP
5798 if test -n "$OBJDUMP"; then
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5800 $as_echo "$OBJDUMP" >&6; }
5801 else
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 fi
5805
5806
5807 fi
5808 if test -z "$ac_cv_prog_OBJDUMP"; then
5809   ac_ct_OBJDUMP=$OBJDUMP
5810   # Extract the first word of "objdump", so it can be a program name with args.
5811 set dummy objdump; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   if test -n "$ac_ct_OBJDUMP"; then
5818   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825     for ac_exec_ext in '' $ac_executable_extensions; do
5826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829     break 2
5830   fi
5831 done
5832   done
5833 IFS=$as_save_IFS
5834
5835 fi
5836 fi
5837 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5838 if test -n "$ac_ct_OBJDUMP"; then
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5840 $as_echo "$ac_ct_OBJDUMP" >&6; }
5841 else
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846   if test "x$ac_ct_OBJDUMP" = x; then
5847     OBJDUMP="false"
5848   else
5849     case $cross_compiling:$ac_tool_warned in
5850 yes:)
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5853 ac_tool_warned=yes ;;
5854 esac
5855     OBJDUMP=$ac_ct_OBJDUMP
5856   fi
5857 else
5858   OBJDUMP="$ac_cv_prog_OBJDUMP"
5859 fi
5860
5861 test -z "$OBJDUMP" && OBJDUMP=objdump
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5872 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5873 if ${lt_cv_deplibs_check_method+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   lt_cv_file_magic_cmd='$MAGIC_CMD'
5877 lt_cv_file_magic_test_file=
5878 lt_cv_deplibs_check_method='unknown'
5879 # Need to set the preceding variable on all platforms that support
5880 # interlibrary dependencies.
5881 # 'none' -- dependencies not supported.
5882 # `unknown' -- same as none, but documents that we really don't know.
5883 # 'pass_all' -- all dependencies passed with no checks.
5884 # 'test_compile' -- check by making test program.
5885 # 'file_magic [[regex]]' -- check by looking for files in library path
5886 # which responds to the $file_magic_cmd with a given extended regex.
5887 # If you have `file' or equivalent on your system and you're not sure
5888 # whether `pass_all' will *always* work, you probably want this one.
5889
5890 case $host_os in
5891 aix[4-9]*)
5892   lt_cv_deplibs_check_method=pass_all
5893   ;;
5894
5895 beos*)
5896   lt_cv_deplibs_check_method=pass_all
5897   ;;
5898
5899 bsdi[45]*)
5900   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5901   lt_cv_file_magic_cmd='/usr/bin/file -L'
5902   lt_cv_file_magic_test_file=/shlib/libc.so
5903   ;;
5904
5905 cygwin*)
5906   # func_win32_libid is a shell function defined in ltmain.sh
5907   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5908   lt_cv_file_magic_cmd='func_win32_libid'
5909   ;;
5910
5911 mingw* | pw32*)
5912   # Base MSYS/MinGW do not provide the 'file' command needed by
5913   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5914   # unless we find 'file', for example because we are cross-compiling.
5915   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5916   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5917     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5918     lt_cv_file_magic_cmd='func_win32_libid'
5919   else
5920     # Keep this pattern in sync with the one in func_win32_libid.
5921     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5922     lt_cv_file_magic_cmd='$OBJDUMP -f'
5923   fi
5924   ;;
5925
5926 cegcc*)
5927   # use the weaker test based on 'objdump'. See mingw*.
5928   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5929   lt_cv_file_magic_cmd='$OBJDUMP -f'
5930   ;;
5931
5932 darwin* | rhapsody*)
5933   lt_cv_deplibs_check_method=pass_all
5934   ;;
5935
5936 freebsd* | dragonfly*)
5937   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5938     case $host_cpu in
5939     i*86 )
5940       # Not sure whether the presence of OpenBSD here was a mistake.
5941       # Let's accept both of them until this is cleared up.
5942       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5943       lt_cv_file_magic_cmd=/usr/bin/file
5944       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5945       ;;
5946     esac
5947   else
5948     lt_cv_deplibs_check_method=pass_all
5949   fi
5950   ;;
5951
5952 gnu*)
5953   lt_cv_deplibs_check_method=pass_all
5954   ;;
5955
5956 haiku*)
5957   lt_cv_deplibs_check_method=pass_all
5958   ;;
5959
5960 hpux10.20* | hpux11*)
5961   lt_cv_file_magic_cmd=/usr/bin/file
5962   case $host_cpu in
5963   ia64*)
5964     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5965     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5966     ;;
5967   hppa*64*)
5968     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5969     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5970     ;;
5971   *)
5972     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5973     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5974     ;;
5975   esac
5976   ;;
5977
5978 interix[3-9]*)
5979   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5980   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5981   ;;
5982
5983 irix5* | irix6* | nonstopux*)
5984   case $LD in
5985   *-32|*"-32 ") libmagic=32-bit;;
5986   *-n32|*"-n32 ") libmagic=N32;;
5987   *-64|*"-64 ") libmagic=64-bit;;
5988   *) libmagic=never-match;;
5989   esac
5990   lt_cv_deplibs_check_method=pass_all
5991   ;;
5992
5993 # This must be glibc/ELF.
5994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5995   lt_cv_deplibs_check_method=pass_all
5996   ;;
5997
5998 netbsd* | netbsdelf*-gnu)
5999   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6000     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6001   else
6002     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6003   fi
6004   ;;
6005
6006 newos6*)
6007   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6008   lt_cv_file_magic_cmd=/usr/bin/file
6009   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6010   ;;
6011
6012 *nto* | *qnx*)
6013   lt_cv_deplibs_check_method=pass_all
6014   ;;
6015
6016 openbsd*)
6017   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6018     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6019   else
6020     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6021   fi
6022   ;;
6023
6024 osf3* | osf4* | osf5*)
6025   lt_cv_deplibs_check_method=pass_all
6026   ;;
6027
6028 rdos*)
6029   lt_cv_deplibs_check_method=pass_all
6030   ;;
6031
6032 solaris*)
6033   lt_cv_deplibs_check_method=pass_all
6034   ;;
6035
6036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6037   lt_cv_deplibs_check_method=pass_all
6038   ;;
6039
6040 sysv4 | sysv4.3*)
6041   case $host_vendor in
6042   motorola)
6043     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]'
6044     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6045     ;;
6046   ncr)
6047     lt_cv_deplibs_check_method=pass_all
6048     ;;
6049   sequent)
6050     lt_cv_file_magic_cmd='/bin/file'
6051     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6052     ;;
6053   sni)
6054     lt_cv_file_magic_cmd='/bin/file'
6055     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6056     lt_cv_file_magic_test_file=/lib/libc.so
6057     ;;
6058   siemens)
6059     lt_cv_deplibs_check_method=pass_all
6060     ;;
6061   pc)
6062     lt_cv_deplibs_check_method=pass_all
6063     ;;
6064   esac
6065   ;;
6066
6067 tpf*)
6068   lt_cv_deplibs_check_method=pass_all
6069   ;;
6070 esac
6071
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6074 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6075
6076 file_magic_glob=
6077 want_nocaseglob=no
6078 if test "$build" = "$host"; then
6079   case $host_os in
6080   mingw* | pw32*)
6081     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6082       want_nocaseglob=yes
6083     else
6084       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6085     fi
6086     ;;
6087   esac
6088 fi
6089
6090 file_magic_cmd=$lt_cv_file_magic_cmd
6091 deplibs_check_method=$lt_cv_deplibs_check_method
6092 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 if test -n "$ac_tool_prefix"; then
6116   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_DLLTOOL+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   if test -n "$DLLTOOL"; then
6124   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131     for ac_exec_ext in '' $ac_executable_extensions; do
6132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138   done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 DLLTOOL=$ac_cv_prog_DLLTOOL
6144 if test -n "$DLLTOOL"; then
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6146 $as_echo "$DLLTOOL" >&6; }
6147 else
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6150 fi
6151
6152
6153 fi
6154 if test -z "$ac_cv_prog_DLLTOOL"; then
6155   ac_ct_DLLTOOL=$DLLTOOL
6156   # Extract the first word of "dlltool", so it can be a program name with args.
6157 set dummy dlltool; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   if test -n "$ac_ct_DLLTOOL"; then
6164   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169   IFS=$as_save_IFS
6170   test -z "$as_dir" && as_dir=.
6171     for ac_exec_ext in '' $ac_executable_extensions; do
6172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175     break 2
6176   fi
6177 done
6178   done
6179 IFS=$as_save_IFS
6180
6181 fi
6182 fi
6183 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6184 if test -n "$ac_ct_DLLTOOL"; then
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6186 $as_echo "$ac_ct_DLLTOOL" >&6; }
6187 else
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6190 fi
6191
6192   if test "x$ac_ct_DLLTOOL" = x; then
6193     DLLTOOL="false"
6194   else
6195     case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201     DLLTOOL=$ac_ct_DLLTOOL
6202   fi
6203 else
6204   DLLTOOL="$ac_cv_prog_DLLTOOL"
6205 fi
6206
6207 test -z "$DLLTOOL" && DLLTOOL=dlltool
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6219 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6220 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   lt_cv_sharedlib_from_linklib_cmd='unknown'
6224
6225 case $host_os in
6226 cygwin* | mingw* | pw32* | cegcc*)
6227   # two different shell functions defined in ltmain.sh
6228   # decide which to use based on capabilities of $DLLTOOL
6229   case `$DLLTOOL --help 2>&1` in
6230   *--identify-strict*)
6231     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6232     ;;
6233   *)
6234     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6235     ;;
6236   esac
6237   ;;
6238 *)
6239   # fallback: assume linklib IS sharedlib
6240   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6241   ;;
6242 esac
6243
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6246 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6247 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6248 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6249
6250
6251
6252
6253
6254
6255
6256
6257 if test -n "$ac_tool_prefix"; then
6258   for ac_prog in ar
6259   do
6260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_AR+:} false; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   if test -n "$AR"; then
6268   ac_cv_prog_AR="$AR" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275     for ac_exec_ext in '' $ac_executable_extensions; do
6276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282   done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 AR=$ac_cv_prog_AR
6288 if test -n "$AR"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6290 $as_echo "$AR" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297     test -n "$AR" && break
6298   done
6299 fi
6300 if test -z "$AR"; then
6301   ac_ct_AR=$AR
6302   for ac_prog in ar
6303 do
6304   # Extract the first word of "$ac_prog", so it can be a program name with args.
6305 set dummy $ac_prog; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$ac_ct_AR"; then
6312   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_prog_ac_ct_AR="$ac_prog"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6332 if test -n "$ac_ct_AR"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6334 $as_echo "$ac_ct_AR" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341   test -n "$ac_ct_AR" && break
6342 done
6343
6344   if test "x$ac_ct_AR" = x; then
6345     AR="false"
6346   else
6347     case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353     AR=$ac_ct_AR
6354   fi
6355 fi
6356
6357 : ${AR=ar}
6358 : ${AR_FLAGS=cru}
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6371 $as_echo_n "checking for archiver @FILE support... " >&6; }
6372 if ${lt_cv_ar_at_file+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   lt_cv_ar_at_file=no
6376    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h.  */
6378
6379 int
6380 main ()
6381 {
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388   echo conftest.$ac_objext > conftest.lst
6389       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6390       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6391   (eval $lt_ar_try) 2>&5
6392   ac_status=$?
6393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6394   test $ac_status = 0; }
6395       if test "$ac_status" -eq 0; then
6396         # Ensure the archiver fails upon bogus file names.
6397         rm -f conftest.$ac_objext libconftest.a
6398         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6399   (eval $lt_ar_try) 2>&5
6400   ac_status=$?
6401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402   test $ac_status = 0; }
6403         if test "$ac_status" -ne 0; then
6404           lt_cv_ar_at_file=@
6405         fi
6406       fi
6407       rm -f conftest.* libconftest.a
6408
6409 fi
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6414 $as_echo "$lt_cv_ar_at_file" >&6; }
6415
6416 if test "x$lt_cv_ar_at_file" = xno; then
6417   archiver_list_spec=
6418 else
6419   archiver_list_spec=$lt_cv_ar_at_file
6420 fi
6421
6422
6423
6424
6425
6426
6427
6428 if test -n "$ac_tool_prefix"; then
6429   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}strip; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_STRIP+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   if test -n "$STRIP"; then
6437   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444     for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451   done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 STRIP=$ac_cv_prog_STRIP
6457 if test -n "$STRIP"; then
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6459 $as_echo "$STRIP" >&6; }
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465
6466 fi
6467 if test -z "$ac_cv_prog_STRIP"; then
6468   ac_ct_STRIP=$STRIP
6469   # Extract the first word of "strip", so it can be a program name with args.
6470 set dummy strip; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   if test -n "$ac_ct_STRIP"; then
6477   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484     for ac_exec_ext in '' $ac_executable_extensions; do
6485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486     ac_cv_prog_ac_ct_STRIP="strip"
6487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491   done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6497 if test -n "$ac_ct_STRIP"; then
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6499 $as_echo "$ac_ct_STRIP" >&6; }
6500 else
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505   if test "x$ac_ct_STRIP" = x; then
6506     STRIP=":"
6507   else
6508     case $cross_compiling:$ac_tool_warned in
6509 yes:)
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512 ac_tool_warned=yes ;;
6513 esac
6514     STRIP=$ac_ct_STRIP
6515   fi
6516 else
6517   STRIP="$ac_cv_prog_STRIP"
6518 fi
6519
6520 test -z "$STRIP" && STRIP=:
6521
6522
6523
6524
6525
6526
6527 if test -n "$ac_tool_prefix"; then
6528   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_RANLIB+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535   if test -n "$RANLIB"; then
6536   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543     for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550   done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 RANLIB=$ac_cv_prog_RANLIB
6556 if test -n "$RANLIB"; then
6557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6558 $as_echo "$RANLIB" >&6; }
6559 else
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564
6565 fi
6566 if test -z "$ac_cv_prog_RANLIB"; then
6567   ac_ct_RANLIB=$RANLIB
6568   # Extract the first word of "ranlib", so it can be a program name with args.
6569 set dummy ranlib; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6573   $as_echo_n "(cached) " >&6
6574 else
6575   if test -n "$ac_ct_RANLIB"; then
6576   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583     for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_prog_ac_ct_RANLIB="ranlib"
6586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590   done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6596 if test -n "$ac_ct_RANLIB"; then
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6598 $as_echo "$ac_ct_RANLIB" >&6; }
6599 else
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604   if test "x$ac_ct_RANLIB" = x; then
6605     RANLIB=":"
6606   else
6607     case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613     RANLIB=$ac_ct_RANLIB
6614   fi
6615 else
6616   RANLIB="$ac_cv_prog_RANLIB"
6617 fi
6618
6619 test -z "$RANLIB" && RANLIB=:
6620
6621
6622
6623
6624
6625
6626 # Determine commands to create old-style static archives.
6627 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6628 old_postinstall_cmds='chmod 644 $oldlib'
6629 old_postuninstall_cmds=
6630
6631 if test -n "$RANLIB"; then
6632   case $host_os in
6633   openbsd*)
6634     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6635     ;;
6636   *)
6637     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6638     ;;
6639   esac
6640   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6641 fi
6642
6643 case $host_os in
6644   darwin*)
6645     lock_old_archive_extraction=yes ;;
6646   *)
6647     lock_old_archive_extraction=no ;;
6648 esac
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688 # If no C compiler was specified, use CC.
6689 LTCC=${LTCC-"$CC"}
6690
6691 # If no C compiler flags were specified, use CFLAGS.
6692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6693
6694 # Allow CC to be a program name with arguments.
6695 compiler=$CC
6696
6697
6698 # Check for command to grab the raw symbol name followed by C symbol from nm.
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6700 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6701 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704
6705 # These are sane defaults that work on at least a few old systems.
6706 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6707
6708 # Character class describing NM global symbol codes.
6709 symcode='[BCDEGRST]'
6710
6711 # Regexp to match symbols that can be accessed directly from C.
6712 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6713
6714 # Define system-specific variables.
6715 case $host_os in
6716 aix*)
6717   symcode='[BCDT]'
6718   ;;
6719 cygwin* | mingw* | pw32* | cegcc*)
6720   symcode='[ABCDGISTW]'
6721   ;;
6722 hpux*)
6723   if test "$host_cpu" = ia64; then
6724     symcode='[ABCDEGRST]'
6725   fi
6726   ;;
6727 irix* | nonstopux*)
6728   symcode='[BCDEGRST]'
6729   ;;
6730 osf*)
6731   symcode='[BCDEGQRST]'
6732   ;;
6733 solaris*)
6734   symcode='[BDRT]'
6735   ;;
6736 sco3.2v5*)
6737   symcode='[DT]'
6738   ;;
6739 sysv4.2uw2*)
6740   symcode='[DT]'
6741   ;;
6742 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6743   symcode='[ABDT]'
6744   ;;
6745 sysv4)
6746   symcode='[DFNSTU]'
6747   ;;
6748 esac
6749
6750 # If we're using GNU nm, then use its standard symbol codes.
6751 case `$NM -V 2>&1` in
6752 *GNU* | *'with BFD'*)
6753   symcode='[ABCDGIRSTW]' ;;
6754 esac
6755
6756 # Transform an extracted symbol line into a proper C declaration.
6757 # Some systems (esp. on ia64) link data and code symbols differently,
6758 # so use this general approach.
6759 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6760
6761 # Transform an extracted symbol line into symbol name and symbol address
6762 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6763 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6764
6765 # Handle CRLF in mingw tool chain
6766 opt_cr=
6767 case $build_os in
6768 mingw*)
6769   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6770   ;;
6771 esac
6772
6773 # Try without a prefix underscore, then with it.
6774 for ac_symprfx in "" "_"; do
6775
6776   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6777   symxfrm="\\1 $ac_symprfx\\2 \\2"
6778
6779   # Write the raw and C identifiers.
6780   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6781     # Fake it for dumpbin and say T for any non-static function
6782     # and D for any global variable.
6783     # Also find C++ and __fastcall symbols from MSVC++,
6784     # which start with @ or ?.
6785     lt_cv_sys_global_symbol_pipe="$AWK '"\
6786 "     {last_section=section; section=\$ 3};"\
6787 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6788 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6789 "     \$ 0!~/External *\|/{next};"\
6790 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6791 "     {if(hide[section]) next};"\
6792 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6793 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6794 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6795 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6796 "     ' prfx=^$ac_symprfx"
6797   else
6798     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6799   fi
6800   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6801
6802   # Check to see that the pipe works correctly.
6803   pipe_works=no
6804
6805   rm -f conftest*
6806   cat > conftest.$ac_ext <<_LT_EOF
6807 #ifdef __cplusplus
6808 extern "C" {
6809 #endif
6810 char nm_test_var;
6811 void nm_test_func(void);
6812 void nm_test_func(void){}
6813 #ifdef __cplusplus
6814 }
6815 #endif
6816 int main(){nm_test_var='a';nm_test_func();return(0);}
6817 _LT_EOF
6818
6819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6820   (eval $ac_compile) 2>&5
6821   ac_status=$?
6822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823   test $ac_status = 0; }; then
6824     # Now try to grab the symbols.
6825     nlist=conftest.nm
6826     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6827   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6828   ac_status=$?
6829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830   test $ac_status = 0; } && test -s "$nlist"; then
6831       # Try sorting and uniquifying the output.
6832       if sort "$nlist" | uniq > "$nlist"T; then
6833         mv -f "$nlist"T "$nlist"
6834       else
6835         rm -f "$nlist"T
6836       fi
6837
6838       # Make sure that we snagged all the symbols we need.
6839       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6840         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6841           cat <<_LT_EOF > conftest.$ac_ext
6842 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6843 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6844 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6845    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6846 # define LT_DLSYM_CONST
6847 #elif defined(__osf__)
6848 /* This system does not cope well with relocations in const data.  */
6849 # define LT_DLSYM_CONST
6850 #else
6851 # define LT_DLSYM_CONST const
6852 #endif
6853
6854 #ifdef __cplusplus
6855 extern "C" {
6856 #endif
6857
6858 _LT_EOF
6859           # Now generate the symbol file.
6860           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6861
6862           cat <<_LT_EOF >> conftest.$ac_ext
6863
6864 /* The mapping between symbol names and symbols.  */
6865 LT_DLSYM_CONST struct {
6866   const char *name;
6867   void       *address;
6868 }
6869 lt__PROGRAM__LTX_preloaded_symbols[] =
6870 {
6871   { "@PROGRAM@", (void *) 0 },
6872 _LT_EOF
6873           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6874           cat <<\_LT_EOF >> conftest.$ac_ext
6875   {0, (void *) 0}
6876 };
6877
6878 /* This works around a problem in FreeBSD linker */
6879 #ifdef FREEBSD_WORKAROUND
6880 static const void *lt_preloaded_setup() {
6881   return lt__PROGRAM__LTX_preloaded_symbols;
6882 }
6883 #endif
6884
6885 #ifdef __cplusplus
6886 }
6887 #endif
6888 _LT_EOF
6889           # Now try linking the two files.
6890           mv conftest.$ac_objext conftstm.$ac_objext
6891           lt_globsym_save_LIBS=$LIBS
6892           lt_globsym_save_CFLAGS=$CFLAGS
6893           LIBS="conftstm.$ac_objext"
6894           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6895           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6896   (eval $ac_link) 2>&5
6897   ac_status=$?
6898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6900             pipe_works=yes
6901           fi
6902           LIBS=$lt_globsym_save_LIBS
6903           CFLAGS=$lt_globsym_save_CFLAGS
6904         else
6905           echo "cannot find nm_test_func in $nlist" >&5
6906         fi
6907       else
6908         echo "cannot find nm_test_var in $nlist" >&5
6909       fi
6910     else
6911       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6912     fi
6913   else
6914     echo "$progname: failed program was:" >&5
6915     cat conftest.$ac_ext >&5
6916   fi
6917   rm -rf conftest* conftst*
6918
6919   # Do not use the global_symbol_pipe unless it works.
6920   if test "$pipe_works" = yes; then
6921     break
6922   else
6923     lt_cv_sys_global_symbol_pipe=
6924   fi
6925 done
6926
6927 fi
6928
6929 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6930   lt_cv_sys_global_symbol_to_cdecl=
6931 fi
6932 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6934 $as_echo "failed" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6937 $as_echo "ok" >&6; }
6938 fi
6939
6940 # Response file support.
6941 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6942   nm_file_list_spec='@'
6943 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6944   nm_file_list_spec='@'
6945 fi
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6974 $as_echo_n "checking for sysroot... " >&6; }
6975
6976 # Check whether --with-sysroot was given.
6977 if test "${with_sysroot+set}" = set; then :
6978   withval=$with_sysroot;
6979 else
6980   with_sysroot=no
6981 fi
6982
6983
6984 lt_sysroot=
6985 case ${with_sysroot} in #(
6986  yes)
6987    if test "$GCC" = yes; then
6988      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6989    fi
6990    ;; #(
6991  /*)
6992    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6993    ;; #(
6994  no|'')
6995    ;; #(
6996  *)
6997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6998 $as_echo "${with_sysroot}" >&6; }
6999    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7000    ;;
7001 esac
7002
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7004 $as_echo "${lt_sysroot:-no}" >&6; }
7005
7006
7007
7008
7009
7010 # Check whether --enable-libtool-lock was given.
7011 if test "${enable_libtool_lock+set}" = set; then :
7012   enableval=$enable_libtool_lock;
7013 fi
7014
7015 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7016
7017 # Some flags need to be propagated to the compiler or linker for good
7018 # libtool support.
7019 case $host in
7020 ia64-*-hpux*)
7021   # Find out which ABI we are using.
7022   echo 'int i;' > conftest.$ac_ext
7023   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024   (eval $ac_compile) 2>&5
7025   ac_status=$?
7026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027   test $ac_status = 0; }; then
7028     case `/usr/bin/file conftest.$ac_objext` in
7029       *ELF-32*)
7030         HPUX_IA64_MODE="32"
7031         ;;
7032       *ELF-64*)
7033         HPUX_IA64_MODE="64"
7034         ;;
7035     esac
7036   fi
7037   rm -rf conftest*
7038   ;;
7039 *-*-irix6*)
7040   # Find out which ABI we are using.
7041   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7042   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7043   (eval $ac_compile) 2>&5
7044   ac_status=$?
7045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046   test $ac_status = 0; }; then
7047     if test "$lt_cv_prog_gnu_ld" = yes; then
7048       case `/usr/bin/file conftest.$ac_objext` in
7049         *32-bit*)
7050           LD="${LD-ld} -melf32bsmip"
7051           ;;
7052         *N32*)
7053           LD="${LD-ld} -melf32bmipn32"
7054           ;;
7055         *64-bit*)
7056           LD="${LD-ld} -melf64bmip"
7057         ;;
7058       esac
7059     else
7060       case `/usr/bin/file conftest.$ac_objext` in
7061         *32-bit*)
7062           LD="${LD-ld} -32"
7063           ;;
7064         *N32*)
7065           LD="${LD-ld} -n32"
7066           ;;
7067         *64-bit*)
7068           LD="${LD-ld} -64"
7069           ;;
7070       esac
7071     fi
7072   fi
7073   rm -rf conftest*
7074   ;;
7075
7076 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7077 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7078   # Find out which ABI we are using.
7079   echo 'int i;' > conftest.$ac_ext
7080   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081   (eval $ac_compile) 2>&5
7082   ac_status=$?
7083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084   test $ac_status = 0; }; then
7085     case `/usr/bin/file conftest.o` in
7086       *32-bit*)
7087         case $host in
7088           x86_64-*kfreebsd*-gnu)
7089             LD="${LD-ld} -m elf_i386_fbsd"
7090             ;;
7091           x86_64-*linux*)
7092             LD="${LD-ld} -m elf_i386"
7093             ;;
7094           ppc64-*linux*|powerpc64-*linux*)
7095             LD="${LD-ld} -m elf32ppclinux"
7096             ;;
7097           s390x-*linux*)
7098             LD="${LD-ld} -m elf_s390"
7099             ;;
7100           sparc64-*linux*)
7101             LD="${LD-ld} -m elf32_sparc"
7102             ;;
7103         esac
7104         ;;
7105       *64-bit*)
7106         case $host in
7107           x86_64-*kfreebsd*-gnu)
7108             LD="${LD-ld} -m elf_x86_64_fbsd"
7109             ;;
7110           x86_64-*linux*)
7111             LD="${LD-ld} -m elf_x86_64"
7112             ;;
7113           ppc*-*linux*|powerpc*-*linux*)
7114             LD="${LD-ld} -m elf64ppc"
7115             ;;
7116           s390*-*linux*|s390*-*tpf*)
7117             LD="${LD-ld} -m elf64_s390"
7118             ;;
7119           sparc*-*linux*)
7120             LD="${LD-ld} -m elf64_sparc"
7121             ;;
7122         esac
7123         ;;
7124     esac
7125   fi
7126   rm -rf conftest*
7127   ;;
7128
7129 *-*-sco3.2v5*)
7130   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7131   SAVE_CFLAGS="$CFLAGS"
7132   CFLAGS="$CFLAGS -belf"
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7134 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7135 if ${lt_cv_cc_needs_belf+:} false; then :
7136   $as_echo_n "(cached) " >&6
7137 else
7138   ac_ext=c
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
7144      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146
7147 int
7148 main ()
7149 {
7150
7151   ;
7152   return 0;
7153 }
7154 _ACEOF
7155 if ac_fn_c_try_link "$LINENO"; then :
7156   lt_cv_cc_needs_belf=yes
7157 else
7158   lt_cv_cc_needs_belf=no
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext \
7161     conftest$ac_exeext conftest.$ac_ext
7162      ac_ext=c
7163 ac_cpp='$CPP $CPPFLAGS'
7164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7167
7168 fi
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7170 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7171   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7172     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7173     CFLAGS="$SAVE_CFLAGS"
7174   fi
7175   ;;
7176 *-*solaris*)
7177   # Find out which ABI we are using.
7178   echo 'int i;' > conftest.$ac_ext
7179   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7180   (eval $ac_compile) 2>&5
7181   ac_status=$?
7182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183   test $ac_status = 0; }; then
7184     case `/usr/bin/file conftest.o` in
7185     *64-bit*)
7186       case $lt_cv_prog_gnu_ld in
7187       yes*)
7188         case $host in
7189         i?86-*-solaris*)
7190           LD="${LD-ld} -m elf_x86_64"
7191           ;;
7192         sparc*-*-solaris*)
7193           LD="${LD-ld} -m elf64_sparc"
7194           ;;
7195         esac
7196         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7197         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7198           LD="${LD-ld}_sol2"
7199         fi
7200         ;;
7201       *)
7202         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7203           LD="${LD-ld} -64"
7204         fi
7205         ;;
7206       esac
7207       ;;
7208     esac
7209   fi
7210   rm -rf conftest*
7211   ;;
7212 esac
7213
7214 need_locks="$enable_libtool_lock"
7215
7216 if test -n "$ac_tool_prefix"; then
7217   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}mt; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$MANIFEST_TOOL"; then
7225   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7245 if test -n "$MANIFEST_TOOL"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7247 $as_echo "$MANIFEST_TOOL" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7256   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7257   # Extract the first word of "mt", so it can be a program name with args.
7258 set dummy mt; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_MANIFEST_TOOL"; then
7265   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7285 if test -n "$ac_ct_MANIFEST_TOOL"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7287 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7294     MANIFEST_TOOL=":"
7295   else
7296     case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7303   fi
7304 else
7305   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7306 fi
7307
7308 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7310 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7311 if ${lt_cv_path_mainfest_tool+:} false; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   lt_cv_path_mainfest_tool=no
7315   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7316   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7317   cat conftest.err >&5
7318   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7319     lt_cv_path_mainfest_tool=yes
7320   fi
7321   rm -f conftest*
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7324 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7325 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7326   MANIFEST_TOOL=:
7327 fi
7328
7329
7330
7331
7332
7333
7334   case $host_os in
7335     rhapsody* | darwin*)
7336     if test -n "$ac_tool_prefix"; then
7337   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7342   $as_echo_n "(cached) " >&6
7343 else
7344   if test -n "$DSYMUTIL"; then
7345   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352     for ac_exec_ext in '' $ac_executable_extensions; do
7353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359   done
7360 IFS=$as_save_IFS
7361
7362 fi
7363 fi
7364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7365 if test -n "$DSYMUTIL"; then
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7367 $as_echo "$DSYMUTIL" >&6; }
7368 else
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372
7373
7374 fi
7375 if test -z "$ac_cv_prog_DSYMUTIL"; then
7376   ac_ct_DSYMUTIL=$DSYMUTIL
7377   # Extract the first word of "dsymutil", so it can be a program name with args.
7378 set dummy dsymutil; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   if test -n "$ac_ct_DSYMUTIL"; then
7385   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392     for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399   done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7405 if test -n "$ac_ct_DSYMUTIL"; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7407 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413   if test "x$ac_ct_DSYMUTIL" = x; then
7414     DSYMUTIL=":"
7415   else
7416     case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned=yes ;;
7421 esac
7422     DSYMUTIL=$ac_ct_DSYMUTIL
7423   fi
7424 else
7425   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7426 fi
7427
7428     if test -n "$ac_tool_prefix"; then
7429   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_NMEDIT+:} false; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   if test -n "$NMEDIT"; then
7437   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 NMEDIT=$ac_cv_prog_NMEDIT
7457 if test -n "$NMEDIT"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7459 $as_echo "$NMEDIT" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 fi
7467 if test -z "$ac_cv_prog_NMEDIT"; then
7468   ac_ct_NMEDIT=$NMEDIT
7469   # Extract the first word of "nmedit", so it can be a program name with args.
7470 set dummy nmedit; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   if test -n "$ac_ct_NMEDIT"; then
7477   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484     for ac_exec_ext in '' $ac_executable_extensions; do
7485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491   done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7497 if test -n "$ac_ct_NMEDIT"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7499 $as_echo "$ac_ct_NMEDIT" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505   if test "x$ac_ct_NMEDIT" = x; then
7506     NMEDIT=":"
7507   else
7508     case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514     NMEDIT=$ac_ct_NMEDIT
7515   fi
7516 else
7517   NMEDIT="$ac_cv_prog_NMEDIT"
7518 fi
7519
7520     if test -n "$ac_tool_prefix"; then
7521   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_LIPO+:} false; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   if test -n "$LIPO"; then
7529   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536     for ac_exec_ext in '' $ac_executable_extensions; do
7537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543   done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 LIPO=$ac_cv_prog_LIPO
7549 if test -n "$LIPO"; then
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7551 $as_echo "$LIPO" >&6; }
7552 else
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557
7558 fi
7559 if test -z "$ac_cv_prog_LIPO"; then
7560   ac_ct_LIPO=$LIPO
7561   # Extract the first word of "lipo", so it can be a program name with args.
7562 set dummy lipo; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7566   $as_echo_n "(cached) " >&6
7567 else
7568   if test -n "$ac_ct_LIPO"; then
7569   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574   IFS=$as_save_IFS
7575   test -z "$as_dir" && as_dir=.
7576     for ac_exec_ext in '' $ac_executable_extensions; do
7577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578     ac_cv_prog_ac_ct_LIPO="lipo"
7579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580     break 2
7581   fi
7582 done
7583   done
7584 IFS=$as_save_IFS
7585
7586 fi
7587 fi
7588 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7589 if test -n "$ac_ct_LIPO"; then
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7591 $as_echo "$ac_ct_LIPO" >&6; }
7592 else
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597   if test "x$ac_ct_LIPO" = x; then
7598     LIPO=":"
7599   else
7600     case $cross_compiling:$ac_tool_warned in
7601 yes:)
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7605 esac
7606     LIPO=$ac_ct_LIPO
7607   fi
7608 else
7609   LIPO="$ac_cv_prog_LIPO"
7610 fi
7611
7612     if test -n "$ac_tool_prefix"; then
7613   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}otool; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_OTOOL+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   if test -n "$OTOOL"; then
7621   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628     for ac_exec_ext in '' $ac_executable_extensions; do
7629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635   done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 OTOOL=$ac_cv_prog_OTOOL
7641 if test -n "$OTOOL"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7643 $as_echo "$OTOOL" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650 fi
7651 if test -z "$ac_cv_prog_OTOOL"; then
7652   ac_ct_OTOOL=$OTOOL
7653   # Extract the first word of "otool", so it can be a program name with args.
7654 set dummy otool; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   if test -n "$ac_ct_OTOOL"; then
7661   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668     for ac_exec_ext in '' $ac_executable_extensions; do
7669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670     ac_cv_prog_ac_ct_OTOOL="otool"
7671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675   done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7681 if test -n "$ac_ct_OTOOL"; then
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7683 $as_echo "$ac_ct_OTOOL" >&6; }
7684 else
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689   if test "x$ac_ct_OTOOL" = x; then
7690     OTOOL=":"
7691   else
7692     case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698     OTOOL=$ac_ct_OTOOL
7699   fi
7700 else
7701   OTOOL="$ac_cv_prog_OTOOL"
7702 fi
7703
7704     if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_OTOOL64+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$OTOOL64"; then
7713   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 OTOOL64=$ac_cv_prog_OTOOL64
7733 if test -n "$OTOOL64"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7735 $as_echo "$OTOOL64" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_OTOOL64"; then
7744   ac_ct_OTOOL64=$OTOOL64
7745   # Extract the first word of "otool64", so it can be a program name with args.
7746 set dummy otool64; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   if test -n "$ac_ct_OTOOL64"; then
7753   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760     for ac_exec_ext in '' $ac_executable_extensions; do
7761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762     ac_cv_prog_ac_ct_OTOOL64="otool64"
7763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767   done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7773 if test -n "$ac_ct_OTOOL64"; then
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7775 $as_echo "$ac_ct_OTOOL64" >&6; }
7776 else
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781   if test "x$ac_ct_OTOOL64" = x; then
7782     OTOOL64=":"
7783   else
7784     case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     OTOOL64=$ac_ct_OTOOL64
7791   fi
7792 else
7793   OTOOL64="$ac_cv_prog_OTOOL64"
7794 fi
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7823 $as_echo_n "checking for -single_module linker flag... " >&6; }
7824 if ${lt_cv_apple_cc_single_mod+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   lt_cv_apple_cc_single_mod=no
7828       if test -z "${LT_MULTI_MODULE}"; then
7829         # By default we will add the -single_module flag. You can override
7830         # by either setting the environment variable LT_MULTI_MODULE
7831         # non-empty at configure time, or by adding -multi_module to the
7832         # link flags.
7833         rm -rf libconftest.dylib*
7834         echo "int foo(void){return 1;}" > conftest.c
7835         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7836 -dynamiclib -Wl,-single_module conftest.c" >&5
7837         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7838           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7839         _lt_result=$?
7840         # If there is a non-empty error log, and "single_module"
7841         # appears in it, assume the flag caused a linker warning
7842         if test -s conftest.err && $GREP single_module conftest.err; then
7843           cat conftest.err >&5
7844         # Otherwise, if the output was created with a 0 exit code from
7845         # the compiler, it worked.
7846         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7847           lt_cv_apple_cc_single_mod=yes
7848         else
7849           cat conftest.err >&5
7850         fi
7851         rm -rf libconftest.dylib*
7852         rm -f conftest.*
7853       fi
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7856 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7857
7858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7859 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7860 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   lt_cv_ld_exported_symbols_list=no
7864       save_LDFLAGS=$LDFLAGS
7865       echo "_main" > conftest.sym
7866       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869
7870 int
7871 main ()
7872 {
7873
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879   lt_cv_ld_exported_symbols_list=yes
7880 else
7881   lt_cv_ld_exported_symbols_list=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext \
7884     conftest$ac_exeext conftest.$ac_ext
7885         LDFLAGS="$save_LDFLAGS"
7886
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7889 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7890
7891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7892 $as_echo_n "checking for -force_load linker flag... " >&6; }
7893 if ${lt_cv_ld_force_load+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   lt_cv_ld_force_load=no
7897       cat > conftest.c << _LT_EOF
7898 int forced_loaded() { return 2;}
7899 _LT_EOF
7900       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7901       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7902       echo "$AR cru libconftest.a conftest.o" >&5
7903       $AR cru libconftest.a conftest.o 2>&5
7904       echo "$RANLIB libconftest.a" >&5
7905       $RANLIB libconftest.a 2>&5
7906       cat > conftest.c << _LT_EOF
7907 int main() { return 0;}
7908 _LT_EOF
7909       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7910       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7911       _lt_result=$?
7912       if test -s conftest.err && $GREP force_load conftest.err; then
7913         cat conftest.err >&5
7914       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7915         lt_cv_ld_force_load=yes
7916       else
7917         cat conftest.err >&5
7918       fi
7919         rm -f conftest.err libconftest.a conftest conftest.c
7920         rm -rf conftest.dSYM
7921
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7924 $as_echo "$lt_cv_ld_force_load" >&6; }
7925     case $host_os in
7926     rhapsody* | darwin1.[012])
7927       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7928     darwin1.*)
7929       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7930     darwin*) # darwin 5.x on
7931       # if running on 10.5 or later, the deployment target defaults
7932       # to the OS version, if on x86, and 10.4, the deployment
7933       # target defaults to 10.4. Don't you love it?
7934       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7935         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7936           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7937         10.[012]*)
7938           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7939         10.*)
7940           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7941       esac
7942     ;;
7943   esac
7944     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7945       _lt_dar_single_mod='$single_module'
7946     fi
7947     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7948       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7949     else
7950       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7951     fi
7952     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7953       _lt_dsymutil='~$DSYMUTIL $lib || :'
7954     else
7955       _lt_dsymutil=
7956     fi
7957     ;;
7958   esac
7959
7960 ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7967 # On Suns, sometimes $CPP names a directory.
7968 if test -n "$CPP" && test -d "$CPP"; then
7969   CPP=
7970 fi
7971 if test -z "$CPP"; then
7972   if ${ac_cv_prog_CPP+:} false; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975       # Double quotes because CPP needs to be expanded
7976     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7977     do
7978       ac_preproc_ok=false
7979 for ac_c_preproc_warn_flag in '' yes
7980 do
7981   # Use a header file that comes with gcc, so configuring glibc
7982   # with a fresh cross-compiler works.
7983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7984   # <limits.h> exists even on freestanding compilers.
7985   # On the NeXT, cc -E runs the code through the compiler's parser,
7986   # not just through cpp. "Syntax error" is here to catch this case.
7987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h.  */
7989 #ifdef __STDC__
7990 # include <limits.h>
7991 #else
7992 # include <assert.h>
7993 #endif
7994                      Syntax error
7995 _ACEOF
7996 if ac_fn_c_try_cpp "$LINENO"; then :
7997
7998 else
7999   # Broken: fails on valid input.
8000 continue
8001 fi
8002 rm -f conftest.err conftest.i conftest.$ac_ext
8003
8004   # OK, works on sane cases.  Now check whether nonexistent headers
8005   # can be detected and how.
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 #include <ac_nonexistent.h>
8009 _ACEOF
8010 if ac_fn_c_try_cpp "$LINENO"; then :
8011   # Broken: success on invalid input.
8012 continue
8013 else
8014   # Passes both tests.
8015 ac_preproc_ok=:
8016 break
8017 fi
8018 rm -f conftest.err conftest.i conftest.$ac_ext
8019
8020 done
8021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8022 rm -f conftest.i conftest.err conftest.$ac_ext
8023 if $ac_preproc_ok; then :
8024   break
8025 fi
8026
8027     done
8028     ac_cv_prog_CPP=$CPP
8029
8030 fi
8031   CPP=$ac_cv_prog_CPP
8032 else
8033   ac_cv_prog_CPP=$CPP
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8036 $as_echo "$CPP" >&6; }
8037 ac_preproc_ok=false
8038 for ac_c_preproc_warn_flag in '' yes
8039 do
8040   # Use a header file that comes with gcc, so configuring glibc
8041   # with a fresh cross-compiler works.
8042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8043   # <limits.h> exists even on freestanding compilers.
8044   # On the NeXT, cc -E runs the code through the compiler's parser,
8045   # not just through cpp. "Syntax error" is here to catch this case.
8046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h.  */
8048 #ifdef __STDC__
8049 # include <limits.h>
8050 #else
8051 # include <assert.h>
8052 #endif
8053                      Syntax error
8054 _ACEOF
8055 if ac_fn_c_try_cpp "$LINENO"; then :
8056
8057 else
8058   # Broken: fails on valid input.
8059 continue
8060 fi
8061 rm -f conftest.err conftest.i conftest.$ac_ext
8062
8063   # OK, works on sane cases.  Now check whether nonexistent headers
8064   # can be detected and how.
8065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h.  */
8067 #include <ac_nonexistent.h>
8068 _ACEOF
8069 if ac_fn_c_try_cpp "$LINENO"; then :
8070   # Broken: success on invalid input.
8071 continue
8072 else
8073   # Passes both tests.
8074 ac_preproc_ok=:
8075 break
8076 fi
8077 rm -f conftest.err conftest.i conftest.$ac_ext
8078
8079 done
8080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8081 rm -f conftest.i conftest.err conftest.$ac_ext
8082 if $ac_preproc_ok; then :
8083
8084 else
8085   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8087 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8088 See \`config.log' for more details" "$LINENO" 5; }
8089 fi
8090
8091 ac_ext=c
8092 ac_cpp='$CPP $CPPFLAGS'
8093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8096
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8099 $as_echo_n "checking for ANSI C header files... " >&6; }
8100 if ${ac_cv_header_stdc+:} false; then :
8101   $as_echo_n "(cached) " >&6
8102 else
8103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h.  */
8105 #include <stdlib.h>
8106 #include <stdarg.h>
8107 #include <string.h>
8108 #include <float.h>
8109
8110 int
8111 main ()
8112 {
8113
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119   ac_cv_header_stdc=yes
8120 else
8121   ac_cv_header_stdc=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124
8125 if test $ac_cv_header_stdc = yes; then
8126   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h.  */
8129 #include <string.h>
8130
8131 _ACEOF
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133   $EGREP "memchr" >/dev/null 2>&1; then :
8134
8135 else
8136   ac_cv_header_stdc=no
8137 fi
8138 rm -f conftest*
8139
8140 fi
8141
8142 if test $ac_cv_header_stdc = yes; then
8143   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h.  */
8146 #include <stdlib.h>
8147
8148 _ACEOF
8149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8150   $EGREP "free" >/dev/null 2>&1; then :
8151
8152 else
8153   ac_cv_header_stdc=no
8154 fi
8155 rm -f conftest*
8156
8157 fi
8158
8159 if test $ac_cv_header_stdc = yes; then
8160   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8161   if test "$cross_compiling" = yes; then :
8162   :
8163 else
8164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h.  */
8166 #include <ctype.h>
8167 #include <stdlib.h>
8168 #if ((' ' & 0x0FF) == 0x020)
8169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8171 #else
8172 # define ISLOWER(c) \
8173                    (('a' <= (c) && (c) <= 'i') \
8174                      || ('j' <= (c) && (c) <= 'r') \
8175                      || ('s' <= (c) && (c) <= 'z'))
8176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8177 #endif
8178
8179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8180 int
8181 main ()
8182 {
8183   int i;
8184   for (i = 0; i < 256; i++)
8185     if (XOR (islower (i), ISLOWER (i))
8186         || toupper (i) != TOUPPER (i))
8187       return 2;
8188   return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_run "$LINENO"; then :
8192
8193 else
8194   ac_cv_header_stdc=no
8195 fi
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8197   conftest.$ac_objext conftest.beam conftest.$ac_ext
8198 fi
8199
8200 fi
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8203 $as_echo "$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8205
8206 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8207
8208 fi
8209
8210 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8212                   inttypes.h stdint.h unistd.h
8213 do :
8214   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8216 "
8217 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8218   cat >>confdefs.h <<_ACEOF
8219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8220 _ACEOF
8221
8222 fi
8223
8224 done
8225
8226
8227 for ac_header in dlfcn.h
8228 do :
8229   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8230 "
8231 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8232   cat >>confdefs.h <<_ACEOF
8233 #define HAVE_DLFCN_H 1
8234 _ACEOF
8235
8236 fi
8237
8238 done
8239
8240
8241
8242
8243 func_stripname_cnf ()
8244 {
8245   case ${2} in
8246   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8247   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8248   esac
8249 } # func_stripname_cnf
8250
8251
8252
8253
8254
8255 # Set options
8256
8257
8258
8259         enable_dlopen=no
8260
8261
8262   enable_win32_dll=no
8263
8264
8265             # Check whether --enable-shared was given.
8266 if test "${enable_shared+set}" = set; then :
8267   enableval=$enable_shared; p=${PACKAGE-default}
8268     case $enableval in
8269     yes) enable_shared=yes ;;
8270     no) enable_shared=no ;;
8271     *)
8272       enable_shared=no
8273       # Look at the argument we got.  We use all the common list separators.
8274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8275       for pkg in $enableval; do
8276         IFS="$lt_save_ifs"
8277         if test "X$pkg" = "X$p"; then
8278           enable_shared=yes
8279         fi
8280       done
8281       IFS="$lt_save_ifs"
8282       ;;
8283     esac
8284 else
8285   enable_shared=yes
8286 fi
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296   # Check whether --enable-static was given.
8297 if test "${enable_static+set}" = set; then :
8298   enableval=$enable_static; p=${PACKAGE-default}
8299     case $enableval in
8300     yes) enable_static=yes ;;
8301     no) enable_static=no ;;
8302     *)
8303      enable_static=no
8304       # Look at the argument we got.  We use all the common list separators.
8305       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306       for pkg in $enableval; do
8307         IFS="$lt_save_ifs"
8308         if test "X$pkg" = "X$p"; then
8309           enable_static=yes
8310         fi
8311       done
8312       IFS="$lt_save_ifs"
8313       ;;
8314     esac
8315 else
8316   enable_static=yes
8317 fi
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328 # Check whether --with-pic was given.
8329 if test "${with_pic+set}" = set; then :
8330   withval=$with_pic; lt_p=${PACKAGE-default}
8331     case $withval in
8332     yes|no) pic_mode=$withval ;;
8333     *)
8334       pic_mode=default
8335       # Look at the argument we got.  We use all the common list separators.
8336       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8337       for lt_pkg in $withval; do
8338         IFS="$lt_save_ifs"
8339         if test "X$lt_pkg" = "X$lt_p"; then
8340           pic_mode=yes
8341         fi
8342       done
8343       IFS="$lt_save_ifs"
8344       ;;
8345     esac
8346 else
8347   pic_mode=default
8348 fi
8349
8350
8351 test -z "$pic_mode" && pic_mode=default
8352
8353
8354
8355
8356
8357
8358
8359   # Check whether --enable-fast-install was given.
8360 if test "${enable_fast_install+set}" = set; then :
8361   enableval=$enable_fast_install; p=${PACKAGE-default}
8362     case $enableval in
8363     yes) enable_fast_install=yes ;;
8364     no) enable_fast_install=no ;;
8365     *)
8366       enable_fast_install=no
8367       # Look at the argument we got.  We use all the common list separators.
8368       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8369       for pkg in $enableval; do
8370         IFS="$lt_save_ifs"
8371         if test "X$pkg" = "X$p"; then
8372           enable_fast_install=yes
8373         fi
8374       done
8375       IFS="$lt_save_ifs"
8376       ;;
8377     esac
8378 else
8379   enable_fast_install=yes
8380 fi
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 # This can be used to rebuild libtool when needed
8393 LIBTOOL_DEPS="$ltmain"
8394
8395 # Always use our own libtool.
8396 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427 test -z "$LN_S" && LN_S="ln -s"
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442 if test -n "${ZSH_VERSION+set}" ; then
8443    setopt NO_GLOB_SUBST
8444 fi
8445
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8447 $as_echo_n "checking for objdir... " >&6; }
8448 if ${lt_cv_objdir+:} false; then :
8449   $as_echo_n "(cached) " >&6
8450 else
8451   rm -f .libs 2>/dev/null
8452 mkdir .libs 2>/dev/null
8453 if test -d .libs; then
8454   lt_cv_objdir=.libs
8455 else
8456   # MS-DOS does not allow filenames that begin with a dot.
8457   lt_cv_objdir=_libs
8458 fi
8459 rmdir .libs 2>/dev/null
8460 fi
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8462 $as_echo "$lt_cv_objdir" >&6; }
8463 objdir=$lt_cv_objdir
8464
8465
8466
8467
8468
8469 cat >>confdefs.h <<_ACEOF
8470 #define LT_OBJDIR "$lt_cv_objdir/"
8471 _ACEOF
8472
8473
8474
8475
8476 case $host_os in
8477 aix3*)
8478   # AIX sometimes has problems with the GCC collect2 program.  For some
8479   # reason, if we set the COLLECT_NAMES environment variable, the problems
8480   # vanish in a puff of smoke.
8481   if test "X${COLLECT_NAMES+set}" != Xset; then
8482     COLLECT_NAMES=
8483     export COLLECT_NAMES
8484   fi
8485   ;;
8486 esac
8487
8488 # Global variables:
8489 ofile=libtool
8490 can_build_shared=yes
8491
8492 # All known linkers require a `.a' archive for static linking (except MSVC,
8493 # which needs '.lib').
8494 libext=a
8495
8496 with_gnu_ld="$lt_cv_prog_gnu_ld"
8497
8498 old_CC="$CC"
8499 old_CFLAGS="$CFLAGS"
8500
8501 # Set sane defaults for various variables
8502 test -z "$CC" && CC=cc
8503 test -z "$LTCC" && LTCC=$CC
8504 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8505 test -z "$LD" && LD=ld
8506 test -z "$ac_objext" && ac_objext=o
8507
8508 for cc_temp in $compiler""; do
8509   case $cc_temp in
8510     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8511     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8512     \-*) ;;
8513     *) break;;
8514   esac
8515 done
8516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8517
8518
8519 # Only perform the check for file, if the check method requires it
8520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8521 case $deplibs_check_method in
8522 file_magic*)
8523   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8525 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   case $MAGIC_CMD in
8530 [\\/*] |  ?:[\\/]*)
8531   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8532   ;;
8533 *)
8534   lt_save_MAGIC_CMD="$MAGIC_CMD"
8535   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537   for ac_dir in $ac_dummy; do
8538     IFS="$lt_save_ifs"
8539     test -z "$ac_dir" && ac_dir=.
8540     if test -f $ac_dir/${ac_tool_prefix}file; then
8541       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8542       if test -n "$file_magic_test_file"; then
8543         case $deplibs_check_method in
8544         "file_magic "*)
8545           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548             $EGREP "$file_magic_regex" > /dev/null; then
8549             :
8550           else
8551             cat <<_LT_EOF 1>&2
8552
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such.  This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem.  Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8561
8562 _LT_EOF
8563           fi ;;
8564         esac
8565       fi
8566       break
8567     fi
8568   done
8569   IFS="$lt_save_ifs"
8570   MAGIC_CMD="$lt_save_MAGIC_CMD"
8571   ;;
8572 esac
8573 fi
8574
8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576 if test -n "$MAGIC_CMD"; then
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578 $as_echo "$MAGIC_CMD" >&6; }
8579 else
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584
8585
8586
8587
8588 if test -z "$lt_cv_path_MAGIC_CMD"; then
8589   if test -n "$ac_tool_prefix"; then
8590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8591 $as_echo_n "checking for file... " >&6; }
8592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   case $MAGIC_CMD in
8596 [\\/*] |  ?:[\\/]*)
8597   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8598   ;;
8599 *)
8600   lt_save_MAGIC_CMD="$MAGIC_CMD"
8601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8602   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603   for ac_dir in $ac_dummy; do
8604     IFS="$lt_save_ifs"
8605     test -z "$ac_dir" && ac_dir=.
8606     if test -f $ac_dir/file; then
8607       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8608       if test -n "$file_magic_test_file"; then
8609         case $deplibs_check_method in
8610         "file_magic "*)
8611           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8613           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614             $EGREP "$file_magic_regex" > /dev/null; then
8615             :
8616           else
8617             cat <<_LT_EOF 1>&2
8618
8619 *** Warning: the command libtool uses to detect shared libraries,
8620 *** $file_magic_cmd, produces output that libtool cannot recognize.
8621 *** The result is that libtool may fail to recognize shared libraries
8622 *** as such.  This will affect the creation of libtool libraries that
8623 *** depend on shared libraries, but programs linked with such libtool
8624 *** libraries will work regardless of this problem.  Nevertheless, you
8625 *** may want to report the problem to your system manager and/or to
8626 *** bug-libtool@gnu.org
8627
8628 _LT_EOF
8629           fi ;;
8630         esac
8631       fi
8632       break
8633     fi
8634   done
8635   IFS="$lt_save_ifs"
8636   MAGIC_CMD="$lt_save_MAGIC_CMD"
8637   ;;
8638 esac
8639 fi
8640
8641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8642 if test -n "$MAGIC_CMD"; then
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644 $as_echo "$MAGIC_CMD" >&6; }
8645 else
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650
8651   else
8652     MAGIC_CMD=:
8653   fi
8654 fi
8655
8656   fi
8657   ;;
8658 esac
8659
8660 # Use C for the default configuration in the libtool script
8661
8662 lt_save_CC="$CC"
8663 ac_ext=c
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668
8669
8670 # Source file extension for C test sources.
8671 ac_ext=c
8672
8673 # Object file extension for compiled C test sources.
8674 objext=o
8675 objext=$objext
8676
8677 # Code to be used in simple compile tests
8678 lt_simple_compile_test_code="int some_variable = 0;"
8679
8680 # Code to be used in simple link tests
8681 lt_simple_link_test_code='int main(){return(0);}'
8682
8683
8684
8685
8686
8687
8688
8689 # If no C compiler was specified, use CC.
8690 LTCC=${LTCC-"$CC"}
8691
8692 # If no C compiler flags were specified, use CFLAGS.
8693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8694
8695 # Allow CC to be a program name with arguments.
8696 compiler=$CC
8697
8698 # Save the default compiler, since it gets overwritten when the other
8699 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8700 compiler_DEFAULT=$CC
8701
8702 # save warnings/boilerplate of simple test code
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_compiler_boilerplate=`cat conftest.err`
8707 $RM conftest*
8708
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712 _lt_linker_boilerplate=`cat conftest.err`
8713 $RM -r conftest*
8714
8715
8716 ## CAVEAT EMPTOR:
8717 ## There is no encapsulation within the following macros, do not change
8718 ## the running order or otherwise move them around unless you know exactly
8719 ## what you are doing...
8720 if test -n "$compiler"; then
8721
8722 lt_prog_compiler_no_builtin_flag=
8723
8724 if test "$GCC" = yes; then
8725   case $cc_basename in
8726   nvcc*)
8727     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8728   *)
8729     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8730   esac
8731
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   lt_cv_prog_compiler_rtti_exceptions=no
8738    ac_outfile=conftest.$ac_objext
8739    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740    lt_compiler_flag="-fno-rtti -fno-exceptions"
8741    # Insert the option either (1) after the last *FLAGS variable, or
8742    # (2) before a word containing "conftest.", or (3) at the end.
8743    # Note that $ac_compile itself does not contain backslashes and begins
8744    # with a dollar sign (not a hyphen), so the echo should work correctly.
8745    # The option is referenced via a variable to avoid confusing sed.
8746    lt_compile=`echo "$ac_compile" | $SED \
8747    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749    -e 's:$: $lt_compiler_flag:'`
8750    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751    (eval "$lt_compile" 2>conftest.err)
8752    ac_status=$?
8753    cat conftest.err >&5
8754    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755    if (exit $ac_status) && test -s "$ac_outfile"; then
8756      # The compiler can only warn and ignore the option if not recognized
8757      # So say no if there are warnings other than the usual output.
8758      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761        lt_cv_prog_compiler_rtti_exceptions=yes
8762      fi
8763    fi
8764    $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8768 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8771     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8772 else
8773     :
8774 fi
8775
8776 fi
8777
8778
8779
8780
8781
8782
8783   lt_prog_compiler_wl=
8784 lt_prog_compiler_pic=
8785 lt_prog_compiler_static=
8786
8787
8788   if test "$GCC" = yes; then
8789     lt_prog_compiler_wl='-Wl,'
8790     lt_prog_compiler_static='-static'
8791
8792     case $host_os in
8793       aix*)
8794       # All AIX code is PIC.
8795       if test "$host_cpu" = ia64; then
8796         # AIX 5 now supports IA64 processor
8797         lt_prog_compiler_static='-Bstatic'
8798       fi
8799       ;;
8800
8801     amigaos*)
8802       case $host_cpu in
8803       powerpc)
8804             # see comment about AmigaOS4 .so support
8805             lt_prog_compiler_pic='-fPIC'
8806         ;;
8807       m68k)
8808             # FIXME: we need at least 68020 code to build shared libraries, but
8809             # adding the `-m68020' flag to GCC prevents building anything better,
8810             # like `-m68040'.
8811             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8812         ;;
8813       esac
8814       ;;
8815
8816     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8817       # PIC is the default for these OSes.
8818       ;;
8819
8820     mingw* | cygwin* | pw32* | os2* | cegcc*)
8821       # This hack is so that the source file can tell whether it is being
8822       # built for inclusion in a dll (and should export symbols for example).
8823       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8824       # (--disable-auto-import) libraries
8825       lt_prog_compiler_pic='-DDLL_EXPORT'
8826       ;;
8827
8828     darwin* | rhapsody*)
8829       # PIC is the default on this platform
8830       # Common symbols not allowed in MH_DYLIB files
8831       lt_prog_compiler_pic='-fno-common'
8832       ;;
8833
8834     haiku*)
8835       # PIC is the default for Haiku.
8836       # The "-static" flag exists, but is broken.
8837       lt_prog_compiler_static=
8838       ;;
8839
8840     hpux*)
8841       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8842       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8843       # sets the default TLS model and affects inlining.
8844       case $host_cpu in
8845       hppa*64*)
8846         # +Z the default
8847         ;;
8848       *)
8849         lt_prog_compiler_pic='-fPIC'
8850         ;;
8851       esac
8852       ;;
8853
8854     interix[3-9]*)
8855       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8856       # Instead, we relocate shared libraries at runtime.
8857       ;;
8858
8859     msdosdjgpp*)
8860       # Just because we use GCC doesn't mean we suddenly get shared libraries
8861       # on systems that don't support them.
8862       lt_prog_compiler_can_build_shared=no
8863       enable_shared=no
8864       ;;
8865
8866     *nto* | *qnx*)
8867       # QNX uses GNU C++, but need to define -shared option too, otherwise
8868       # it will coredump.
8869       lt_prog_compiler_pic='-fPIC -shared'
8870       ;;
8871
8872     sysv4*MP*)
8873       if test -d /usr/nec; then
8874         lt_prog_compiler_pic=-Kconform_pic
8875       fi
8876       ;;
8877
8878     *)
8879       lt_prog_compiler_pic='-fPIC'
8880       ;;
8881     esac
8882
8883     case $cc_basename in
8884     nvcc*) # Cuda Compiler Driver 2.2
8885       lt_prog_compiler_wl='-Xlinker '
8886       if test -n "$lt_prog_compiler_pic"; then
8887         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8888       fi
8889       ;;
8890     esac
8891   else
8892     # PORTME Check for flag to pass linker flags through the system compiler.
8893     case $host_os in
8894     aix*)
8895       lt_prog_compiler_wl='-Wl,'
8896       if test "$host_cpu" = ia64; then
8897         # AIX 5 now supports IA64 processor
8898         lt_prog_compiler_static='-Bstatic'
8899       else
8900         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8901       fi
8902       ;;
8903
8904     mingw* | cygwin* | pw32* | os2* | cegcc*)
8905       # This hack is so that the source file can tell whether it is being
8906       # built for inclusion in a dll (and should export symbols for example).
8907       lt_prog_compiler_pic='-DDLL_EXPORT'
8908       ;;
8909
8910     hpux9* | hpux10* | hpux11*)
8911       lt_prog_compiler_wl='-Wl,'
8912       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8913       # not for PA HP-UX.
8914       case $host_cpu in
8915       hppa*64*|ia64*)
8916         # +Z the default
8917         ;;
8918       *)
8919         lt_prog_compiler_pic='+Z'
8920         ;;
8921       esac
8922       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8923       lt_prog_compiler_static='${wl}-a ${wl}archive'
8924       ;;
8925
8926     irix5* | irix6* | nonstopux*)
8927       lt_prog_compiler_wl='-Wl,'
8928       # PIC (with -KPIC) is the default.
8929       lt_prog_compiler_static='-non_shared'
8930       ;;
8931
8932     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8933       case $cc_basename in
8934       # old Intel for x86_64 which still supported -KPIC.
8935       ecc*)
8936         lt_prog_compiler_wl='-Wl,'
8937         lt_prog_compiler_pic='-KPIC'
8938         lt_prog_compiler_static='-static'
8939         ;;
8940       # icc used to be incompatible with GCC.
8941       # ICC 10 doesn't accept -KPIC any more.
8942       icc* | ifort*)
8943         lt_prog_compiler_wl='-Wl,'
8944         lt_prog_compiler_pic='-fPIC'
8945         lt_prog_compiler_static='-static'
8946         ;;
8947       # Lahey Fortran 8.1.
8948       lf95*)
8949         lt_prog_compiler_wl='-Wl,'
8950         lt_prog_compiler_pic='--shared'
8951         lt_prog_compiler_static='--static'
8952         ;;
8953       nagfor*)
8954         # NAG Fortran compiler
8955         lt_prog_compiler_wl='-Wl,-Wl,,'
8956         lt_prog_compiler_pic='-PIC'
8957         lt_prog_compiler_static='-Bstatic'
8958         ;;
8959       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8960         # Portland Group compilers (*not* the Pentium gcc compiler,
8961         # which looks to be a dead project)
8962         lt_prog_compiler_wl='-Wl,'
8963         lt_prog_compiler_pic='-fpic'
8964         lt_prog_compiler_static='-Bstatic'
8965         ;;
8966       ccc*)
8967         lt_prog_compiler_wl='-Wl,'
8968         # All Alpha code is PIC.
8969         lt_prog_compiler_static='-non_shared'
8970         ;;
8971       xl* | bgxl* | bgf* | mpixl*)
8972         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8973         lt_prog_compiler_wl='-Wl,'
8974         lt_prog_compiler_pic='-qpic'
8975         lt_prog_compiler_static='-qstaticlink'
8976         ;;
8977       *)
8978         case `$CC -V 2>&1 | sed 5q` in
8979         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8980           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8981           lt_prog_compiler_pic='-KPIC'
8982           lt_prog_compiler_static='-Bstatic'
8983           lt_prog_compiler_wl=''
8984           ;;
8985         *Sun\ F* | *Sun*Fortran*)
8986           lt_prog_compiler_pic='-KPIC'
8987           lt_prog_compiler_static='-Bstatic'
8988           lt_prog_compiler_wl='-Qoption ld '
8989           ;;
8990         *Sun\ C*)
8991           # Sun C 5.9
8992           lt_prog_compiler_pic='-KPIC'
8993           lt_prog_compiler_static='-Bstatic'
8994           lt_prog_compiler_wl='-Wl,'
8995           ;;
8996         *Intel*\ [CF]*Compiler*)
8997           lt_prog_compiler_wl='-Wl,'
8998           lt_prog_compiler_pic='-fPIC'
8999           lt_prog_compiler_static='-static'
9000           ;;
9001         *Portland\ Group*)
9002           lt_prog_compiler_wl='-Wl,'
9003           lt_prog_compiler_pic='-fpic'
9004           lt_prog_compiler_static='-Bstatic'
9005           ;;
9006         esac
9007         ;;
9008       esac
9009       ;;
9010
9011     newsos6)
9012       lt_prog_compiler_pic='-KPIC'
9013       lt_prog_compiler_static='-Bstatic'
9014       ;;
9015
9016     *nto* | *qnx*)
9017       # QNX uses GNU C++, but need to define -shared option too, otherwise
9018       # it will coredump.
9019       lt_prog_compiler_pic='-fPIC -shared'
9020       ;;
9021
9022     osf3* | osf4* | osf5*)
9023       lt_prog_compiler_wl='-Wl,'
9024       # All OSF/1 code is PIC.
9025       lt_prog_compiler_static='-non_shared'
9026       ;;
9027
9028     rdos*)
9029       lt_prog_compiler_static='-non_shared'
9030       ;;
9031
9032     solaris*)
9033       lt_prog_compiler_pic='-KPIC'
9034       lt_prog_compiler_static='-Bstatic'
9035       case $cc_basename in
9036       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9037         lt_prog_compiler_wl='-Qoption ld ';;
9038       *)
9039         lt_prog_compiler_wl='-Wl,';;
9040       esac
9041       ;;
9042
9043     sunos4*)
9044       lt_prog_compiler_wl='-Qoption ld '
9045       lt_prog_compiler_pic='-PIC'
9046       lt_prog_compiler_static='-Bstatic'
9047       ;;
9048
9049     sysv4 | sysv4.2uw2* | sysv4.3*)
9050       lt_prog_compiler_wl='-Wl,'
9051       lt_prog_compiler_pic='-KPIC'
9052       lt_prog_compiler_static='-Bstatic'
9053       ;;
9054
9055     sysv4*MP*)
9056       if test -d /usr/nec ;then
9057         lt_prog_compiler_pic='-Kconform_pic'
9058         lt_prog_compiler_static='-Bstatic'
9059       fi
9060       ;;
9061
9062     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9063       lt_prog_compiler_wl='-Wl,'
9064       lt_prog_compiler_pic='-KPIC'
9065       lt_prog_compiler_static='-Bstatic'
9066       ;;
9067
9068     unicos*)
9069       lt_prog_compiler_wl='-Wl,'
9070       lt_prog_compiler_can_build_shared=no
9071       ;;
9072
9073     uts4*)
9074       lt_prog_compiler_pic='-pic'
9075       lt_prog_compiler_static='-Bstatic'
9076       ;;
9077
9078     *)
9079       lt_prog_compiler_can_build_shared=no
9080       ;;
9081     esac
9082   fi
9083
9084 case $host_os in
9085   # For platforms which do not support PIC, -DPIC is meaningless:
9086   *djgpp*)
9087     lt_prog_compiler_pic=
9088     ;;
9089   *)
9090     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9091     ;;
9092 esac
9093
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9095 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9096 if ${lt_cv_prog_compiler_pic+:} false; then :
9097   $as_echo_n "(cached) " >&6
9098 else
9099   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9100 fi
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9102 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9103 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9104
9105 #
9106 # Check to make sure the PIC flag actually works.
9107 #
9108 if test -n "$lt_prog_compiler_pic"; then
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9110 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9111 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9112   $as_echo_n "(cached) " >&6
9113 else
9114   lt_cv_prog_compiler_pic_works=no
9115    ac_outfile=conftest.$ac_objext
9116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9118    # Insert the option either (1) after the last *FLAGS variable, or
9119    # (2) before a word containing "conftest.", or (3) at the end.
9120    # Note that $ac_compile itself does not contain backslashes and begins
9121    # with a dollar sign (not a hyphen), so the echo should work correctly.
9122    # The option is referenced via a variable to avoid confusing sed.
9123    lt_compile=`echo "$ac_compile" | $SED \
9124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126    -e 's:$: $lt_compiler_flag:'`
9127    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128    (eval "$lt_compile" 2>conftest.err)
9129    ac_status=$?
9130    cat conftest.err >&5
9131    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132    if (exit $ac_status) && test -s "$ac_outfile"; then
9133      # The compiler can only warn and ignore the option if not recognized
9134      # So say no if there are warnings other than the usual output.
9135      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9136      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9138        lt_cv_prog_compiler_pic_works=yes
9139      fi
9140    fi
9141    $RM conftest*
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9145 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9146
9147 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9148     case $lt_prog_compiler_pic in
9149      "" | " "*) ;;
9150      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9151      esac
9152 else
9153     lt_prog_compiler_pic=
9154      lt_prog_compiler_can_build_shared=no
9155 fi
9156
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 #
9170 # Check to make sure the static flag actually works.
9171 #
9172 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9174 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9175 if ${lt_cv_prog_compiler_static_works+:} false; then :
9176   $as_echo_n "(cached) " >&6
9177 else
9178   lt_cv_prog_compiler_static_works=no
9179    save_LDFLAGS="$LDFLAGS"
9180    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9181    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9182    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9183      # The linker can only warn and ignore the option if not recognized
9184      # So say no if there are warnings
9185      if test -s conftest.err; then
9186        # Append any errors to the config.log.
9187        cat conftest.err 1>&5
9188        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9189        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9190        if diff conftest.exp conftest.er2 >/dev/null; then
9191          lt_cv_prog_compiler_static_works=yes
9192        fi
9193      else
9194        lt_cv_prog_compiler_static_works=yes
9195      fi
9196    fi
9197    $RM -r conftest*
9198    LDFLAGS="$save_LDFLAGS"
9199
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9202 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9203
9204 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9205     :
9206 else
9207     lt_prog_compiler_static=
9208 fi
9209
9210
9211
9212
9213
9214
9215
9216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9217 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9218 if ${lt_cv_prog_compiler_c_o+:} false; then :
9219   $as_echo_n "(cached) " >&6
9220 else
9221   lt_cv_prog_compiler_c_o=no
9222    $RM -r conftest 2>/dev/null
9223    mkdir conftest
9224    cd conftest
9225    mkdir out
9226    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9227
9228    lt_compiler_flag="-o out/conftest2.$ac_objext"
9229    # Insert the option either (1) after the last *FLAGS variable, or
9230    # (2) before a word containing "conftest.", or (3) at the end.
9231    # Note that $ac_compile itself does not contain backslashes and begins
9232    # with a dollar sign (not a hyphen), so the echo should work correctly.
9233    lt_compile=`echo "$ac_compile" | $SED \
9234    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9235    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9236    -e 's:$: $lt_compiler_flag:'`
9237    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9238    (eval "$lt_compile" 2>out/conftest.err)
9239    ac_status=$?
9240    cat out/conftest.err >&5
9241    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9243    then
9244      # The compiler can only warn and ignore the option if not recognized
9245      # So say no if there are warnings
9246      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9247      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9248      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9249        lt_cv_prog_compiler_c_o=yes
9250      fi
9251    fi
9252    chmod u+w . 2>&5
9253    $RM conftest*
9254    # SGI C++ compiler will create directory out/ii_files/ for
9255    # template instantiation
9256    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9257    $RM out/* && rmdir out
9258    cd ..
9259    $RM -r conftest
9260    $RM conftest*
9261
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9264 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9265
9266
9267
9268
9269
9270
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9273 if ${lt_cv_prog_compiler_c_o+:} false; then :
9274   $as_echo_n "(cached) " >&6
9275 else
9276   lt_cv_prog_compiler_c_o=no
9277    $RM -r conftest 2>/dev/null
9278    mkdir conftest
9279    cd conftest
9280    mkdir out
9281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9282
9283    lt_compiler_flag="-o out/conftest2.$ac_objext"
9284    # Insert the option either (1) after the last *FLAGS variable, or
9285    # (2) before a word containing "conftest.", or (3) at the end.
9286    # Note that $ac_compile itself does not contain backslashes and begins
9287    # with a dollar sign (not a hyphen), so the echo should work correctly.
9288    lt_compile=`echo "$ac_compile" | $SED \
9289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9291    -e 's:$: $lt_compiler_flag:'`
9292    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9293    (eval "$lt_compile" 2>out/conftest.err)
9294    ac_status=$?
9295    cat out/conftest.err >&5
9296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9298    then
9299      # The compiler can only warn and ignore the option if not recognized
9300      # So say no if there are warnings
9301      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9302      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9303      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9304        lt_cv_prog_compiler_c_o=yes
9305      fi
9306    fi
9307    chmod u+w . 2>&5
9308    $RM conftest*
9309    # SGI C++ compiler will create directory out/ii_files/ for
9310    # template instantiation
9311    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9312    $RM out/* && rmdir out
9313    cd ..
9314    $RM -r conftest
9315    $RM conftest*
9316
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9319 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9320
9321
9322
9323
9324 hard_links="nottested"
9325 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9326   # do not overwrite the value of need_locks provided by the user
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9328 $as_echo_n "checking if we can lock with hard links... " >&6; }
9329   hard_links=yes
9330   $RM conftest*
9331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9332   touch conftest.a
9333   ln conftest.a conftest.b 2>&5 || hard_links=no
9334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9336 $as_echo "$hard_links" >&6; }
9337   if test "$hard_links" = no; then
9338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9340     need_locks=warn
9341   fi
9342 else
9343   need_locks=no
9344 fi
9345
9346
9347
9348
9349
9350
9351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9352 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9353
9354   runpath_var=
9355   allow_undefined_flag=
9356   always_export_symbols=no
9357   archive_cmds=
9358   archive_expsym_cmds=
9359   compiler_needs_object=no
9360   enable_shared_with_static_runtimes=no
9361   export_dynamic_flag_spec=
9362   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9363   hardcode_automatic=no
9364   hardcode_direct=no
9365   hardcode_direct_absolute=no
9366   hardcode_libdir_flag_spec=
9367   hardcode_libdir_separator=
9368   hardcode_minus_L=no
9369   hardcode_shlibpath_var=unsupported
9370   inherit_rpath=no
9371   link_all_deplibs=unknown
9372   module_cmds=
9373   module_expsym_cmds=
9374   old_archive_from_new_cmds=
9375   old_archive_from_expsyms_cmds=
9376   thread_safe_flag_spec=
9377   whole_archive_flag_spec=
9378   # include_expsyms should be a list of space-separated symbols to be *always*
9379   # included in the symbol list
9380   include_expsyms=
9381   # exclude_expsyms can be an extended regexp of symbols to exclude
9382   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9383   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9384   # as well as any symbol that contains `d'.
9385   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9386   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9387   # platforms (ab)use it in PIC code, but their linkers get confused if
9388   # the symbol is explicitly referenced.  Since portable code cannot
9389   # rely on this symbol name, it's probably fine to never include it in
9390   # preloaded symbol tables.
9391   # Exclude shared library initialization/finalization symbols.
9392   extract_expsyms_cmds=
9393
9394   case $host_os in
9395   cygwin* | mingw* | pw32* | cegcc*)
9396     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9397     # When not using gcc, we currently assume that we are using
9398     # Microsoft Visual C++.
9399     if test "$GCC" != yes; then
9400       with_gnu_ld=no
9401     fi
9402     ;;
9403   interix*)
9404     # we just hope/assume this is gcc and not c89 (= MSVC++)
9405     with_gnu_ld=yes
9406     ;;
9407   openbsd*)
9408     with_gnu_ld=no
9409     ;;
9410   linux* | k*bsd*-gnu | gnu*)
9411     link_all_deplibs=no
9412     ;;
9413   esac
9414
9415   ld_shlibs=yes
9416
9417   # On some targets, GNU ld is compatible enough with the native linker
9418   # that we're better off using the native interface for both.
9419   lt_use_gnu_ld_interface=no
9420   if test "$with_gnu_ld" = yes; then
9421     case $host_os in
9422       aix*)
9423         # The AIX port of GNU ld has always aspired to compatibility
9424         # with the native linker.  However, as the warning in the GNU ld
9425         # block says, versions before 2.19.5* couldn't really create working
9426         # shared libraries, regardless of the interface used.
9427         case `$LD -v 2>&1` in
9428           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9429           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9430           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9431           *)
9432             lt_use_gnu_ld_interface=yes
9433             ;;
9434         esac
9435         ;;
9436       *)
9437         lt_use_gnu_ld_interface=yes
9438         ;;
9439     esac
9440   fi
9441
9442   if test "$lt_use_gnu_ld_interface" = yes; then
9443     # If archive_cmds runs LD, not CC, wlarc should be empty
9444     wlarc='${wl}'
9445
9446     # Set some defaults for GNU ld with shared library support. These
9447     # are reset later if shared libraries are not supported. Putting them
9448     # here allows them to be overridden if necessary.
9449     runpath_var=LD_RUN_PATH
9450     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451     export_dynamic_flag_spec='${wl}--export-dynamic'
9452     # ancient GNU ld didn't support --whole-archive et. al.
9453     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9454       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9455     else
9456       whole_archive_flag_spec=
9457     fi
9458     supports_anon_versioning=no
9459     case `$LD -v 2>&1` in
9460       *GNU\ gold*) supports_anon_versioning=yes ;;
9461       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9462       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9463       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9464       *\ 2.11.*) ;; # other 2.11 versions
9465       *) supports_anon_versioning=yes ;;
9466     esac
9467
9468     # See if GNU ld supports shared libraries.
9469     case $host_os in
9470     aix[3-9]*)
9471       # On AIX/PPC, the GNU linker is very broken
9472       if test "$host_cpu" != ia64; then
9473         ld_shlibs=no
9474         cat <<_LT_EOF 1>&2
9475
9476 *** Warning: the GNU linker, at least up to release 2.19, is reported
9477 *** to be unable to reliably create shared libraries on AIX.
9478 *** Therefore, libtool is disabling shared libraries support.  If you
9479 *** really care for shared libraries, you may want to install binutils
9480 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9481 *** You will then need to restart the configuration process.
9482
9483 _LT_EOF
9484       fi
9485       ;;
9486
9487     amigaos*)
9488       case $host_cpu in
9489       powerpc)
9490             # see comment about AmigaOS4 .so support
9491             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492             archive_expsym_cmds=''
9493         ;;
9494       m68k)
9495             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)'
9496             hardcode_libdir_flag_spec='-L$libdir'
9497             hardcode_minus_L=yes
9498         ;;
9499       esac
9500       ;;
9501
9502     beos*)
9503       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9504         allow_undefined_flag=unsupported
9505         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9506         # support --undefined.  This deserves some investigation.  FIXME
9507         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508       else
9509         ld_shlibs=no
9510       fi
9511       ;;
9512
9513     cygwin* | mingw* | pw32* | cegcc*)
9514       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9515       # as there is no search path for DLLs.
9516       hardcode_libdir_flag_spec='-L$libdir'
9517       export_dynamic_flag_spec='${wl}--export-all-symbols'
9518       allow_undefined_flag=unsupported
9519       always_export_symbols=no
9520       enable_shared_with_static_runtimes=yes
9521       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9522       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9523
9524       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9525         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9526         # If the export-symbols file already is a .def file (1st line
9527         # is EXPORTS), use it as is; otherwise, prepend...
9528         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9529           cp $export_symbols $output_objdir/$soname.def;
9530         else
9531           echo EXPORTS > $output_objdir/$soname.def;
9532           cat $export_symbols >> $output_objdir/$soname.def;
9533         fi~
9534         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9535       else
9536         ld_shlibs=no
9537       fi
9538       ;;
9539
9540     haiku*)
9541       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542       link_all_deplibs=yes
9543       ;;
9544
9545     interix[3-9]*)
9546       hardcode_direct=no
9547       hardcode_shlibpath_var=no
9548       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549       export_dynamic_flag_spec='${wl}-E'
9550       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9551       # Instead, shared libraries are loaded at an image base (0x10000000 by
9552       # default) and relocated if they conflict, which is a slow very memory
9553       # consuming and fragmenting process.  To avoid this, we pick a random,
9554       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9555       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9556       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9557       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'
9558       ;;
9559
9560     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9561       tmp_diet=no
9562       if test "$host_os" = linux-dietlibc; then
9563         case $cc_basename in
9564           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9565         esac
9566       fi
9567       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9568          && test "$tmp_diet" = no
9569       then
9570         tmp_addflag=' $pic_flag'
9571         tmp_sharedflag='-shared'
9572         case $cc_basename,$host_cpu in
9573         pgcc*)                          # Portland Group C compiler
9574           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9575           tmp_addflag=' $pic_flag'
9576           ;;
9577         pgf77* | pgf90* | pgf95* | pgfortran*)
9578                                         # Portland Group f77 and f90 compilers
9579           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9580           tmp_addflag=' $pic_flag -Mnomain' ;;
9581         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9582           tmp_addflag=' -i_dynamic' ;;
9583         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9584           tmp_addflag=' -i_dynamic -nofor_main' ;;
9585         ifc* | ifort*)                  # Intel Fortran compiler
9586           tmp_addflag=' -nofor_main' ;;
9587         lf95*)                          # Lahey Fortran 8.1
9588           whole_archive_flag_spec=
9589           tmp_sharedflag='--shared' ;;
9590         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9591           tmp_sharedflag='-qmkshrobj'
9592           tmp_addflag= ;;
9593         nvcc*)  # Cuda Compiler Driver 2.2
9594           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9595           compiler_needs_object=yes
9596           ;;
9597         esac
9598         case `$CC -V 2>&1 | sed 5q` in
9599         *Sun\ C*)                       # Sun C 5.9
9600           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9601           compiler_needs_object=yes
9602           tmp_sharedflag='-G' ;;
9603         *Sun\ F*)                       # Sun Fortran 8.3
9604           tmp_sharedflag='-G' ;;
9605         esac
9606         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9607
9608         if test "x$supports_anon_versioning" = xyes; then
9609           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9610             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9611             echo "local: *; };" >> $output_objdir/$libname.ver~
9612             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9613         fi
9614
9615         case $cc_basename in
9616         xlf* | bgf* | bgxlf* | mpixlf*)
9617           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9618           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9619           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9621           if test "x$supports_anon_versioning" = xyes; then
9622             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9623               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9624               echo "local: *; };" >> $output_objdir/$libname.ver~
9625               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9626           fi
9627           ;;
9628         esac
9629       else
9630         ld_shlibs=no
9631       fi
9632       ;;
9633
9634     netbsd* | netbsdelf*-gnu)
9635       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9636         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9637         wlarc=
9638       else
9639         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9641       fi
9642       ;;
9643
9644     solaris*)
9645       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9646         ld_shlibs=no
9647         cat <<_LT_EOF 1>&2
9648
9649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9650 *** create shared libraries on Solaris systems.  Therefore, libtool
9651 *** is disabling shared libraries support.  We urge you to upgrade GNU
9652 *** binutils to release 2.9.1 or newer.  Another option is to modify
9653 *** your PATH or compiler configuration so that the native linker is
9654 *** used, and then restart.
9655
9656 _LT_EOF
9657       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9658         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9659         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9660       else
9661         ld_shlibs=no
9662       fi
9663       ;;
9664
9665     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9666       case `$LD -v 2>&1` in
9667         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9668         ld_shlibs=no
9669         cat <<_LT_EOF 1>&2
9670
9671 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9672 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9673 *** is disabling shared libraries support.  We urge you to upgrade GNU
9674 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9675 *** your PATH or compiler configuration so that the native linker is
9676 *** used, and then restart.
9677
9678 _LT_EOF
9679         ;;
9680         *)
9681           # For security reasons, it is highly recommended that you always
9682           # use absolute paths for naming shared libraries, and exclude the
9683           # DT_RUNPATH tag from executables and libraries.  But doing so
9684           # requires that you compile everything twice, which is a pain.
9685           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9686             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9687             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9688             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9689           else
9690             ld_shlibs=no
9691           fi
9692         ;;
9693       esac
9694       ;;
9695
9696     sunos4*)
9697       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9698       wlarc=
9699       hardcode_direct=yes
9700       hardcode_shlibpath_var=no
9701       ;;
9702
9703     *)
9704       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9705         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9707       else
9708         ld_shlibs=no
9709       fi
9710       ;;
9711     esac
9712
9713     if test "$ld_shlibs" = no; then
9714       runpath_var=
9715       hardcode_libdir_flag_spec=
9716       export_dynamic_flag_spec=
9717       whole_archive_flag_spec=
9718     fi
9719   else
9720     # PORTME fill in a description of your system's linker (not GNU ld)
9721     case $host_os in
9722     aix3*)
9723       allow_undefined_flag=unsupported
9724       always_export_symbols=yes
9725       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'
9726       # Note: this linker hardcodes the directories in LIBPATH if there
9727       # are no directories specified by -L.
9728       hardcode_minus_L=yes
9729       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9730         # Neither direct hardcoding nor static linking is supported with a
9731         # broken collect2.
9732         hardcode_direct=unsupported
9733       fi
9734       ;;
9735
9736     aix[4-9]*)
9737       if test "$host_cpu" = ia64; then
9738         # On IA64, the linker does run time linking by default, so we don't
9739         # have to do anything special.
9740         aix_use_runtimelinking=no
9741         exp_sym_flag='-Bexport'
9742         no_entry_flag=""
9743       else
9744         # If we're using GNU nm, then we don't want the "-C" option.
9745         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9746         # Also, AIX nm treats weak defined symbols like other global
9747         # defined symbols, whereas GNU nm marks them as "W".
9748         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9749           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9750         else
9751           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'
9752         fi
9753         aix_use_runtimelinking=no
9754
9755         # Test if we are trying to use run time linking or normal
9756         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9757         # need to do runtime linking.
9758         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9759           for ld_flag in $LDFLAGS; do
9760           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9761             aix_use_runtimelinking=yes
9762             break
9763           fi
9764           done
9765           ;;
9766         esac
9767
9768         exp_sym_flag='-bexport'
9769         no_entry_flag='-bnoentry'
9770       fi
9771
9772       # When large executables or shared objects are built, AIX ld can
9773       # have problems creating the table of contents.  If linking a library
9774       # or program results in "error TOC overflow" add -mminimal-toc to
9775       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9776       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9777
9778       archive_cmds=''
9779       hardcode_direct=yes
9780       hardcode_direct_absolute=yes
9781       hardcode_libdir_separator=':'
9782       link_all_deplibs=yes
9783       file_list_spec='${wl}-f,'
9784
9785       if test "$GCC" = yes; then
9786         case $host_os in aix4.[012]|aix4.[012].*)
9787         # We only want to do this on AIX 4.2 and lower, the check
9788         # below for broken collect2 doesn't work under 4.3+
9789           collect2name=`${CC} -print-prog-name=collect2`
9790           if test -f "$collect2name" &&
9791            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9792           then
9793           # We have reworked collect2
9794           :
9795           else
9796           # We have old collect2
9797           hardcode_direct=unsupported
9798           # It fails to find uninstalled libraries when the uninstalled
9799           # path is not listed in the libpath.  Setting hardcode_minus_L
9800           # to unsupported forces relinking
9801           hardcode_minus_L=yes
9802           hardcode_libdir_flag_spec='-L$libdir'
9803           hardcode_libdir_separator=
9804           fi
9805           ;;
9806         esac
9807         shared_flag='-shared'
9808         if test "$aix_use_runtimelinking" = yes; then
9809           shared_flag="$shared_flag "'${wl}-G'
9810         fi
9811         link_all_deplibs=no
9812       else
9813         # not using gcc
9814         if test "$host_cpu" = ia64; then
9815         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9816         # chokes on -Wl,-G. The following line is correct:
9817           shared_flag='-G'
9818         else
9819           if test "$aix_use_runtimelinking" = yes; then
9820             shared_flag='${wl}-G'
9821           else
9822             shared_flag='${wl}-bM:SRE'
9823           fi
9824         fi
9825       fi
9826
9827       export_dynamic_flag_spec='${wl}-bexpall'
9828       # It seems that -bexpall does not export symbols beginning with
9829       # underscore (_), so it is better to generate a list of symbols to export.
9830       always_export_symbols=yes
9831       if test "$aix_use_runtimelinking" = yes; then
9832         # Warning - without using the other runtime loading flags (-brtl),
9833         # -berok will link without error, but may produce a broken library.
9834         allow_undefined_flag='-berok'
9835         # Determine the default libpath from the value encoded in an
9836         # empty executable.
9837         if test "${lt_cv_aix_libpath+set}" = set; then
9838   aix_libpath=$lt_cv_aix_libpath
9839 else
9840   if ${lt_cv_aix_libpath_+:} false; then :
9841   $as_echo_n "(cached) " >&6
9842 else
9843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h.  */
9845
9846 int
9847 main ()
9848 {
9849
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 if ac_fn_c_try_link "$LINENO"; then :
9855
9856   lt_aix_libpath_sed='
9857       /Import File Strings/,/^$/ {
9858           /^0/ {
9859               s/^0  *\([^ ]*\) *$/\1/
9860               p
9861           }
9862       }'
9863   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9864   # Check for a 64-bit object if we didn't find anything.
9865   if test -z "$lt_cv_aix_libpath_"; then
9866     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9867   fi
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext \
9870     conftest$ac_exeext conftest.$ac_ext
9871   if test -z "$lt_cv_aix_libpath_"; then
9872     lt_cv_aix_libpath_="/usr/lib:/lib"
9873   fi
9874
9875 fi
9876
9877   aix_libpath=$lt_cv_aix_libpath_
9878 fi
9879
9880         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9881         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9882       else
9883         if test "$host_cpu" = ia64; then
9884           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9885           allow_undefined_flag="-z nodefs"
9886           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"
9887         else
9888          # Determine the default libpath from the value encoded in an
9889          # empty executable.
9890          if test "${lt_cv_aix_libpath+set}" = set; then
9891   aix_libpath=$lt_cv_aix_libpath
9892 else
9893   if ${lt_cv_aix_libpath_+:} false; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h.  */
9898
9899 int
9900 main ()
9901 {
9902
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 if ac_fn_c_try_link "$LINENO"; then :
9908
9909   lt_aix_libpath_sed='
9910       /Import File Strings/,/^$/ {
9911           /^0/ {
9912               s/^0  *\([^ ]*\) *$/\1/
9913               p
9914           }
9915       }'
9916   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9917   # Check for a 64-bit object if we didn't find anything.
9918   if test -z "$lt_cv_aix_libpath_"; then
9919     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9920   fi
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext \
9923     conftest$ac_exeext conftest.$ac_ext
9924   if test -z "$lt_cv_aix_libpath_"; then
9925     lt_cv_aix_libpath_="/usr/lib:/lib"
9926   fi
9927
9928 fi
9929
9930   aix_libpath=$lt_cv_aix_libpath_
9931 fi
9932
9933          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9934           # Warning - without using the other run time loading flags,
9935           # -berok will link without error, but may produce a broken library.
9936           no_undefined_flag=' ${wl}-bernotok'
9937           allow_undefined_flag=' ${wl}-berok'
9938           if test "$with_gnu_ld" = yes; then
9939             # We only use this code for GNU lds that support --whole-archive.
9940             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9941           else
9942             # Exported symbols can be pulled into shared objects from archives
9943             whole_archive_flag_spec='$convenience'
9944           fi
9945           archive_cmds_need_lc=yes
9946           # This is similar to how AIX traditionally builds its shared libraries.
9947           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'
9948         fi
9949       fi
9950       ;;
9951
9952     amigaos*)
9953       case $host_cpu in
9954       powerpc)
9955             # see comment about AmigaOS4 .so support
9956             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957             archive_expsym_cmds=''
9958         ;;
9959       m68k)
9960             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)'
9961             hardcode_libdir_flag_spec='-L$libdir'
9962             hardcode_minus_L=yes
9963         ;;
9964       esac
9965       ;;
9966
9967     bsdi[45]*)
9968       export_dynamic_flag_spec=-rdynamic
9969       ;;
9970
9971     cygwin* | mingw* | pw32* | cegcc*)
9972       # When not using gcc, we currently assume that we are using
9973       # Microsoft Visual C++.
9974       # hardcode_libdir_flag_spec is actually meaningless, as there is
9975       # no search path for DLLs.
9976       case $cc_basename in
9977       cl*)
9978         # Native MSVC
9979         hardcode_libdir_flag_spec=' '
9980         allow_undefined_flag=unsupported
9981         always_export_symbols=yes
9982         file_list_spec='@'
9983         # Tell ltmain to make .lib files, not .a files.
9984         libext=lib
9985         # Tell ltmain to make .dll files, not .so files.
9986         shrext_cmds=".dll"
9987         # FIXME: Setting linknames here is a bad hack.
9988         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9989         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9990             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9991           else
9992             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9993           fi~
9994           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9995           linknames='
9996         # The linker will not automatically build a static lib if we build a DLL.
9997         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9998         enable_shared_with_static_runtimes=yes
9999         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10000         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10001         # Don't use ranlib
10002         old_postinstall_cmds='chmod 644 $oldlib'
10003         postlink_cmds='lt_outputfile="@OUTPUT@"~
10004           lt_tool_outputfile="@TOOL_OUTPUT@"~
10005           case $lt_outputfile in
10006             *.exe|*.EXE) ;;
10007             *)
10008               lt_outputfile="$lt_outputfile.exe"
10009               lt_tool_outputfile="$lt_tool_outputfile.exe"
10010               ;;
10011           esac~
10012           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10013             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10014             $RM "$lt_outputfile.manifest";
10015           fi'
10016         ;;
10017       *)
10018         # Assume MSVC wrapper
10019         hardcode_libdir_flag_spec=' '
10020         allow_undefined_flag=unsupported
10021         # Tell ltmain to make .lib files, not .a files.
10022         libext=lib
10023         # Tell ltmain to make .dll files, not .so files.
10024         shrext_cmds=".dll"
10025         # FIXME: Setting linknames here is a bad hack.
10026         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10027         # The linker will automatically build a .lib file if we build a DLL.
10028         old_archive_from_new_cmds='true'
10029         # FIXME: Should let the user specify the lib program.
10030         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10031         enable_shared_with_static_runtimes=yes
10032         ;;
10033       esac
10034       ;;
10035
10036     darwin* | rhapsody*)
10037
10038
10039   archive_cmds_need_lc=no
10040   hardcode_direct=no
10041   hardcode_automatic=yes
10042   hardcode_shlibpath_var=unsupported
10043   if test "$lt_cv_ld_force_load" = "yes"; then
10044     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10045
10046   else
10047     whole_archive_flag_spec=''
10048   fi
10049   link_all_deplibs=yes
10050   allow_undefined_flag="$_lt_dar_allow_undefined"
10051   case $cc_basename in
10052      ifort*) _lt_dar_can_shared=yes ;;
10053      *) _lt_dar_can_shared=$GCC ;;
10054   esac
10055   if test "$_lt_dar_can_shared" = "yes"; then
10056     output_verbose_link_cmd=func_echo_all
10057     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10058     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10059     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10060     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10061
10062   else
10063   ld_shlibs=no
10064   fi
10065
10066       ;;
10067
10068     dgux*)
10069       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070       hardcode_libdir_flag_spec='-L$libdir'
10071       hardcode_shlibpath_var=no
10072       ;;
10073
10074     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10075     # support.  Future versions do this automatically, but an explicit c++rt0.o
10076     # does not break anything, and helps significantly (at the cost of a little
10077     # extra space).
10078     freebsd2.2*)
10079       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10080       hardcode_libdir_flag_spec='-R$libdir'
10081       hardcode_direct=yes
10082       hardcode_shlibpath_var=no
10083       ;;
10084
10085     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10086     freebsd2.*)
10087       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10088       hardcode_direct=yes
10089       hardcode_minus_L=yes
10090       hardcode_shlibpath_var=no
10091       ;;
10092
10093     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10094     freebsd* | dragonfly*)
10095       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10096       hardcode_libdir_flag_spec='-R$libdir'
10097       hardcode_direct=yes
10098       hardcode_shlibpath_var=no
10099       ;;
10100
10101     hpux9*)
10102       if test "$GCC" = yes; then
10103         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10104       else
10105         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'
10106       fi
10107       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10108       hardcode_libdir_separator=:
10109       hardcode_direct=yes
10110
10111       # hardcode_minus_L: Not really in the search PATH,
10112       # but as the default location of the library.
10113       hardcode_minus_L=yes
10114       export_dynamic_flag_spec='${wl}-E'
10115       ;;
10116
10117     hpux10*)
10118       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10119         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10120       else
10121         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10122       fi
10123       if test "$with_gnu_ld" = no; then
10124         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10125         hardcode_libdir_separator=:
10126         hardcode_direct=yes
10127         hardcode_direct_absolute=yes
10128         export_dynamic_flag_spec='${wl}-E'
10129         # hardcode_minus_L: Not really in the search PATH,
10130         # but as the default location of the library.
10131         hardcode_minus_L=yes
10132       fi
10133       ;;
10134
10135     hpux11*)
10136       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10137         case $host_cpu in
10138         hppa*64*)
10139           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140           ;;
10141         ia64*)
10142           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10143           ;;
10144         *)
10145           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10146           ;;
10147         esac
10148       else
10149         case $host_cpu in
10150         hppa*64*)
10151           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10152           ;;
10153         ia64*)
10154           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10155           ;;
10156         *)
10157
10158           # Older versions of the 11.00 compiler do not understand -b yet
10159           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10160           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10161 $as_echo_n "checking if $CC understands -b... " >&6; }
10162 if ${lt_cv_prog_compiler__b+:} false; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   lt_cv_prog_compiler__b=no
10166    save_LDFLAGS="$LDFLAGS"
10167    LDFLAGS="$LDFLAGS -b"
10168    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10169    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10170      # The linker can only warn and ignore the option if not recognized
10171      # So say no if there are warnings
10172      if test -s conftest.err; then
10173        # Append any errors to the config.log.
10174        cat conftest.err 1>&5
10175        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10176        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10177        if diff conftest.exp conftest.er2 >/dev/null; then
10178          lt_cv_prog_compiler__b=yes
10179        fi
10180      else
10181        lt_cv_prog_compiler__b=yes
10182      fi
10183    fi
10184    $RM -r conftest*
10185    LDFLAGS="$save_LDFLAGS"
10186
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10189 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10190
10191 if test x"$lt_cv_prog_compiler__b" = xyes; then
10192     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10195 fi
10196
10197           ;;
10198         esac
10199       fi
10200       if test "$with_gnu_ld" = no; then
10201         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10202         hardcode_libdir_separator=:
10203
10204         case $host_cpu in
10205         hppa*64*|ia64*)
10206           hardcode_direct=no
10207           hardcode_shlibpath_var=no
10208           ;;
10209         *)
10210           hardcode_direct=yes
10211           hardcode_direct_absolute=yes
10212           export_dynamic_flag_spec='${wl}-E'
10213
10214           # hardcode_minus_L: Not really in the search PATH,
10215           # but as the default location of the library.
10216           hardcode_minus_L=yes
10217           ;;
10218         esac
10219       fi
10220       ;;
10221
10222     irix5* | irix6* | nonstopux*)
10223       if test "$GCC" = yes; then
10224         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10225         # Try to use the -exported_symbol ld option, if it does not
10226         # work, assume that -exports_file does not work either and
10227         # implicitly export all symbols.
10228         # This should be the same for all languages, so no per-tag cache variable.
10229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10230 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10231 if ${lt_cv_irix_exported_symbol+:} false; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   save_LDFLAGS="$LDFLAGS"
10235            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10236            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h.  */
10238 int foo (void) { return 0; }
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"; then :
10241   lt_cv_irix_exported_symbol=yes
10242 else
10243   lt_cv_irix_exported_symbol=no
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext \
10246     conftest$ac_exeext conftest.$ac_ext
10247            LDFLAGS="$save_LDFLAGS"
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10250 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10251         if test "$lt_cv_irix_exported_symbol" = yes; then
10252           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10253         fi
10254       else
10255         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10256         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10257       fi
10258       archive_cmds_need_lc='no'
10259       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10260       hardcode_libdir_separator=:
10261       inherit_rpath=yes
10262       link_all_deplibs=yes
10263       ;;
10264
10265     netbsd* | netbsdelf*-gnu)
10266       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10267         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10268       else
10269         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10270       fi
10271       hardcode_libdir_flag_spec='-R$libdir'
10272       hardcode_direct=yes
10273       hardcode_shlibpath_var=no
10274       ;;
10275
10276     newsos6)
10277       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278       hardcode_direct=yes
10279       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280       hardcode_libdir_separator=:
10281       hardcode_shlibpath_var=no
10282       ;;
10283
10284     *nto* | *qnx*)
10285       ;;
10286
10287     openbsd*)
10288       if test -f /usr/libexec/ld.so; then
10289         hardcode_direct=yes
10290         hardcode_shlibpath_var=no
10291         hardcode_direct_absolute=yes
10292         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10293           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10294           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10295           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10296           export_dynamic_flag_spec='${wl}-E'
10297         else
10298           case $host_os in
10299            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10300              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301              hardcode_libdir_flag_spec='-R$libdir'
10302              ;;
10303            *)
10304              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10305              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10306              ;;
10307           esac
10308         fi
10309       else
10310         ld_shlibs=no
10311       fi
10312       ;;
10313
10314     os2*)
10315       hardcode_libdir_flag_spec='-L$libdir'
10316       hardcode_minus_L=yes
10317       allow_undefined_flag=unsupported
10318       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'
10319       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10320       ;;
10321
10322     osf3*)
10323       if test "$GCC" = yes; then
10324         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10325         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10326       else
10327         allow_undefined_flag=' -expect_unresolved \*'
10328         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10329       fi
10330       archive_cmds_need_lc='no'
10331       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10332       hardcode_libdir_separator=:
10333       ;;
10334
10335     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10336       if test "$GCC" = yes; then
10337         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10338         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10339         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10340       else
10341         allow_undefined_flag=' -expect_unresolved \*'
10342         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10343         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10344         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10345
10346         # Both c and cxx compiler support -rpath directly
10347         hardcode_libdir_flag_spec='-rpath $libdir'
10348       fi
10349       archive_cmds_need_lc='no'
10350       hardcode_libdir_separator=:
10351       ;;
10352
10353     solaris*)
10354       no_undefined_flag=' -z defs'
10355       if test "$GCC" = yes; then
10356         wlarc='${wl}'
10357         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10358         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10359           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10360       else
10361         case `$CC -V 2>&1` in
10362         *"Compilers 5.0"*)
10363           wlarc=''
10364           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10365           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10366           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10367           ;;
10368         *)
10369           wlarc='${wl}'
10370           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10371           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10372           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10373           ;;
10374         esac
10375       fi
10376       hardcode_libdir_flag_spec='-R$libdir'
10377       hardcode_shlibpath_var=no
10378       case $host_os in
10379       solaris2.[0-5] | solaris2.[0-5].*) ;;
10380       *)
10381         # The compiler driver will combine and reorder linker options,
10382         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10383         # but is careful enough not to reorder.
10384         # Supported since Solaris 2.6 (maybe 2.5.1?)
10385         if test "$GCC" = yes; then
10386           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10387         else
10388           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10389         fi
10390         ;;
10391       esac
10392       link_all_deplibs=yes
10393       ;;
10394
10395     sunos4*)
10396       if test "x$host_vendor" = xsequent; then
10397         # Use $CC to link under sequent, because it throws in some extra .o
10398         # files that make .init and .fini sections work.
10399         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10400       else
10401         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10402       fi
10403       hardcode_libdir_flag_spec='-L$libdir'
10404       hardcode_direct=yes
10405       hardcode_minus_L=yes
10406       hardcode_shlibpath_var=no
10407       ;;
10408
10409     sysv4)
10410       case $host_vendor in
10411         sni)
10412           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413           hardcode_direct=yes # is this really true???
10414         ;;
10415         siemens)
10416           ## LD is ld it makes a PLAMLIB
10417           ## CC just makes a GrossModule.
10418           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10419           reload_cmds='$CC -r -o $output$reload_objs'
10420           hardcode_direct=no
10421         ;;
10422         motorola)
10423           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10425         ;;
10426       esac
10427       runpath_var='LD_RUN_PATH'
10428       hardcode_shlibpath_var=no
10429       ;;
10430
10431     sysv4.3*)
10432       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433       hardcode_shlibpath_var=no
10434       export_dynamic_flag_spec='-Bexport'
10435       ;;
10436
10437     sysv4*MP*)
10438       if test -d /usr/nec; then
10439         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440         hardcode_shlibpath_var=no
10441         runpath_var=LD_RUN_PATH
10442         hardcode_runpath_var=yes
10443         ld_shlibs=yes
10444       fi
10445       ;;
10446
10447     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10448       no_undefined_flag='${wl}-z,text'
10449       archive_cmds_need_lc=no
10450       hardcode_shlibpath_var=no
10451       runpath_var='LD_RUN_PATH'
10452
10453       if test "$GCC" = yes; then
10454         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456       else
10457         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459       fi
10460       ;;
10461
10462     sysv5* | sco3.2v5* | sco5v6*)
10463       # Note: We can NOT use -z defs as we might desire, because we do not
10464       # link with -lc, and that would cause any symbols used from libc to
10465       # always be unresolved, which means just about no library would
10466       # ever link correctly.  If we're not using GNU ld we use -z text
10467       # though, which does catch some bad symbols but isn't as heavy-handed
10468       # as -z defs.
10469       no_undefined_flag='${wl}-z,text'
10470       allow_undefined_flag='${wl}-z,nodefs'
10471       archive_cmds_need_lc=no
10472       hardcode_shlibpath_var=no
10473       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10474       hardcode_libdir_separator=':'
10475       link_all_deplibs=yes
10476       export_dynamic_flag_spec='${wl}-Bexport'
10477       runpath_var='LD_RUN_PATH'
10478
10479       if test "$GCC" = yes; then
10480         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482       else
10483         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485       fi
10486       ;;
10487
10488     uts4*)
10489       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490       hardcode_libdir_flag_spec='-L$libdir'
10491       hardcode_shlibpath_var=no
10492       ;;
10493
10494     *)
10495       ld_shlibs=no
10496       ;;
10497     esac
10498
10499     if test x$host_vendor = xsni; then
10500       case $host in
10501       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10502         export_dynamic_flag_spec='${wl}-Blargedynsym'
10503         ;;
10504       esac
10505     fi
10506   fi
10507
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10509 $as_echo "$ld_shlibs" >&6; }
10510 test "$ld_shlibs" = no && can_build_shared=no
10511
10512 with_gnu_ld=$with_gnu_ld
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528 #
10529 # Do we need to explicitly link libc?
10530 #
10531 case "x$archive_cmds_need_lc" in
10532 x|xyes)
10533   # Assume -lc should be added
10534   archive_cmds_need_lc=yes
10535
10536   if test "$enable_shared" = yes && test "$GCC" = yes; then
10537     case $archive_cmds in
10538     *'~'*)
10539       # FIXME: we may have to deal with multi-command sequences.
10540       ;;
10541     '$CC '*)
10542       # Test whether the compiler implicitly links with -lc since on some
10543       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10544       # to ld, don't add -lc before -lgcc.
10545       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10547 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10548   $as_echo_n "(cached) " >&6
10549 else
10550   $RM conftest*
10551         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10552
10553         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10554   (eval $ac_compile) 2>&5
10555   ac_status=$?
10556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10557   test $ac_status = 0; } 2>conftest.err; then
10558           soname=conftest
10559           lib=conftest
10560           libobjs=conftest.$ac_objext
10561           deplibs=
10562           wl=$lt_prog_compiler_wl
10563           pic_flag=$lt_prog_compiler_pic
10564           compiler_flags=-v
10565           linker_flags=-v
10566           verstring=
10567           output_objdir=.
10568           libname=conftest
10569           lt_save_allow_undefined_flag=$allow_undefined_flag
10570           allow_undefined_flag=
10571           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10572   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10573   ac_status=$?
10574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10575   test $ac_status = 0; }
10576           then
10577             lt_cv_archive_cmds_need_lc=no
10578           else
10579             lt_cv_archive_cmds_need_lc=yes
10580           fi
10581           allow_undefined_flag=$lt_save_allow_undefined_flag
10582         else
10583           cat conftest.err 1>&5
10584         fi
10585         $RM conftest*
10586
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10589 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10590       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10591       ;;
10592     esac
10593   fi
10594   ;;
10595 esac
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10750
10751 if test "$GCC" = yes; then
10752   case $host_os in
10753     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10754     *) lt_awk_arg="/^libraries:/" ;;
10755   esac
10756   case $host_os in
10757     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10758     *) lt_sed_strip_eq="s,=/,/,g" ;;
10759   esac
10760   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10761   case $lt_search_path_spec in
10762   *\;*)
10763     # if the path contains ";" then we assume it to be the separator
10764     # otherwise default to the standard path separator (i.e. ":") - it is
10765     # assumed that no part of a normal pathname contains ";" but that should
10766     # okay in the real world where ";" in dirpaths is itself problematic.
10767     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10768     ;;
10769   *)
10770     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10771     ;;
10772   esac
10773   # Ok, now we have the path, separated by spaces, we can step through it
10774   # and add multilib dir if necessary.
10775   lt_tmp_lt_search_path_spec=
10776   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10777   for lt_sys_path in $lt_search_path_spec; do
10778     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10779       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10780     else
10781       test -d "$lt_sys_path" && \
10782         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10783     fi
10784   done
10785   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10786 BEGIN {RS=" "; FS="/|\n";} {
10787   lt_foo="";
10788   lt_count=0;
10789   for (lt_i = NF; lt_i > 0; lt_i--) {
10790     if ($lt_i != "" && $lt_i != ".") {
10791       if ($lt_i == "..") {
10792         lt_count++;
10793       } else {
10794         if (lt_count == 0) {
10795           lt_foo="/" $lt_i lt_foo;
10796         } else {
10797           lt_count--;
10798         }
10799       }
10800     }
10801   }
10802   if (lt_foo != "") { lt_freq[lt_foo]++; }
10803   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10804 }'`
10805   # AWK program above erroneously prepends '/' to C:/dos/paths
10806   # for these hosts.
10807   case $host_os in
10808     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10809       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10810   esac
10811   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10812 else
10813   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10814 fi
10815 library_names_spec=
10816 libname_spec='lib$name'
10817 soname_spec=
10818 shrext_cmds=".so"
10819 postinstall_cmds=
10820 postuninstall_cmds=
10821 finish_cmds=
10822 finish_eval=
10823 shlibpath_var=
10824 shlibpath_overrides_runpath=unknown
10825 version_type=none
10826 dynamic_linker="$host_os ld.so"
10827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10828 need_lib_prefix=unknown
10829 hardcode_into_libs=no
10830
10831 # when you set need_version to no, make sure it does not cause -set_version
10832 # flags to be left without arguments
10833 need_version=unknown
10834
10835 case $host_os in
10836 aix3*)
10837   version_type=linux # correct to gnu/linux during the next big refactor
10838   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10839   shlibpath_var=LIBPATH
10840
10841   # AIX 3 has no versioning support, so we append a major version to the name.
10842   soname_spec='${libname}${release}${shared_ext}$major'
10843   ;;
10844
10845 aix[4-9]*)
10846   version_type=linux # correct to gnu/linux during the next big refactor
10847   need_lib_prefix=no
10848   need_version=no
10849   hardcode_into_libs=yes
10850   if test "$host_cpu" = ia64; then
10851     # AIX 5 supports IA64
10852     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10853     shlibpath_var=LD_LIBRARY_PATH
10854   else
10855     # With GCC up to 2.95.x, collect2 would create an import file
10856     # for dependence libraries.  The import file would start with
10857     # the line `#! .'.  This would cause the generated library to
10858     # depend on `.', always an invalid library.  This was fixed in
10859     # development snapshots of GCC prior to 3.0.
10860     case $host_os in
10861       aix4 | aix4.[01] | aix4.[01].*)
10862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10863            echo ' yes '
10864            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10865         :
10866       else
10867         can_build_shared=no
10868       fi
10869       ;;
10870     esac
10871     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10872     # soname into executable. Probably we can add versioning support to
10873     # collect2, so additional links can be useful in future.
10874     if test "$aix_use_runtimelinking" = yes; then
10875       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10876       # instead of lib<name>.a to let people know that these are not
10877       # typical AIX shared libraries.
10878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879     else
10880       # We preserve .a as extension for shared libraries through AIX4.2
10881       # and later when we are not doing run time linking.
10882       library_names_spec='${libname}${release}.a $libname.a'
10883       soname_spec='${libname}${release}${shared_ext}$major'
10884     fi
10885     shlibpath_var=LIBPATH
10886   fi
10887   ;;
10888
10889 amigaos*)
10890   case $host_cpu in
10891   powerpc)
10892     # Since July 2007 AmigaOS4 officially supports .so libraries.
10893     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895     ;;
10896   m68k)
10897     library_names_spec='$libname.ixlibrary $libname.a'
10898     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10899     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10900     ;;
10901   esac
10902   ;;
10903
10904 beos*)
10905   library_names_spec='${libname}${shared_ext}'
10906   dynamic_linker="$host_os ld.so"
10907   shlibpath_var=LIBRARY_PATH
10908   ;;
10909
10910 bsdi[45]*)
10911   version_type=linux # correct to gnu/linux during the next big refactor
10912   need_version=no
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10919   # the default ld.so.conf also contains /usr/contrib/lib and
10920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10921   # libtool to hard-code these into programs
10922   ;;
10923
10924 cygwin* | mingw* | pw32* | cegcc*)
10925   version_type=windows
10926   shrext_cmds=".dll"
10927   need_version=no
10928   need_lib_prefix=no
10929
10930   case $GCC,$cc_basename in
10931   yes,*)
10932     # gcc
10933     library_names_spec='$libname.dll.a'
10934     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10935     postinstall_cmds='base_file=`basename \${file}`~
10936       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10937       dldir=$destdir/`dirname \$dlpath`~
10938       test -d \$dldir || mkdir -p \$dldir~
10939       $install_prog $dir/$dlname \$dldir/$dlname~
10940       chmod a+x \$dldir/$dlname~
10941       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10942         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10943       fi'
10944     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10945       dlpath=$dir/\$dldll~
10946        $RM \$dlpath'
10947     shlibpath_overrides_runpath=yes
10948
10949     case $host_os in
10950     cygwin*)
10951       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10952       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10953
10954       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10955       ;;
10956     mingw* | cegcc*)
10957       # MinGW DLLs use traditional 'lib' prefix
10958       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10959       ;;
10960     pw32*)
10961       # pw32 DLLs use 'pw' prefix rather than 'lib'
10962       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10963       ;;
10964     esac
10965     dynamic_linker='Win32 ld.exe'
10966     ;;
10967
10968   *,cl*)
10969     # Native MSVC
10970     libname_spec='$name'
10971     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10972     library_names_spec='${libname}.dll.lib'
10973
10974     case $build_os in
10975     mingw*)
10976       sys_lib_search_path_spec=
10977       lt_save_ifs=$IFS
10978       IFS=';'
10979       for lt_path in $LIB
10980       do
10981         IFS=$lt_save_ifs
10982         # Let DOS variable expansion print the short 8.3 style file name.
10983         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10984         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10985       done
10986       IFS=$lt_save_ifs
10987       # Convert to MSYS style.
10988       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10989       ;;
10990     cygwin*)
10991       # Convert to unix form, then to dos form, then back to unix form
10992       # but this time dos style (no spaces!) so that the unix form looks
10993       # like /cygdrive/c/PROGRA~1:/cygdr...
10994       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10995       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10996       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10997       ;;
10998     *)
10999       sys_lib_search_path_spec="$LIB"
11000       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11001         # It is most probably a Windows format PATH.
11002         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11003       else
11004         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11005       fi
11006       # FIXME: find the short name or the path components, as spaces are
11007       # common. (e.g. "Program Files" -> "PROGRA~1")
11008       ;;
11009     esac
11010
11011     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11012     postinstall_cmds='base_file=`basename \${file}`~
11013       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11014       dldir=$destdir/`dirname \$dlpath`~
11015       test -d \$dldir || mkdir -p \$dldir~
11016       $install_prog $dir/$dlname \$dldir/$dlname'
11017     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11018       dlpath=$dir/\$dldll~
11019        $RM \$dlpath'
11020     shlibpath_overrides_runpath=yes
11021     dynamic_linker='Win32 link.exe'
11022     ;;
11023
11024   *)
11025     # Assume MSVC wrapper
11026     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11027     dynamic_linker='Win32 ld.exe'
11028     ;;
11029   esac
11030   # FIXME: first we should search . and the directory the executable is in
11031   shlibpath_var=PATH
11032   ;;
11033
11034 darwin* | rhapsody*)
11035   dynamic_linker="$host_os dyld"
11036   version_type=darwin
11037   need_lib_prefix=no
11038   need_version=no
11039   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11040   soname_spec='${libname}${release}${major}$shared_ext'
11041   shlibpath_overrides_runpath=yes
11042   shlibpath_var=DYLD_LIBRARY_PATH
11043   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11044
11045   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11046   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11047   ;;
11048
11049 dgux*)
11050   version_type=linux # correct to gnu/linux during the next big refactor
11051   need_lib_prefix=no
11052   need_version=no
11053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11054   soname_spec='${libname}${release}${shared_ext}$major'
11055   shlibpath_var=LD_LIBRARY_PATH
11056   ;;
11057
11058 freebsd* | dragonfly*)
11059   # DragonFly does not have aout.  When/if they implement a new
11060   # versioning mechanism, adjust this.
11061   if test -x /usr/bin/objformat; then
11062     objformat=`/usr/bin/objformat`
11063   else
11064     case $host_os in
11065     freebsd[23].*) objformat=aout ;;
11066     *) objformat=elf ;;
11067     esac
11068   fi
11069   version_type=freebsd-$objformat
11070   case $version_type in
11071     freebsd-elf*)
11072       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11073       need_version=no
11074       need_lib_prefix=no
11075       ;;
11076     freebsd-*)
11077       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11078       need_version=yes
11079       ;;
11080   esac
11081   shlibpath_var=LD_LIBRARY_PATH
11082   case $host_os in
11083   freebsd2.*)
11084     shlibpath_overrides_runpath=yes
11085     ;;
11086   freebsd3.[01]* | freebsdelf3.[01]*)
11087     shlibpath_overrides_runpath=yes
11088     hardcode_into_libs=yes
11089     ;;
11090   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11091   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11092     shlibpath_overrides_runpath=no
11093     hardcode_into_libs=yes
11094     ;;
11095   *) # from 4.6 on, and DragonFly
11096     shlibpath_overrides_runpath=yes
11097     hardcode_into_libs=yes
11098     ;;
11099   esac
11100   ;;
11101
11102 gnu*)
11103   version_type=linux # correct to gnu/linux during the next big refactor
11104   need_lib_prefix=no
11105   need_version=no
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=no
11110   hardcode_into_libs=yes
11111   ;;
11112
11113 haiku*)
11114   version_type=linux # correct to gnu/linux during the next big refactor
11115   need_lib_prefix=no
11116   need_version=no
11117   dynamic_linker="$host_os runtime_loader"
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11119   soname_spec='${libname}${release}${shared_ext}$major'
11120   shlibpath_var=LIBRARY_PATH
11121   shlibpath_overrides_runpath=yes
11122   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11123   hardcode_into_libs=yes
11124   ;;
11125
11126 hpux9* | hpux10* | hpux11*)
11127   # Give a soname corresponding to the major version so that dld.sl refuses to
11128   # link against other versions.
11129   version_type=sunos
11130   need_lib_prefix=no
11131   need_version=no
11132   case $host_cpu in
11133   ia64*)
11134     shrext_cmds='.so'
11135     hardcode_into_libs=yes
11136     dynamic_linker="$host_os dld.so"
11137     shlibpath_var=LD_LIBRARY_PATH
11138     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140     soname_spec='${libname}${release}${shared_ext}$major'
11141     if test "X$HPUX_IA64_MODE" = X32; then
11142       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11143     else
11144       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11145     fi
11146     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11147     ;;
11148   hppa*64*)
11149     shrext_cmds='.sl'
11150     hardcode_into_libs=yes
11151     dynamic_linker="$host_os dld.sl"
11152     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155     soname_spec='${libname}${release}${shared_ext}$major'
11156     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11157     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11158     ;;
11159   *)
11160     shrext_cmds='.sl'
11161     dynamic_linker="$host_os dld.sl"
11162     shlibpath_var=SHLIB_PATH
11163     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165     soname_spec='${libname}${release}${shared_ext}$major'
11166     ;;
11167   esac
11168   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11169   postinstall_cmds='chmod 555 $lib'
11170   # or fails outright, so override atomically:
11171   install_override_mode=555
11172   ;;
11173
11174 interix[3-9]*)
11175   version_type=linux # correct to gnu/linux during the next big refactor
11176   need_lib_prefix=no
11177   need_version=no
11178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11179   soname_spec='${libname}${release}${shared_ext}$major'
11180   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   shlibpath_overrides_runpath=no
11183   hardcode_into_libs=yes
11184   ;;
11185
11186 irix5* | irix6* | nonstopux*)
11187   case $host_os in
11188     nonstopux*) version_type=nonstopux ;;
11189     *)
11190         if test "$lt_cv_prog_gnu_ld" = yes; then
11191                 version_type=linux # correct to gnu/linux during the next big refactor
11192         else
11193                 version_type=irix
11194         fi ;;
11195   esac
11196   need_lib_prefix=no
11197   need_version=no
11198   soname_spec='${libname}${release}${shared_ext}$major'
11199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11200   case $host_os in
11201   irix5* | nonstopux*)
11202     libsuff= shlibsuff=
11203     ;;
11204   *)
11205     case $LD in # libtool.m4 will add one of these switches to LD
11206     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11207       libsuff= shlibsuff= libmagic=32-bit;;
11208     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11209       libsuff=32 shlibsuff=N32 libmagic=N32;;
11210     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11211       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11212     *) libsuff= shlibsuff= libmagic=never-match;;
11213     esac
11214     ;;
11215   esac
11216   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11217   shlibpath_overrides_runpath=no
11218   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11219   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11220   hardcode_into_libs=yes
11221   ;;
11222
11223 # No shared lib support for Linux oldld, aout, or coff.
11224 linux*oldld* | linux*aout* | linux*coff*)
11225   dynamic_linker=no
11226   ;;
11227
11228 # This must be glibc/ELF.
11229 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11230   version_type=linux # correct to gnu/linux during the next big refactor
11231   need_lib_prefix=no
11232   need_version=no
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234   soname_spec='${libname}${release}${shared_ext}$major'
11235   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   shlibpath_overrides_runpath=no
11238
11239   # Some binutils ld are patched to set DT_RUNPATH
11240   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11241   $as_echo_n "(cached) " >&6
11242 else
11243   lt_cv_shlibpath_overrides_runpath=no
11244     save_LDFLAGS=$LDFLAGS
11245     save_libdir=$libdir
11246     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11247          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h.  */
11250
11251 int
11252 main ()
11253 {
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11261   lt_cv_shlibpath_overrides_runpath=yes
11262 fi
11263 fi
11264 rm -f core conftest.err conftest.$ac_objext \
11265     conftest$ac_exeext conftest.$ac_ext
11266     LDFLAGS=$save_LDFLAGS
11267     libdir=$save_libdir
11268
11269 fi
11270
11271   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11272
11273   # This implies no fast_install, which is unacceptable.
11274   # Some rework will be needed to allow for fast_install
11275   # before this can be enabled.
11276   hardcode_into_libs=yes
11277
11278   # Append ld.so.conf contents to the search path
11279   if test -f /etc/ld.so.conf; then
11280     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11281     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11282   fi
11283
11284   # We used to test for /lib/ld.so.1 and disable shared libraries on
11285   # powerpc, because MkLinux only supported shared libraries with the
11286   # GNU dynamic linker.  Since this was broken with cross compilers,
11287   # most powerpc-linux boxes support dynamic linking these days and
11288   # people can always --disable-shared, the test was removed, and we
11289   # assume the GNU/Linux dynamic linker is in use.
11290   dynamic_linker='GNU/Linux ld.so'
11291   ;;
11292
11293 netbsdelf*-gnu)
11294   version_type=linux
11295   need_lib_prefix=no
11296   need_version=no
11297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11298   soname_spec='${libname}${release}${shared_ext}$major'
11299   shlibpath_var=LD_LIBRARY_PATH
11300   shlibpath_overrides_runpath=no
11301   hardcode_into_libs=yes
11302   dynamic_linker='NetBSD ld.elf_so'
11303   ;;
11304
11305 netbsd*)
11306   version_type=sunos
11307   need_lib_prefix=no
11308   need_version=no
11309   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11311     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11312     dynamic_linker='NetBSD (a.out) ld.so'
11313   else
11314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315     soname_spec='${libname}${release}${shared_ext}$major'
11316     dynamic_linker='NetBSD ld.elf_so'
11317   fi
11318   shlibpath_var=LD_LIBRARY_PATH
11319   shlibpath_overrides_runpath=yes
11320   hardcode_into_libs=yes
11321   ;;
11322
11323 newsos6)
11324   version_type=linux # correct to gnu/linux during the next big refactor
11325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326   shlibpath_var=LD_LIBRARY_PATH
11327   shlibpath_overrides_runpath=yes
11328   ;;
11329
11330 *nto* | *qnx*)
11331   version_type=qnx
11332   need_lib_prefix=no
11333   need_version=no
11334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335   soname_spec='${libname}${release}${shared_ext}$major'
11336   shlibpath_var=LD_LIBRARY_PATH
11337   shlibpath_overrides_runpath=no
11338   hardcode_into_libs=yes
11339   dynamic_linker='ldqnx.so'
11340   ;;
11341
11342 openbsd*)
11343   version_type=sunos
11344   sys_lib_dlsearch_path_spec="/usr/lib"
11345   need_lib_prefix=no
11346   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11347   case $host_os in
11348     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11349     *)                          need_version=no  ;;
11350   esac
11351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353   shlibpath_var=LD_LIBRARY_PATH
11354   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11355     case $host_os in
11356       openbsd2.[89] | openbsd2.[89].*)
11357         shlibpath_overrides_runpath=no
11358         ;;
11359       *)
11360         shlibpath_overrides_runpath=yes
11361         ;;
11362       esac
11363   else
11364     shlibpath_overrides_runpath=yes
11365   fi
11366   ;;
11367
11368 os2*)
11369   libname_spec='$name'
11370   shrext_cmds=".dll"
11371   need_lib_prefix=no
11372   library_names_spec='$libname${shared_ext} $libname.a'
11373   dynamic_linker='OS/2 ld.exe'
11374   shlibpath_var=LIBPATH
11375   ;;
11376
11377 osf3* | osf4* | osf5*)
11378   version_type=osf
11379   need_lib_prefix=no
11380   need_version=no
11381   soname_spec='${libname}${release}${shared_ext}$major'
11382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383   shlibpath_var=LD_LIBRARY_PATH
11384   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11385   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11386   ;;
11387
11388 rdos*)
11389   dynamic_linker=no
11390   ;;
11391
11392 solaris*)
11393   version_type=linux # correct to gnu/linux during the next big refactor
11394   need_lib_prefix=no
11395   need_version=no
11396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397   soname_spec='${libname}${release}${shared_ext}$major'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   shlibpath_overrides_runpath=yes
11400   hardcode_into_libs=yes
11401   # ldd complains unless libraries are executable
11402   postinstall_cmds='chmod +x $lib'
11403   ;;
11404
11405 sunos4*)
11406   version_type=sunos
11407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11408   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11409   shlibpath_var=LD_LIBRARY_PATH
11410   shlibpath_overrides_runpath=yes
11411   if test "$with_gnu_ld" = yes; then
11412     need_lib_prefix=no
11413   fi
11414   need_version=yes
11415   ;;
11416
11417 sysv4 | sysv4.3*)
11418   version_type=linux # correct to gnu/linux during the next big refactor
11419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420   soname_spec='${libname}${release}${shared_ext}$major'
11421   shlibpath_var=LD_LIBRARY_PATH
11422   case $host_vendor in
11423     sni)
11424       shlibpath_overrides_runpath=no
11425       need_lib_prefix=no
11426       runpath_var=LD_RUN_PATH
11427       ;;
11428     siemens)
11429       need_lib_prefix=no
11430       ;;
11431     motorola)
11432       need_lib_prefix=no
11433       need_version=no
11434       shlibpath_overrides_runpath=no
11435       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11436       ;;
11437   esac
11438   ;;
11439
11440 sysv4*MP*)
11441   if test -d /usr/nec ;then
11442     version_type=linux # correct to gnu/linux during the next big refactor
11443     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11444     soname_spec='$libname${shared_ext}.$major'
11445     shlibpath_var=LD_LIBRARY_PATH
11446   fi
11447   ;;
11448
11449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11450   version_type=freebsd-elf
11451   need_lib_prefix=no
11452   need_version=no
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11454   soname_spec='${libname}${release}${shared_ext}$major'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   shlibpath_overrides_runpath=yes
11457   hardcode_into_libs=yes
11458   if test "$with_gnu_ld" = yes; then
11459     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11460   else
11461     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11462     case $host_os in
11463       sco3.2v5*)
11464         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11465         ;;
11466     esac
11467   fi
11468   sys_lib_dlsearch_path_spec='/usr/lib'
11469   ;;
11470
11471 tpf*)
11472   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11473   version_type=linux # correct to gnu/linux during the next big refactor
11474   need_lib_prefix=no
11475   need_version=no
11476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   shlibpath_overrides_runpath=no
11479   hardcode_into_libs=yes
11480   ;;
11481
11482 uts4*)
11483   version_type=linux # correct to gnu/linux during the next big refactor
11484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485   soname_spec='${libname}${release}${shared_ext}$major'
11486   shlibpath_var=LD_LIBRARY_PATH
11487   ;;
11488
11489 *)
11490   dynamic_linker=no
11491   ;;
11492 esac
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11494 $as_echo "$dynamic_linker" >&6; }
11495 test "$dynamic_linker" = no && can_build_shared=no
11496
11497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11498 if test "$GCC" = yes; then
11499   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11500 fi
11501
11502 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11503   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11504 fi
11505 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11506   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11507 fi
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11601 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11602 hardcode_action=
11603 if test -n "$hardcode_libdir_flag_spec" ||
11604    test -n "$runpath_var" ||
11605    test "X$hardcode_automatic" = "Xyes" ; then
11606
11607   # We can hardcode non-existent directories.
11608   if test "$hardcode_direct" != no &&
11609      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11610      # have to relink, otherwise we might link with an installed library
11611      # when we should be linking with a yet-to-be-installed one
11612      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11613      test "$hardcode_minus_L" != no; then
11614     # Linking always hardcodes the temporary library directory.
11615     hardcode_action=relink
11616   else
11617     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11618     hardcode_action=immediate
11619   fi
11620 else
11621   # We cannot hardcode anything, or else we can only hardcode existing
11622   # directories.
11623   hardcode_action=unsupported
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11626 $as_echo "$hardcode_action" >&6; }
11627
11628 if test "$hardcode_action" = relink ||
11629    test "$inherit_rpath" = yes; then
11630   # Fast installation is not supported
11631   enable_fast_install=no
11632 elif test "$shlibpath_overrides_runpath" = yes ||
11633      test "$enable_shared" = no; then
11634   # Fast installation is not necessary
11635   enable_fast_install=needless
11636 fi
11637
11638
11639
11640
11641
11642
11643   if test "x$enable_dlopen" != xyes; then
11644   enable_dlopen=unknown
11645   enable_dlopen_self=unknown
11646   enable_dlopen_self_static=unknown
11647 else
11648   lt_cv_dlopen=no
11649   lt_cv_dlopen_libs=
11650
11651   case $host_os in
11652   beos*)
11653     lt_cv_dlopen="load_add_on"
11654     lt_cv_dlopen_libs=
11655     lt_cv_dlopen_self=yes
11656     ;;
11657
11658   mingw* | pw32* | cegcc*)
11659     lt_cv_dlopen="LoadLibrary"
11660     lt_cv_dlopen_libs=
11661     ;;
11662
11663   cygwin*)
11664     lt_cv_dlopen="dlopen"
11665     lt_cv_dlopen_libs=
11666     ;;
11667
11668   darwin*)
11669   # if libdl is installed we need to link against it
11670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11671 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11672 if ${ac_cv_lib_dl_dlopen+:} false; then :
11673   $as_echo_n "(cached) " >&6
11674 else
11675   ac_check_lib_save_LIBS=$LIBS
11676 LIBS="-ldl  $LIBS"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h.  */
11679
11680 /* Override any GCC internal prototype to avoid an error.
11681    Use char because int might match the return type of a GCC
11682    builtin and then its argument prototype would still apply.  */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 char dlopen ();
11687 int
11688 main ()
11689 {
11690 return dlopen ();
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 if ac_fn_c_try_link "$LINENO"; then :
11696   ac_cv_lib_dl_dlopen=yes
11697 else
11698   ac_cv_lib_dl_dlopen=no
11699 fi
11700 rm -f core conftest.err conftest.$ac_objext \
11701     conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11706 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11707   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11708 else
11709
11710     lt_cv_dlopen="dyld"
11711     lt_cv_dlopen_libs=
11712     lt_cv_dlopen_self=yes
11713
11714 fi
11715
11716     ;;
11717
11718   *)
11719     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11720 if test "x$ac_cv_func_shl_load" = xyes; then :
11721   lt_cv_dlopen="shl_load"
11722 else
11723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11724 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11725 if ${ac_cv_lib_dld_shl_load+:} false; then :
11726   $as_echo_n "(cached) " >&6
11727 else
11728   ac_check_lib_save_LIBS=$LIBS
11729 LIBS="-ldld  $LIBS"
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h.  */
11732
11733 /* Override any GCC internal prototype to avoid an error.
11734    Use char because int might match the return type of a GCC
11735    builtin and then its argument prototype would still apply.  */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char shl_load ();
11740 int
11741 main ()
11742 {
11743 return shl_load ();
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 if ac_fn_c_try_link "$LINENO"; then :
11749   ac_cv_lib_dld_shl_load=yes
11750 else
11751   ac_cv_lib_dld_shl_load=no
11752 fi
11753 rm -f core conftest.err conftest.$ac_objext \
11754     conftest$ac_exeext conftest.$ac_ext
11755 LIBS=$ac_check_lib_save_LIBS
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11758 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11759 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11760   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11761 else
11762   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11763 if test "x$ac_cv_func_dlopen" = xyes; then :
11764   lt_cv_dlopen="dlopen"
11765 else
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11767 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11768 if ${ac_cv_lib_dl_dlopen+:} false; then :
11769   $as_echo_n "(cached) " >&6
11770 else
11771   ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-ldl  $LIBS"
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h.  */
11775
11776 /* Override any GCC internal prototype to avoid an error.
11777    Use char because int might match the return type of a GCC
11778    builtin and then its argument prototype would still apply.  */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 char dlopen ();
11783 int
11784 main ()
11785 {
11786 return dlopen ();
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"; then :
11792   ac_cv_lib_dl_dlopen=yes
11793 else
11794   ac_cv_lib_dl_dlopen=no
11795 fi
11796 rm -f core conftest.err conftest.$ac_objext \
11797     conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11801 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11802 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11803   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11804 else
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11806 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11807 if ${ac_cv_lib_svld_dlopen+:} false; then :
11808   $as_echo_n "(cached) " >&6
11809 else
11810   ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-lsvld  $LIBS"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h.  */
11814
11815 /* Override any GCC internal prototype to avoid an error.
11816    Use char because int might match the return type of a GCC
11817    builtin and then its argument prototype would still apply.  */
11818 #ifdef __cplusplus
11819 extern "C"
11820 #endif
11821 char dlopen ();
11822 int
11823 main ()
11824 {
11825 return dlopen ();
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_link "$LINENO"; then :
11831   ac_cv_lib_svld_dlopen=yes
11832 else
11833   ac_cv_lib_svld_dlopen=no
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext \
11836     conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11840 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11841 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11842   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11843 else
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11845 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11846 if ${ac_cv_lib_dld_dld_link+:} false; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849   ac_check_lib_save_LIBS=$LIBS
11850 LIBS="-ldld  $LIBS"
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h.  */
11853
11854 /* Override any GCC internal prototype to avoid an error.
11855    Use char because int might match the return type of a GCC
11856    builtin and then its argument prototype would still apply.  */
11857 #ifdef __cplusplus
11858 extern "C"
11859 #endif
11860 char dld_link ();
11861 int
11862 main ()
11863 {
11864 return dld_link ();
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 if ac_fn_c_try_link "$LINENO"; then :
11870   ac_cv_lib_dld_dld_link=yes
11871 else
11872   ac_cv_lib_dld_dld_link=no
11873 fi
11874 rm -f core conftest.err conftest.$ac_objext \
11875     conftest$ac_exeext conftest.$ac_ext
11876 LIBS=$ac_check_lib_save_LIBS
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11879 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11880 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11881   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11882 fi
11883
11884
11885 fi
11886
11887
11888 fi
11889
11890
11891 fi
11892
11893
11894 fi
11895
11896
11897 fi
11898
11899     ;;
11900   esac
11901
11902   if test "x$lt_cv_dlopen" != xno; then
11903     enable_dlopen=yes
11904   else
11905     enable_dlopen=no
11906   fi
11907
11908   case $lt_cv_dlopen in
11909   dlopen)
11910     save_CPPFLAGS="$CPPFLAGS"
11911     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11912
11913     save_LDFLAGS="$LDFLAGS"
11914     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11915
11916     save_LIBS="$LIBS"
11917     LIBS="$lt_cv_dlopen_libs $LIBS"
11918
11919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11920 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11921 if ${lt_cv_dlopen_self+:} false; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924           if test "$cross_compiling" = yes; then :
11925   lt_cv_dlopen_self=cross
11926 else
11927   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11928   lt_status=$lt_dlunknown
11929   cat > conftest.$ac_ext <<_LT_EOF
11930 #line $LINENO "configure"
11931 #include "confdefs.h"
11932
11933 #if HAVE_DLFCN_H
11934 #include <dlfcn.h>
11935 #endif
11936
11937 #include <stdio.h>
11938
11939 #ifdef RTLD_GLOBAL
11940 #  define LT_DLGLOBAL           RTLD_GLOBAL
11941 #else
11942 #  ifdef DL_GLOBAL
11943 #    define LT_DLGLOBAL         DL_GLOBAL
11944 #  else
11945 #    define LT_DLGLOBAL         0
11946 #  endif
11947 #endif
11948
11949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11950    find out it does not work in some platform. */
11951 #ifndef LT_DLLAZY_OR_NOW
11952 #  ifdef RTLD_LAZY
11953 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11954 #  else
11955 #    ifdef DL_LAZY
11956 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11957 #    else
11958 #      ifdef RTLD_NOW
11959 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11960 #      else
11961 #        ifdef DL_NOW
11962 #          define LT_DLLAZY_OR_NOW      DL_NOW
11963 #        else
11964 #          define LT_DLLAZY_OR_NOW      0
11965 #        endif
11966 #      endif
11967 #    endif
11968 #  endif
11969 #endif
11970
11971 /* When -fvisbility=hidden is used, assume the code has been annotated
11972    correspondingly for the symbols needed.  */
11973 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11974 int fnord () __attribute__((visibility("default")));
11975 #endif
11976
11977 int fnord () { return 42; }
11978 int main ()
11979 {
11980   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11981   int status = $lt_dlunknown;
11982
11983   if (self)
11984     {
11985       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11986       else
11987         {
11988           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11989           else puts (dlerror ());
11990         }
11991       /* dlclose (self); */
11992     }
11993   else
11994     puts (dlerror ());
11995
11996   return status;
11997 }
11998 _LT_EOF
11999   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12000   (eval $ac_link) 2>&5
12001   ac_status=$?
12002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12004     (./conftest; exit; ) >&5 2>/dev/null
12005     lt_status=$?
12006     case x$lt_status in
12007       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12008       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12009       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12010     esac
12011   else :
12012     # compilation failed
12013     lt_cv_dlopen_self=no
12014   fi
12015 fi
12016 rm -fr conftest*
12017
12018
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12021 $as_echo "$lt_cv_dlopen_self" >&6; }
12022
12023     if test "x$lt_cv_dlopen_self" = xyes; then
12024       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12025       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12026 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12027 if ${lt_cv_dlopen_self_static+:} false; then :
12028   $as_echo_n "(cached) " >&6
12029 else
12030           if test "$cross_compiling" = yes; then :
12031   lt_cv_dlopen_self_static=cross
12032 else
12033   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12034   lt_status=$lt_dlunknown
12035   cat > conftest.$ac_ext <<_LT_EOF
12036 #line $LINENO "configure"
12037 #include "confdefs.h"
12038
12039 #if HAVE_DLFCN_H
12040 #include <dlfcn.h>
12041 #endif
12042
12043 #include <stdio.h>
12044
12045 #ifdef RTLD_GLOBAL
12046 #  define LT_DLGLOBAL           RTLD_GLOBAL
12047 #else
12048 #  ifdef DL_GLOBAL
12049 #    define LT_DLGLOBAL         DL_GLOBAL
12050 #  else
12051 #    define LT_DLGLOBAL         0
12052 #  endif
12053 #endif
12054
12055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12056    find out it does not work in some platform. */
12057 #ifndef LT_DLLAZY_OR_NOW
12058 #  ifdef RTLD_LAZY
12059 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12060 #  else
12061 #    ifdef DL_LAZY
12062 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12063 #    else
12064 #      ifdef RTLD_NOW
12065 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12066 #      else
12067 #        ifdef DL_NOW
12068 #          define LT_DLLAZY_OR_NOW      DL_NOW
12069 #        else
12070 #          define LT_DLLAZY_OR_NOW      0
12071 #        endif
12072 #      endif
12073 #    endif
12074 #  endif
12075 #endif
12076
12077 /* When -fvisbility=hidden is used, assume the code has been annotated
12078    correspondingly for the symbols needed.  */
12079 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12080 int fnord () __attribute__((visibility("default")));
12081 #endif
12082
12083 int fnord () { return 42; }
12084 int main ()
12085 {
12086   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12087   int status = $lt_dlunknown;
12088
12089   if (self)
12090     {
12091       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12092       else
12093         {
12094           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12095           else puts (dlerror ());
12096         }
12097       /* dlclose (self); */
12098     }
12099   else
12100     puts (dlerror ());
12101
12102   return status;
12103 }
12104 _LT_EOF
12105   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12106   (eval $ac_link) 2>&5
12107   ac_status=$?
12108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12109   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12110     (./conftest; exit; ) >&5 2>/dev/null
12111     lt_status=$?
12112     case x$lt_status in
12113       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12114       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12115       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12116     esac
12117   else :
12118     # compilation failed
12119     lt_cv_dlopen_self_static=no
12120   fi
12121 fi
12122 rm -fr conftest*
12123
12124
12125 fi
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12127 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12128     fi
12129
12130     CPPFLAGS="$save_CPPFLAGS"
12131     LDFLAGS="$save_LDFLAGS"
12132     LIBS="$save_LIBS"
12133     ;;
12134   esac
12135
12136   case $lt_cv_dlopen_self in
12137   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12138   *) enable_dlopen_self=unknown ;;
12139   esac
12140
12141   case $lt_cv_dlopen_self_static in
12142   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12143   *) enable_dlopen_self_static=unknown ;;
12144   esac
12145 fi
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163 striplib=
12164 old_striplib=
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12166 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12167 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12168   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12169   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171 $as_echo "yes" >&6; }
12172 else
12173 # FIXME - insert some real tests, host_os isn't really good enough
12174   case $host_os in
12175   darwin*)
12176     if test -n "$STRIP" ; then
12177       striplib="$STRIP -x"
12178       old_striplib="$STRIP -S"
12179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; }
12181     else
12182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184     fi
12185     ;;
12186   *)
12187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12189     ;;
12190   esac
12191 fi
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204   # Report which library types will actually be built
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12206 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12208 $as_echo "$can_build_shared" >&6; }
12209
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12211 $as_echo_n "checking whether to build shared libraries... " >&6; }
12212   test "$can_build_shared" = "no" && enable_shared=no
12213
12214   # On AIX, shared libraries and static libraries use the same namespace, and
12215   # are all built from PIC.
12216   case $host_os in
12217   aix3*)
12218     test "$enable_shared" = yes && enable_static=no
12219     if test -n "$RANLIB"; then
12220       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12221       postinstall_cmds='$RANLIB $lib'
12222     fi
12223     ;;
12224
12225   aix[4-9]*)
12226     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12227       test "$enable_shared" = yes && enable_static=no
12228     fi
12229     ;;
12230   esac
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12232 $as_echo "$enable_shared" >&6; }
12233
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12235 $as_echo_n "checking whether to build static libraries... " >&6; }
12236   # Make sure either enable_shared or enable_static is yes.
12237   test "$enable_shared" = yes || enable_static=yes
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12239 $as_echo "$enable_static" >&6; }
12240
12241
12242
12243
12244 fi
12245 ac_ext=c
12246 ac_cpp='$CPP $CPPFLAGS'
12247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12250
12251 CC="$lt_save_CC"
12252
12253       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12254     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12255     (test "X$CXX" != "Xg++"))) ; then
12256   ac_ext=cpp
12257 ac_cpp='$CXXCPP $CPPFLAGS'
12258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12262 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12263 if test -z "$CXXCPP"; then
12264   if ${ac_cv_prog_CXXCPP+:} false; then :
12265   $as_echo_n "(cached) " >&6
12266 else
12267       # Double quotes because CXXCPP needs to be expanded
12268     for CXXCPP in "$CXX -E" "/lib/cpp"
12269     do
12270       ac_preproc_ok=false
12271 for ac_cxx_preproc_warn_flag in '' yes
12272 do
12273   # Use a header file that comes with gcc, so configuring glibc
12274   # with a fresh cross-compiler works.
12275   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12276   # <limits.h> exists even on freestanding compilers.
12277   # On the NeXT, cc -E runs the code through the compiler's parser,
12278   # not just through cpp. "Syntax error" is here to catch this case.
12279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h.  */
12281 #ifdef __STDC__
12282 # include <limits.h>
12283 #else
12284 # include <assert.h>
12285 #endif
12286                      Syntax error
12287 _ACEOF
12288 if ac_fn_cxx_try_cpp "$LINENO"; then :
12289
12290 else
12291   # Broken: fails on valid input.
12292 continue
12293 fi
12294 rm -f conftest.err conftest.i conftest.$ac_ext
12295
12296   # OK, works on sane cases.  Now check whether nonexistent headers
12297   # can be detected and how.
12298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h.  */
12300 #include <ac_nonexistent.h>
12301 _ACEOF
12302 if ac_fn_cxx_try_cpp "$LINENO"; then :
12303   # Broken: success on invalid input.
12304 continue
12305 else
12306   # Passes both tests.
12307 ac_preproc_ok=:
12308 break
12309 fi
12310 rm -f conftest.err conftest.i conftest.$ac_ext
12311
12312 done
12313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12314 rm -f conftest.i conftest.err conftest.$ac_ext
12315 if $ac_preproc_ok; then :
12316   break
12317 fi
12318
12319     done
12320     ac_cv_prog_CXXCPP=$CXXCPP
12321
12322 fi
12323   CXXCPP=$ac_cv_prog_CXXCPP
12324 else
12325   ac_cv_prog_CXXCPP=$CXXCPP
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12328 $as_echo "$CXXCPP" >&6; }
12329 ac_preproc_ok=false
12330 for ac_cxx_preproc_warn_flag in '' yes
12331 do
12332   # Use a header file that comes with gcc, so configuring glibc
12333   # with a fresh cross-compiler works.
12334   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12335   # <limits.h> exists even on freestanding compilers.
12336   # On the NeXT, cc -E runs the code through the compiler's parser,
12337   # not just through cpp. "Syntax error" is here to catch this case.
12338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340 #ifdef __STDC__
12341 # include <limits.h>
12342 #else
12343 # include <assert.h>
12344 #endif
12345                      Syntax error
12346 _ACEOF
12347 if ac_fn_cxx_try_cpp "$LINENO"; then :
12348
12349 else
12350   # Broken: fails on valid input.
12351 continue
12352 fi
12353 rm -f conftest.err conftest.i conftest.$ac_ext
12354
12355   # OK, works on sane cases.  Now check whether nonexistent headers
12356   # can be detected and how.
12357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h.  */
12359 #include <ac_nonexistent.h>
12360 _ACEOF
12361 if ac_fn_cxx_try_cpp "$LINENO"; then :
12362   # Broken: success on invalid input.
12363 continue
12364 else
12365   # Passes both tests.
12366 ac_preproc_ok=:
12367 break
12368 fi
12369 rm -f conftest.err conftest.i conftest.$ac_ext
12370
12371 done
12372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12373 rm -f conftest.i conftest.err conftest.$ac_ext
12374 if $ac_preproc_ok; then :
12375
12376 else
12377   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12379 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12380 See \`config.log' for more details" "$LINENO" 5; }
12381 fi
12382
12383 ac_ext=c
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388
12389 else
12390   _lt_caught_CXX_error=yes
12391 fi
12392
12393 ac_ext=cpp
12394 ac_cpp='$CXXCPP $CPPFLAGS'
12395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12398
12399 archive_cmds_need_lc_CXX=no
12400 allow_undefined_flag_CXX=
12401 always_export_symbols_CXX=no
12402 archive_expsym_cmds_CXX=
12403 compiler_needs_object_CXX=no
12404 export_dynamic_flag_spec_CXX=
12405 hardcode_direct_CXX=no
12406 hardcode_direct_absolute_CXX=no
12407 hardcode_libdir_flag_spec_CXX=
12408 hardcode_libdir_separator_CXX=
12409 hardcode_minus_L_CXX=no
12410 hardcode_shlibpath_var_CXX=unsupported
12411 hardcode_automatic_CXX=no
12412 inherit_rpath_CXX=no
12413 module_cmds_CXX=
12414 module_expsym_cmds_CXX=
12415 link_all_deplibs_CXX=unknown
12416 old_archive_cmds_CXX=$old_archive_cmds
12417 reload_flag_CXX=$reload_flag
12418 reload_cmds_CXX=$reload_cmds
12419 no_undefined_flag_CXX=
12420 whole_archive_flag_spec_CXX=
12421 enable_shared_with_static_runtimes_CXX=no
12422
12423 # Source file extension for C++ test sources.
12424 ac_ext=cpp
12425
12426 # Object file extension for compiled C++ test sources.
12427 objext=o
12428 objext_CXX=$objext
12429
12430 # No sense in running all these tests if we already determined that
12431 # the CXX compiler isn't working.  Some variables (like enable_shared)
12432 # are currently assumed to apply to all compilers on this platform,
12433 # and will be corrupted by setting them based on a non-working compiler.
12434 if test "$_lt_caught_CXX_error" != yes; then
12435   # Code to be used in simple compile tests
12436   lt_simple_compile_test_code="int some_variable = 0;"
12437
12438   # Code to be used in simple link tests
12439   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12440
12441   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12442
12443
12444
12445
12446
12447
12448 # If no C compiler was specified, use CC.
12449 LTCC=${LTCC-"$CC"}
12450
12451 # If no C compiler flags were specified, use CFLAGS.
12452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12453
12454 # Allow CC to be a program name with arguments.
12455 compiler=$CC
12456
12457
12458   # save warnings/boilerplate of simple test code
12459   ac_outfile=conftest.$ac_objext
12460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12462 _lt_compiler_boilerplate=`cat conftest.err`
12463 $RM conftest*
12464
12465   ac_outfile=conftest.$ac_objext
12466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12468 _lt_linker_boilerplate=`cat conftest.err`
12469 $RM -r conftest*
12470
12471
12472   # Allow CC to be a program name with arguments.
12473   lt_save_CC=$CC
12474   lt_save_CFLAGS=$CFLAGS
12475   lt_save_LD=$LD
12476   lt_save_GCC=$GCC
12477   GCC=$GXX
12478   lt_save_with_gnu_ld=$with_gnu_ld
12479   lt_save_path_LD=$lt_cv_path_LD
12480   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12481     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12482   else
12483     $as_unset lt_cv_prog_gnu_ld
12484   fi
12485   if test -n "${lt_cv_path_LDCXX+set}"; then
12486     lt_cv_path_LD=$lt_cv_path_LDCXX
12487   else
12488     $as_unset lt_cv_path_LD
12489   fi
12490   test -z "${LDCXX+set}" || LD=$LDCXX
12491   CC=${CXX-"c++"}
12492   CFLAGS=$CXXFLAGS
12493   compiler=$CC
12494   compiler_CXX=$CC
12495   for cc_temp in $compiler""; do
12496   case $cc_temp in
12497     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12498     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12499     \-*) ;;
12500     *) break;;
12501   esac
12502 done
12503 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12504
12505
12506   if test -n "$compiler"; then
12507     # We don't want -fno-exception when compiling C++ code, so set the
12508     # no_builtin_flag separately
12509     if test "$GXX" = yes; then
12510       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12511     else
12512       lt_prog_compiler_no_builtin_flag_CXX=
12513     fi
12514
12515     if test "$GXX" = yes; then
12516       # Set up default GNU C++ configuration
12517
12518
12519
12520 # Check whether --with-gnu-ld was given.
12521 if test "${with_gnu_ld+set}" = set; then :
12522   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12523 else
12524   with_gnu_ld=no
12525 fi
12526
12527 ac_prog=ld
12528 if test "$GCC" = yes; then
12529   # Check if gcc -print-prog-name=ld gives a path.
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12531 $as_echo_n "checking for ld used by $CC... " >&6; }
12532   case $host in
12533   *-*-mingw*)
12534     # gcc leaves a trailing carriage return which upsets mingw
12535     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12536   *)
12537     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12538   esac
12539   case $ac_prog in
12540     # Accept absolute paths.
12541     [\\/]* | ?:[\\/]*)
12542       re_direlt='/[^/][^/]*/\.\./'
12543       # Canonicalize the pathname of ld
12544       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12545       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12546         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12547       done
12548       test -z "$LD" && LD="$ac_prog"
12549       ;;
12550   "")
12551     # If it fails, then pretend we aren't using GCC.
12552     ac_prog=ld
12553     ;;
12554   *)
12555     # If it is relative, then search for the first ld in PATH.
12556     with_gnu_ld=unknown
12557     ;;
12558   esac
12559 elif test "$with_gnu_ld" = yes; then
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12561 $as_echo_n "checking for GNU ld... " >&6; }
12562 else
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12564 $as_echo_n "checking for non-GNU ld... " >&6; }
12565 fi
12566 if ${lt_cv_path_LD+:} false; then :
12567   $as_echo_n "(cached) " >&6
12568 else
12569   if test -z "$LD"; then
12570   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12571   for ac_dir in $PATH; do
12572     IFS="$lt_save_ifs"
12573     test -z "$ac_dir" && ac_dir=.
12574     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12575       lt_cv_path_LD="$ac_dir/$ac_prog"
12576       # Check to see if the program is GNU ld.  I'd rather use --version,
12577       # but apparently some variants of GNU ld only accept -v.
12578       # Break only if it was the GNU/non-GNU ld that we prefer.
12579       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12580       *GNU* | *'with BFD'*)
12581         test "$with_gnu_ld" != no && break
12582         ;;
12583       *)
12584         test "$with_gnu_ld" != yes && break
12585         ;;
12586       esac
12587     fi
12588   done
12589   IFS="$lt_save_ifs"
12590 else
12591   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12592 fi
12593 fi
12594
12595 LD="$lt_cv_path_LD"
12596 if test -n "$LD"; then
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12598 $as_echo "$LD" >&6; }
12599 else
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12602 fi
12603 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12605 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12606 if ${lt_cv_prog_gnu_ld+:} false; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12610 case `$LD -v 2>&1 </dev/null` in
12611 *GNU* | *'with BFD'*)
12612   lt_cv_prog_gnu_ld=yes
12613   ;;
12614 *)
12615   lt_cv_prog_gnu_ld=no
12616   ;;
12617 esac
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12620 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12621 with_gnu_ld=$lt_cv_prog_gnu_ld
12622
12623
12624
12625
12626
12627
12628
12629       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12630       # archiving commands below assume that GNU ld is being used.
12631       if test "$with_gnu_ld" = yes; then
12632         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12633         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12634
12635         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12636         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12637
12638         # If archive_cmds runs LD, not CC, wlarc should be empty
12639         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12640         #     investigate it a little bit more. (MM)
12641         wlarc='${wl}'
12642
12643         # ancient GNU ld didn't support --whole-archive et. al.
12644         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12645           $GREP 'no-whole-archive' > /dev/null; then
12646           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12647         else
12648           whole_archive_flag_spec_CXX=
12649         fi
12650       else
12651         with_gnu_ld=no
12652         wlarc=
12653
12654         # A generic and very simple default shared library creation
12655         # command for GNU C++ for the case where it uses the native
12656         # linker, instead of GNU ld.  If possible, this setting should
12657         # overridden to take advantage of the native linker features on
12658         # the platform it is being used on.
12659         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12660       fi
12661
12662       # Commands to make compiler produce verbose output that lists
12663       # what "hidden" libraries, object files and flags are used when
12664       # linking a shared library.
12665       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12666
12667     else
12668       GXX=no
12669       with_gnu_ld=no
12670       wlarc=
12671     fi
12672
12673     # PORTME: fill in a description of your system's C++ link characteristics
12674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12675 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12676     ld_shlibs_CXX=yes
12677     case $host_os in
12678       aix3*)
12679         # FIXME: insert proper C++ library support
12680         ld_shlibs_CXX=no
12681         ;;
12682       aix[4-9]*)
12683         if test "$host_cpu" = ia64; then
12684           # On IA64, the linker does run time linking by default, so we don't
12685           # have to do anything special.
12686           aix_use_runtimelinking=no
12687           exp_sym_flag='-Bexport'
12688           no_entry_flag=""
12689         else
12690           aix_use_runtimelinking=no
12691
12692           # Test if we are trying to use run time linking or normal
12693           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12694           # need to do runtime linking.
12695           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12696             for ld_flag in $LDFLAGS; do
12697               case $ld_flag in
12698               *-brtl*)
12699                 aix_use_runtimelinking=yes
12700                 break
12701                 ;;
12702               esac
12703             done
12704             ;;
12705           esac
12706
12707           exp_sym_flag='-bexport'
12708           no_entry_flag='-bnoentry'
12709         fi
12710
12711         # When large executables or shared objects are built, AIX ld can
12712         # have problems creating the table of contents.  If linking a library
12713         # or program results in "error TOC overflow" add -mminimal-toc to
12714         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12715         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12716
12717         archive_cmds_CXX=''
12718         hardcode_direct_CXX=yes
12719         hardcode_direct_absolute_CXX=yes
12720         hardcode_libdir_separator_CXX=':'
12721         link_all_deplibs_CXX=yes
12722         file_list_spec_CXX='${wl}-f,'
12723
12724         if test "$GXX" = yes; then
12725           case $host_os in aix4.[012]|aix4.[012].*)
12726           # We only want to do this on AIX 4.2 and lower, the check
12727           # below for broken collect2 doesn't work under 4.3+
12728           collect2name=`${CC} -print-prog-name=collect2`
12729           if test -f "$collect2name" &&
12730              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12731           then
12732             # We have reworked collect2
12733             :
12734           else
12735             # We have old collect2
12736             hardcode_direct_CXX=unsupported
12737             # It fails to find uninstalled libraries when the uninstalled
12738             # path is not listed in the libpath.  Setting hardcode_minus_L
12739             # to unsupported forces relinking
12740             hardcode_minus_L_CXX=yes
12741             hardcode_libdir_flag_spec_CXX='-L$libdir'
12742             hardcode_libdir_separator_CXX=
12743           fi
12744           esac
12745           shared_flag='-shared'
12746           if test "$aix_use_runtimelinking" = yes; then
12747             shared_flag="$shared_flag "'${wl}-G'
12748           fi
12749         else
12750           # not using gcc
12751           if test "$host_cpu" = ia64; then
12752           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12753           # chokes on -Wl,-G. The following line is correct:
12754           shared_flag='-G'
12755           else
12756             if test "$aix_use_runtimelinking" = yes; then
12757               shared_flag='${wl}-G'
12758             else
12759               shared_flag='${wl}-bM:SRE'
12760             fi
12761           fi
12762         fi
12763
12764         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12765         # It seems that -bexpall does not export symbols beginning with
12766         # underscore (_), so it is better to generate a list of symbols to
12767         # export.
12768         always_export_symbols_CXX=yes
12769         if test "$aix_use_runtimelinking" = yes; then
12770           # Warning - without using the other runtime loading flags (-brtl),
12771           # -berok will link without error, but may produce a broken library.
12772           allow_undefined_flag_CXX='-berok'
12773           # Determine the default libpath from the value encoded in an empty
12774           # executable.
12775           if test "${lt_cv_aix_libpath+set}" = set; then
12776   aix_libpath=$lt_cv_aix_libpath
12777 else
12778   if ${lt_cv_aix_libpath__CXX+:} false; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h.  */
12783
12784 int
12785 main ()
12786 {
12787
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 if ac_fn_cxx_try_link "$LINENO"; then :
12793
12794   lt_aix_libpath_sed='
12795       /Import File Strings/,/^$/ {
12796           /^0/ {
12797               s/^0  *\([^ ]*\) *$/\1/
12798               p
12799           }
12800       }'
12801   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12802   # Check for a 64-bit object if we didn't find anything.
12803   if test -z "$lt_cv_aix_libpath__CXX"; then
12804     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12805   fi
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext \
12808     conftest$ac_exeext conftest.$ac_ext
12809   if test -z "$lt_cv_aix_libpath__CXX"; then
12810     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12811   fi
12812
12813 fi
12814
12815   aix_libpath=$lt_cv_aix_libpath__CXX
12816 fi
12817
12818           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12819
12820           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12821         else
12822           if test "$host_cpu" = ia64; then
12823             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12824             allow_undefined_flag_CXX="-z nodefs"
12825             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"
12826           else
12827             # Determine the default libpath from the value encoded in an
12828             # empty executable.
12829             if test "${lt_cv_aix_libpath+set}" = set; then
12830   aix_libpath=$lt_cv_aix_libpath
12831 else
12832   if ${lt_cv_aix_libpath__CXX+:} false; then :
12833   $as_echo_n "(cached) " >&6
12834 else
12835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h.  */
12837
12838 int
12839 main ()
12840 {
12841
12842   ;
12843   return 0;
12844 }
12845 _ACEOF
12846 if ac_fn_cxx_try_link "$LINENO"; then :
12847
12848   lt_aix_libpath_sed='
12849       /Import File Strings/,/^$/ {
12850           /^0/ {
12851               s/^0  *\([^ ]*\) *$/\1/
12852               p
12853           }
12854       }'
12855   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12856   # Check for a 64-bit object if we didn't find anything.
12857   if test -z "$lt_cv_aix_libpath__CXX"; then
12858     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12859   fi
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext \
12862     conftest$ac_exeext conftest.$ac_ext
12863   if test -z "$lt_cv_aix_libpath__CXX"; then
12864     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12865   fi
12866
12867 fi
12868
12869   aix_libpath=$lt_cv_aix_libpath__CXX
12870 fi
12871
12872             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12873             # Warning - without using the other run time loading flags,
12874             # -berok will link without error, but may produce a broken library.
12875             no_undefined_flag_CXX=' ${wl}-bernotok'
12876             allow_undefined_flag_CXX=' ${wl}-berok'
12877             if test "$with_gnu_ld" = yes; then
12878               # We only use this code for GNU lds that support --whole-archive.
12879               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12880             else
12881               # Exported symbols can be pulled into shared objects from archives
12882               whole_archive_flag_spec_CXX='$convenience'
12883             fi
12884             archive_cmds_need_lc_CXX=yes
12885             # This is similar to how AIX traditionally builds its shared
12886             # libraries.
12887             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'
12888           fi
12889         fi
12890         ;;
12891
12892       beos*)
12893         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12894           allow_undefined_flag_CXX=unsupported
12895           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12896           # support --undefined.  This deserves some investigation.  FIXME
12897           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898         else
12899           ld_shlibs_CXX=no
12900         fi
12901         ;;
12902
12903       chorus*)
12904         case $cc_basename in
12905           *)
12906           # FIXME: insert proper C++ library support
12907           ld_shlibs_CXX=no
12908           ;;
12909         esac
12910         ;;
12911
12912       cygwin* | mingw* | pw32* | cegcc*)
12913         case $GXX,$cc_basename in
12914         ,cl* | no,cl*)
12915           # Native MSVC
12916           # hardcode_libdir_flag_spec is actually meaningless, as there is
12917           # no search path for DLLs.
12918           hardcode_libdir_flag_spec_CXX=' '
12919           allow_undefined_flag_CXX=unsupported
12920           always_export_symbols_CXX=yes
12921           file_list_spec_CXX='@'
12922           # Tell ltmain to make .lib files, not .a files.
12923           libext=lib
12924           # Tell ltmain to make .dll files, not .so files.
12925           shrext_cmds=".dll"
12926           # FIXME: Setting linknames here is a bad hack.
12927           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12928           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12929               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12930             else
12931               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12932             fi~
12933             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12934             linknames='
12935           # The linker will not automatically build a static lib if we build a DLL.
12936           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12937           enable_shared_with_static_runtimes_CXX=yes
12938           # Don't use ranlib
12939           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12940           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12941             lt_tool_outputfile="@TOOL_OUTPUT@"~
12942             case $lt_outputfile in
12943               *.exe|*.EXE) ;;
12944               *)
12945                 lt_outputfile="$lt_outputfile.exe"
12946                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12947                 ;;
12948             esac~
12949             func_to_tool_file "$lt_outputfile"~
12950             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12951               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12952               $RM "$lt_outputfile.manifest";
12953             fi'
12954           ;;
12955         *)
12956           # g++
12957           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12958           # as there is no search path for DLLs.
12959           hardcode_libdir_flag_spec_CXX='-L$libdir'
12960           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12961           allow_undefined_flag_CXX=unsupported
12962           always_export_symbols_CXX=no
12963           enable_shared_with_static_runtimes_CXX=yes
12964
12965           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12966             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'
12967             # If the export-symbols file already is a .def file (1st line
12968             # is EXPORTS), use it as is; otherwise, prepend...
12969             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12970               cp $export_symbols $output_objdir/$soname.def;
12971             else
12972               echo EXPORTS > $output_objdir/$soname.def;
12973               cat $export_symbols >> $output_objdir/$soname.def;
12974             fi~
12975             $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'
12976           else
12977             ld_shlibs_CXX=no
12978           fi
12979           ;;
12980         esac
12981         ;;
12982       darwin* | rhapsody*)
12983
12984
12985   archive_cmds_need_lc_CXX=no
12986   hardcode_direct_CXX=no
12987   hardcode_automatic_CXX=yes
12988   hardcode_shlibpath_var_CXX=unsupported
12989   if test "$lt_cv_ld_force_load" = "yes"; then
12990     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12991
12992   else
12993     whole_archive_flag_spec_CXX=''
12994   fi
12995   link_all_deplibs_CXX=yes
12996   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12997   case $cc_basename in
12998      ifort*) _lt_dar_can_shared=yes ;;
12999      *) _lt_dar_can_shared=$GCC ;;
13000   esac
13001   if test "$_lt_dar_can_shared" = "yes"; then
13002     output_verbose_link_cmd=func_echo_all
13003     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13004     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13005     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13006     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13007        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13008       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13009       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13010     fi
13011
13012   else
13013   ld_shlibs_CXX=no
13014   fi
13015
13016         ;;
13017
13018       dgux*)
13019         case $cc_basename in
13020           ec++*)
13021             # FIXME: insert proper C++ library support
13022             ld_shlibs_CXX=no
13023             ;;
13024           ghcx*)
13025             # Green Hills C++ Compiler
13026             # FIXME: insert proper C++ library support
13027             ld_shlibs_CXX=no
13028             ;;
13029           *)
13030             # FIXME: insert proper C++ library support
13031             ld_shlibs_CXX=no
13032             ;;
13033         esac
13034         ;;
13035
13036       freebsd2.*)
13037         # C++ shared libraries reported to be fairly broken before
13038         # switch to ELF
13039         ld_shlibs_CXX=no
13040         ;;
13041
13042       freebsd-elf*)
13043         archive_cmds_need_lc_CXX=no
13044         ;;
13045
13046       freebsd* | dragonfly*)
13047         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13048         # conventions
13049         ld_shlibs_CXX=yes
13050         ;;
13051
13052       gnu*)
13053         ;;
13054
13055       haiku*)
13056         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13057         link_all_deplibs_CXX=yes
13058         ;;
13059
13060       hpux9*)
13061         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13062         hardcode_libdir_separator_CXX=:
13063         export_dynamic_flag_spec_CXX='${wl}-E'
13064         hardcode_direct_CXX=yes
13065         hardcode_minus_L_CXX=yes # Not in the search PATH,
13066                                              # but as the default
13067                                              # location of the library.
13068
13069         case $cc_basename in
13070           CC*)
13071             # FIXME: insert proper C++ library support
13072             ld_shlibs_CXX=no
13073             ;;
13074           aCC*)
13075             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'
13076             # Commands to make compiler produce verbose output that lists
13077             # what "hidden" libraries, object files and flags are used when
13078             # linking a shared library.
13079             #
13080             # There doesn't appear to be a way to prevent this compiler from
13081             # explicitly linking system object files so we need to strip them
13082             # from the output so that they don't get included in the library
13083             # dependencies.
13084             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13085             ;;
13086           *)
13087             if test "$GXX" = yes; then
13088               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13089             else
13090               # FIXME: insert proper C++ library support
13091               ld_shlibs_CXX=no
13092             fi
13093             ;;
13094         esac
13095         ;;
13096
13097       hpux10*|hpux11*)
13098         if test $with_gnu_ld = no; then
13099           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13100           hardcode_libdir_separator_CXX=:
13101
13102           case $host_cpu in
13103             hppa*64*|ia64*)
13104               ;;
13105             *)
13106               export_dynamic_flag_spec_CXX='${wl}-E'
13107               ;;
13108           esac
13109         fi
13110         case $host_cpu in
13111           hppa*64*|ia64*)
13112             hardcode_direct_CXX=no
13113             hardcode_shlibpath_var_CXX=no
13114             ;;
13115           *)
13116             hardcode_direct_CXX=yes
13117             hardcode_direct_absolute_CXX=yes
13118             hardcode_minus_L_CXX=yes # Not in the search PATH,
13119                                                  # but as the default
13120                                                  # location of the library.
13121             ;;
13122         esac
13123
13124         case $cc_basename in
13125           CC*)
13126             # FIXME: insert proper C++ library support
13127             ld_shlibs_CXX=no
13128             ;;
13129           aCC*)
13130             case $host_cpu in
13131               hppa*64*)
13132                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13133                 ;;
13134               ia64*)
13135                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13136                 ;;
13137               *)
13138                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13139                 ;;
13140             esac
13141             # Commands to make compiler produce verbose output that lists
13142             # what "hidden" libraries, object files and flags are used when
13143             # linking a shared library.
13144             #
13145             # There doesn't appear to be a way to prevent this compiler from
13146             # explicitly linking system object files so we need to strip them
13147             # from the output so that they don't get included in the library
13148             # dependencies.
13149             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13150             ;;
13151           *)
13152             if test "$GXX" = yes; then
13153               if test $with_gnu_ld = no; then
13154                 case $host_cpu in
13155                   hppa*64*)
13156                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13157                     ;;
13158                   ia64*)
13159                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13160                     ;;
13161                   *)
13162                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13163                     ;;
13164                 esac
13165               fi
13166             else
13167               # FIXME: insert proper C++ library support
13168               ld_shlibs_CXX=no
13169             fi
13170             ;;
13171         esac
13172         ;;
13173
13174       interix[3-9]*)
13175         hardcode_direct_CXX=no
13176         hardcode_shlibpath_var_CXX=no
13177         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13178         export_dynamic_flag_spec_CXX='${wl}-E'
13179         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13180         # Instead, shared libraries are loaded at an image base (0x10000000 by
13181         # default) and relocated if they conflict, which is a slow very memory
13182         # consuming and fragmenting process.  To avoid this, we pick a random,
13183         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13184         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13185         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'
13186         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'
13187         ;;
13188       irix5* | irix6*)
13189         case $cc_basename in
13190           CC*)
13191             # SGI C++
13192             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13193
13194             # Archives containing C++ object files must be created using
13195             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13196             # necessary to make sure instantiated templates are included
13197             # in the archive.
13198             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13199             ;;
13200           *)
13201             if test "$GXX" = yes; then
13202               if test "$with_gnu_ld" = no; then
13203                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13204               else
13205                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13206               fi
13207             fi
13208             link_all_deplibs_CXX=yes
13209             ;;
13210         esac
13211         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13212         hardcode_libdir_separator_CXX=:
13213         inherit_rpath_CXX=yes
13214         ;;
13215
13216       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13217         case $cc_basename in
13218           KCC*)
13219             # Kuck and Associates, Inc. (KAI) C++ Compiler
13220
13221             # KCC will only create a shared library if the output file
13222             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13223             # to its proper name (with version) after linking.
13224             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'
13225             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'
13226             # Commands to make compiler produce verbose output that lists
13227             # what "hidden" libraries, object files and flags are used when
13228             # linking a shared library.
13229             #
13230             # There doesn't appear to be a way to prevent this compiler from
13231             # explicitly linking system object files so we need to strip them
13232             # from the output so that they don't get included in the library
13233             # dependencies.
13234             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13235
13236             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13237             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13238
13239             # Archives containing C++ object files must be created using
13240             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13241             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13242             ;;
13243           icpc* | ecpc* )
13244             # Intel C++
13245             with_gnu_ld=yes
13246             # version 8.0 and above of icpc choke on multiply defined symbols
13247             # if we add $predep_objects and $postdep_objects, however 7.1 and
13248             # earlier do not add the objects themselves.
13249             case `$CC -V 2>&1` in
13250               *"Version 7."*)
13251                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13252                 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'
13253                 ;;
13254               *)  # Version 8.0 or newer
13255                 tmp_idyn=
13256                 case $host_cpu in
13257                   ia64*) tmp_idyn=' -i_dynamic';;
13258                 esac
13259                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260                 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'
13261                 ;;
13262             esac
13263             archive_cmds_need_lc_CXX=no
13264             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13265             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13266             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13267             ;;
13268           pgCC* | pgcpp*)
13269             # Portland Group C++ compiler
13270             case `$CC -V` in
13271             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13272               prelink_cmds_CXX='tpldir=Template.dir~
13273                 rm -rf $tpldir~
13274                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13275                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13276               old_archive_cmds_CXX='tpldir=Template.dir~
13277                 rm -rf $tpldir~
13278                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13279                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13280                 $RANLIB $oldlib'
13281               archive_cmds_CXX='tpldir=Template.dir~
13282                 rm -rf $tpldir~
13283                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13284                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13285               archive_expsym_cmds_CXX='tpldir=Template.dir~
13286                 rm -rf $tpldir~
13287                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13288                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13289               ;;
13290             *) # Version 6 and above use weak symbols
13291               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13292               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'
13293               ;;
13294             esac
13295
13296             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13297             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13298             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13299             ;;
13300           cxx*)
13301             # Compaq C++
13302             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13303             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'
13304
13305             runpath_var=LD_RUN_PATH
13306             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13307             hardcode_libdir_separator_CXX=:
13308
13309             # Commands to make compiler produce verbose output that lists
13310             # what "hidden" libraries, object files and flags are used when
13311             # linking a shared library.
13312             #
13313             # There doesn't appear to be a way to prevent this compiler from
13314             # explicitly linking system object files so we need to strip them
13315             # from the output so that they don't get included in the library
13316             # dependencies.
13317             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13318             ;;
13319           xl* | mpixl* | bgxl*)
13320             # IBM XL 8.0 on PPC, with GNU ld
13321             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13322             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13323             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324             if test "x$supports_anon_versioning" = xyes; then
13325               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13326                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13327                 echo "local: *; };" >> $output_objdir/$libname.ver~
13328                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13329             fi
13330             ;;
13331           *)
13332             case `$CC -V 2>&1 | sed 5q` in
13333             *Sun\ C*)
13334               # Sun C++ 5.9
13335               no_undefined_flag_CXX=' -zdefs'
13336               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13337               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13338               hardcode_libdir_flag_spec_CXX='-R$libdir'
13339               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13340               compiler_needs_object_CXX=yes
13341
13342               # Not sure whether something based on
13343               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13344               # would be better.
13345               output_verbose_link_cmd='func_echo_all'
13346
13347               # Archives containing C++ object files must be created using
13348               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13349               # necessary to make sure instantiated templates are included
13350               # in the archive.
13351               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13352               ;;
13353             esac
13354             ;;
13355         esac
13356         ;;
13357
13358       lynxos*)
13359         # FIXME: insert proper C++ library support
13360         ld_shlibs_CXX=no
13361         ;;
13362
13363       m88k*)
13364         # FIXME: insert proper C++ library support
13365         ld_shlibs_CXX=no
13366         ;;
13367
13368       mvs*)
13369         case $cc_basename in
13370           cxx*)
13371             # FIXME: insert proper C++ library support
13372             ld_shlibs_CXX=no
13373             ;;
13374           *)
13375             # FIXME: insert proper C++ library support
13376             ld_shlibs_CXX=no
13377             ;;
13378         esac
13379         ;;
13380
13381       netbsd*)
13382         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13383           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13384           wlarc=
13385           hardcode_libdir_flag_spec_CXX='-R$libdir'
13386           hardcode_direct_CXX=yes
13387           hardcode_shlibpath_var_CXX=no
13388         fi
13389         # Workaround some broken pre-1.5 toolchains
13390         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13391         ;;
13392
13393       *nto* | *qnx*)
13394         ld_shlibs_CXX=yes
13395         ;;
13396
13397       openbsd2*)
13398         # C++ shared libraries are fairly broken
13399         ld_shlibs_CXX=no
13400         ;;
13401
13402       openbsd*)
13403         if test -f /usr/libexec/ld.so; then
13404           hardcode_direct_CXX=yes
13405           hardcode_shlibpath_var_CXX=no
13406           hardcode_direct_absolute_CXX=yes
13407           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13408           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13409           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13410             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13411             export_dynamic_flag_spec_CXX='${wl}-E'
13412             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13413           fi
13414           output_verbose_link_cmd=func_echo_all
13415         else
13416           ld_shlibs_CXX=no
13417         fi
13418         ;;
13419
13420       osf3* | osf4* | osf5*)
13421         case $cc_basename in
13422           KCC*)
13423             # Kuck and Associates, Inc. (KAI) C++ Compiler
13424
13425             # KCC will only create a shared library if the output file
13426             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13427             # to its proper name (with version) after linking.
13428             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'
13429
13430             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13431             hardcode_libdir_separator_CXX=:
13432
13433             # Archives containing C++ object files must be created using
13434             # the KAI C++ compiler.
13435             case $host in
13436               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13437               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13438             esac
13439             ;;
13440           RCC*)
13441             # Rational C++ 2.4.1
13442             # FIXME: insert proper C++ library support
13443             ld_shlibs_CXX=no
13444             ;;
13445           cxx*)
13446             case $host in
13447               osf3*)
13448                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13449                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13450                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13451                 ;;
13452               *)
13453                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13454                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13455                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13456                   echo "-hidden">> $lib.exp~
13457                   $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~
13458                   $RM $lib.exp'
13459                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13460                 ;;
13461             esac
13462
13463             hardcode_libdir_separator_CXX=:
13464
13465             # Commands to make compiler produce verbose output that lists
13466             # what "hidden" libraries, object files and flags are used when
13467             # linking a shared library.
13468             #
13469             # There doesn't appear to be a way to prevent this compiler from
13470             # explicitly linking system object files so we need to strip them
13471             # from the output so that they don't get included in the library
13472             # dependencies.
13473             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13474             ;;
13475           *)
13476             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13477               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13478               case $host in
13479                 osf3*)
13480                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13481                   ;;
13482                 *)
13483                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13484                   ;;
13485               esac
13486
13487               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13488               hardcode_libdir_separator_CXX=:
13489
13490               # Commands to make compiler produce verbose output that lists
13491               # what "hidden" libraries, object files and flags are used when
13492               # linking a shared library.
13493               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13494
13495             else
13496               # FIXME: insert proper C++ library support
13497               ld_shlibs_CXX=no
13498             fi
13499             ;;
13500         esac
13501         ;;
13502
13503       psos*)
13504         # FIXME: insert proper C++ library support
13505         ld_shlibs_CXX=no
13506         ;;
13507
13508       sunos4*)
13509         case $cc_basename in
13510           CC*)
13511             # Sun C++ 4.x
13512             # FIXME: insert proper C++ library support
13513             ld_shlibs_CXX=no
13514             ;;
13515           lcc*)
13516             # Lucid
13517             # FIXME: insert proper C++ library support
13518             ld_shlibs_CXX=no
13519             ;;
13520           *)
13521             # FIXME: insert proper C++ library support
13522             ld_shlibs_CXX=no
13523             ;;
13524         esac
13525         ;;
13526
13527       solaris*)
13528         case $cc_basename in
13529           CC* | sunCC*)
13530             # Sun C++ 4.2, 5.x and Centerline C++
13531             archive_cmds_need_lc_CXX=yes
13532             no_undefined_flag_CXX=' -zdefs'
13533             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13534             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13535               $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'
13536
13537             hardcode_libdir_flag_spec_CXX='-R$libdir'
13538             hardcode_shlibpath_var_CXX=no
13539             case $host_os in
13540               solaris2.[0-5] | solaris2.[0-5].*) ;;
13541               *)
13542                 # The compiler driver will combine and reorder linker options,
13543                 # but understands `-z linker_flag'.
13544                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13545                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13546                 ;;
13547             esac
13548             link_all_deplibs_CXX=yes
13549
13550             output_verbose_link_cmd='func_echo_all'
13551
13552             # Archives containing C++ object files must be created using
13553             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13554             # necessary to make sure instantiated templates are included
13555             # in the archive.
13556             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13557             ;;
13558           gcx*)
13559             # Green Hills C++ Compiler
13560             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13561
13562             # The C++ compiler must be used to create the archive.
13563             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13564             ;;
13565           *)
13566             # GNU C++ compiler with Solaris linker
13567             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13568               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13569               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13570                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13571                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13572                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13573
13574                 # Commands to make compiler produce verbose output that lists
13575                 # what "hidden" libraries, object files and flags are used when
13576                 # linking a shared library.
13577                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13578               else
13579                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13580                 # platform.
13581                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13582                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13583                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13584
13585                 # Commands to make compiler produce verbose output that lists
13586                 # what "hidden" libraries, object files and flags are used when
13587                 # linking a shared library.
13588                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13589               fi
13590
13591               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13592               case $host_os in
13593                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13594                 *)
13595                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13596                   ;;
13597               esac
13598             fi
13599             ;;
13600         esac
13601         ;;
13602
13603     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13604       no_undefined_flag_CXX='${wl}-z,text'
13605       archive_cmds_need_lc_CXX=no
13606       hardcode_shlibpath_var_CXX=no
13607       runpath_var='LD_RUN_PATH'
13608
13609       case $cc_basename in
13610         CC*)
13611           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13612           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13613           ;;
13614         *)
13615           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13616           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617           ;;
13618       esac
13619       ;;
13620
13621       sysv5* | sco3.2v5* | sco5v6*)
13622         # Note: We can NOT use -z defs as we might desire, because we do not
13623         # link with -lc, and that would cause any symbols used from libc to
13624         # always be unresolved, which means just about no library would
13625         # ever link correctly.  If we're not using GNU ld we use -z text
13626         # though, which does catch some bad symbols but isn't as heavy-handed
13627         # as -z defs.
13628         no_undefined_flag_CXX='${wl}-z,text'
13629         allow_undefined_flag_CXX='${wl}-z,nodefs'
13630         archive_cmds_need_lc_CXX=no
13631         hardcode_shlibpath_var_CXX=no
13632         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13633         hardcode_libdir_separator_CXX=':'
13634         link_all_deplibs_CXX=yes
13635         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13636         runpath_var='LD_RUN_PATH'
13637
13638         case $cc_basename in
13639           CC*)
13640             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13643               '"$old_archive_cmds_CXX"
13644             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13645               '"$reload_cmds_CXX"
13646             ;;
13647           *)
13648             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650             ;;
13651         esac
13652       ;;
13653
13654       tandem*)
13655         case $cc_basename in
13656           NCC*)
13657             # NonStop-UX NCC 3.20
13658             # FIXME: insert proper C++ library support
13659             ld_shlibs_CXX=no
13660             ;;
13661           *)
13662             # FIXME: insert proper C++ library support
13663             ld_shlibs_CXX=no
13664             ;;
13665         esac
13666         ;;
13667
13668       vxworks*)
13669         # FIXME: insert proper C++ library support
13670         ld_shlibs_CXX=no
13671         ;;
13672
13673       *)
13674         # FIXME: insert proper C++ library support
13675         ld_shlibs_CXX=no
13676         ;;
13677     esac
13678
13679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13680 $as_echo "$ld_shlibs_CXX" >&6; }
13681     test "$ld_shlibs_CXX" = no && can_build_shared=no
13682
13683     GCC_CXX="$GXX"
13684     LD_CXX="$LD"
13685
13686     ## CAVEAT EMPTOR:
13687     ## There is no encapsulation within the following macros, do not change
13688     ## the running order or otherwise move them around unless you know exactly
13689     ## what you are doing...
13690     # Dependencies to place before and after the object being linked:
13691 predep_objects_CXX=
13692 postdep_objects_CXX=
13693 predeps_CXX=
13694 postdeps_CXX=
13695 compiler_lib_search_path_CXX=
13696
13697 cat > conftest.$ac_ext <<_LT_EOF
13698 class Foo
13699 {
13700 public:
13701   Foo (void) { a = 0; }
13702 private:
13703   int a;
13704 };
13705 _LT_EOF
13706
13707
13708 _lt_libdeps_save_CFLAGS=$CFLAGS
13709 case "$CC $CFLAGS " in #(
13710 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13711 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13712 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13713 esac
13714
13715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13716   (eval $ac_compile) 2>&5
13717   ac_status=$?
13718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13719   test $ac_status = 0; }; then
13720   # Parse the compiler output and extract the necessary
13721   # objects, libraries and library flags.
13722
13723   # Sentinel used to keep track of whether or not we are before
13724   # the conftest object file.
13725   pre_test_object_deps_done=no
13726
13727   for p in `eval "$output_verbose_link_cmd"`; do
13728     case ${prev}${p} in
13729
13730     -L* | -R* | -l*)
13731        # Some compilers place space between "-{L,R}" and the path.
13732        # Remove the space.
13733        if test $p = "-L" ||
13734           test $p = "-R"; then
13735          prev=$p
13736          continue
13737        fi
13738
13739        # Expand the sysroot to ease extracting the directories later.
13740        if test -z "$prev"; then
13741          case $p in
13742          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13743          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13744          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13745          esac
13746        fi
13747        case $p in
13748        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13749        esac
13750        if test "$pre_test_object_deps_done" = no; then
13751          case ${prev} in
13752          -L | -R)
13753            # Internal compiler library paths should come after those
13754            # provided the user.  The postdeps already come after the
13755            # user supplied libs so there is no need to process them.
13756            if test -z "$compiler_lib_search_path_CXX"; then
13757              compiler_lib_search_path_CXX="${prev}${p}"
13758            else
13759              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13760            fi
13761            ;;
13762          # The "-l" case would never come before the object being
13763          # linked, so don't bother handling this case.
13764          esac
13765        else
13766          if test -z "$postdeps_CXX"; then
13767            postdeps_CXX="${prev}${p}"
13768          else
13769            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13770          fi
13771        fi
13772        prev=
13773        ;;
13774
13775     *.lto.$objext) ;; # Ignore GCC LTO objects
13776     *.$objext)
13777        # This assumes that the test object file only shows up
13778        # once in the compiler output.
13779        if test "$p" = "conftest.$objext"; then
13780          pre_test_object_deps_done=yes
13781          continue
13782        fi
13783
13784        if test "$pre_test_object_deps_done" = no; then
13785          if test -z "$predep_objects_CXX"; then
13786            predep_objects_CXX="$p"
13787          else
13788            predep_objects_CXX="$predep_objects_CXX $p"
13789          fi
13790        else
13791          if test -z "$postdep_objects_CXX"; then
13792            postdep_objects_CXX="$p"
13793          else
13794            postdep_objects_CXX="$postdep_objects_CXX $p"
13795          fi
13796        fi
13797        ;;
13798
13799     *) ;; # Ignore the rest.
13800
13801     esac
13802   done
13803
13804   # Clean up.
13805   rm -f a.out a.exe
13806 else
13807   echo "libtool.m4: error: problem compiling CXX test program"
13808 fi
13809
13810 $RM -f confest.$objext
13811 CFLAGS=$_lt_libdeps_save_CFLAGS
13812
13813 # PORTME: override above test on systems where it is broken
13814 case $host_os in
13815 interix[3-9]*)
13816   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13817   # hack all around it, let's just trust "g++" to DTRT.
13818   predep_objects_CXX=
13819   postdep_objects_CXX=
13820   postdeps_CXX=
13821   ;;
13822
13823 linux*)
13824   case `$CC -V 2>&1 | sed 5q` in
13825   *Sun\ C*)
13826     # Sun C++ 5.9
13827
13828     # The more standards-conforming stlport4 library is
13829     # incompatible with the Cstd library. Avoid specifying
13830     # it if it's in CXXFLAGS. Ignore libCrun as
13831     # -library=stlport4 depends on it.
13832     case " $CXX $CXXFLAGS " in
13833     *" -library=stlport4 "*)
13834       solaris_use_stlport4=yes
13835       ;;
13836     esac
13837
13838     if test "$solaris_use_stlport4" != yes; then
13839       postdeps_CXX='-library=Cstd -library=Crun'
13840     fi
13841     ;;
13842   esac
13843   ;;
13844
13845 solaris*)
13846   case $cc_basename in
13847   CC* | sunCC*)
13848     # The more standards-conforming stlport4 library is
13849     # incompatible with the Cstd library. Avoid specifying
13850     # it if it's in CXXFLAGS. Ignore libCrun as
13851     # -library=stlport4 depends on it.
13852     case " $CXX $CXXFLAGS " in
13853     *" -library=stlport4 "*)
13854       solaris_use_stlport4=yes
13855       ;;
13856     esac
13857
13858     # Adding this requires a known-good setup of shared libraries for
13859     # Sun compiler versions before 5.6, else PIC objects from an old
13860     # archive will be linked into the output, leading to subtle bugs.
13861     if test "$solaris_use_stlport4" != yes; then
13862       postdeps_CXX='-library=Cstd -library=Crun'
13863     fi
13864     ;;
13865   esac
13866   ;;
13867 esac
13868
13869
13870 case " $postdeps_CXX " in
13871 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13872 esac
13873  compiler_lib_search_dirs_CXX=
13874 if test -n "${compiler_lib_search_path_CXX}"; then
13875  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13876 fi
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908     lt_prog_compiler_wl_CXX=
13909 lt_prog_compiler_pic_CXX=
13910 lt_prog_compiler_static_CXX=
13911
13912
13913   # C++ specific cases for pic, static, wl, etc.
13914   if test "$GXX" = yes; then
13915     lt_prog_compiler_wl_CXX='-Wl,'
13916     lt_prog_compiler_static_CXX='-static'
13917
13918     case $host_os in
13919     aix*)
13920       # All AIX code is PIC.
13921       if test "$host_cpu" = ia64; then
13922         # AIX 5 now supports IA64 processor
13923         lt_prog_compiler_static_CXX='-Bstatic'
13924       fi
13925       ;;
13926
13927     amigaos*)
13928       case $host_cpu in
13929       powerpc)
13930             # see comment about AmigaOS4 .so support
13931             lt_prog_compiler_pic_CXX='-fPIC'
13932         ;;
13933       m68k)
13934             # FIXME: we need at least 68020 code to build shared libraries, but
13935             # adding the `-m68020' flag to GCC prevents building anything better,
13936             # like `-m68040'.
13937             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13938         ;;
13939       esac
13940       ;;
13941
13942     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13943       # PIC is the default for these OSes.
13944       ;;
13945     mingw* | cygwin* | os2* | pw32* | cegcc*)
13946       # This hack is so that the source file can tell whether it is being
13947       # built for inclusion in a dll (and should export symbols for example).
13948       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13949       # (--disable-auto-import) libraries
13950       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13951       ;;
13952     darwin* | rhapsody*)
13953       # PIC is the default on this platform
13954       # Common symbols not allowed in MH_DYLIB files
13955       lt_prog_compiler_pic_CXX='-fno-common'
13956       ;;
13957     *djgpp*)
13958       # DJGPP does not support shared libraries at all
13959       lt_prog_compiler_pic_CXX=
13960       ;;
13961     haiku*)
13962       # PIC is the default for Haiku.
13963       # The "-static" flag exists, but is broken.
13964       lt_prog_compiler_static_CXX=
13965       ;;
13966     interix[3-9]*)
13967       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13968       # Instead, we relocate shared libraries at runtime.
13969       ;;
13970     sysv4*MP*)
13971       if test -d /usr/nec; then
13972         lt_prog_compiler_pic_CXX=-Kconform_pic
13973       fi
13974       ;;
13975     hpux*)
13976       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13977       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13978       # sets the default TLS model and affects inlining.
13979       case $host_cpu in
13980       hppa*64*)
13981         ;;
13982       *)
13983         lt_prog_compiler_pic_CXX='-fPIC'
13984         ;;
13985       esac
13986       ;;
13987     *qnx* | *nto*)
13988       # QNX uses GNU C++, but need to define -shared option too, otherwise
13989       # it will coredump.
13990       lt_prog_compiler_pic_CXX='-fPIC -shared'
13991       ;;
13992     *)
13993       lt_prog_compiler_pic_CXX='-fPIC'
13994       ;;
13995     esac
13996   else
13997     case $host_os in
13998       aix[4-9]*)
13999         # All AIX code is PIC.
14000         if test "$host_cpu" = ia64; then
14001           # AIX 5 now supports IA64 processor
14002           lt_prog_compiler_static_CXX='-Bstatic'
14003         else
14004           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14005         fi
14006         ;;
14007       chorus*)
14008         case $cc_basename in
14009         cxch68*)
14010           # Green Hills C++ Compiler
14011           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14012           ;;
14013         esac
14014         ;;
14015       mingw* | cygwin* | os2* | pw32* | cegcc*)
14016         # This hack is so that the source file can tell whether it is being
14017         # built for inclusion in a dll (and should export symbols for example).
14018         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14019         ;;
14020       dgux*)
14021         case $cc_basename in
14022           ec++*)
14023             lt_prog_compiler_pic_CXX='-KPIC'
14024             ;;
14025           ghcx*)
14026             # Green Hills C++ Compiler
14027             lt_prog_compiler_pic_CXX='-pic'
14028             ;;
14029           *)
14030             ;;
14031         esac
14032         ;;
14033       freebsd* | dragonfly*)
14034         # FreeBSD uses GNU C++
14035         ;;
14036       hpux9* | hpux10* | hpux11*)
14037         case $cc_basename in
14038           CC*)
14039             lt_prog_compiler_wl_CXX='-Wl,'
14040             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14041             if test "$host_cpu" != ia64; then
14042               lt_prog_compiler_pic_CXX='+Z'
14043             fi
14044             ;;
14045           aCC*)
14046             lt_prog_compiler_wl_CXX='-Wl,'
14047             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14048             case $host_cpu in
14049             hppa*64*|ia64*)
14050               # +Z the default
14051               ;;
14052             *)
14053               lt_prog_compiler_pic_CXX='+Z'
14054               ;;
14055             esac
14056             ;;
14057           *)
14058             ;;
14059         esac
14060         ;;
14061       interix*)
14062         # This is c89, which is MS Visual C++ (no shared libs)
14063         # Anyone wants to do a port?
14064         ;;
14065       irix5* | irix6* | nonstopux*)
14066         case $cc_basename in
14067           CC*)
14068             lt_prog_compiler_wl_CXX='-Wl,'
14069             lt_prog_compiler_static_CXX='-non_shared'
14070             # CC pic flag -KPIC is the default.
14071             ;;
14072           *)
14073             ;;
14074         esac
14075         ;;
14076       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14077         case $cc_basename in
14078           KCC*)
14079             # KAI C++ Compiler
14080             lt_prog_compiler_wl_CXX='--backend -Wl,'
14081             lt_prog_compiler_pic_CXX='-fPIC'
14082             ;;
14083           ecpc* )
14084             # old Intel C++ for x86_64 which still supported -KPIC.
14085             lt_prog_compiler_wl_CXX='-Wl,'
14086             lt_prog_compiler_pic_CXX='-KPIC'
14087             lt_prog_compiler_static_CXX='-static'
14088             ;;
14089           icpc* )
14090             # Intel C++, used to be incompatible with GCC.
14091             # ICC 10 doesn't accept -KPIC any more.
14092             lt_prog_compiler_wl_CXX='-Wl,'
14093             lt_prog_compiler_pic_CXX='-fPIC'
14094             lt_prog_compiler_static_CXX='-static'
14095             ;;
14096           pgCC* | pgcpp*)
14097             # Portland Group C++ compiler
14098             lt_prog_compiler_wl_CXX='-Wl,'
14099             lt_prog_compiler_pic_CXX='-fpic'
14100             lt_prog_compiler_static_CXX='-Bstatic'
14101             ;;
14102           cxx*)
14103             # Compaq C++
14104             # Make sure the PIC flag is empty.  It appears that all Alpha
14105             # Linux and Compaq Tru64 Unix objects are PIC.
14106             lt_prog_compiler_pic_CXX=
14107             lt_prog_compiler_static_CXX='-non_shared'
14108             ;;
14109           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14110             # IBM XL 8.0, 9.0 on PPC and BlueGene
14111             lt_prog_compiler_wl_CXX='-Wl,'
14112             lt_prog_compiler_pic_CXX='-qpic'
14113             lt_prog_compiler_static_CXX='-qstaticlink'
14114             ;;
14115           *)
14116             case `$CC -V 2>&1 | sed 5q` in
14117             *Sun\ C*)
14118               # Sun C++ 5.9
14119               lt_prog_compiler_pic_CXX='-KPIC'
14120               lt_prog_compiler_static_CXX='-Bstatic'
14121               lt_prog_compiler_wl_CXX='-Qoption ld '
14122               ;;
14123             esac
14124             ;;
14125         esac
14126         ;;
14127       lynxos*)
14128         ;;
14129       m88k*)
14130         ;;
14131       mvs*)
14132         case $cc_basename in
14133           cxx*)
14134             lt_prog_compiler_pic_CXX='-W c,exportall'
14135             ;;
14136           *)
14137             ;;
14138         esac
14139         ;;
14140       netbsd* | netbsdelf*-gnu)
14141         ;;
14142       *qnx* | *nto*)
14143         # QNX uses GNU C++, but need to define -shared option too, otherwise
14144         # it will coredump.
14145         lt_prog_compiler_pic_CXX='-fPIC -shared'
14146         ;;
14147       osf3* | osf4* | osf5*)
14148         case $cc_basename in
14149           KCC*)
14150             lt_prog_compiler_wl_CXX='--backend -Wl,'
14151             ;;
14152           RCC*)
14153             # Rational C++ 2.4.1
14154             lt_prog_compiler_pic_CXX='-pic'
14155             ;;
14156           cxx*)
14157             # Digital/Compaq C++
14158             lt_prog_compiler_wl_CXX='-Wl,'
14159             # Make sure the PIC flag is empty.  It appears that all Alpha
14160             # Linux and Compaq Tru64 Unix objects are PIC.
14161             lt_prog_compiler_pic_CXX=
14162             lt_prog_compiler_static_CXX='-non_shared'
14163             ;;
14164           *)
14165             ;;
14166         esac
14167         ;;
14168       psos*)
14169         ;;
14170       solaris*)
14171         case $cc_basename in
14172           CC* | sunCC*)
14173             # Sun C++ 4.2, 5.x and Centerline C++
14174             lt_prog_compiler_pic_CXX='-KPIC'
14175             lt_prog_compiler_static_CXX='-Bstatic'
14176             lt_prog_compiler_wl_CXX='-Qoption ld '
14177             ;;
14178           gcx*)
14179             # Green Hills C++ Compiler
14180             lt_prog_compiler_pic_CXX='-PIC'
14181             ;;
14182           *)
14183             ;;
14184         esac
14185         ;;
14186       sunos4*)
14187         case $cc_basename in
14188           CC*)
14189             # Sun C++ 4.x
14190             lt_prog_compiler_pic_CXX='-pic'
14191             lt_prog_compiler_static_CXX='-Bstatic'
14192             ;;
14193           lcc*)
14194             # Lucid
14195             lt_prog_compiler_pic_CXX='-pic'
14196             ;;
14197           *)
14198             ;;
14199         esac
14200         ;;
14201       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14202         case $cc_basename in
14203           CC*)
14204             lt_prog_compiler_wl_CXX='-Wl,'
14205             lt_prog_compiler_pic_CXX='-KPIC'
14206             lt_prog_compiler_static_CXX='-Bstatic'
14207             ;;
14208         esac
14209         ;;
14210       tandem*)
14211         case $cc_basename in
14212           NCC*)
14213             # NonStop-UX NCC 3.20
14214             lt_prog_compiler_pic_CXX='-KPIC'
14215             ;;
14216           *)
14217             ;;
14218         esac
14219         ;;
14220       vxworks*)
14221         ;;
14222       *)
14223         lt_prog_compiler_can_build_shared_CXX=no
14224         ;;
14225     esac
14226   fi
14227
14228 case $host_os in
14229   # For platforms which do not support PIC, -DPIC is meaningless:
14230   *djgpp*)
14231     lt_prog_compiler_pic_CXX=
14232     ;;
14233   *)
14234     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14235     ;;
14236 esac
14237
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14239 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14240 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14241   $as_echo_n "(cached) " >&6
14242 else
14243   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14246 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14247 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14248
14249 #
14250 # Check to make sure the PIC flag actually works.
14251 #
14252 if test -n "$lt_prog_compiler_pic_CXX"; then
14253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14255 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14256   $as_echo_n "(cached) " >&6
14257 else
14258   lt_cv_prog_compiler_pic_works_CXX=no
14259    ac_outfile=conftest.$ac_objext
14260    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14261    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14262    # Insert the option either (1) after the last *FLAGS variable, or
14263    # (2) before a word containing "conftest.", or (3) at the end.
14264    # Note that $ac_compile itself does not contain backslashes and begins
14265    # with a dollar sign (not a hyphen), so the echo should work correctly.
14266    # The option is referenced via a variable to avoid confusing sed.
14267    lt_compile=`echo "$ac_compile" | $SED \
14268    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14270    -e 's:$: $lt_compiler_flag:'`
14271    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14272    (eval "$lt_compile" 2>conftest.err)
14273    ac_status=$?
14274    cat conftest.err >&5
14275    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276    if (exit $ac_status) && test -s "$ac_outfile"; then
14277      # The compiler can only warn and ignore the option if not recognized
14278      # So say no if there are warnings other than the usual output.
14279      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14280      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14282        lt_cv_prog_compiler_pic_works_CXX=yes
14283      fi
14284    fi
14285    $RM conftest*
14286
14287 fi
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14289 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14290
14291 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14292     case $lt_prog_compiler_pic_CXX in
14293      "" | " "*) ;;
14294      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14295      esac
14296 else
14297     lt_prog_compiler_pic_CXX=
14298      lt_prog_compiler_can_build_shared_CXX=no
14299 fi
14300
14301 fi
14302
14303
14304
14305
14306
14307 #
14308 # Check to make sure the static flag actually works.
14309 #
14310 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14313 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   lt_cv_prog_compiler_static_works_CXX=no
14317    save_LDFLAGS="$LDFLAGS"
14318    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14319    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14320    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14321      # The linker can only warn and ignore the option if not recognized
14322      # So say no if there are warnings
14323      if test -s conftest.err; then
14324        # Append any errors to the config.log.
14325        cat conftest.err 1>&5
14326        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14327        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14328        if diff conftest.exp conftest.er2 >/dev/null; then
14329          lt_cv_prog_compiler_static_works_CXX=yes
14330        fi
14331      else
14332        lt_cv_prog_compiler_static_works_CXX=yes
14333      fi
14334    fi
14335    $RM -r conftest*
14336    LDFLAGS="$save_LDFLAGS"
14337
14338 fi
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14340 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14341
14342 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14343     :
14344 else
14345     lt_prog_compiler_static_CXX=
14346 fi
14347
14348
14349
14350
14351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14353 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14354   $as_echo_n "(cached) " >&6
14355 else
14356   lt_cv_prog_compiler_c_o_CXX=no
14357    $RM -r conftest 2>/dev/null
14358    mkdir conftest
14359    cd conftest
14360    mkdir out
14361    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14362
14363    lt_compiler_flag="-o out/conftest2.$ac_objext"
14364    # Insert the option either (1) after the last *FLAGS variable, or
14365    # (2) before a word containing "conftest.", or (3) at the end.
14366    # Note that $ac_compile itself does not contain backslashes and begins
14367    # with a dollar sign (not a hyphen), so the echo should work correctly.
14368    lt_compile=`echo "$ac_compile" | $SED \
14369    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14370    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14371    -e 's:$: $lt_compiler_flag:'`
14372    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14373    (eval "$lt_compile" 2>out/conftest.err)
14374    ac_status=$?
14375    cat out/conftest.err >&5
14376    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14378    then
14379      # The compiler can only warn and ignore the option if not recognized
14380      # So say no if there are warnings
14381      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14382      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14383      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14384        lt_cv_prog_compiler_c_o_CXX=yes
14385      fi
14386    fi
14387    chmod u+w . 2>&5
14388    $RM conftest*
14389    # SGI C++ compiler will create directory out/ii_files/ for
14390    # template instantiation
14391    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14392    $RM out/* && rmdir out
14393    cd ..
14394    $RM -r conftest
14395    $RM conftest*
14396
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14400
14401
14402
14403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14405 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14406   $as_echo_n "(cached) " >&6
14407 else
14408   lt_cv_prog_compiler_c_o_CXX=no
14409    $RM -r conftest 2>/dev/null
14410    mkdir conftest
14411    cd conftest
14412    mkdir out
14413    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414
14415    lt_compiler_flag="-o out/conftest2.$ac_objext"
14416    # Insert the option either (1) after the last *FLAGS variable, or
14417    # (2) before a word containing "conftest.", or (3) at the end.
14418    # Note that $ac_compile itself does not contain backslashes and begins
14419    # with a dollar sign (not a hyphen), so the echo should work correctly.
14420    lt_compile=`echo "$ac_compile" | $SED \
14421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423    -e 's:$: $lt_compiler_flag:'`
14424    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14425    (eval "$lt_compile" 2>out/conftest.err)
14426    ac_status=$?
14427    cat out/conftest.err >&5
14428    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14430    then
14431      # The compiler can only warn and ignore the option if not recognized
14432      # So say no if there are warnings
14433      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14434      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14435      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14436        lt_cv_prog_compiler_c_o_CXX=yes
14437      fi
14438    fi
14439    chmod u+w . 2>&5
14440    $RM conftest*
14441    # SGI C++ compiler will create directory out/ii_files/ for
14442    # template instantiation
14443    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14444    $RM out/* && rmdir out
14445    cd ..
14446    $RM -r conftest
14447    $RM conftest*
14448
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14451 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14452
14453
14454
14455
14456 hard_links="nottested"
14457 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14458   # do not overwrite the value of need_locks provided by the user
14459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14460 $as_echo_n "checking if we can lock with hard links... " >&6; }
14461   hard_links=yes
14462   $RM conftest*
14463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14464   touch conftest.a
14465   ln conftest.a conftest.b 2>&5 || hard_links=no
14466   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14468 $as_echo "$hard_links" >&6; }
14469   if test "$hard_links" = no; then
14470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14472     need_locks=warn
14473   fi
14474 else
14475   need_locks=no
14476 fi
14477
14478
14479
14480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14482
14483   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14484   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14485   case $host_os in
14486   aix[4-9]*)
14487     # If we're using GNU nm, then we don't want the "-C" option.
14488     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14489     # Also, AIX nm treats weak defined symbols like other global defined
14490     # symbols, whereas GNU nm marks them as "W".
14491     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14492       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14493     else
14494       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'
14495     fi
14496     ;;
14497   pw32*)
14498     export_symbols_cmds_CXX="$ltdll_cmds"
14499     ;;
14500   cygwin* | mingw* | cegcc*)
14501     case $cc_basename in
14502     cl*)
14503       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14504       ;;
14505     *)
14506       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14507       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14508       ;;
14509     esac
14510     ;;
14511   linux* | k*bsd*-gnu | gnu*)
14512     link_all_deplibs_CXX=no
14513     ;;
14514   *)
14515     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14516     ;;
14517   esac
14518
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14520 $as_echo "$ld_shlibs_CXX" >&6; }
14521 test "$ld_shlibs_CXX" = no && can_build_shared=no
14522
14523 with_gnu_ld_CXX=$with_gnu_ld
14524
14525
14526
14527
14528
14529
14530 #
14531 # Do we need to explicitly link libc?
14532 #
14533 case "x$archive_cmds_need_lc_CXX" in
14534 x|xyes)
14535   # Assume -lc should be added
14536   archive_cmds_need_lc_CXX=yes
14537
14538   if test "$enable_shared" = yes && test "$GCC" = yes; then
14539     case $archive_cmds_CXX in
14540     *'~'*)
14541       # FIXME: we may have to deal with multi-command sequences.
14542       ;;
14543     '$CC '*)
14544       # Test whether the compiler implicitly links with -lc since on some
14545       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14546       # to ld, don't add -lc before -lgcc.
14547       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14548 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14549 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14550   $as_echo_n "(cached) " >&6
14551 else
14552   $RM conftest*
14553         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14554
14555         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14556   (eval $ac_compile) 2>&5
14557   ac_status=$?
14558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14559   test $ac_status = 0; } 2>conftest.err; then
14560           soname=conftest
14561           lib=conftest
14562           libobjs=conftest.$ac_objext
14563           deplibs=
14564           wl=$lt_prog_compiler_wl_CXX
14565           pic_flag=$lt_prog_compiler_pic_CXX
14566           compiler_flags=-v
14567           linker_flags=-v
14568           verstring=
14569           output_objdir=.
14570           libname=conftest
14571           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14572           allow_undefined_flag_CXX=
14573           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14574   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14575   ac_status=$?
14576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14577   test $ac_status = 0; }
14578           then
14579             lt_cv_archive_cmds_need_lc_CXX=no
14580           else
14581             lt_cv_archive_cmds_need_lc_CXX=yes
14582           fi
14583           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14584         else
14585           cat conftest.err 1>&5
14586         fi
14587         $RM conftest*
14588
14589 fi
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14591 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14592       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14593       ;;
14594     esac
14595   fi
14596   ;;
14597 esac
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14662
14663 library_names_spec=
14664 libname_spec='lib$name'
14665 soname_spec=
14666 shrext_cmds=".so"
14667 postinstall_cmds=
14668 postuninstall_cmds=
14669 finish_cmds=
14670 finish_eval=
14671 shlibpath_var=
14672 shlibpath_overrides_runpath=unknown
14673 version_type=none
14674 dynamic_linker="$host_os ld.so"
14675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14676 need_lib_prefix=unknown
14677 hardcode_into_libs=no
14678
14679 # when you set need_version to no, make sure it does not cause -set_version
14680 # flags to be left without arguments
14681 need_version=unknown
14682
14683 case $host_os in
14684 aix3*)
14685   version_type=linux # correct to gnu/linux during the next big refactor
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14687   shlibpath_var=LIBPATH
14688
14689   # AIX 3 has no versioning support, so we append a major version to the name.
14690   soname_spec='${libname}${release}${shared_ext}$major'
14691   ;;
14692
14693 aix[4-9]*)
14694   version_type=linux # correct to gnu/linux during the next big refactor
14695   need_lib_prefix=no
14696   need_version=no
14697   hardcode_into_libs=yes
14698   if test "$host_cpu" = ia64; then
14699     # AIX 5 supports IA64
14700     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14701     shlibpath_var=LD_LIBRARY_PATH
14702   else
14703     # With GCC up to 2.95.x, collect2 would create an import file
14704     # for dependence libraries.  The import file would start with
14705     # the line `#! .'.  This would cause the generated library to
14706     # depend on `.', always an invalid library.  This was fixed in
14707     # development snapshots of GCC prior to 3.0.
14708     case $host_os in
14709       aix4 | aix4.[01] | aix4.[01].*)
14710       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14711            echo ' yes '
14712            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14713         :
14714       else
14715         can_build_shared=no
14716       fi
14717       ;;
14718     esac
14719     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14720     # soname into executable. Probably we can add versioning support to
14721     # collect2, so additional links can be useful in future.
14722     if test "$aix_use_runtimelinking" = yes; then
14723       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14724       # instead of lib<name>.a to let people know that these are not
14725       # typical AIX shared libraries.
14726       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727     else
14728       # We preserve .a as extension for shared libraries through AIX4.2
14729       # and later when we are not doing run time linking.
14730       library_names_spec='${libname}${release}.a $libname.a'
14731       soname_spec='${libname}${release}${shared_ext}$major'
14732     fi
14733     shlibpath_var=LIBPATH
14734   fi
14735   ;;
14736
14737 amigaos*)
14738   case $host_cpu in
14739   powerpc)
14740     # Since July 2007 AmigaOS4 officially supports .so libraries.
14741     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743     ;;
14744   m68k)
14745     library_names_spec='$libname.ixlibrary $libname.a'
14746     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14747     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14748     ;;
14749   esac
14750   ;;
14751
14752 beos*)
14753   library_names_spec='${libname}${shared_ext}'
14754   dynamic_linker="$host_os ld.so"
14755   shlibpath_var=LIBRARY_PATH
14756   ;;
14757
14758 bsdi[45]*)
14759   version_type=linux # correct to gnu/linux during the next big refactor
14760   need_version=no
14761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762   soname_spec='${libname}${release}${shared_ext}$major'
14763   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14764   shlibpath_var=LD_LIBRARY_PATH
14765   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14766   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14767   # the default ld.so.conf also contains /usr/contrib/lib and
14768   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14769   # libtool to hard-code these into programs
14770   ;;
14771
14772 cygwin* | mingw* | pw32* | cegcc*)
14773   version_type=windows
14774   shrext_cmds=".dll"
14775   need_version=no
14776   need_lib_prefix=no
14777
14778   case $GCC,$cc_basename in
14779   yes,*)
14780     # gcc
14781     library_names_spec='$libname.dll.a'
14782     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14783     postinstall_cmds='base_file=`basename \${file}`~
14784       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14785       dldir=$destdir/`dirname \$dlpath`~
14786       test -d \$dldir || mkdir -p \$dldir~
14787       $install_prog $dir/$dlname \$dldir/$dlname~
14788       chmod a+x \$dldir/$dlname~
14789       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14790         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14791       fi'
14792     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14793       dlpath=$dir/\$dldll~
14794        $RM \$dlpath'
14795     shlibpath_overrides_runpath=yes
14796
14797     case $host_os in
14798     cygwin*)
14799       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14800       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14801
14802       ;;
14803     mingw* | cegcc*)
14804       # MinGW DLLs use traditional 'lib' prefix
14805       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14806       ;;
14807     pw32*)
14808       # pw32 DLLs use 'pw' prefix rather than 'lib'
14809       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14810       ;;
14811     esac
14812     dynamic_linker='Win32 ld.exe'
14813     ;;
14814
14815   *,cl*)
14816     # Native MSVC
14817     libname_spec='$name'
14818     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14819     library_names_spec='${libname}.dll.lib'
14820
14821     case $build_os in
14822     mingw*)
14823       sys_lib_search_path_spec=
14824       lt_save_ifs=$IFS
14825       IFS=';'
14826       for lt_path in $LIB
14827       do
14828         IFS=$lt_save_ifs
14829         # Let DOS variable expansion print the short 8.3 style file name.
14830         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14831         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14832       done
14833       IFS=$lt_save_ifs
14834       # Convert to MSYS style.
14835       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14836       ;;
14837     cygwin*)
14838       # Convert to unix form, then to dos form, then back to unix form
14839       # but this time dos style (no spaces!) so that the unix form looks
14840       # like /cygdrive/c/PROGRA~1:/cygdr...
14841       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14842       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14843       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14844       ;;
14845     *)
14846       sys_lib_search_path_spec="$LIB"
14847       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14848         # It is most probably a Windows format PATH.
14849         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14850       else
14851         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14852       fi
14853       # FIXME: find the short name or the path components, as spaces are
14854       # common. (e.g. "Program Files" -> "PROGRA~1")
14855       ;;
14856     esac
14857
14858     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14859     postinstall_cmds='base_file=`basename \${file}`~
14860       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14861       dldir=$destdir/`dirname \$dlpath`~
14862       test -d \$dldir || mkdir -p \$dldir~
14863       $install_prog $dir/$dlname \$dldir/$dlname'
14864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14865       dlpath=$dir/\$dldll~
14866        $RM \$dlpath'
14867     shlibpath_overrides_runpath=yes
14868     dynamic_linker='Win32 link.exe'
14869     ;;
14870
14871   *)
14872     # Assume MSVC wrapper
14873     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14874     dynamic_linker='Win32 ld.exe'
14875     ;;
14876   esac
14877   # FIXME: first we should search . and the directory the executable is in
14878   shlibpath_var=PATH
14879   ;;
14880
14881 darwin* | rhapsody*)
14882   dynamic_linker="$host_os dyld"
14883   version_type=darwin
14884   need_lib_prefix=no
14885   need_version=no
14886   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14887   soname_spec='${libname}${release}${major}$shared_ext'
14888   shlibpath_overrides_runpath=yes
14889   shlibpath_var=DYLD_LIBRARY_PATH
14890   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14891
14892   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14893   ;;
14894
14895 dgux*)
14896   version_type=linux # correct to gnu/linux during the next big refactor
14897   need_lib_prefix=no
14898   need_version=no
14899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14900   soname_spec='${libname}${release}${shared_ext}$major'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   ;;
14903
14904 freebsd* | dragonfly*)
14905   # DragonFly does not have aout.  When/if they implement a new
14906   # versioning mechanism, adjust this.
14907   if test -x /usr/bin/objformat; then
14908     objformat=`/usr/bin/objformat`
14909   else
14910     case $host_os in
14911     freebsd[23].*) objformat=aout ;;
14912     *) objformat=elf ;;
14913     esac
14914   fi
14915   version_type=freebsd-$objformat
14916   case $version_type in
14917     freebsd-elf*)
14918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14919       need_version=no
14920       need_lib_prefix=no
14921       ;;
14922     freebsd-*)
14923       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14924       need_version=yes
14925       ;;
14926   esac
14927   shlibpath_var=LD_LIBRARY_PATH
14928   case $host_os in
14929   freebsd2.*)
14930     shlibpath_overrides_runpath=yes
14931     ;;
14932   freebsd3.[01]* | freebsdelf3.[01]*)
14933     shlibpath_overrides_runpath=yes
14934     hardcode_into_libs=yes
14935     ;;
14936   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14937   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14938     shlibpath_overrides_runpath=no
14939     hardcode_into_libs=yes
14940     ;;
14941   *) # from 4.6 on, and DragonFly
14942     shlibpath_overrides_runpath=yes
14943     hardcode_into_libs=yes
14944     ;;
14945   esac
14946   ;;
14947
14948 gnu*)
14949   version_type=linux # correct to gnu/linux during the next big refactor
14950   need_lib_prefix=no
14951   need_version=no
14952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14953   soname_spec='${libname}${release}${shared_ext}$major'
14954   shlibpath_var=LD_LIBRARY_PATH
14955   shlibpath_overrides_runpath=no
14956   hardcode_into_libs=yes
14957   ;;
14958
14959 haiku*)
14960   version_type=linux # correct to gnu/linux during the next big refactor
14961   need_lib_prefix=no
14962   need_version=no
14963   dynamic_linker="$host_os runtime_loader"
14964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14965   soname_spec='${libname}${release}${shared_ext}$major'
14966   shlibpath_var=LIBRARY_PATH
14967   shlibpath_overrides_runpath=yes
14968   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14969   hardcode_into_libs=yes
14970   ;;
14971
14972 hpux9* | hpux10* | hpux11*)
14973   # Give a soname corresponding to the major version so that dld.sl refuses to
14974   # link against other versions.
14975   version_type=sunos
14976   need_lib_prefix=no
14977   need_version=no
14978   case $host_cpu in
14979   ia64*)
14980     shrext_cmds='.so'
14981     hardcode_into_libs=yes
14982     dynamic_linker="$host_os dld.so"
14983     shlibpath_var=LD_LIBRARY_PATH
14984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986     soname_spec='${libname}${release}${shared_ext}$major'
14987     if test "X$HPUX_IA64_MODE" = X32; then
14988       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14989     else
14990       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14991     fi
14992     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14993     ;;
14994   hppa*64*)
14995     shrext_cmds='.sl'
14996     hardcode_into_libs=yes
14997     dynamic_linker="$host_os dld.sl"
14998     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14999     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001     soname_spec='${libname}${release}${shared_ext}$major'
15002     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15003     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15004     ;;
15005   *)
15006     shrext_cmds='.sl'
15007     dynamic_linker="$host_os dld.sl"
15008     shlibpath_var=SHLIB_PATH
15009     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011     soname_spec='${libname}${release}${shared_ext}$major'
15012     ;;
15013   esac
15014   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15015   postinstall_cmds='chmod 555 $lib'
15016   # or fails outright, so override atomically:
15017   install_override_mode=555
15018   ;;
15019
15020 interix[3-9]*)
15021   version_type=linux # correct to gnu/linux during the next big refactor
15022   need_lib_prefix=no
15023   need_version=no
15024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15025   soname_spec='${libname}${release}${shared_ext}$major'
15026   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15027   shlibpath_var=LD_LIBRARY_PATH
15028   shlibpath_overrides_runpath=no
15029   hardcode_into_libs=yes
15030   ;;
15031
15032 irix5* | irix6* | nonstopux*)
15033   case $host_os in
15034     nonstopux*) version_type=nonstopux ;;
15035     *)
15036         if test "$lt_cv_prog_gnu_ld" = yes; then
15037                 version_type=linux # correct to gnu/linux during the next big refactor
15038         else
15039                 version_type=irix
15040         fi ;;
15041   esac
15042   need_lib_prefix=no
15043   need_version=no
15044   soname_spec='${libname}${release}${shared_ext}$major'
15045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15046   case $host_os in
15047   irix5* | nonstopux*)
15048     libsuff= shlibsuff=
15049     ;;
15050   *)
15051     case $LD in # libtool.m4 will add one of these switches to LD
15052     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15053       libsuff= shlibsuff= libmagic=32-bit;;
15054     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15055       libsuff=32 shlibsuff=N32 libmagic=N32;;
15056     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15057       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15058     *) libsuff= shlibsuff= libmagic=never-match;;
15059     esac
15060     ;;
15061   esac
15062   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15063   shlibpath_overrides_runpath=no
15064   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15065   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15066   hardcode_into_libs=yes
15067   ;;
15068
15069 # No shared lib support for Linux oldld, aout, or coff.
15070 linux*oldld* | linux*aout* | linux*coff*)
15071   dynamic_linker=no
15072   ;;
15073
15074 # This must be glibc/ELF.
15075 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15076   version_type=linux # correct to gnu/linux during the next big refactor
15077   need_lib_prefix=no
15078   need_version=no
15079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080   soname_spec='${libname}${release}${shared_ext}$major'
15081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15082   shlibpath_var=LD_LIBRARY_PATH
15083   shlibpath_overrides_runpath=no
15084
15085   # Some binutils ld are patched to set DT_RUNPATH
15086   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15087   $as_echo_n "(cached) " >&6
15088 else
15089   lt_cv_shlibpath_overrides_runpath=no
15090     save_LDFLAGS=$LDFLAGS
15091     save_libdir=$libdir
15092     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15093          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h.  */
15096
15097 int
15098 main ()
15099 {
15100
15101   ;
15102   return 0;
15103 }
15104 _ACEOF
15105 if ac_fn_cxx_try_link "$LINENO"; then :
15106   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15107   lt_cv_shlibpath_overrides_runpath=yes
15108 fi
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext \
15111     conftest$ac_exeext conftest.$ac_ext
15112     LDFLAGS=$save_LDFLAGS
15113     libdir=$save_libdir
15114
15115 fi
15116
15117   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15118
15119   # This implies no fast_install, which is unacceptable.
15120   # Some rework will be needed to allow for fast_install
15121   # before this can be enabled.
15122   hardcode_into_libs=yes
15123
15124   # Append ld.so.conf contents to the search path
15125   if test -f /etc/ld.so.conf; then
15126     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15127     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15128   fi
15129
15130   # We used to test for /lib/ld.so.1 and disable shared libraries on
15131   # powerpc, because MkLinux only supported shared libraries with the
15132   # GNU dynamic linker.  Since this was broken with cross compilers,
15133   # most powerpc-linux boxes support dynamic linking these days and
15134   # people can always --disable-shared, the test was removed, and we
15135   # assume the GNU/Linux dynamic linker is in use.
15136   dynamic_linker='GNU/Linux ld.so'
15137   ;;
15138
15139 netbsdelf*-gnu)
15140   version_type=linux
15141   need_lib_prefix=no
15142   need_version=no
15143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15144   soname_spec='${libname}${release}${shared_ext}$major'
15145   shlibpath_var=LD_LIBRARY_PATH
15146   shlibpath_overrides_runpath=no
15147   hardcode_into_libs=yes
15148   dynamic_linker='NetBSD ld.elf_so'
15149   ;;
15150
15151 netbsd*)
15152   version_type=sunos
15153   need_lib_prefix=no
15154   need_version=no
15155   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15157     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15158     dynamic_linker='NetBSD (a.out) ld.so'
15159   else
15160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15161     soname_spec='${libname}${release}${shared_ext}$major'
15162     dynamic_linker='NetBSD ld.elf_so'
15163   fi
15164   shlibpath_var=LD_LIBRARY_PATH
15165   shlibpath_overrides_runpath=yes
15166   hardcode_into_libs=yes
15167   ;;
15168
15169 newsos6)
15170   version_type=linux # correct to gnu/linux during the next big refactor
15171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   shlibpath_overrides_runpath=yes
15174   ;;
15175
15176 *nto* | *qnx*)
15177   version_type=qnx
15178   need_lib_prefix=no
15179   need_version=no
15180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181   soname_spec='${libname}${release}${shared_ext}$major'
15182   shlibpath_var=LD_LIBRARY_PATH
15183   shlibpath_overrides_runpath=no
15184   hardcode_into_libs=yes
15185   dynamic_linker='ldqnx.so'
15186   ;;
15187
15188 openbsd*)
15189   version_type=sunos
15190   sys_lib_dlsearch_path_spec="/usr/lib"
15191   need_lib_prefix=no
15192   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15193   case $host_os in
15194     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15195     *)                          need_version=no  ;;
15196   esac
15197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15198   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15199   shlibpath_var=LD_LIBRARY_PATH
15200   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15201     case $host_os in
15202       openbsd2.[89] | openbsd2.[89].*)
15203         shlibpath_overrides_runpath=no
15204         ;;
15205       *)
15206         shlibpath_overrides_runpath=yes
15207         ;;
15208       esac
15209   else
15210     shlibpath_overrides_runpath=yes
15211   fi
15212   ;;
15213
15214 os2*)
15215   libname_spec='$name'
15216   shrext_cmds=".dll"
15217   need_lib_prefix=no
15218   library_names_spec='$libname${shared_ext} $libname.a'
15219   dynamic_linker='OS/2 ld.exe'
15220   shlibpath_var=LIBPATH
15221   ;;
15222
15223 osf3* | osf4* | osf5*)
15224   version_type=osf
15225   need_lib_prefix=no
15226   need_version=no
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229   shlibpath_var=LD_LIBRARY_PATH
15230   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15231   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15232   ;;
15233
15234 rdos*)
15235   dynamic_linker=no
15236   ;;
15237
15238 solaris*)
15239   version_type=linux # correct to gnu/linux during the next big refactor
15240   need_lib_prefix=no
15241   need_version=no
15242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243   soname_spec='${libname}${release}${shared_ext}$major'
15244   shlibpath_var=LD_LIBRARY_PATH
15245   shlibpath_overrides_runpath=yes
15246   hardcode_into_libs=yes
15247   # ldd complains unless libraries are executable
15248   postinstall_cmds='chmod +x $lib'
15249   ;;
15250
15251 sunos4*)
15252   version_type=sunos
15253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15254   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15255   shlibpath_var=LD_LIBRARY_PATH
15256   shlibpath_overrides_runpath=yes
15257   if test "$with_gnu_ld" = yes; then
15258     need_lib_prefix=no
15259   fi
15260   need_version=yes
15261   ;;
15262
15263 sysv4 | sysv4.3*)
15264   version_type=linux # correct to gnu/linux during the next big refactor
15265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266   soname_spec='${libname}${release}${shared_ext}$major'
15267   shlibpath_var=LD_LIBRARY_PATH
15268   case $host_vendor in
15269     sni)
15270       shlibpath_overrides_runpath=no
15271       need_lib_prefix=no
15272       runpath_var=LD_RUN_PATH
15273       ;;
15274     siemens)
15275       need_lib_prefix=no
15276       ;;
15277     motorola)
15278       need_lib_prefix=no
15279       need_version=no
15280       shlibpath_overrides_runpath=no
15281       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15282       ;;
15283   esac
15284   ;;
15285
15286 sysv4*MP*)
15287   if test -d /usr/nec ;then
15288     version_type=linux # correct to gnu/linux during the next big refactor
15289     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15290     soname_spec='$libname${shared_ext}.$major'
15291     shlibpath_var=LD_LIBRARY_PATH
15292   fi
15293   ;;
15294
15295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15296   version_type=freebsd-elf
15297   need_lib_prefix=no
15298   need_version=no
15299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15300   soname_spec='${libname}${release}${shared_ext}$major'
15301   shlibpath_var=LD_LIBRARY_PATH
15302   shlibpath_overrides_runpath=yes
15303   hardcode_into_libs=yes
15304   if test "$with_gnu_ld" = yes; then
15305     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15306   else
15307     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15308     case $host_os in
15309       sco3.2v5*)
15310         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15311         ;;
15312     esac
15313   fi
15314   sys_lib_dlsearch_path_spec='/usr/lib'
15315   ;;
15316
15317 tpf*)
15318   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15319   version_type=linux # correct to gnu/linux during the next big refactor
15320   need_lib_prefix=no
15321   need_version=no
15322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323   shlibpath_var=LD_LIBRARY_PATH
15324   shlibpath_overrides_runpath=no
15325   hardcode_into_libs=yes
15326   ;;
15327
15328 uts4*)
15329   version_type=linux # correct to gnu/linux during the next big refactor
15330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331   soname_spec='${libname}${release}${shared_ext}$major'
15332   shlibpath_var=LD_LIBRARY_PATH
15333   ;;
15334
15335 *)
15336   dynamic_linker=no
15337   ;;
15338 esac
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15340 $as_echo "$dynamic_linker" >&6; }
15341 test "$dynamic_linker" = no && can_build_shared=no
15342
15343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15344 if test "$GCC" = yes; then
15345   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15346 fi
15347
15348 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15349   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15350 fi
15351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15352   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15353 fi
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15393 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15394 hardcode_action_CXX=
15395 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15396    test -n "$runpath_var_CXX" ||
15397    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15398
15399   # We can hardcode non-existent directories.
15400   if test "$hardcode_direct_CXX" != no &&
15401      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15402      # have to relink, otherwise we might link with an installed library
15403      # when we should be linking with a yet-to-be-installed one
15404      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15405      test "$hardcode_minus_L_CXX" != no; then
15406     # Linking always hardcodes the temporary library directory.
15407     hardcode_action_CXX=relink
15408   else
15409     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15410     hardcode_action_CXX=immediate
15411   fi
15412 else
15413   # We cannot hardcode anything, or else we can only hardcode existing
15414   # directories.
15415   hardcode_action_CXX=unsupported
15416 fi
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15418 $as_echo "$hardcode_action_CXX" >&6; }
15419
15420 if test "$hardcode_action_CXX" = relink ||
15421    test "$inherit_rpath_CXX" = yes; then
15422   # Fast installation is not supported
15423   enable_fast_install=no
15424 elif test "$shlibpath_overrides_runpath" = yes ||
15425      test "$enable_shared" = no; then
15426   # Fast installation is not necessary
15427   enable_fast_install=needless
15428 fi
15429
15430
15431
15432
15433
15434
15435
15436   fi # test -n "$compiler"
15437
15438   CC=$lt_save_CC
15439   CFLAGS=$lt_save_CFLAGS
15440   LDCXX=$LD
15441   LD=$lt_save_LD
15442   GCC=$lt_save_GCC
15443   with_gnu_ld=$lt_save_with_gnu_ld
15444   lt_cv_path_LDCXX=$lt_cv_path_LD
15445   lt_cv_path_LD=$lt_save_path_LD
15446   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15447   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15448 fi # test "$_lt_caught_CXX_error" != yes
15449
15450 ac_ext=c
15451 ac_cpp='$CPP $CPPFLAGS'
15452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470         ac_config_commands="$ac_config_commands libtool"
15471
15472
15473
15474
15475 # Only expand once:
15476
15477
15478
15479
15480 # Checks for libraries.
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
15482 $as_echo_n "checking for main in -lm... " >&6; }
15483 if ${ac_cv_lib_m_main+:} false; then :
15484   $as_echo_n "(cached) " >&6
15485 else
15486   ac_check_lib_save_LIBS=$LIBS
15487 LIBS="-lm  $LIBS"
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h.  */
15490
15491
15492 int
15493 main ()
15494 {
15495 return main ();
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 if ac_fn_c_try_link "$LINENO"; then :
15501   ac_cv_lib_m_main=yes
15502 else
15503   ac_cv_lib_m_main=no
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext \
15506     conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS
15508 fi
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
15510 $as_echo "$ac_cv_lib_m_main" >&6; }
15511 if test "x$ac_cv_lib_m_main" = xyes; then :
15512   cat >>confdefs.h <<_ACEOF
15513 #define HAVE_LIBM 1
15514 _ACEOF
15515
15516   LIBS="-lm $LIBS"
15517
15518 fi
15519
15520
15521 # Checks for header files.
15522 for ac_header in stdint.h stdlib.h string.h
15523 do :
15524   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15525 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15527   cat >>confdefs.h <<_ACEOF
15528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15529 _ACEOF
15530
15531 fi
15532
15533 done
15534
15535
15536 # Checks for typedefs, structures, and compiler characteristics.
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15538 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15539 if ${ac_cv_header_stdbool_h+:} false; then :
15540   $as_echo_n "(cached) " >&6
15541 else
15542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h.  */
15544
15545 #include <stdbool.h>
15546 #ifndef bool
15547  "error: bool is not defined"
15548 #endif
15549 #ifndef false
15550  "error: false is not defined"
15551 #endif
15552 #if false
15553  "error: false is not 0"
15554 #endif
15555 #ifndef true
15556  "error: true is not defined"
15557 #endif
15558 #if true != 1
15559  "error: true is not 1"
15560 #endif
15561 #ifndef __bool_true_false_are_defined
15562  "error: __bool_true_false_are_defined is not defined"
15563 #endif
15564
15565         struct s { _Bool s: 1; _Bool t; } s;
15566
15567         char a[true == 1 ? 1 : -1];
15568         char b[false == 0 ? 1 : -1];
15569         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15570         char d[(bool) 0.5 == true ? 1 : -1];
15571         /* See body of main program for 'e'.  */
15572         char f[(_Bool) 0.0 == false ? 1 : -1];
15573         char g[true];
15574         char h[sizeof (_Bool)];
15575         char i[sizeof s.t];
15576         enum { j = false, k = true, l = false * true, m = true * 256 };
15577         /* The following fails for
15578            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15579         _Bool n[m];
15580         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15581         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15582         /* Catch a bug in an HP-UX C compiler.  See
15583            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15584            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15585          */
15586         _Bool q = true;
15587         _Bool *pq = &q;
15588
15589 int
15590 main ()
15591 {
15592
15593         bool e = &s;
15594         *pq |= q;
15595         *pq |= ! q;
15596         /* Refer to every declared value, to avoid compiler optimizations.  */
15597         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15598                 + !m + !n + !o + !p + !q + !pq);
15599
15600   ;
15601   return 0;
15602 }
15603 _ACEOF
15604 if ac_fn_c_try_compile "$LINENO"; then :
15605   ac_cv_header_stdbool_h=yes
15606 else
15607   ac_cv_header_stdbool_h=no
15608 fi
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15610 fi
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15612 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15613 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15614 if test "x$ac_cv_type__Bool" = xyes; then :
15615
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE__BOOL 1
15618 _ACEOF
15619
15620
15621 fi
15622
15623 if test $ac_cv_header_stdbool_h = yes; then
15624
15625 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15626
15627 fi
15628
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15630 $as_echo_n "checking for inline... " >&6; }
15631 if ${ac_cv_c_inline+:} false; then :
15632   $as_echo_n "(cached) " >&6
15633 else
15634   ac_cv_c_inline=no
15635 for ac_kw in inline __inline__ __inline; do
15636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h.  */
15638 #ifndef __cplusplus
15639 typedef int foo_t;
15640 static $ac_kw foo_t static_foo () {return 0; }
15641 $ac_kw foo_t foo () {return 0; }
15642 #endif
15643
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646   ac_cv_c_inline=$ac_kw
15647 fi
15648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15649   test "$ac_cv_c_inline" != no && break
15650 done
15651
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15654 $as_echo "$ac_cv_c_inline" >&6; }
15655
15656 case $ac_cv_c_inline in
15657   inline | yes) ;;
15658   *)
15659     case $ac_cv_c_inline in
15660       no) ac_val=;;
15661       *) ac_val=$ac_cv_c_inline;;
15662     esac
15663     cat >>confdefs.h <<_ACEOF
15664 #ifndef __cplusplus
15665 #define inline $ac_val
15666 #endif
15667 _ACEOF
15668     ;;
15669 esac
15670
15671 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
15672 case $ac_cv_c_int16_t in #(
15673   no|yes) ;; #(
15674   *)
15675
15676 cat >>confdefs.h <<_ACEOF
15677 #define int16_t $ac_cv_c_int16_t
15678 _ACEOF
15679 ;;
15680 esac
15681
15682 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
15683 case $ac_cv_c_int32_t in #(
15684   no|yes) ;; #(
15685   *)
15686
15687 cat >>confdefs.h <<_ACEOF
15688 #define int32_t $ac_cv_c_int32_t
15689 _ACEOF
15690 ;;
15691 esac
15692
15693 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15694 case $ac_cv_c_int64_t in #(
15695   no|yes) ;; #(
15696   *)
15697
15698 cat >>confdefs.h <<_ACEOF
15699 #define int64_t $ac_cv_c_int64_t
15700 _ACEOF
15701 ;;
15702 esac
15703
15704 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
15705 case $ac_cv_c_int8_t in #(
15706   no|yes) ;; #(
15707   *)
15708
15709 cat >>confdefs.h <<_ACEOF
15710 #define int8_t $ac_cv_c_int8_t
15711 _ACEOF
15712 ;;
15713 esac
15714
15715 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
15716 case $ac_cv_c_uint16_t in #(
15717   no|yes) ;; #(
15718   *)
15719
15720
15721 cat >>confdefs.h <<_ACEOF
15722 #define uint16_t $ac_cv_c_uint16_t
15723 _ACEOF
15724 ;;
15725   esac
15726
15727 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15728 case $ac_cv_c_uint32_t in #(
15729   no|yes) ;; #(
15730   *)
15731
15732 $as_echo "#define _UINT32_T 1" >>confdefs.h
15733
15734
15735 cat >>confdefs.h <<_ACEOF
15736 #define uint32_t $ac_cv_c_uint32_t
15737 _ACEOF
15738 ;;
15739   esac
15740
15741 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15742 case $ac_cv_c_uint64_t in #(
15743   no|yes) ;; #(
15744   *)
15745
15746 $as_echo "#define _UINT64_T 1" >>confdefs.h
15747
15748
15749 cat >>confdefs.h <<_ACEOF
15750 #define uint64_t $ac_cv_c_uint64_t
15751 _ACEOF
15752 ;;
15753   esac
15754
15755 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
15756 case $ac_cv_c_uint8_t in #(
15757   no|yes) ;; #(
15758   *)
15759
15760 $as_echo "#define _UINT8_T 1" >>confdefs.h
15761
15762
15763 cat >>confdefs.h <<_ACEOF
15764 #define uint8_t $ac_cv_c_uint8_t
15765 _ACEOF
15766 ;;
15767   esac
15768
15769
15770 # Checks for library functions.
15771 for ac_header in stdlib.h
15772 do :
15773   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15774 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15775   cat >>confdefs.h <<_ACEOF
15776 #define HAVE_STDLIB_H 1
15777 _ACEOF
15778
15779 fi
15780
15781 done
15782
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15784 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15785 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15786   $as_echo_n "(cached) " >&6
15787 else
15788   if test "$cross_compiling" = yes; then :
15789   ac_cv_func_malloc_0_nonnull=no
15790 else
15791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h.  */
15793 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15794 # include <stdlib.h>
15795 #else
15796 char *malloc ();
15797 #endif
15798
15799 int
15800 main ()
15801 {
15802 return ! malloc (0);
15803   ;
15804   return 0;
15805 }
15806 _ACEOF
15807 if ac_fn_c_try_run "$LINENO"; then :
15808   ac_cv_func_malloc_0_nonnull=yes
15809 else
15810   ac_cv_func_malloc_0_nonnull=no
15811 fi
15812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15813   conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 fi
15815
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15818 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15819 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15820
15821 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15822
15823 else
15824   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15825
15826    case " $LIBOBJS " in
15827   *" malloc.$ac_objext "* ) ;;
15828   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15829  ;;
15830 esac
15831
15832
15833 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15834
15835 fi
15836
15837
15838 for ac_func in memset
15839 do :
15840   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
15841 if test "x$ac_cv_func_memset" = xyes; then :
15842   cat >>confdefs.h <<_ACEOF
15843 #define HAVE_MEMSET 1
15844 _ACEOF
15845
15846 fi
15847 done
15848
15849
15850 # OpenCORE AMR soname version to use
15851 # goes by â€˜current[:revision[:age]]’ with the soname ending up as
15852 # current.age.revision.
15853 OPENCORE_AMRNB_VERSION=0:3:0
15854 OPENCORE_AMRWB_VERSION=0:3:0
15855
15856
15857
15858 ac_config_files="$ac_config_files Makefile amrnb/Makefile amrwb/Makefile test/Makefile amrnb/opencore-amrnb.pc amrwb/opencore-amrwb.pc"
15859
15860 cat >confcache <<\_ACEOF
15861 # This file is a shell script that caches the results of configure
15862 # tests run on this system so they can be shared between configure
15863 # scripts and configure runs, see configure's option --config-cache.
15864 # It is not useful on other systems.  If it contains results you don't
15865 # want to keep, you may remove or edit it.
15866 #
15867 # config.status only pays attention to the cache file if you give it
15868 # the --recheck option to rerun configure.
15869 #
15870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15872 # following values.
15873
15874 _ACEOF
15875
15876 # The following way of writing the cache mishandles newlines in values,
15877 # but we know of no workaround that is simple, portable, and efficient.
15878 # So, we kill variables containing newlines.
15879 # Ultrix sh set writes to stderr and can't be redirected directly,
15880 # and sets the high bit in the cache file unless we assign to the vars.
15881 (
15882   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15883     eval ac_val=\$$ac_var
15884     case $ac_val in #(
15885     *${as_nl}*)
15886       case $ac_var in #(
15887       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15888 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15889       esac
15890       case $ac_var in #(
15891       _ | IFS | as_nl) ;; #(
15892       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15893       *) { eval $ac_var=; unset $ac_var;} ;;
15894       esac ;;
15895     esac
15896   done
15897
15898   (set) 2>&1 |
15899     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15900     *${as_nl}ac_space=\ *)
15901       # `set' does not quote correctly, so add quotes: double-quote
15902       # substitution turns \\\\ into \\, and sed turns \\ into \.
15903       sed -n \
15904         "s/'/'\\\\''/g;
15905           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15906       ;; #(
15907     *)
15908       # `set' quotes correctly as required by POSIX, so do not add quotes.
15909       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15910       ;;
15911     esac |
15912     sort
15913 ) |
15914   sed '
15915      /^ac_cv_env_/b end
15916      t clear
15917      :clear
15918      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15919      t end
15920      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15921      :end' >>confcache
15922 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15923   if test -w "$cache_file"; then
15924     if test "x$cache_file" != "x/dev/null"; then
15925       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15926 $as_echo "$as_me: updating cache $cache_file" >&6;}
15927       if test ! -f "$cache_file" || test -h "$cache_file"; then
15928         cat confcache >"$cache_file"
15929       else
15930         case $cache_file in #(
15931         */* | ?:*)
15932           mv -f confcache "$cache_file"$$ &&
15933           mv -f "$cache_file"$$ "$cache_file" ;; #(
15934         *)
15935           mv -f confcache "$cache_file" ;;
15936         esac
15937       fi
15938     fi
15939   else
15940     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15942   fi
15943 fi
15944 rm -f confcache
15945
15946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15947 # Let make expand exec_prefix.
15948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15949
15950 DEFS=-DHAVE_CONFIG_H
15951
15952 ac_libobjs=
15953 ac_ltlibobjs=
15954 U=
15955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15956   # 1. Remove the extension, and $U if already installed.
15957   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15958   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15959   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15960   #    will be set to the directory where LIBOBJS objects are built.
15961   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15962   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15963 done
15964 LIBOBJS=$ac_libobjs
15965
15966 LTLIBOBJS=$ac_ltlibobjs
15967
15968
15969  if test -n "$EXEEXT"; then
15970   am__EXEEXT_TRUE=
15971   am__EXEEXT_FALSE='#'
15972 else
15973   am__EXEEXT_TRUE='#'
15974   am__EXEEXT_FALSE=
15975 fi
15976
15977 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15978   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15980 fi
15981 if test -z "${COMPILE_AS_C_TRUE}" && test -z "${COMPILE_AS_C_FALSE}"; then
15982   as_fn_error $? "conditional \"COMPILE_AS_C\" was never defined.
15983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15984 fi
15985 if test -z "${GCC_ARMV5_TRUE}" && test -z "${GCC_ARMV5_FALSE}"; then
15986   as_fn_error $? "conditional \"GCC_ARMV5\" was never defined.
15987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15988 fi
15989 if test -z "${AMRNB_ENCODER_TRUE}" && test -z "${AMRNB_ENCODER_FALSE}"; then
15990   as_fn_error $? "conditional \"AMRNB_ENCODER\" was never defined.
15991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15992 fi
15993 if test -z "${AMRNB_DECODER_TRUE}" && test -z "${AMRNB_DECODER_FALSE}"; then
15994   as_fn_error $? "conditional \"AMRNB_DECODER\" was never defined.
15995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15996 fi
15997 if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then
15998   as_fn_error $? "conditional \"EXAMPLES\" was never defined.
15999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16000 fi
16001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16002   as_fn_error $? "conditional \"AMDEP\" was never defined.
16003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16004 fi
16005 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16006   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16008 fi
16009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16010   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16012 fi
16013
16014 : "${CONFIG_STATUS=./config.status}"
16015 ac_write_fail=0
16016 ac_clean_files_save=$ac_clean_files
16017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16019 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16020 as_write_fail=0
16021 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16022 #! $SHELL
16023 # Generated by $as_me.
16024 # Run this file to recreate the current configuration.
16025 # Compiler output produced by configure, useful for debugging
16026 # configure, is in config.log if it exists.
16027
16028 debug=false
16029 ac_cs_recheck=false
16030 ac_cs_silent=false
16031
16032 SHELL=\${CONFIG_SHELL-$SHELL}
16033 export SHELL
16034 _ASEOF
16035 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16036 ## -------------------- ##
16037 ## M4sh Initialization. ##
16038 ## -------------------- ##
16039
16040 # Be more Bourne compatible
16041 DUALCASE=1; export DUALCASE # for MKS sh
16042 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16043   emulate sh
16044   NULLCMD=:
16045   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16046   # is contrary to our usage.  Disable this feature.
16047   alias -g '${1+"$@"}'='"$@"'
16048   setopt NO_GLOB_SUBST
16049 else
16050   case `(set -o) 2>/dev/null` in #(
16051   *posix*) :
16052     set -o posix ;; #(
16053   *) :
16054      ;;
16055 esac
16056 fi
16057
16058
16059 as_nl='
16060 '
16061 export as_nl
16062 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16063 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16066 # Prefer a ksh shell builtin over an external printf program on Solaris,
16067 # but without wasting forks for bash or zsh.
16068 if test -z "$BASH_VERSION$ZSH_VERSION" \
16069     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16070   as_echo='print -r --'
16071   as_echo_n='print -rn --'
16072 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16073   as_echo='printf %s\n'
16074   as_echo_n='printf %s'
16075 else
16076   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16077     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16078     as_echo_n='/usr/ucb/echo -n'
16079   else
16080     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16081     as_echo_n_body='eval
16082       arg=$1;
16083       case $arg in #(
16084       *"$as_nl"*)
16085         expr "X$arg" : "X\\(.*\\)$as_nl";
16086         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16087       esac;
16088       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16089     '
16090     export as_echo_n_body
16091     as_echo_n='sh -c $as_echo_n_body as_echo'
16092   fi
16093   export as_echo_body
16094   as_echo='sh -c $as_echo_body as_echo'
16095 fi
16096
16097 # The user is always right.
16098 if test "${PATH_SEPARATOR+set}" != set; then
16099   PATH_SEPARATOR=:
16100   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16101     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16102       PATH_SEPARATOR=';'
16103   }
16104 fi
16105
16106
16107 # IFS
16108 # We need space, tab and new line, in precisely that order.  Quoting is
16109 # there to prevent editors from complaining about space-tab.
16110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16111 # splitting by setting IFS to empty value.)
16112 IFS=" ""        $as_nl"
16113
16114 # Find who we are.  Look in the path if we contain no directory separator.
16115 as_myself=
16116 case $0 in #((
16117   *[\\/]* ) as_myself=$0 ;;
16118   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16119 for as_dir in $PATH
16120 do
16121   IFS=$as_save_IFS
16122   test -z "$as_dir" && as_dir=.
16123     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16124   done
16125 IFS=$as_save_IFS
16126
16127      ;;
16128 esac
16129 # We did not find ourselves, most probably we were run as `sh COMMAND'
16130 # in which case we are not to be found in the path.
16131 if test "x$as_myself" = x; then
16132   as_myself=$0
16133 fi
16134 if test ! -f "$as_myself"; then
16135   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16136   exit 1
16137 fi
16138
16139 # Unset variables that we do not need and which cause bugs (e.g. in
16140 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16141 # suppresses any "Segmentation fault" message there.  '((' could
16142 # trigger a bug in pdksh 5.2.14.
16143 for as_var in BASH_ENV ENV MAIL MAILPATH
16144 do eval test x\${$as_var+set} = xset \
16145   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16146 done
16147 PS1='$ '
16148 PS2='> '
16149 PS4='+ '
16150
16151 # NLS nuisances.
16152 LC_ALL=C
16153 export LC_ALL
16154 LANGUAGE=C
16155 export LANGUAGE
16156
16157 # CDPATH.
16158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16159
16160
16161 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16162 # ----------------------------------------
16163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16165 # script with STATUS, using 1 if that was 0.
16166 as_fn_error ()
16167 {
16168   as_status=$1; test $as_status -eq 0 && as_status=1
16169   if test "$4"; then
16170     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16171     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16172   fi
16173   $as_echo "$as_me: error: $2" >&2
16174   as_fn_exit $as_status
16175 } # as_fn_error
16176
16177
16178 # as_fn_set_status STATUS
16179 # -----------------------
16180 # Set $? to STATUS, without forking.
16181 as_fn_set_status ()
16182 {
16183   return $1
16184 } # as_fn_set_status
16185
16186 # as_fn_exit STATUS
16187 # -----------------
16188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16189 as_fn_exit ()
16190 {
16191   set +e
16192   as_fn_set_status $1
16193   exit $1
16194 } # as_fn_exit
16195
16196 # as_fn_unset VAR
16197 # ---------------
16198 # Portably unset VAR.
16199 as_fn_unset ()
16200 {
16201   { eval $1=; unset $1;}
16202 }
16203 as_unset=as_fn_unset
16204 # as_fn_append VAR VALUE
16205 # ----------------------
16206 # Append the text in VALUE to the end of the definition contained in VAR. Take
16207 # advantage of any shell optimizations that allow amortized linear growth over
16208 # repeated appends, instead of the typical quadratic growth present in naive
16209 # implementations.
16210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16211   eval 'as_fn_append ()
16212   {
16213     eval $1+=\$2
16214   }'
16215 else
16216   as_fn_append ()
16217   {
16218     eval $1=\$$1\$2
16219   }
16220 fi # as_fn_append
16221
16222 # as_fn_arith ARG...
16223 # ------------------
16224 # Perform arithmetic evaluation on the ARGs, and store the result in the
16225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16226 # must be portable across $(()) and expr.
16227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16228   eval 'as_fn_arith ()
16229   {
16230     as_val=$(( $* ))
16231   }'
16232 else
16233   as_fn_arith ()
16234   {
16235     as_val=`expr "$@" || test $? -eq 1`
16236   }
16237 fi # as_fn_arith
16238
16239
16240 if expr a : '\(a\)' >/dev/null 2>&1 &&
16241    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16242   as_expr=expr
16243 else
16244   as_expr=false
16245 fi
16246
16247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16248   as_basename=basename
16249 else
16250   as_basename=false
16251 fi
16252
16253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16254   as_dirname=dirname
16255 else
16256   as_dirname=false
16257 fi
16258
16259 as_me=`$as_basename -- "$0" ||
16260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16261          X"$0" : 'X\(//\)$' \| \
16262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16263 $as_echo X/"$0" |
16264     sed '/^.*\/\([^/][^/]*\)\/*$/{
16265             s//\1/
16266             q
16267           }
16268           /^X\/\(\/\/\)$/{
16269             s//\1/
16270             q
16271           }
16272           /^X\/\(\/\).*/{
16273             s//\1/
16274             q
16275           }
16276           s/.*/./; q'`
16277
16278 # Avoid depending upon Character Ranges.
16279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16282 as_cr_digits='0123456789'
16283 as_cr_alnum=$as_cr_Letters$as_cr_digits
16284
16285 ECHO_C= ECHO_N= ECHO_T=
16286 case `echo -n x` in #(((((
16287 -n*)
16288   case `echo 'xy\c'` in
16289   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16290   xy)  ECHO_C='\c';;
16291   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16292        ECHO_T=' ';;
16293   esac;;
16294 *)
16295   ECHO_N='-n';;
16296 esac
16297
16298 rm -f conf$$ conf$$.exe conf$$.file
16299 if test -d conf$$.dir; then
16300   rm -f conf$$.dir/conf$$.file
16301 else
16302   rm -f conf$$.dir
16303   mkdir conf$$.dir 2>/dev/null
16304 fi
16305 if (echo >conf$$.file) 2>/dev/null; then
16306   if ln -s conf$$.file conf$$ 2>/dev/null; then
16307     as_ln_s='ln -s'
16308     # ... but there are two gotchas:
16309     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16310     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16311     # In both cases, we have to default to `cp -p'.
16312     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16313       as_ln_s='cp -p'
16314   elif ln conf$$.file conf$$ 2>/dev/null; then
16315     as_ln_s=ln
16316   else
16317     as_ln_s='cp -p'
16318   fi
16319 else
16320   as_ln_s='cp -p'
16321 fi
16322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16323 rmdir conf$$.dir 2>/dev/null
16324
16325
16326 # as_fn_mkdir_p
16327 # -------------
16328 # Create "$as_dir" as a directory, including parents if necessary.
16329 as_fn_mkdir_p ()
16330 {
16331
16332   case $as_dir in #(
16333   -*) as_dir=./$as_dir;;
16334   esac
16335   test -d "$as_dir" || eval $as_mkdir_p || {
16336     as_dirs=
16337     while :; do
16338       case $as_dir in #(
16339       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16340       *) as_qdir=$as_dir;;
16341       esac
16342       as_dirs="'$as_qdir' $as_dirs"
16343       as_dir=`$as_dirname -- "$as_dir" ||
16344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16345          X"$as_dir" : 'X\(//\)[^/]' \| \
16346          X"$as_dir" : 'X\(//\)$' \| \
16347          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16348 $as_echo X"$as_dir" |
16349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16350             s//\1/
16351             q
16352           }
16353           /^X\(\/\/\)[^/].*/{
16354             s//\1/
16355             q
16356           }
16357           /^X\(\/\/\)$/{
16358             s//\1/
16359             q
16360           }
16361           /^X\(\/\).*/{
16362             s//\1/
16363             q
16364           }
16365           s/.*/./; q'`
16366       test -d "$as_dir" && break
16367     done
16368     test -z "$as_dirs" || eval "mkdir $as_dirs"
16369   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16370
16371
16372 } # as_fn_mkdir_p
16373 if mkdir -p . 2>/dev/null; then
16374   as_mkdir_p='mkdir -p "$as_dir"'
16375 else
16376   test -d ./-p && rmdir ./-p
16377   as_mkdir_p=false
16378 fi
16379
16380 if test -x / >/dev/null 2>&1; then
16381   as_test_x='test -x'
16382 else
16383   if ls -dL / >/dev/null 2>&1; then
16384     as_ls_L_option=L
16385   else
16386     as_ls_L_option=
16387   fi
16388   as_test_x='
16389     eval sh -c '\''
16390       if test -d "$1"; then
16391         test -d "$1/.";
16392       else
16393         case $1 in #(
16394         -*)set "./$1";;
16395         esac;
16396         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16397         ???[sx]*):;;*)false;;esac;fi
16398     '\'' sh
16399   '
16400 fi
16401 as_executable_p=$as_test_x
16402
16403 # Sed expression to map a string onto a valid CPP name.
16404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16405
16406 # Sed expression to map a string onto a valid variable name.
16407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16408
16409
16410 exec 6>&1
16411 ## ----------------------------------- ##
16412 ## Main body of $CONFIG_STATUS script. ##
16413 ## ----------------------------------- ##
16414 _ASEOF
16415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16416
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418 # Save the log message, to keep $0 and so on meaningful, and to
16419 # report actual input values of CONFIG_FILES etc. instead of their
16420 # values after options handling.
16421 ac_log="
16422 This file was extended by opencore-amr $as_me 0.1.3, which was
16423 generated by GNU Autoconf 2.68.  Invocation command line was
16424
16425   CONFIG_FILES    = $CONFIG_FILES
16426   CONFIG_HEADERS  = $CONFIG_HEADERS
16427   CONFIG_LINKS    = $CONFIG_LINKS
16428   CONFIG_COMMANDS = $CONFIG_COMMANDS
16429   $ $0 $@
16430
16431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16432 "
16433
16434 _ACEOF
16435
16436 case $ac_config_files in *"
16437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16438 esac
16439
16440 case $ac_config_headers in *"
16441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16442 esac
16443
16444
16445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16446 # Files that config.status was made for.
16447 config_files="$ac_config_files"
16448 config_headers="$ac_config_headers"
16449 config_commands="$ac_config_commands"
16450
16451 _ACEOF
16452
16453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454 ac_cs_usage="\
16455 \`$as_me' instantiates files and other configuration actions
16456 from templates according to the current configuration.  Unless the files
16457 and actions are specified as TAGs, all are instantiated by default.
16458
16459 Usage: $0 [OPTION]... [TAG]...
16460
16461   -h, --help       print this help, then exit
16462   -V, --version    print version number and configuration settings, then exit
16463       --config     print configuration, then exit
16464   -q, --quiet, --silent
16465                    do not print progress messages
16466   -d, --debug      don't remove temporary files
16467       --recheck    update $as_me by reconfiguring in the same conditions
16468       --file=FILE[:TEMPLATE]
16469                    instantiate the configuration file FILE
16470       --header=FILE[:TEMPLATE]
16471                    instantiate the configuration header FILE
16472
16473 Configuration files:
16474 $config_files
16475
16476 Configuration headers:
16477 $config_headers
16478
16479 Configuration commands:
16480 $config_commands
16481
16482 Report bugs to <http://sourceforge.net/projects/opencore-amr/>."
16483
16484 _ACEOF
16485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16487 ac_cs_version="\\
16488 opencore-amr config.status 0.1.3
16489 configured by $0, generated by GNU Autoconf 2.68,
16490   with options \\"\$ac_cs_config\\"
16491
16492 Copyright (C) 2010 Free Software Foundation, Inc.
16493 This config.status script is free software; the Free Software Foundation
16494 gives unlimited permission to copy, distribute and modify it."
16495
16496 ac_pwd='$ac_pwd'
16497 srcdir='$srcdir'
16498 INSTALL='$INSTALL'
16499 MKDIR_P='$MKDIR_P'
16500 AWK='$AWK'
16501 test -n "\$AWK" || AWK=awk
16502 _ACEOF
16503
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 # The default lists apply if the user does not specify any file.
16506 ac_need_defaults=:
16507 while test $# != 0
16508 do
16509   case $1 in
16510   --*=?*)
16511     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16512     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16513     ac_shift=:
16514     ;;
16515   --*=)
16516     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16517     ac_optarg=
16518     ac_shift=:
16519     ;;
16520   *)
16521     ac_option=$1
16522     ac_optarg=$2
16523     ac_shift=shift
16524     ;;
16525   esac
16526
16527   case $ac_option in
16528   # Handling of the options.
16529   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16530     ac_cs_recheck=: ;;
16531   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16532     $as_echo "$ac_cs_version"; exit ;;
16533   --config | --confi | --conf | --con | --co | --c )
16534     $as_echo "$ac_cs_config"; exit ;;
16535   --debug | --debu | --deb | --de | --d | -d )
16536     debug=: ;;
16537   --file | --fil | --fi | --f )
16538     $ac_shift
16539     case $ac_optarg in
16540     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16541     '') as_fn_error $? "missing file argument" ;;
16542     esac
16543     as_fn_append CONFIG_FILES " '$ac_optarg'"
16544     ac_need_defaults=false;;
16545   --header | --heade | --head | --hea )
16546     $ac_shift
16547     case $ac_optarg in
16548     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16549     esac
16550     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16551     ac_need_defaults=false;;
16552   --he | --h)
16553     # Conflict between --help and --header
16554     as_fn_error $? "ambiguous option: \`$1'
16555 Try \`$0 --help' for more information.";;
16556   --help | --hel | -h )
16557     $as_echo "$ac_cs_usage"; exit ;;
16558   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16559   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16560     ac_cs_silent=: ;;
16561
16562   # This is an error.
16563   -*) as_fn_error $? "unrecognized option: \`$1'
16564 Try \`$0 --help' for more information." ;;
16565
16566   *) as_fn_append ac_config_targets " $1"
16567      ac_need_defaults=false ;;
16568
16569   esac
16570   shift
16571 done
16572
16573 ac_configure_extra_args=
16574
16575 if $ac_cs_silent; then
16576   exec 6>/dev/null
16577   ac_configure_extra_args="$ac_configure_extra_args --silent"
16578 fi
16579
16580 _ACEOF
16581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16582 if \$ac_cs_recheck; then
16583   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16584   shift
16585   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16586   CONFIG_SHELL='$SHELL'
16587   export CONFIG_SHELL
16588   exec "\$@"
16589 fi
16590
16591 _ACEOF
16592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16593 exec 5>>config.log
16594 {
16595   echo
16596   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16597 ## Running $as_me. ##
16598 _ASBOX
16599   $as_echo "$ac_log"
16600 } >&5
16601
16602 _ACEOF
16603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16604 #
16605 # INIT-COMMANDS
16606 #
16607 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16608
16609
16610 # The HP-UX ksh and POSIX shell print the target directory to stdout
16611 # if CDPATH is set.
16612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16613
16614 sed_quote_subst='$sed_quote_subst'
16615 double_quote_subst='$double_quote_subst'
16616 delay_variable_subst='$delay_variable_subst'
16617 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16618 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16619 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16620 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16621 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16622 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16623 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16624 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16625 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16626 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16627 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16628 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16629 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16630 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16631 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16632 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16633 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16634 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16635 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16636 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16637 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16638 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16639 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16640 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16641 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16642 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16643 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16644 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16645 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16646 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16647 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16648 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16649 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16650 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16651 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16652 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16653 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16654 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16655 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16656 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16657 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16658 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16659 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16660 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16661 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16662 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16663 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16664 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16665 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16666 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16667 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16668 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16669 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16670 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16671 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16672 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16673 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16674 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16675 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16679 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16680 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16684 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16685 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16686 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16687 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16688 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16689 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16690 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16691 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16692 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16693 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16694 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16695 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16696 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16697 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16698 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16699 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16700 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16701 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16702 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16703 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16704 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16705 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16706 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16707 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16716 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16717 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16718 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16719 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16720 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16721 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16747 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16748 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16749 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16750 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16751 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16752 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16753 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16754 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16755 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16756 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16757 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16758 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16759 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16760 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16761 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16762 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16763 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16764 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16765 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16766 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16767 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16768 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16769 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16770 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16771 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16772 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16773 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16774 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16775 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16776 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16777 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16778 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16779 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16780 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16781 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16782 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16783 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16784 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16785 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16786 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16787 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16788 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16789 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16790 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16791 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16792 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16793 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16794 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16795 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16796 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16797 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16798 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16799 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16800 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16801
16802 LTCC='$LTCC'
16803 LTCFLAGS='$LTCFLAGS'
16804 compiler='$compiler_DEFAULT'
16805
16806 # A function that is used when there is no print builtin or printf.
16807 func_fallback_echo ()
16808 {
16809   eval 'cat <<_LTECHO_EOF
16810 \$1
16811 _LTECHO_EOF'
16812 }
16813
16814 # Quote evaled strings.
16815 for var in SHELL \
16816 ECHO \
16817 PATH_SEPARATOR \
16818 SED \
16819 GREP \
16820 EGREP \
16821 FGREP \
16822 LD \
16823 NM \
16824 LN_S \
16825 lt_SP2NL \
16826 lt_NL2SP \
16827 reload_flag \
16828 OBJDUMP \
16829 deplibs_check_method \
16830 file_magic_cmd \
16831 file_magic_glob \
16832 want_nocaseglob \
16833 DLLTOOL \
16834 sharedlib_from_linklib_cmd \
16835 AR \
16836 AR_FLAGS \
16837 archiver_list_spec \
16838 STRIP \
16839 RANLIB \
16840 CC \
16841 CFLAGS \
16842 compiler \
16843 lt_cv_sys_global_symbol_pipe \
16844 lt_cv_sys_global_symbol_to_cdecl \
16845 lt_cv_sys_global_symbol_to_c_name_address \
16846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16847 nm_file_list_spec \
16848 lt_prog_compiler_no_builtin_flag \
16849 lt_prog_compiler_pic \
16850 lt_prog_compiler_wl \
16851 lt_prog_compiler_static \
16852 lt_cv_prog_compiler_c_o \
16853 need_locks \
16854 MANIFEST_TOOL \
16855 DSYMUTIL \
16856 NMEDIT \
16857 LIPO \
16858 OTOOL \
16859 OTOOL64 \
16860 shrext_cmds \
16861 export_dynamic_flag_spec \
16862 whole_archive_flag_spec \
16863 compiler_needs_object \
16864 with_gnu_ld \
16865 allow_undefined_flag \
16866 no_undefined_flag \
16867 hardcode_libdir_flag_spec \
16868 hardcode_libdir_separator \
16869 exclude_expsyms \
16870 include_expsyms \
16871 file_list_spec \
16872 variables_saved_for_relink \
16873 libname_spec \
16874 library_names_spec \
16875 soname_spec \
16876 install_override_mode \
16877 finish_eval \
16878 old_striplib \
16879 striplib \
16880 compiler_lib_search_dirs \
16881 predep_objects \
16882 postdep_objects \
16883 predeps \
16884 postdeps \
16885 compiler_lib_search_path \
16886 LD_CXX \
16887 reload_flag_CXX \
16888 compiler_CXX \
16889 lt_prog_compiler_no_builtin_flag_CXX \
16890 lt_prog_compiler_pic_CXX \
16891 lt_prog_compiler_wl_CXX \
16892 lt_prog_compiler_static_CXX \
16893 lt_cv_prog_compiler_c_o_CXX \
16894 export_dynamic_flag_spec_CXX \
16895 whole_archive_flag_spec_CXX \
16896 compiler_needs_object_CXX \
16897 with_gnu_ld_CXX \
16898 allow_undefined_flag_CXX \
16899 no_undefined_flag_CXX \
16900 hardcode_libdir_flag_spec_CXX \
16901 hardcode_libdir_separator_CXX \
16902 exclude_expsyms_CXX \
16903 include_expsyms_CXX \
16904 file_list_spec_CXX \
16905 compiler_lib_search_dirs_CXX \
16906 predep_objects_CXX \
16907 postdep_objects_CXX \
16908 predeps_CXX \
16909 postdeps_CXX \
16910 compiler_lib_search_path_CXX; do
16911     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16912     *[\\\\\\\`\\"\\\$]*)
16913       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16914       ;;
16915     *)
16916       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16917       ;;
16918     esac
16919 done
16920
16921 # Double-quote double-evaled strings.
16922 for var in reload_cmds \
16923 old_postinstall_cmds \
16924 old_postuninstall_cmds \
16925 old_archive_cmds \
16926 extract_expsyms_cmds \
16927 old_archive_from_new_cmds \
16928 old_archive_from_expsyms_cmds \
16929 archive_cmds \
16930 archive_expsym_cmds \
16931 module_cmds \
16932 module_expsym_cmds \
16933 export_symbols_cmds \
16934 prelink_cmds \
16935 postlink_cmds \
16936 postinstall_cmds \
16937 postuninstall_cmds \
16938 finish_cmds \
16939 sys_lib_search_path_spec \
16940 sys_lib_dlsearch_path_spec \
16941 reload_cmds_CXX \
16942 old_archive_cmds_CXX \
16943 old_archive_from_new_cmds_CXX \
16944 old_archive_from_expsyms_cmds_CXX \
16945 archive_cmds_CXX \
16946 archive_expsym_cmds_CXX \
16947 module_cmds_CXX \
16948 module_expsym_cmds_CXX \
16949 export_symbols_cmds_CXX \
16950 prelink_cmds_CXX \
16951 postlink_cmds_CXX; do
16952     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16953     *[\\\\\\\`\\"\\\$]*)
16954       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16955       ;;
16956     *)
16957       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16958       ;;
16959     esac
16960 done
16961
16962 ac_aux_dir='$ac_aux_dir'
16963 xsi_shell='$xsi_shell'
16964 lt_shell_append='$lt_shell_append'
16965
16966 # See if we are running on zsh, and set the options which allow our
16967 # commands through without removal of \ escapes INIT.
16968 if test -n "\${ZSH_VERSION+set}" ; then
16969    setopt NO_GLOB_SUBST
16970 fi
16971
16972
16973     PACKAGE='$PACKAGE'
16974     VERSION='$VERSION'
16975     TIMESTAMP='$TIMESTAMP'
16976     RM='$RM'
16977     ofile='$ofile'
16978
16979
16980
16981
16982
16983
16984 _ACEOF
16985
16986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16987
16988 # Handling of arguments.
16989 for ac_config_target in $ac_config_targets
16990 do
16991   case $ac_config_target in
16992     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16993     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16994     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16995     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16996     "amrnb/Makefile") CONFIG_FILES="$CONFIG_FILES amrnb/Makefile" ;;
16997     "amrwb/Makefile") CONFIG_FILES="$CONFIG_FILES amrwb/Makefile" ;;
16998     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16999     "amrnb/opencore-amrnb.pc") CONFIG_FILES="$CONFIG_FILES amrnb/opencore-amrnb.pc" ;;
17000     "amrwb/opencore-amrwb.pc") CONFIG_FILES="$CONFIG_FILES amrwb/opencore-amrwb.pc" ;;
17001
17002   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17003   esac
17004 done
17005
17006
17007 # If the user did not use the arguments to specify the items to instantiate,
17008 # then the envvar interface is used.  Set only those that are not.
17009 # We use the long form for the default assignment because of an extremely
17010 # bizarre bug on SunOS 4.1.3.
17011 if $ac_need_defaults; then
17012   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17013   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17014   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17015 fi
17016
17017 # Have a temporary directory for convenience.  Make it in the build tree
17018 # simply because there is no reason against having it here, and in addition,
17019 # creating and moving files from /tmp can sometimes cause problems.
17020 # Hook for its removal unless debugging.
17021 # Note that there is a small window in which the directory will not be cleaned:
17022 # after its creation but before its name has been assigned to `$tmp'.
17023 $debug ||
17024 {
17025   tmp= ac_tmp=
17026   trap 'exit_status=$?
17027   : "${ac_tmp:=$tmp}"
17028   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17029 ' 0
17030   trap 'as_fn_exit 1' 1 2 13 15
17031 }
17032 # Create a (secure) tmp directory for tmp files.
17033
17034 {
17035   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17036   test -d "$tmp"
17037 }  ||
17038 {
17039   tmp=./conf$$-$RANDOM
17040   (umask 077 && mkdir "$tmp")
17041 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17042 ac_tmp=$tmp
17043
17044 # Set up the scripts for CONFIG_FILES section.
17045 # No need to generate them if there are no CONFIG_FILES.
17046 # This happens for instance with `./config.status config.h'.
17047 if test -n "$CONFIG_FILES"; then
17048
17049
17050 ac_cr=`echo X | tr X '\015'`
17051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17052 # But we know of no other shell where ac_cr would be empty at this
17053 # point, so we can use a bashism as a fallback.
17054 if test "x$ac_cr" = x; then
17055   eval ac_cr=\$\'\\r\'
17056 fi
17057 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17059   ac_cs_awk_cr='\\r'
17060 else
17061   ac_cs_awk_cr=$ac_cr
17062 fi
17063
17064 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17065 _ACEOF
17066
17067
17068 {
17069   echo "cat >conf$$subs.awk <<_ACEOF" &&
17070   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17071   echo "_ACEOF"
17072 } >conf$$subs.sh ||
17073   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17074 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17075 ac_delim='%!_!# '
17076 for ac_last_try in false false false false false :; do
17077   . ./conf$$subs.sh ||
17078     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17079
17080   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17081   if test $ac_delim_n = $ac_delim_num; then
17082     break
17083   elif $ac_last_try; then
17084     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17085   else
17086     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17087   fi
17088 done
17089 rm -f conf$$subs.sh
17090
17091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17093 _ACEOF
17094 sed -n '
17095 h
17096 s/^/S["/; s/!.*/"]=/
17097 p
17098 g
17099 s/^[^!]*!//
17100 :repl
17101 t repl
17102 s/'"$ac_delim"'$//
17103 t delim
17104 :nl
17105 h
17106 s/\(.\{148\}\)..*/\1/
17107 t more1
17108 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17109 p
17110 n
17111 b repl
17112 :more1
17113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17114 p
17115 g
17116 s/.\{148\}//
17117 t nl
17118 :delim
17119 h
17120 s/\(.\{148\}\)..*/\1/
17121 t more2
17122 s/["\\]/\\&/g; s/^/"/; s/$/"/
17123 p
17124 b
17125 :more2
17126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17127 p
17128 g
17129 s/.\{148\}//
17130 t delim
17131 ' <conf$$subs.awk | sed '
17132 /^[^""]/{
17133   N
17134   s/\n//
17135 }
17136 ' >>$CONFIG_STATUS || ac_write_fail=1
17137 rm -f conf$$subs.awk
17138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17139 _ACAWK
17140 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17141   for (key in S) S_is_set[key] = 1
17142   FS = "\a"
17143
17144 }
17145 {
17146   line = $ 0
17147   nfields = split(line, field, "@")
17148   substed = 0
17149   len = length(field[1])
17150   for (i = 2; i < nfields; i++) {
17151     key = field[i]
17152     keylen = length(key)
17153     if (S_is_set[key]) {
17154       value = S[key]
17155       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17156       len += length(value) + length(field[++i])
17157       substed = 1
17158     } else
17159       len += 1 + keylen
17160   }
17161
17162   print line
17163 }
17164
17165 _ACAWK
17166 _ACEOF
17167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17168 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17169   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17170 else
17171   cat
17172 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17173   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17174 _ACEOF
17175
17176 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17177 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17178 # trailing colons and then remove the whole line if VPATH becomes empty
17179 # (actually we leave an empty line to preserve line numbers).
17180 if test "x$srcdir" = x.; then
17181   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17182 h
17183 s///
17184 s/^/:/
17185 s/[      ]*$/:/
17186 s/:\$(srcdir):/:/g
17187 s/:\${srcdir}:/:/g
17188 s/:@srcdir@:/:/g
17189 s/^:*//
17190 s/:*$//
17191 x
17192 s/\(=[   ]*\).*/\1/
17193 G
17194 s/\n//
17195 s/^[^=]*=[       ]*$//
17196 }'
17197 fi
17198
17199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200 fi # test -n "$CONFIG_FILES"
17201
17202 # Set up the scripts for CONFIG_HEADERS section.
17203 # No need to generate them if there are no CONFIG_HEADERS.
17204 # This happens for instance with `./config.status Makefile'.
17205 if test -n "$CONFIG_HEADERS"; then
17206 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17207 BEGIN {
17208 _ACEOF
17209
17210 # Transform confdefs.h into an awk script `defines.awk', embedded as
17211 # here-document in config.status, that substitutes the proper values into
17212 # config.h.in to produce config.h.
17213
17214 # Create a delimiter string that does not exist in confdefs.h, to ease
17215 # handling of long lines.
17216 ac_delim='%!_!# '
17217 for ac_last_try in false false :; do
17218   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17219   if test -z "$ac_tt"; then
17220     break
17221   elif $ac_last_try; then
17222     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17223   else
17224     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17225   fi
17226 done
17227
17228 # For the awk script, D is an array of macro values keyed by name,
17229 # likewise P contains macro parameters if any.  Preserve backslash
17230 # newline sequences.
17231
17232 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17233 sed -n '
17234 s/.\{148\}/&'"$ac_delim"'/g
17235 t rset
17236 :rset
17237 s/^[     ]*#[    ]*define[       ][      ]*/ /
17238 t def
17239 d
17240 :def
17241 s/\\$//
17242 t bsnl
17243 s/["\\]/\\&/g
17244 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17245 D["\1"]=" \3"/p
17246 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17247 d
17248 :bsnl
17249 s/["\\]/\\&/g
17250 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17251 D["\1"]=" \3\\\\\\n"\\/p
17252 t cont
17253 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17254 t cont
17255 d
17256 :cont
17257 n
17258 s/.\{148\}/&'"$ac_delim"'/g
17259 t clear
17260 :clear
17261 s/\\$//
17262 t bsnlc
17263 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17264 d
17265 :bsnlc
17266 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17267 b cont
17268 ' <confdefs.h | sed '
17269 s/'"$ac_delim"'/"\\\
17270 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17271
17272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273   for (key in D) D_is_set[key] = 1
17274   FS = "\a"
17275 }
17276 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17277   line = \$ 0
17278   split(line, arg, " ")
17279   if (arg[1] == "#") {
17280     defundef = arg[2]
17281     mac1 = arg[3]
17282   } else {
17283     defundef = substr(arg[1], 2)
17284     mac1 = arg[2]
17285   }
17286   split(mac1, mac2, "(") #)
17287   macro = mac2[1]
17288   prefix = substr(line, 1, index(line, defundef) - 1)
17289   if (D_is_set[macro]) {
17290     # Preserve the white space surrounding the "#".
17291     print prefix "define", macro P[macro] D[macro]
17292     next
17293   } else {
17294     # Replace #undef with comments.  This is necessary, for example,
17295     # in the case of _POSIX_SOURCE, which is predefined and required
17296     # on some systems where configure will not decide to define it.
17297     if (defundef == "undef") {
17298       print "/*", prefix defundef, macro, "*/"
17299       next
17300     }
17301   }
17302 }
17303 { print }
17304 _ACAWK
17305 _ACEOF
17306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17308 fi # test -n "$CONFIG_HEADERS"
17309
17310
17311 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17312 shift
17313 for ac_tag
17314 do
17315   case $ac_tag in
17316   :[FHLC]) ac_mode=$ac_tag; continue;;
17317   esac
17318   case $ac_mode$ac_tag in
17319   :[FHL]*:*);;
17320   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17321   :[FH]-) ac_tag=-:-;;
17322   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17323   esac
17324   ac_save_IFS=$IFS
17325   IFS=:
17326   set x $ac_tag
17327   IFS=$ac_save_IFS
17328   shift
17329   ac_file=$1
17330   shift
17331
17332   case $ac_mode in
17333   :L) ac_source=$1;;
17334   :[FH])
17335     ac_file_inputs=
17336     for ac_f
17337     do
17338       case $ac_f in
17339       -) ac_f="$ac_tmp/stdin";;
17340       *) # Look for the file first in the build tree, then in the source tree
17341          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17342          # because $ac_f cannot contain `:'.
17343          test -f "$ac_f" ||
17344            case $ac_f in
17345            [\\/$]*) false;;
17346            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17347            esac ||
17348            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17349       esac
17350       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17351       as_fn_append ac_file_inputs " '$ac_f'"
17352     done
17353
17354     # Let's still pretend it is `configure' which instantiates (i.e., don't
17355     # use $as_me), people would be surprised to read:
17356     #    /* config.h.  Generated by config.status.  */
17357     configure_input='Generated from '`
17358           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17359         `' by configure.'
17360     if test x"$ac_file" != x-; then
17361       configure_input="$ac_file.  $configure_input"
17362       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17363 $as_echo "$as_me: creating $ac_file" >&6;}
17364     fi
17365     # Neutralize special characters interpreted by sed in replacement strings.
17366     case $configure_input in #(
17367     *\&* | *\|* | *\\* )
17368        ac_sed_conf_input=`$as_echo "$configure_input" |
17369        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17370     *) ac_sed_conf_input=$configure_input;;
17371     esac
17372
17373     case $ac_tag in
17374     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17375       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17376     esac
17377     ;;
17378   esac
17379
17380   ac_dir=`$as_dirname -- "$ac_file" ||
17381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17382          X"$ac_file" : 'X\(//\)[^/]' \| \
17383          X"$ac_file" : 'X\(//\)$' \| \
17384          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17385 $as_echo X"$ac_file" |
17386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17387             s//\1/
17388             q
17389           }
17390           /^X\(\/\/\)[^/].*/{
17391             s//\1/
17392             q
17393           }
17394           /^X\(\/\/\)$/{
17395             s//\1/
17396             q
17397           }
17398           /^X\(\/\).*/{
17399             s//\1/
17400             q
17401           }
17402           s/.*/./; q'`
17403   as_dir="$ac_dir"; as_fn_mkdir_p
17404   ac_builddir=.
17405
17406 case "$ac_dir" in
17407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17408 *)
17409   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17410   # A ".." for each directory in $ac_dir_suffix.
17411   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17412   case $ac_top_builddir_sub in
17413   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17414   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17415   esac ;;
17416 esac
17417 ac_abs_top_builddir=$ac_pwd
17418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17419 # for backward compatibility:
17420 ac_top_builddir=$ac_top_build_prefix
17421
17422 case $srcdir in
17423   .)  # We are building in place.
17424     ac_srcdir=.
17425     ac_top_srcdir=$ac_top_builddir_sub
17426     ac_abs_top_srcdir=$ac_pwd ;;
17427   [\\/]* | ?:[\\/]* )  # Absolute name.
17428     ac_srcdir=$srcdir$ac_dir_suffix;
17429     ac_top_srcdir=$srcdir
17430     ac_abs_top_srcdir=$srcdir ;;
17431   *) # Relative name.
17432     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17433     ac_top_srcdir=$ac_top_build_prefix$srcdir
17434     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17435 esac
17436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17437
17438
17439   case $ac_mode in
17440   :F)
17441   #
17442   # CONFIG_FILE
17443   #
17444
17445   case $INSTALL in
17446   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17447   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17448   esac
17449   ac_MKDIR_P=$MKDIR_P
17450   case $MKDIR_P in
17451   [\\/$]* | ?:[\\/]* ) ;;
17452   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17453   esac
17454 _ACEOF
17455
17456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17457 # If the template does not know about datarootdir, expand it.
17458 # FIXME: This hack should be removed a few years after 2.60.
17459 ac_datarootdir_hack=; ac_datarootdir_seen=
17460 ac_sed_dataroot='
17461 /datarootdir/ {
17462   p
17463   q
17464 }
17465 /@datadir@/p
17466 /@docdir@/p
17467 /@infodir@/p
17468 /@localedir@/p
17469 /@mandir@/p'
17470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17471 *datarootdir*) ac_datarootdir_seen=yes;;
17472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17473   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17475 _ACEOF
17476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17477   ac_datarootdir_hack='
17478   s&@datadir@&$datadir&g
17479   s&@docdir@&$docdir&g
17480   s&@infodir@&$infodir&g
17481   s&@localedir@&$localedir&g
17482   s&@mandir@&$mandir&g
17483   s&\\\${datarootdir}&$datarootdir&g' ;;
17484 esac
17485 _ACEOF
17486
17487 # Neutralize VPATH when `$srcdir' = `.'.
17488 # Shell code in configure.ac might set extrasub.
17489 # FIXME: do we really want to maintain this feature?
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491 ac_sed_extra="$ac_vpsub
17492 $extrasub
17493 _ACEOF
17494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17495 :t
17496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17497 s|@configure_input@|$ac_sed_conf_input|;t t
17498 s&@top_builddir@&$ac_top_builddir_sub&;t t
17499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17500 s&@srcdir@&$ac_srcdir&;t t
17501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17502 s&@top_srcdir@&$ac_top_srcdir&;t t
17503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17504 s&@builddir@&$ac_builddir&;t t
17505 s&@abs_builddir@&$ac_abs_builddir&;t t
17506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17507 s&@INSTALL@&$ac_INSTALL&;t t
17508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17509 $ac_datarootdir_hack
17510 "
17511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17512   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17513
17514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17515   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17516   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17517       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17518   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17519 which seems to be undefined.  Please make sure it is defined" >&5
17520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17521 which seems to be undefined.  Please make sure it is defined" >&2;}
17522
17523   rm -f "$ac_tmp/stdin"
17524   case $ac_file in
17525   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17526   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17527   esac \
17528   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17529  ;;
17530   :H)
17531   #
17532   # CONFIG_HEADER
17533   #
17534   if test x"$ac_file" != x-; then
17535     {
17536       $as_echo "/* $configure_input  */" \
17537       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17538     } >"$ac_tmp/config.h" \
17539       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17540     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17541       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17542 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17543     else
17544       rm -f "$ac_file"
17545       mv "$ac_tmp/config.h" "$ac_file" \
17546         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17547     fi
17548   else
17549     $as_echo "/* $configure_input  */" \
17550       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17551       || as_fn_error $? "could not create -" "$LINENO" 5
17552   fi
17553 # Compute "$ac_file"'s index in $config_headers.
17554 _am_arg="$ac_file"
17555 _am_stamp_count=1
17556 for _am_header in $config_headers :; do
17557   case $_am_header in
17558     $_am_arg | $_am_arg:* )
17559       break ;;
17560     * )
17561       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17562   esac
17563 done
17564 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17565 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17566          X"$_am_arg" : 'X\(//\)[^/]' \| \
17567          X"$_am_arg" : 'X\(//\)$' \| \
17568          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17569 $as_echo X"$_am_arg" |
17570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17571             s//\1/
17572             q
17573           }
17574           /^X\(\/\/\)[^/].*/{
17575             s//\1/
17576             q
17577           }
17578           /^X\(\/\/\)$/{
17579             s//\1/
17580             q
17581           }
17582           /^X\(\/\).*/{
17583             s//\1/
17584             q
17585           }
17586           s/.*/./; q'`/stamp-h$_am_stamp_count
17587  ;;
17588
17589   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17590 $as_echo "$as_me: executing $ac_file commands" >&6;}
17591  ;;
17592   esac
17593
17594
17595   case $ac_file$ac_mode in
17596     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17597   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17598   # are listed without --file.  Let's play safe and only enable the eval
17599   # if we detect the quoting.
17600   case $CONFIG_FILES in
17601   *\'*) eval set x "$CONFIG_FILES" ;;
17602   *)   set x $CONFIG_FILES ;;
17603   esac
17604   shift
17605   for mf
17606   do
17607     # Strip MF so we end up with the name of the file.
17608     mf=`echo "$mf" | sed -e 's/:.*$//'`
17609     # Check whether this is an Automake generated Makefile or not.
17610     # We used to match only the files named `Makefile.in', but
17611     # some people rename them; so instead we look at the file content.
17612     # Grep'ing the first line is not enough: some people post-process
17613     # each Makefile.in and add a new line on top of each file to say so.
17614     # Grep'ing the whole file is not good either: AIX grep has a line
17615     # limit of 2048, but all sed's we know have understand at least 4000.
17616     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17617       dirpart=`$as_dirname -- "$mf" ||
17618 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17619          X"$mf" : 'X\(//\)[^/]' \| \
17620          X"$mf" : 'X\(//\)$' \| \
17621          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17622 $as_echo X"$mf" |
17623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17624             s//\1/
17625             q
17626           }
17627           /^X\(\/\/\)[^/].*/{
17628             s//\1/
17629             q
17630           }
17631           /^X\(\/\/\)$/{
17632             s//\1/
17633             q
17634           }
17635           /^X\(\/\).*/{
17636             s//\1/
17637             q
17638           }
17639           s/.*/./; q'`
17640     else
17641       continue
17642     fi
17643     # Extract the definition of DEPDIR, am__include, and am__quote
17644     # from the Makefile without running `make'.
17645     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17646     test -z "$DEPDIR" && continue
17647     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17648     test -z "am__include" && continue
17649     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17650     # When using ansi2knr, U may be empty or an underscore; expand it
17651     U=`sed -n 's/^U = //p' < "$mf"`
17652     # Find all dependency output files, they are included files with
17653     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17654     # simplest approach to changing $(DEPDIR) to its actual value in the
17655     # expansion.
17656     for file in `sed -n "
17657       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17658          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17659       # Make sure the directory exists.
17660       test -f "$dirpart/$file" && continue
17661       fdir=`$as_dirname -- "$file" ||
17662 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17663          X"$file" : 'X\(//\)[^/]' \| \
17664          X"$file" : 'X\(//\)$' \| \
17665          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17666 $as_echo X"$file" |
17667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17668             s//\1/
17669             q
17670           }
17671           /^X\(\/\/\)[^/].*/{
17672             s//\1/
17673             q
17674           }
17675           /^X\(\/\/\)$/{
17676             s//\1/
17677             q
17678           }
17679           /^X\(\/\).*/{
17680             s//\1/
17681             q
17682           }
17683           s/.*/./; q'`
17684       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17685       # echo "creating $dirpart/$file"
17686       echo '# dummy' > "$dirpart/$file"
17687     done
17688   done
17689 }
17690  ;;
17691     "libtool":C)
17692
17693     # See if we are running on zsh, and set the options which allow our
17694     # commands through without removal of \ escapes.
17695     if test -n "${ZSH_VERSION+set}" ; then
17696       setopt NO_GLOB_SUBST
17697     fi
17698
17699     cfgfile="${ofile}T"
17700     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17701     $RM "$cfgfile"
17702
17703     cat <<_LT_EOF >> "$cfgfile"
17704 #! $SHELL
17705
17706 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17707 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17710 #
17711 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17712 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17713 #                 Foundation, Inc.
17714 #   Written by Gordon Matzigkeit, 1996
17715 #
17716 #   This file is part of GNU Libtool.
17717 #
17718 # GNU Libtool is free software; you can redistribute it and/or
17719 # modify it under the terms of the GNU General Public License as
17720 # published by the Free Software Foundation; either version 2 of
17721 # the License, or (at your option) any later version.
17722 #
17723 # As a special exception to the GNU General Public License,
17724 # if you distribute this file as part of a program or library that
17725 # is built using GNU Libtool, you may include this file under the
17726 # same distribution terms that you use for the rest of that program.
17727 #
17728 # GNU Libtool is distributed in the hope that it will be useful,
17729 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17730 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17731 # GNU General Public License for more details.
17732 #
17733 # You should have received a copy of the GNU General Public License
17734 # along with GNU Libtool; see the file COPYING.  If not, a copy
17735 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17736 # obtained by writing to the Free Software Foundation, Inc.,
17737 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17738
17739
17740 # The names of the tagged configurations supported by this script.
17741 available_tags="CXX "
17742
17743 # ### BEGIN LIBTOOL CONFIG
17744
17745 # Which release of libtool.m4 was used?
17746 macro_version=$macro_version
17747 macro_revision=$macro_revision
17748
17749 # Whether or not to build shared libraries.
17750 build_libtool_libs=$enable_shared
17751
17752 # Whether or not to build static libraries.
17753 build_old_libs=$enable_static
17754
17755 # What type of objects to build.
17756 pic_mode=$pic_mode
17757
17758 # Whether or not to optimize for fast installation.
17759 fast_install=$enable_fast_install
17760
17761 # Shell to use when invoking shell scripts.
17762 SHELL=$lt_SHELL
17763
17764 # An echo program that protects backslashes.
17765 ECHO=$lt_ECHO
17766
17767 # The PATH separator for the build system.
17768 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17769
17770 # The host system.
17771 host_alias=$host_alias
17772 host=$host
17773 host_os=$host_os
17774
17775 # The build system.
17776 build_alias=$build_alias
17777 build=$build
17778 build_os=$build_os
17779
17780 # A sed program that does not truncate output.
17781 SED=$lt_SED
17782
17783 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17784 Xsed="\$SED -e 1s/^X//"
17785
17786 # A grep program that handles long lines.
17787 GREP=$lt_GREP
17788
17789 # An ERE matcher.
17790 EGREP=$lt_EGREP
17791
17792 # A literal string matcher.
17793 FGREP=$lt_FGREP
17794
17795 # A BSD- or MS-compatible name lister.
17796 NM=$lt_NM
17797
17798 # Whether we need soft or hard links.
17799 LN_S=$lt_LN_S
17800
17801 # What is the maximum length of a command?
17802 max_cmd_len=$max_cmd_len
17803
17804 # Object file suffix (normally "o").
17805 objext=$ac_objext
17806
17807 # Executable file suffix (normally "").
17808 exeext=$exeext
17809
17810 # whether the shell understands "unset".
17811 lt_unset=$lt_unset
17812
17813 # turn spaces into newlines.
17814 SP2NL=$lt_lt_SP2NL
17815
17816 # turn newlines into spaces.
17817 NL2SP=$lt_lt_NL2SP
17818
17819 # convert \$build file names to \$host format.
17820 to_host_file_cmd=$lt_cv_to_host_file_cmd
17821
17822 # convert \$build files to toolchain format.
17823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17824
17825 # An object symbol dumper.
17826 OBJDUMP=$lt_OBJDUMP
17827
17828 # Method to check whether dependent libraries are shared objects.
17829 deplibs_check_method=$lt_deplibs_check_method
17830
17831 # Command to use when deplibs_check_method = "file_magic".
17832 file_magic_cmd=$lt_file_magic_cmd
17833
17834 # How to find potential files when deplibs_check_method = "file_magic".
17835 file_magic_glob=$lt_file_magic_glob
17836
17837 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17838 want_nocaseglob=$lt_want_nocaseglob
17839
17840 # DLL creation program.
17841 DLLTOOL=$lt_DLLTOOL
17842
17843 # Command to associate shared and link libraries.
17844 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17845
17846 # The archiver.
17847 AR=$lt_AR
17848
17849 # Flags to create an archive.
17850 AR_FLAGS=$lt_AR_FLAGS
17851
17852 # How to feed a file listing to the archiver.
17853 archiver_list_spec=$lt_archiver_list_spec
17854
17855 # A symbol stripping program.
17856 STRIP=$lt_STRIP
17857
17858 # Commands used to install an old-style archive.
17859 RANLIB=$lt_RANLIB
17860 old_postinstall_cmds=$lt_old_postinstall_cmds
17861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17862
17863 # Whether to use a lock for old archive extraction.
17864 lock_old_archive_extraction=$lock_old_archive_extraction
17865
17866 # A C compiler.
17867 LTCC=$lt_CC
17868
17869 # LTCC compiler flags.
17870 LTCFLAGS=$lt_CFLAGS
17871
17872 # Take the output of nm and produce a listing of raw symbols and C names.
17873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17874
17875 # Transform the output of nm in a proper C declaration.
17876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17877
17878 # Transform the output of nm in a C name address pair.
17879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17880
17881 # Transform the output of nm in a C name address pair when lib prefix is needed.
17882 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17883
17884 # Specify filename containing input files for \$NM.
17885 nm_file_list_spec=$lt_nm_file_list_spec
17886
17887 # The root where to search for dependent libraries,and in which our libraries should be installed.
17888 lt_sysroot=$lt_sysroot
17889
17890 # The name of the directory that contains temporary libtool files.
17891 objdir=$objdir
17892
17893 # Used to examine libraries when file_magic_cmd begins with "file".
17894 MAGIC_CMD=$MAGIC_CMD
17895
17896 # Must we lock files when doing compilation?
17897 need_locks=$lt_need_locks
17898
17899 # Manifest tool.
17900 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17901
17902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17903 DSYMUTIL=$lt_DSYMUTIL
17904
17905 # Tool to change global to local symbols on Mac OS X.
17906 NMEDIT=$lt_NMEDIT
17907
17908 # Tool to manipulate fat objects and archives on Mac OS X.
17909 LIPO=$lt_LIPO
17910
17911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17912 OTOOL=$lt_OTOOL
17913
17914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17915 OTOOL64=$lt_OTOOL64
17916
17917 # Old archive suffix (normally "a").
17918 libext=$libext
17919
17920 # Shared library suffix (normally ".so").
17921 shrext_cmds=$lt_shrext_cmds
17922
17923 # The commands to extract the exported symbol list from a shared archive.
17924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17925
17926 # Variables whose values should be saved in libtool wrapper scripts and
17927 # restored at link time.
17928 variables_saved_for_relink=$lt_variables_saved_for_relink
17929
17930 # Do we need the "lib" prefix for modules?
17931 need_lib_prefix=$need_lib_prefix
17932
17933 # Do we need a version for libraries?
17934 need_version=$need_version
17935
17936 # Library versioning type.
17937 version_type=$version_type
17938
17939 # Shared library runtime path variable.
17940 runpath_var=$runpath_var
17941
17942 # Shared library path variable.
17943 shlibpath_var=$shlibpath_var
17944
17945 # Is shlibpath searched before the hard-coded library search path?
17946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17947
17948 # Format of library name prefix.
17949 libname_spec=$lt_libname_spec
17950
17951 # List of archive names.  First name is the real one, the rest are links.
17952 # The last name is the one that the linker finds with -lNAME
17953 library_names_spec=$lt_library_names_spec
17954
17955 # The coded name of the library, if different from the real name.
17956 soname_spec=$lt_soname_spec
17957
17958 # Permission mode override for installation of shared libraries.
17959 install_override_mode=$lt_install_override_mode
17960
17961 # Command to use after installation of a shared archive.
17962 postinstall_cmds=$lt_postinstall_cmds
17963
17964 # Command to use after uninstallation of a shared archive.
17965 postuninstall_cmds=$lt_postuninstall_cmds
17966
17967 # Commands used to finish a libtool library installation in a directory.
17968 finish_cmds=$lt_finish_cmds
17969
17970 # As "finish_cmds", except a single script fragment to be evaled but
17971 # not shown.
17972 finish_eval=$lt_finish_eval
17973
17974 # Whether we should hardcode library paths into libraries.
17975 hardcode_into_libs=$hardcode_into_libs
17976
17977 # Compile-time system search path for libraries.
17978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17979
17980 # Run-time system search path for libraries.
17981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17982
17983 # Whether dlopen is supported.
17984 dlopen_support=$enable_dlopen
17985
17986 # Whether dlopen of programs is supported.
17987 dlopen_self=$enable_dlopen_self
17988
17989 # Whether dlopen of statically linked programs is supported.
17990 dlopen_self_static=$enable_dlopen_self_static
17991
17992 # Commands to strip libraries.
17993 old_striplib=$lt_old_striplib
17994 striplib=$lt_striplib
17995
17996
17997 # The linker used to build libraries.
17998 LD=$lt_LD
17999
18000 # How to create reloadable object files.
18001 reload_flag=$lt_reload_flag
18002 reload_cmds=$lt_reload_cmds
18003
18004 # Commands used to build an old-style archive.
18005 old_archive_cmds=$lt_old_archive_cmds
18006
18007 # A language specific compiler.
18008 CC=$lt_compiler
18009
18010 # Is the compiler the GNU compiler?
18011 with_gcc=$GCC
18012
18013 # Compiler flag to turn off builtin functions.
18014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18015
18016 # Additional compiler flags for building library objects.
18017 pic_flag=$lt_lt_prog_compiler_pic
18018
18019 # How to pass a linker flag through the compiler.
18020 wl=$lt_lt_prog_compiler_wl
18021
18022 # Compiler flag to prevent dynamic linking.
18023 link_static_flag=$lt_lt_prog_compiler_static
18024
18025 # Does compiler simultaneously support -c and -o options?
18026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18027
18028 # Whether or not to add -lc for building shared libraries.
18029 build_libtool_need_lc=$archive_cmds_need_lc
18030
18031 # Whether or not to disallow shared libs when runtime libs are static.
18032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18033
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18036
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18039
18040 # Whether the compiler copes with passing no objects directly.
18041 compiler_needs_object=$lt_compiler_needs_object
18042
18043 # Create an old-style archive from a shared archive.
18044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18045
18046 # Create a temporary old-style archive to link instead of a shared archive.
18047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18048
18049 # Commands used to build a shared archive.
18050 archive_cmds=$lt_archive_cmds
18051 archive_expsym_cmds=$lt_archive_expsym_cmds
18052
18053 # Commands used to build a loadable module if different from building
18054 # a shared archive.
18055 module_cmds=$lt_module_cmds
18056 module_expsym_cmds=$lt_module_expsym_cmds
18057
18058 # Whether we are building with GNU ld or not.
18059 with_gnu_ld=$lt_with_gnu_ld
18060
18061 # Flag that allows shared libraries with undefined symbols to be built.
18062 allow_undefined_flag=$lt_allow_undefined_flag
18063
18064 # Flag that enforces no undefined symbols.
18065 no_undefined_flag=$lt_no_undefined_flag
18066
18067 # Flag to hardcode \$libdir into a binary during linking.
18068 # This must work even if \$libdir does not exist
18069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18070
18071 # Whether we need a single "-rpath" flag with a separated argument.
18072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18073
18074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18075 # DIR into the resulting binary.
18076 hardcode_direct=$hardcode_direct
18077
18078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18079 # DIR into the resulting binary and the resulting library dependency is
18080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18081 # library is relocated.
18082 hardcode_direct_absolute=$hardcode_direct_absolute
18083
18084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18085 # into the resulting binary.
18086 hardcode_minus_L=$hardcode_minus_L
18087
18088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18089 # into the resulting binary.
18090 hardcode_shlibpath_var=$hardcode_shlibpath_var
18091
18092 # Set to "yes" if building a shared library automatically hardcodes DIR
18093 # into the library and all subsequent libraries and executables linked
18094 # against it.
18095 hardcode_automatic=$hardcode_automatic
18096
18097 # Set to yes if linker adds runtime paths of dependent libraries
18098 # to runtime path list.
18099 inherit_rpath=$inherit_rpath
18100
18101 # Whether libtool must link a program against all its dependency libraries.
18102 link_all_deplibs=$link_all_deplibs
18103
18104 # Set to "yes" if exported symbols are required.
18105 always_export_symbols=$always_export_symbols
18106
18107 # The commands to list exported symbols.
18108 export_symbols_cmds=$lt_export_symbols_cmds
18109
18110 # Symbols that should not be listed in the preloaded symbols.
18111 exclude_expsyms=$lt_exclude_expsyms
18112
18113 # Symbols that must always be exported.
18114 include_expsyms=$lt_include_expsyms
18115
18116 # Commands necessary for linking programs (against libraries) with templates.
18117 prelink_cmds=$lt_prelink_cmds
18118
18119 # Commands necessary for finishing linking programs.
18120 postlink_cmds=$lt_postlink_cmds
18121
18122 # Specify filename containing input files.
18123 file_list_spec=$lt_file_list_spec
18124
18125 # How to hardcode a shared library path into an executable.
18126 hardcode_action=$hardcode_action
18127
18128 # The directories searched by this compiler when creating a shared library.
18129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18130
18131 # Dependencies to place before and after the objects being linked to
18132 # create a shared library.
18133 predep_objects=$lt_predep_objects
18134 postdep_objects=$lt_postdep_objects
18135 predeps=$lt_predeps
18136 postdeps=$lt_postdeps
18137
18138 # The library search path used internally by the compiler when linking
18139 # a shared library.
18140 compiler_lib_search_path=$lt_compiler_lib_search_path
18141
18142 # ### END LIBTOOL CONFIG
18143
18144 _LT_EOF
18145
18146   case $host_os in
18147   aix3*)
18148     cat <<\_LT_EOF >> "$cfgfile"
18149 # AIX sometimes has problems with the GCC collect2 program.  For some
18150 # reason, if we set the COLLECT_NAMES environment variable, the problems
18151 # vanish in a puff of smoke.
18152 if test "X${COLLECT_NAMES+set}" != Xset; then
18153   COLLECT_NAMES=
18154   export COLLECT_NAMES
18155 fi
18156 _LT_EOF
18157     ;;
18158   esac
18159
18160
18161 ltmain="$ac_aux_dir/ltmain.sh"
18162
18163
18164   # We use sed instead of cat because bash on DJGPP gets confused if
18165   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18166   # text mode, it properly converts lines to CR/LF.  This bash problem
18167   # is reportedly fixed, but why not run on old versions too?
18168   sed '$q' "$ltmain" >> "$cfgfile" \
18169      || (rm -f "$cfgfile"; exit 1)
18170
18171   if test x"$xsi_shell" = xyes; then
18172   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18173 func_dirname ()\
18174 {\
18175 \    case ${1} in\
18176 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18177 \      *  ) func_dirname_result="${3}" ;;\
18178 \    esac\
18179 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18180   && mv -f "$cfgfile.tmp" "$cfgfile" \
18181     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18182 test 0 -eq $? || _lt_function_replace_fail=:
18183
18184
18185   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18186 func_basename ()\
18187 {\
18188 \    func_basename_result="${1##*/}"\
18189 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18190   && mv -f "$cfgfile.tmp" "$cfgfile" \
18191     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18192 test 0 -eq $? || _lt_function_replace_fail=:
18193
18194
18195   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18196 func_dirname_and_basename ()\
18197 {\
18198 \    case ${1} in\
18199 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18200 \      *  ) func_dirname_result="${3}" ;;\
18201 \    esac\
18202 \    func_basename_result="${1##*/}"\
18203 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18204   && mv -f "$cfgfile.tmp" "$cfgfile" \
18205     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18206 test 0 -eq $? || _lt_function_replace_fail=:
18207
18208
18209   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18210 func_stripname ()\
18211 {\
18212 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18213 \    # positional parameters, so assign one to ordinary parameter first.\
18214 \    func_stripname_result=${3}\
18215 \    func_stripname_result=${func_stripname_result#"${1}"}\
18216 \    func_stripname_result=${func_stripname_result%"${2}"}\
18217 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18218   && mv -f "$cfgfile.tmp" "$cfgfile" \
18219     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18220 test 0 -eq $? || _lt_function_replace_fail=:
18221
18222
18223   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18224 func_split_long_opt ()\
18225 {\
18226 \    func_split_long_opt_name=${1%%=*}\
18227 \    func_split_long_opt_arg=${1#*=}\
18228 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18229   && mv -f "$cfgfile.tmp" "$cfgfile" \
18230     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18231 test 0 -eq $? || _lt_function_replace_fail=:
18232
18233
18234   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18235 func_split_short_opt ()\
18236 {\
18237 \    func_split_short_opt_arg=${1#??}\
18238 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18239 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18240   && mv -f "$cfgfile.tmp" "$cfgfile" \
18241     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18242 test 0 -eq $? || _lt_function_replace_fail=:
18243
18244
18245   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18246 func_lo2o ()\
18247 {\
18248 \    case ${1} in\
18249 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18250 \      *)    func_lo2o_result=${1} ;;\
18251 \    esac\
18252 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18253   && mv -f "$cfgfile.tmp" "$cfgfile" \
18254     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18255 test 0 -eq $? || _lt_function_replace_fail=:
18256
18257
18258   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18259 func_xform ()\
18260 {\
18261     func_xform_result=${1%.*}.lo\
18262 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18263   && mv -f "$cfgfile.tmp" "$cfgfile" \
18264     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18265 test 0 -eq $? || _lt_function_replace_fail=:
18266
18267
18268   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18269 func_arith ()\
18270 {\
18271     func_arith_result=$(( $* ))\
18272 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18273   && mv -f "$cfgfile.tmp" "$cfgfile" \
18274     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18275 test 0 -eq $? || _lt_function_replace_fail=:
18276
18277
18278   sed -e '/^func_len ()$/,/^} # func_len /c\
18279 func_len ()\
18280 {\
18281     func_len_result=${#1}\
18282 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18283   && mv -f "$cfgfile.tmp" "$cfgfile" \
18284     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18285 test 0 -eq $? || _lt_function_replace_fail=:
18286
18287 fi
18288
18289 if test x"$lt_shell_append" = xyes; then
18290   sed -e '/^func_append ()$/,/^} # func_append /c\
18291 func_append ()\
18292 {\
18293     eval "${1}+=\\${2}"\
18294 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18295   && mv -f "$cfgfile.tmp" "$cfgfile" \
18296     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18297 test 0 -eq $? || _lt_function_replace_fail=:
18298
18299
18300   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18301 func_append_quoted ()\
18302 {\
18303 \    func_quote_for_eval "${2}"\
18304 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18305 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18306   && mv -f "$cfgfile.tmp" "$cfgfile" \
18307     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18308 test 0 -eq $? || _lt_function_replace_fail=:
18309
18310
18311   # Save a `func_append' function call where possible by direct use of '+='
18312   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18313     && mv -f "$cfgfile.tmp" "$cfgfile" \
18314       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18315   test 0 -eq $? || _lt_function_replace_fail=:
18316 else
18317   # Save a `func_append' function call even when '+=' is not available
18318   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18319     && mv -f "$cfgfile.tmp" "$cfgfile" \
18320       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18321   test 0 -eq $? || _lt_function_replace_fail=:
18322 fi
18323
18324 if test x"$_lt_function_replace_fail" = x":"; then
18325   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18326 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18327 fi
18328
18329
18330    mv -f "$cfgfile" "$ofile" ||
18331     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18332   chmod +x "$ofile"
18333
18334
18335     cat <<_LT_EOF >> "$ofile"
18336
18337 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18338
18339 # The linker used to build libraries.
18340 LD=$lt_LD_CXX
18341
18342 # How to create reloadable object files.
18343 reload_flag=$lt_reload_flag_CXX
18344 reload_cmds=$lt_reload_cmds_CXX
18345
18346 # Commands used to build an old-style archive.
18347 old_archive_cmds=$lt_old_archive_cmds_CXX
18348
18349 # A language specific compiler.
18350 CC=$lt_compiler_CXX
18351
18352 # Is the compiler the GNU compiler?
18353 with_gcc=$GCC_CXX
18354
18355 # Compiler flag to turn off builtin functions.
18356 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18357
18358 # Additional compiler flags for building library objects.
18359 pic_flag=$lt_lt_prog_compiler_pic_CXX
18360
18361 # How to pass a linker flag through the compiler.
18362 wl=$lt_lt_prog_compiler_wl_CXX
18363
18364 # Compiler flag to prevent dynamic linking.
18365 link_static_flag=$lt_lt_prog_compiler_static_CXX
18366
18367 # Does compiler simultaneously support -c and -o options?
18368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18369
18370 # Whether or not to add -lc for building shared libraries.
18371 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18372
18373 # Whether or not to disallow shared libs when runtime libs are static.
18374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18375
18376 # Compiler flag to allow reflexive dlopens.
18377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18378
18379 # Compiler flag to generate shared objects directly from archives.
18380 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18381
18382 # Whether the compiler copes with passing no objects directly.
18383 compiler_needs_object=$lt_compiler_needs_object_CXX
18384
18385 # Create an old-style archive from a shared archive.
18386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18387
18388 # Create a temporary old-style archive to link instead of a shared archive.
18389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18390
18391 # Commands used to build a shared archive.
18392 archive_cmds=$lt_archive_cmds_CXX
18393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18394
18395 # Commands used to build a loadable module if different from building
18396 # a shared archive.
18397 module_cmds=$lt_module_cmds_CXX
18398 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18399
18400 # Whether we are building with GNU ld or not.
18401 with_gnu_ld=$lt_with_gnu_ld_CXX
18402
18403 # Flag that allows shared libraries with undefined symbols to be built.
18404 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18405
18406 # Flag that enforces no undefined symbols.
18407 no_undefined_flag=$lt_no_undefined_flag_CXX
18408
18409 # Flag to hardcode \$libdir into a binary during linking.
18410 # This must work even if \$libdir does not exist
18411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18412
18413 # Whether we need a single "-rpath" flag with a separated argument.
18414 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18415
18416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18417 # DIR into the resulting binary.
18418 hardcode_direct=$hardcode_direct_CXX
18419
18420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18421 # DIR into the resulting binary and the resulting library dependency is
18422 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18423 # library is relocated.
18424 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18425
18426 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18427 # into the resulting binary.
18428 hardcode_minus_L=$hardcode_minus_L_CXX
18429
18430 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18431 # into the resulting binary.
18432 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18433
18434 # Set to "yes" if building a shared library automatically hardcodes DIR
18435 # into the library and all subsequent libraries and executables linked
18436 # against it.
18437 hardcode_automatic=$hardcode_automatic_CXX
18438
18439 # Set to yes if linker adds runtime paths of dependent libraries
18440 # to runtime path list.
18441 inherit_rpath=$inherit_rpath_CXX
18442
18443 # Whether libtool must link a program against all its dependency libraries.
18444 link_all_deplibs=$link_all_deplibs_CXX
18445
18446 # Set to "yes" if exported symbols are required.
18447 always_export_symbols=$always_export_symbols_CXX
18448
18449 # The commands to list exported symbols.
18450 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18451
18452 # Symbols that should not be listed in the preloaded symbols.
18453 exclude_expsyms=$lt_exclude_expsyms_CXX
18454
18455 # Symbols that must always be exported.
18456 include_expsyms=$lt_include_expsyms_CXX
18457
18458 # Commands necessary for linking programs (against libraries) with templates.
18459 prelink_cmds=$lt_prelink_cmds_CXX
18460
18461 # Commands necessary for finishing linking programs.
18462 postlink_cmds=$lt_postlink_cmds_CXX
18463
18464 # Specify filename containing input files.
18465 file_list_spec=$lt_file_list_spec_CXX
18466
18467 # How to hardcode a shared library path into an executable.
18468 hardcode_action=$hardcode_action_CXX
18469
18470 # The directories searched by this compiler when creating a shared library.
18471 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18472
18473 # Dependencies to place before and after the objects being linked to
18474 # create a shared library.
18475 predep_objects=$lt_predep_objects_CXX
18476 postdep_objects=$lt_postdep_objects_CXX
18477 predeps=$lt_predeps_CXX
18478 postdeps=$lt_postdeps_CXX
18479
18480 # The library search path used internally by the compiler when linking
18481 # a shared library.
18482 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18483
18484 # ### END LIBTOOL TAG CONFIG: CXX
18485 _LT_EOF
18486
18487  ;;
18488
18489   esac
18490 done # for ac_tag
18491
18492
18493 as_fn_exit 0
18494 _ACEOF
18495 ac_clean_files=$ac_clean_files_save
18496
18497 test $ac_write_fail = 0 ||
18498   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18499
18500
18501 # configure is writing to config.log, and then calls config.status.
18502 # config.status does its own redirection, appending to config.log.
18503 # Unfortunately, on DOS this fails, as config.log is still kept open
18504 # by configure, so config.status won't be able to write to it; its
18505 # output is simply discarded.  So we exec the FD to /dev/null,
18506 # effectively closing config.log, so it can be properly (re)opened and
18507 # appended to by config.status.  When coming back to configure, we
18508 # need to make the FD available again.
18509 if test "$no_create" != yes; then
18510   ac_cs_success=:
18511   ac_config_status_args=
18512   test "$silent" = yes &&
18513     ac_config_status_args="$ac_config_status_args --quiet"
18514   exec 5>/dev/null
18515   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18516   exec 5>>config.log
18517   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18518   # would make configure fail if this is the last instruction.
18519   $ac_cs_success || as_fn_exit 1
18520 fi
18521 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18522   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18523 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18524 fi
18525