resetting manifest requested domain to floor
[platform/upstream/libbullet.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bullet 2.81.
4 #
5 # Report bugs to <bullet@erwincoumans.com>.
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: bullet@erwincoumans.com about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: 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 # as_fn_append VAR VALUE
295 # ----------------------
296 # Append the text in VALUE to the end of the definition contained in VAR. Take
297 # advantage of any shell optimizations that allow amortized linear growth over
298 # repeated appends, instead of the typical quadratic growth present in naive
299 # implementations.
300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
301   eval 'as_fn_append ()
302   {
303     eval $1+=\$2
304   }'
305 else
306   as_fn_append ()
307   {
308     eval $1=\$$1\$2
309   }
310 fi # as_fn_append
311
312 # as_fn_arith ARG...
313 # ------------------
314 # Perform arithmetic evaluation on the ARGs, and store the result in the
315 # global $as_val. Take advantage of shells that can avoid forks. The arguments
316 # must be portable across $(()) and expr.
317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
318   eval 'as_fn_arith ()
319   {
320     as_val=$(( $* ))
321   }'
322 else
323   as_fn_arith ()
324   {
325     as_val=`expr "$@" || test $? -eq 1`
326   }
327 fi # as_fn_arith
328
329
330 # as_fn_error STATUS ERROR [LINENO LOG_FD]
331 # ----------------------------------------
332 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
333 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
334 # script with STATUS, using 1 if that was 0.
335 as_fn_error ()
336 {
337   as_status=$1; test $as_status -eq 0 && as_status=1
338   if test "$4"; then
339     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
340     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
341   fi
342   $as_echo "$as_me: error: $2" >&2
343   as_fn_exit $as_status
344 } # as_fn_error
345
346 if expr a : '\(a\)' >/dev/null 2>&1 &&
347    test "X`expr 00001 : '.*\(...\)'`" = X001; then
348   as_expr=expr
349 else
350   as_expr=false
351 fi
352
353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
354   as_basename=basename
355 else
356   as_basename=false
357 fi
358
359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
360   as_dirname=dirname
361 else
362   as_dirname=false
363 fi
364
365 as_me=`$as_basename -- "$0" ||
366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
367          X"$0" : 'X\(//\)$' \| \
368          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
369 $as_echo X/"$0" |
370     sed '/^.*\/\([^/][^/]*\)\/*$/{
371             s//\1/
372             q
373           }
374           /^X\/\(\/\/\)$/{
375             s//\1/
376             q
377           }
378           /^X\/\(\/\).*/{
379             s//\1/
380             q
381           }
382           s/.*/./; q'`
383
384 # Avoid depending upon Character Ranges.
385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
388 as_cr_digits='0123456789'
389 as_cr_alnum=$as_cr_Letters$as_cr_digits
390
391
392   as_lineno_1=$LINENO as_lineno_1a=$LINENO
393   as_lineno_2=$LINENO as_lineno_2a=$LINENO
394   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
395   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
396   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
397   sed -n '
398     p
399     /[$]LINENO/=
400   ' <$as_myself |
401     sed '
402       s/[$]LINENO.*/&-/
403       t lineno
404       b
405       :lineno
406       N
407       :loop
408       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
409       t loop
410       s/-\n.*//
411     ' >$as_me.lineno &&
412   chmod +x "$as_me.lineno" ||
413     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
414
415   # Don't try to exec as it changes $[0], causing all sort of problems
416   # (the dirname of $[0] is not the place where we might find the
417   # original and so on.  Autoconf is especially sensitive to this).
418   . "./$as_me.lineno"
419   # Exit status is that of the last command.
420   exit
421 }
422
423 ECHO_C= ECHO_N= ECHO_T=
424 case `echo -n x` in #(((((
425 -n*)
426   case `echo 'xy\c'` in
427   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
428   xy)  ECHO_C='\c';;
429   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
430        ECHO_T=' ';;
431   esac;;
432 *)
433   ECHO_N='-n';;
434 esac
435
436 rm -f conf$$ conf$$.exe conf$$.file
437 if test -d conf$$.dir; then
438   rm -f conf$$.dir/conf$$.file
439 else
440   rm -f conf$$.dir
441   mkdir conf$$.dir 2>/dev/null
442 fi
443 if (echo >conf$$.file) 2>/dev/null; then
444   if ln -s conf$$.file conf$$ 2>/dev/null; then
445     as_ln_s='ln -s'
446     # ... but there are two gotchas:
447     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
448     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
449     # In both cases, we have to default to `cp -p'.
450     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
451       as_ln_s='cp -p'
452   elif ln conf$$.file conf$$ 2>/dev/null; then
453     as_ln_s=ln
454   else
455     as_ln_s='cp -p'
456   fi
457 else
458   as_ln_s='cp -p'
459 fi
460 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
461 rmdir conf$$.dir 2>/dev/null
462
463 if mkdir -p . 2>/dev/null; then
464   as_mkdir_p='mkdir -p'
465 elif mkdirs . 2>/dev/null; then
466   as_mkdir_p='mkdirs'
467 else
468   as_mkdir_p=''
469 fi
470 test -d ./-p && rmdir ./-p
471
472 if test -x / >/dev/null 2>&1; then
473   as_test_x='test -x'
474 else
475   if ls -dL / >/dev/null 2>&1; then
476     as_ls_L_option=L
477   else
478     as_ls_L_option=
479   fi
480   as_test_x='
481     eval sh -c '\''
482       if test -d "$1"; then
483         test -d "$1/.";
484       else
485         case $1 in #(
486         -*)set "./$1";;
487         esac;
488         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
489         ???[sx]*):;;*)false;;esac;fi
490     '\'' sh
491   '
492 fi
493 as_executable_p=$as_test_x
494
495 # Sed expression to map a string onto a valid CPP name.
496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
497
498 # Sed expression to map a string onto a valid variable name.
499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
500
501 SHELL=${CONFIG_SHELL-/bin/sh}
502
503
504 test -n "$DJDIR" || exec 7<&0 </dev/null
505 exec 6>&1
506
507 # Name of the host.
508 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
509 # so uname gets run too.
510 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
511
512 #
513 # Initializations.
514 #
515 ac_default_prefix=/usr/local
516 ac_clean_files=
517 ac_config_libobj_dir=.
518 LIBOBJS=
519 cross_compiling=no
520 subdirs=
521 MFLAGS=
522 MAKEFLAGS=
523
524 # Identity of this package.
525 PACKAGE_NAME='bullet'
526 PACKAGE_TARNAME='bullet'
527 PACKAGE_VERSION='2.81'
528 PACKAGE_STRING='bullet 2.81'
529 PACKAGE_BUGREPORT='bullet@erwincoumans.com'
530 PACKAGE_URL=''
531
532 ac_unique_file="configure.ac"
533 # Factoring default headers for most tests.
534 ac_includes_default="\
535 #include <stdio.h>
536 #ifdef HAVE_SYS_TYPES_H
537 # include <sys/types.h>
538 #endif
539 #ifdef HAVE_SYS_STAT_H
540 # include <sys/stat.h>
541 #endif
542 #ifdef STDC_HEADERS
543 # include <stdlib.h>
544 # include <stddef.h>
545 #else
546 # ifdef HAVE_STDLIB_H
547 #  include <stdlib.h>
548 # endif
549 #endif
550 #ifdef HAVE_STRING_H
551 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
552 #  include <memory.h>
553 # endif
554 # include <string.h>
555 #endif
556 #ifdef HAVE_STRINGS_H
557 # include <strings.h>
558 #endif
559 #ifdef HAVE_INTTYPES_H
560 # include <inttypes.h>
561 #endif
562 #ifdef HAVE_STDINT_H
563 # include <stdint.h>
564 #endif
565 #ifdef HAVE_UNISTD_H
566 # include <unistd.h>
567 #endif"
568
569 ac_subst_vars='am__EXEEXT_FALSE
570 am__EXEEXT_TRUE
571 LTLIBOBJS
572 LIBOBJS
573 GL_LIBS
574 CONDITIONAL_BUILD_DEMOS_FALSE
575 CONDITIONAL_BUILD_DEMOS_TRUE
576 CONDITIONAL_BUILD_MULTITHREADED_FALSE
577 CONDITIONAL_BUILD_MULTITHREADED_TRUE
578 opengl_LIBS
579 CXXCPP
580 CPP
581 OTOOL64
582 OTOOL
583 LIPO
584 NMEDIT
585 DSYMUTIL
586 MANIFEST_TOOL
587 RANLIB
588 ac_ct_AR
589 AR
590 DLLTOOL
591 OBJDUMP
592 LN_S
593 NM
594 ac_ct_DUMPBIN
595 DUMPBIN
596 LD
597 FGREP
598 EGREP
599 GREP
600 SED
601 LIBTOOL
602 am__fastdepCXX_FALSE
603 am__fastdepCXX_TRUE
604 CXXDEPMODE
605 ac_ct_CXX
606 CXXFLAGS
607 CXX
608 am__fastdepCC_FALSE
609 am__fastdepCC_TRUE
610 CCDEPMODE
611 AMDEPBACKSLASH
612 AMDEP_FALSE
613 AMDEP_TRUE
614 am__quote
615 am__include
616 DEPDIR
617 OBJEXT
618 EXEEXT
619 ac_ct_CC
620 CPPFLAGS
621 LDFLAGS
622 CFLAGS
623 CC
624 am__untar
625 am__tar
626 AMTAR
627 am__leading_dot
628 SET_MAKE
629 AWK
630 mkdir_p
631 MKDIR_P
632 INSTALL_STRIP_PROGRAM
633 STRIP
634 install_sh
635 MAKEINFO
636 AUTOHEADER
637 AUTOMAKE
638 AUTOCONF
639 ACLOCAL
640 VERSION
641 PACKAGE
642 CYGPATH_W
643 am__isrc
644 INSTALL_DATA
645 INSTALL_SCRIPT
646 INSTALL_PROGRAM
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 target_alias
656 host_alias
657 build_alias
658 LIBS
659 ECHO_T
660 ECHO_N
661 ECHO_C
662 DEFS
663 mandir
664 localedir
665 libdir
666 psdir
667 pdfdir
668 dvidir
669 htmldir
670 infodir
671 docdir
672 oldincludedir
673 includedir
674 localstatedir
675 sharedstatedir
676 sysconfdir
677 datadir
678 datarootdir
679 libexecdir
680 sbindir
681 bindir
682 program_transform_name
683 prefix
684 exec_prefix
685 PACKAGE_URL
686 PACKAGE_BUGREPORT
687 PACKAGE_STRING
688 PACKAGE_VERSION
689 PACKAGE_TARNAME
690 PACKAGE_NAME
691 PATH_SEPARATOR
692 SHELL'
693 ac_subst_files=''
694 ac_user_opts='
695 enable_option_checking
696 enable_dependency_tracking
697 enable_shared
698 enable_static
699 with_pic
700 enable_fast_install
701 with_gnu_ld
702 with_sysroot
703 enable_libtool_lock
704 enable_multithreaded
705 enable_demos
706 enable_debug
707 '
708       ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
716 CXX
717 CXXFLAGS
718 CCC
719 CPP
720 CXXCPP'
721
722
723 # Initialize some variables set by options.
724 ac_init_help=
725 ac_init_version=false
726 ac_unrecognized_opts=
727 ac_unrecognized_sep=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
730 cache_file=/dev/null
731 exec_prefix=NONE
732 no_create=
733 no_recursion=
734 prefix=NONE
735 program_prefix=NONE
736 program_suffix=NONE
737 program_transform_name=s,x,x,
738 silent=
739 site=
740 srcdir=
741 verbose=
742 x_includes=NONE
743 x_libraries=NONE
744
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir='${exec_prefix}/bin'
752 sbindir='${exec_prefix}/sbin'
753 libexecdir='${exec_prefix}/libexec'
754 datarootdir='${prefix}/share'
755 datadir='${datarootdir}'
756 sysconfdir='${prefix}/etc'
757 sharedstatedir='${prefix}/com'
758 localstatedir='${prefix}/var'
759 includedir='${prefix}/include'
760 oldincludedir='/usr/include'
761 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir='${datarootdir}/info'
763 htmldir='${docdir}'
764 dvidir='${docdir}'
765 pdfdir='${docdir}'
766 psdir='${docdir}'
767 libdir='${exec_prefix}/lib'
768 localedir='${datarootdir}/locale'
769 mandir='${datarootdir}/man'
770
771 ac_prev=
772 ac_dashdash=
773 for ac_option
774 do
775   # If the previous option needs an argument, assign it.
776   if test -n "$ac_prev"; then
777     eval $ac_prev=\$ac_option
778     ac_prev=
779     continue
780   fi
781
782   case $ac_option in
783   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784   *=)   ac_optarg= ;;
785   *)    ac_optarg=yes ;;
786   esac
787
788   # Accept the important Cygnus configure options, so we can diagnose typos.
789
790   case $ac_dashdash$ac_option in
791   --)
792     ac_dashdash=yes ;;
793
794   -bindir | --bindir | --bindi | --bind | --bin | --bi)
795     ac_prev=bindir ;;
796   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797     bindir=$ac_optarg ;;
798
799   -build | --build | --buil | --bui | --bu)
800     ac_prev=build_alias ;;
801   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802     build_alias=$ac_optarg ;;
803
804   -cache-file | --cache-file | --cache-fil | --cache-fi \
805   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806     ac_prev=cache_file ;;
807   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809     cache_file=$ac_optarg ;;
810
811   --config-cache | -C)
812     cache_file=config.cache ;;
813
814   -datadir | --datadir | --datadi | --datad)
815     ac_prev=datadir ;;
816   -datadir=* | --datadir=* | --datadi=* | --datad=*)
817     datadir=$ac_optarg ;;
818
819   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820   | --dataroo | --dataro | --datar)
821     ac_prev=datarootdir ;;
822   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824     datarootdir=$ac_optarg ;;
825
826   -disable-* | --disable-*)
827     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828     # Reject names that are not valid shell variable names.
829     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830       as_fn_error $? "invalid feature name: $ac_useropt"
831     ac_useropt_orig=$ac_useropt
832     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833     case $ac_user_opts in
834       *"
835 "enable_$ac_useropt"
836 "*) ;;
837       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838          ac_unrecognized_sep=', ';;
839     esac
840     eval enable_$ac_useropt=no ;;
841
842   -docdir | --docdir | --docdi | --doc | --do)
843     ac_prev=docdir ;;
844   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845     docdir=$ac_optarg ;;
846
847   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848     ac_prev=dvidir ;;
849   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850     dvidir=$ac_optarg ;;
851
852   -enable-* | --enable-*)
853     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856       as_fn_error $? "invalid feature name: $ac_useropt"
857     ac_useropt_orig=$ac_useropt
858     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859     case $ac_user_opts in
860       *"
861 "enable_$ac_useropt"
862 "*) ;;
863       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864          ac_unrecognized_sep=', ';;
865     esac
866     eval enable_$ac_useropt=\$ac_optarg ;;
867
868   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870   | --exec | --exe | --ex)
871     ac_prev=exec_prefix ;;
872   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874   | --exec=* | --exe=* | --ex=*)
875     exec_prefix=$ac_optarg ;;
876
877   -gas | --gas | --ga | --g)
878     # Obsolete; use --with-gas.
879     with_gas=yes ;;
880
881   -help | --help | --hel | --he | -h)
882     ac_init_help=long ;;
883   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884     ac_init_help=recursive ;;
885   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886     ac_init_help=short ;;
887
888   -host | --host | --hos | --ho)
889     ac_prev=host_alias ;;
890   -host=* | --host=* | --hos=* | --ho=*)
891     host_alias=$ac_optarg ;;
892
893   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894     ac_prev=htmldir ;;
895   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896   | --ht=*)
897     htmldir=$ac_optarg ;;
898
899   -includedir | --includedir | --includedi | --included | --include \
900   | --includ | --inclu | --incl | --inc)
901     ac_prev=includedir ;;
902   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903   | --includ=* | --inclu=* | --incl=* | --inc=*)
904     includedir=$ac_optarg ;;
905
906   -infodir | --infodir | --infodi | --infod | --info | --inf)
907     ac_prev=infodir ;;
908   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909     infodir=$ac_optarg ;;
910
911   -libdir | --libdir | --libdi | --libd)
912     ac_prev=libdir ;;
913   -libdir=* | --libdir=* | --libdi=* | --libd=*)
914     libdir=$ac_optarg ;;
915
916   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917   | --libexe | --libex | --libe)
918     ac_prev=libexecdir ;;
919   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920   | --libexe=* | --libex=* | --libe=*)
921     libexecdir=$ac_optarg ;;
922
923   -localedir | --localedir | --localedi | --localed | --locale)
924     ac_prev=localedir ;;
925   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926     localedir=$ac_optarg ;;
927
928   -localstatedir | --localstatedir | --localstatedi | --localstated \
929   | --localstate | --localstat | --localsta | --localst | --locals)
930     ac_prev=localstatedir ;;
931   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933     localstatedir=$ac_optarg ;;
934
935   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936     ac_prev=mandir ;;
937   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938     mandir=$ac_optarg ;;
939
940   -nfp | --nfp | --nf)
941     # Obsolete; use --without-fp.
942     with_fp=no ;;
943
944   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945   | --no-cr | --no-c | -n)
946     no_create=yes ;;
947
948   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950     no_recursion=yes ;;
951
952   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954   | --oldin | --oldi | --old | --ol | --o)
955     ac_prev=oldincludedir ;;
956   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959     oldincludedir=$ac_optarg ;;
960
961   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962     ac_prev=prefix ;;
963   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964     prefix=$ac_optarg ;;
965
966   -program-prefix | --program-prefix | --program-prefi | --program-pref \
967   | --program-pre | --program-pr | --program-p)
968     ac_prev=program_prefix ;;
969   -program-prefix=* | --program-prefix=* | --program-prefi=* \
970   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971     program_prefix=$ac_optarg ;;
972
973   -program-suffix | --program-suffix | --program-suffi | --program-suff \
974   | --program-suf | --program-su | --program-s)
975     ac_prev=program_suffix ;;
976   -program-suffix=* | --program-suffix=* | --program-suffi=* \
977   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978     program_suffix=$ac_optarg ;;
979
980   -program-transform-name | --program-transform-name \
981   | --program-transform-nam | --program-transform-na \
982   | --program-transform-n | --program-transform- \
983   | --program-transform | --program-transfor \
984   | --program-transfo | --program-transf \
985   | --program-trans | --program-tran \
986   | --progr-tra | --program-tr | --program-t)
987     ac_prev=program_transform_name ;;
988   -program-transform-name=* | --program-transform-name=* \
989   | --program-transform-nam=* | --program-transform-na=* \
990   | --program-transform-n=* | --program-transform-=* \
991   | --program-transform=* | --program-transfor=* \
992   | --program-transfo=* | --program-transf=* \
993   | --program-trans=* | --program-tran=* \
994   | --progr-tra=* | --program-tr=* | --program-t=*)
995     program_transform_name=$ac_optarg ;;
996
997   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998     ac_prev=pdfdir ;;
999   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000     pdfdir=$ac_optarg ;;
1001
1002   -psdir | --psdir | --psdi | --psd | --ps)
1003     ac_prev=psdir ;;
1004   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005     psdir=$ac_optarg ;;
1006
1007   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008   | -silent | --silent | --silen | --sile | --sil)
1009     silent=yes ;;
1010
1011   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012     ac_prev=sbindir ;;
1013   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014   | --sbi=* | --sb=*)
1015     sbindir=$ac_optarg ;;
1016
1017   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019   | --sharedst | --shareds | --shared | --share | --shar \
1020   | --sha | --sh)
1021     ac_prev=sharedstatedir ;;
1022   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025   | --sha=* | --sh=*)
1026     sharedstatedir=$ac_optarg ;;
1027
1028   -site | --site | --sit)
1029     ac_prev=site ;;
1030   -site=* | --site=* | --sit=*)
1031     site=$ac_optarg ;;
1032
1033   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034     ac_prev=srcdir ;;
1035   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036     srcdir=$ac_optarg ;;
1037
1038   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039   | --syscon | --sysco | --sysc | --sys | --sy)
1040     ac_prev=sysconfdir ;;
1041   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043     sysconfdir=$ac_optarg ;;
1044
1045   -target | --target | --targe | --targ | --tar | --ta | --t)
1046     ac_prev=target_alias ;;
1047   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048     target_alias=$ac_optarg ;;
1049
1050   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051     verbose=yes ;;
1052
1053   -version | --version | --versio | --versi | --vers | -V)
1054     ac_init_version=: ;;
1055
1056   -with-* | --with-*)
1057     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060       as_fn_error $? "invalid package name: $ac_useropt"
1061     ac_useropt_orig=$ac_useropt
1062     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063     case $ac_user_opts in
1064       *"
1065 "with_$ac_useropt"
1066 "*) ;;
1067       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068          ac_unrecognized_sep=', ';;
1069     esac
1070     eval with_$ac_useropt=\$ac_optarg ;;
1071
1072   -without-* | --without-*)
1073     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076       as_fn_error $? "invalid package name: $ac_useropt"
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "with_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval with_$ac_useropt=no ;;
1087
1088   --x)
1089     # Obsolete; use --with-x.
1090     with_x=yes ;;
1091
1092   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093   | --x-incl | --x-inc | --x-in | --x-i)
1094     ac_prev=x_includes ;;
1095   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097     x_includes=$ac_optarg ;;
1098
1099   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101     ac_prev=x_libraries ;;
1102   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104     x_libraries=$ac_optarg ;;
1105
1106   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information"
1108     ;;
1109
1110   *=*)
1111     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112     # Reject names that are not valid shell variable names.
1113     case $ac_envvar in #(
1114       '' | [0-9]* | *[!_$as_cr_alnum]* )
1115       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1116     esac
1117     eval $ac_envvar=\$ac_optarg
1118     export $ac_envvar ;;
1119
1120   *)
1121     # FIXME: should be removed in autoconf 3.0.
1122     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1126     ;;
1127
1128   esac
1129 done
1130
1131 if test -n "$ac_prev"; then
1132   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133   as_fn_error $? "missing argument to $ac_option"
1134 fi
1135
1136 if test -n "$ac_unrecognized_opts"; then
1137   case $enable_option_checking in
1138     no) ;;
1139     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1140     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141   esac
1142 fi
1143
1144 # Check all directory arguments for consistency.
1145 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146                 datadir sysconfdir sharedstatedir localstatedir includedir \
1147                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148                 libdir localedir mandir
1149 do
1150   eval ac_val=\$$ac_var
1151   # Remove trailing slashes.
1152   case $ac_val in
1153     */ )
1154       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155       eval $ac_var=\$ac_val;;
1156   esac
1157   # Be sure to have absolute directory names.
1158   case $ac_val in
1159     [\\/$]* | ?:[\\/]* )  continue;;
1160     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161   esac
1162   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1163 done
1164
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1168 build=$build_alias
1169 host=$host_alias
1170 target=$target_alias
1171
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174   if test "x$build_alias" = x; then
1175     cross_compiling=maybe
1176     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1177     If a cross compiler is detected then cross compile mode will be used" >&2
1178   elif test "x$build_alias" != "x$host_alias"; then
1179     cross_compiling=yes
1180   fi
1181 fi
1182
1183 ac_tool_prefix=
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185
1186 test "$silent" = yes && exec 6>/dev/null
1187
1188
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192   as_fn_error $? "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194   as_fn_error $? "pwd does not report name of working directory"
1195
1196
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199   ac_srcdir_defaulted=yes
1200   # Try the directory containing this script, then the parent directory.
1201   ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203          X"$as_myself" : 'X\(//\)[^/]' \| \
1204          X"$as_myself" : 'X\(//\)$' \| \
1205          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208             s//\1/
1209             q
1210           }
1211           /^X\(\/\/\)[^/].*/{
1212             s//\1/
1213             q
1214           }
1215           /^X\(\/\/\)$/{
1216             s//\1/
1217             q
1218           }
1219           /^X\(\/\).*/{
1220             s//\1/
1221             q
1222           }
1223           s/.*/./; q'`
1224   srcdir=$ac_confdir
1225   if test ! -r "$srcdir/$ac_unique_file"; then
1226     srcdir=..
1227   fi
1228 else
1229   ac_srcdir_defaulted=no
1230 fi
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1234 fi
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238         pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241   srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251   eval ac_env_${ac_var}_value=\$${ac_var}
1252   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260   # Omit some internal or obsolete options to make the list less imposing.
1261   # This message is too long to be a string in the A/UX 3.1 sh.
1262   cat <<_ACEOF
1263 \`configure' configures bullet 2.81 to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE.  See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273   -h, --help              display this help and exit
1274       --help=short        display options specific to this package
1275       --help=recursive    display the short help of all the included packages
1276   -V, --version           display version information and exit
1277   -q, --quiet, --silent   do not print \`checking ...' messages
1278       --cache-file=FILE   cache test results in FILE [disabled]
1279   -C, --config-cache      alias for \`--cache-file=config.cache'
1280   -n, --no-create         do not create output files
1281       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1282
1283 Installation directories:
1284   --prefix=PREFIX         install architecture-independent files in PREFIX
1285                           [$ac_default_prefix]
1286   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1287                           [PREFIX]
1288
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297   --bindir=DIR            user executables [EPREFIX/bin]
1298   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1299   --libexecdir=DIR        program executables [EPREFIX/libexec]
1300   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1301   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1302   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1303   --libdir=DIR            object code libraries [EPREFIX/lib]
1304   --includedir=DIR        C header files [PREFIX/include]
1305   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1306   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1307   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1308   --infodir=DIR           info documentation [DATAROOTDIR/info]
1309   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1310   --mandir=DIR            man documentation [DATAROOTDIR/man]
1311   --docdir=DIR            documentation root [DATAROOTDIR/doc/bullet]
1312   --htmldir=DIR           html documentation [DOCDIR]
1313   --dvidir=DIR            dvi documentation [DOCDIR]
1314   --pdfdir=DIR            pdf documentation [DOCDIR]
1315   --psdir=DIR             ps documentation [DOCDIR]
1316 _ACEOF
1317
1318   cat <<\_ACEOF
1319
1320 Program names:
1321   --program-prefix=PREFIX            prepend PREFIX to installed program names
1322   --program-suffix=SUFFIX            append SUFFIX to installed program names
1323   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1324
1325 System types:
1326   --build=BUILD     configure for building on BUILD [guessed]
1327   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1329 fi
1330
1331 if test -n "$ac_init_help"; then
1332   case $ac_init_help in
1333      short | recursive ) echo "Configuration of bullet 2.81:";;
1334    esac
1335   cat <<\_ACEOF
1336
1337 Optional Features:
1338   --disable-option-checking  ignore unrecognized --enable/--with options
1339   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1340   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1341   --disable-dependency-tracking  speeds up one-time build
1342   --enable-dependency-tracking   do not reject slow dependency extractors
1343   --enable-shared[=PKGS]  build shared libraries [default=yes]
1344   --enable-static[=PKGS]  build static libraries [default=yes]
1345   --enable-fast-install[=PKGS]
1346                           optimize for fast installation [default=yes]
1347   --disable-libtool-lock  avoid locking (might break parallel builds)
1348   --enable-multithreaded  build BulletMultiThreaded (default NO)
1349   --disable-demos         disable Bullet demos
1350   --enable-debug          build with debugging information (default NO)
1351
1352 Optional Packages:
1353   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1354   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1355   --with-pic              try to use only PIC/non-PIC objects [default=use
1356                           both]
1357   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1358   --with-sysroot=DIR Search for dependent libraries within DIR
1359                         (or the compiler's sysroot if not specified).
1360
1361 Some influential environment variables:
1362   CC          C compiler command
1363   CFLAGS      C compiler flags
1364   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1365               nonstandard directory <lib dir>
1366   LIBS        libraries to pass to the linker, e.g. -l<library>
1367   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368               you have headers in a nonstandard directory <include dir>
1369   CXX         C++ compiler command
1370   CXXFLAGS    C++ compiler flags
1371   CPP         C preprocessor
1372   CXXCPP      C++ preprocessor
1373
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1376
1377 Report bugs to <bullet@erwincoumans.com>.
1378 _ACEOF
1379 ac_status=$?
1380 fi
1381
1382 if test "$ac_init_help" = "recursive"; then
1383   # If there are subdirs, report their specific --help.
1384   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385     test -d "$ac_dir" ||
1386       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387       continue
1388     ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394   # A ".." for each directory in $ac_dir_suffix.
1395   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396   case $ac_top_builddir_sub in
1397   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399   esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407   .)  # We are building in place.
1408     ac_srcdir=.
1409     ac_top_srcdir=$ac_top_builddir_sub
1410     ac_abs_top_srcdir=$ac_pwd ;;
1411   [\\/]* | ?:[\\/]* )  # Absolute name.
1412     ac_srcdir=$srcdir$ac_dir_suffix;
1413     ac_top_srcdir=$srcdir
1414     ac_abs_top_srcdir=$srcdir ;;
1415   *) # Relative name.
1416     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417     ac_top_srcdir=$ac_top_build_prefix$srcdir
1418     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422     cd "$ac_dir" || { ac_status=$?; continue; }
1423     # Check for guested configure.
1424     if test -f "$ac_srcdir/configure.gnu"; then
1425       echo &&
1426       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427     elif test -f "$ac_srcdir/configure"; then
1428       echo &&
1429       $SHELL "$ac_srcdir/configure" --help=recursive
1430     else
1431       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432     fi || ac_status=$?
1433     cd "$ac_pwd" || { ac_status=$?; break; }
1434   done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439   cat <<\_ACEOF
1440 bullet configure 2.81
1441 generated by GNU Autoconf 2.68
1442
1443 Copyright (C) 2010 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1446 _ACEOF
1447   exit
1448 fi
1449
1450 ## ------------------------ ##
1451 ## Autoconf initialization. ##
1452 ## ------------------------ ##
1453
1454 # ac_fn_c_try_compile LINENO
1455 # --------------------------
1456 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1457 ac_fn_c_try_compile ()
1458 {
1459   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460   rm -f conftest.$ac_objext
1461   if { { ac_try="$ac_compile"
1462 case "(($ac_try" in
1463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464   *) ac_try_echo=$ac_try;;
1465 esac
1466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467 $as_echo "$ac_try_echo"; } >&5
1468   (eval "$ac_compile") 2>conftest.err
1469   ac_status=$?
1470   if test -s conftest.err; then
1471     grep -v '^ *+' conftest.err >conftest.er1
1472     cat conftest.er1 >&5
1473     mv -f conftest.er1 conftest.err
1474   fi
1475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476   test $ac_status = 0; } && {
1477          test -z "$ac_c_werror_flag" ||
1478          test ! -s conftest.err
1479        } && test -s conftest.$ac_objext; then :
1480   ac_retval=0
1481 else
1482   $as_echo "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1484
1485         ac_retval=1
1486 fi
1487   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488   as_fn_set_status $ac_retval
1489
1490 } # ac_fn_c_try_compile
1491
1492 # ac_fn_cxx_try_compile LINENO
1493 # ----------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_cxx_try_compile ()
1496 {
1497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498   rm -f conftest.$ac_objext
1499   if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502   *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506   (eval "$ac_compile") 2>conftest.err
1507   ac_status=$?
1508   if test -s conftest.err; then
1509     grep -v '^ *+' conftest.err >conftest.er1
1510     cat conftest.er1 >&5
1511     mv -f conftest.er1 conftest.err
1512   fi
1513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514   test $ac_status = 0; } && {
1515          test -z "$ac_cxx_werror_flag" ||
1516          test ! -s conftest.err
1517        } && test -s conftest.$ac_objext; then :
1518   ac_retval=0
1519 else
1520   $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523         ac_retval=1
1524 fi
1525   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526   as_fn_set_status $ac_retval
1527
1528 } # ac_fn_cxx_try_compile
1529
1530 # ac_fn_c_try_link LINENO
1531 # -----------------------
1532 # Try to link conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_link ()
1534 {
1535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536   rm -f conftest.$ac_objext conftest$ac_exeext
1537   if { { ac_try="$ac_link"
1538 case "(($ac_try" in
1539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540   *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544   (eval "$ac_link") 2>conftest.err
1545   ac_status=$?
1546   if test -s conftest.err; then
1547     grep -v '^ *+' conftest.err >conftest.er1
1548     cat conftest.er1 >&5
1549     mv -f conftest.er1 conftest.err
1550   fi
1551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552   test $ac_status = 0; } && {
1553          test -z "$ac_c_werror_flag" ||
1554          test ! -s conftest.err
1555        } && test -s conftest$ac_exeext && {
1556          test "$cross_compiling" = yes ||
1557          $as_test_x conftest$ac_exeext
1558        }; then :
1559   ac_retval=0
1560 else
1561   $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564         ac_retval=1
1565 fi
1566   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1567   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1568   # interfere with the next link command; also delete a directory that is
1569   # left behind by Apple's compiler.  We do this before executing the actions.
1570   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1571   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572   as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_link
1575
1576 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists and can be compiled using the include files in
1579 # INCLUDES, setting the cache variable VAR accordingly.
1580 ac_fn_c_check_header_compile ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586   $as_echo_n "(cached) " >&6
1587 else
1588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h.  */
1590 $4
1591 #include <$2>
1592 _ACEOF
1593 if ac_fn_c_try_compile "$LINENO"; then :
1594   eval "$3=yes"
1595 else
1596   eval "$3=no"
1597 fi
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599 fi
1600 eval ac_res=\$$3
1601                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602 $as_echo "$ac_res" >&6; }
1603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604
1605 } # ac_fn_c_check_header_compile
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } > conftest.i && {
1629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637     ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_c_try_run LINENO
1645 # ----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647 # that executables *can* be run.
1648 ac_fn_c_try_run ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_link") 2>&5
1659   ac_status=$?
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662   { { case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_try") 2>&5
1669   ac_status=$?
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; }; }; then :
1672   ac_retval=0
1673 else
1674   $as_echo "$as_me: program exited with status $ac_status" >&5
1675        $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678        ac_retval=$ac_status
1679 fi
1680   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682   as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_run
1685
1686 # ac_fn_c_check_func LINENO FUNC VAR
1687 # ----------------------------------
1688 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1689 ac_fn_c_check_func ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695   $as_echo_n "(cached) " >&6
1696 else
1697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1701 #define $2 innocuous_$2
1702
1703 /* System header to define __stub macros and hopefully few prototypes,
1704     which can conflict with char $2 (); below.
1705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1706     <limits.h> exists even on freestanding compilers.  */
1707
1708 #ifdef __STDC__
1709 # include <limits.h>
1710 #else
1711 # include <assert.h>
1712 #endif
1713
1714 #undef $2
1715
1716 /* Override any GCC internal prototype to avoid an error.
1717    Use char because int might match the return type of a GCC
1718    builtin and then its argument prototype would still apply.  */
1719 #ifdef __cplusplus
1720 extern "C"
1721 #endif
1722 char $2 ();
1723 /* The GNU C library defines this for functions which it implements
1724     to always fail with ENOSYS.  Some functions are actually named
1725     something starting with __ and the normal name is an alias.  */
1726 #if defined __stub_$2 || defined __stub___$2
1727 choke me
1728 #endif
1729
1730 int
1731 main ()
1732 {
1733 return $2 ();
1734   ;
1735   return 0;
1736 }
1737 _ACEOF
1738 if ac_fn_c_try_link "$LINENO"; then :
1739   eval "$3=yes"
1740 else
1741   eval "$3=no"
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext \
1744     conftest$ac_exeext conftest.$ac_ext
1745 fi
1746 eval ac_res=\$$3
1747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_func
1752
1753 # ac_fn_cxx_try_cpp LINENO
1754 # ------------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_cpp ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767   ac_status=$?
1768   if test -s conftest.err; then
1769     grep -v '^ *+' conftest.err >conftest.er1
1770     cat conftest.er1 >&5
1771     mv -f conftest.er1 conftest.err
1772   fi
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; } > conftest.i && {
1775          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1776          test ! -s conftest.err
1777        }; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783     ac_retval=1
1784 fi
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786   as_fn_set_status $ac_retval
1787
1788 } # ac_fn_cxx_try_cpp
1789
1790 # ac_fn_cxx_try_link LINENO
1791 # -------------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   rm -f conftest.$ac_objext conftest$ac_exeext
1797   if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_link") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && {
1813          test -z "$ac_cxx_werror_flag" ||
1814          test ! -s conftest.err
1815        } && test -s conftest$ac_exeext && {
1816          test "$cross_compiling" = yes ||
1817          $as_test_x conftest$ac_exeext
1818        }; then :
1819   ac_retval=0
1820 else
1821   $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824         ac_retval=1
1825 fi
1826   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828   # interfere with the next link command; also delete a directory that is
1829   # left behind by Apple's compiler.  We do this before executing the actions.
1830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832   as_fn_set_status $ac_retval
1833
1834 } # ac_fn_cxx_try_link
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1838
1839 It was created by bullet $as_me 2.81, which was
1840 generated by GNU Autoconf 2.68.  Invocation command line was
1841
1842   $ $0 $@
1843
1844 _ACEOF
1845 exec 5>>config.log
1846 {
1847 cat <<_ASUNAME
1848 ## --------- ##
1849 ## Platform. ##
1850 ## --------- ##
1851
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1860
1861 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1862 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1865 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1866 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1867 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1868
1869 _ASUNAME
1870
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874   IFS=$as_save_IFS
1875   test -z "$as_dir" && as_dir=.
1876     $as_echo "PATH: $as_dir"
1877   done
1878 IFS=$as_save_IFS
1879
1880 } >&5
1881
1882 cat >&5 <<_ACEOF
1883
1884
1885 ## ----------- ##
1886 ## Core tests. ##
1887 ## ----------- ##
1888
1889 _ACEOF
1890
1891
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1897 ac_configure_args=
1898 ac_configure_args0=
1899 ac_configure_args1=
1900 ac_must_keep_next=false
1901 for ac_pass in 1 2
1902 do
1903   for ac_arg
1904   do
1905     case $ac_arg in
1906     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908     | -silent | --silent | --silen | --sile | --sil)
1909       continue ;;
1910     *\'*)
1911       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912     esac
1913     case $ac_pass in
1914     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915     2)
1916       as_fn_append ac_configure_args1 " '$ac_arg'"
1917       if test $ac_must_keep_next = true; then
1918         ac_must_keep_next=false # Got value, back to normal.
1919       else
1920         case $ac_arg in
1921           *=* | --config-cache | -C | -disable-* | --disable-* \
1922           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924           | -with-* | --with-* | -without-* | --without-* | --x)
1925             case "$ac_configure_args0 " in
1926               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927             esac
1928             ;;
1929           -* ) ac_must_keep_next=true ;;
1930         esac
1931       fi
1932       as_fn_append ac_configure_args " '$ac_arg'"
1933       ;;
1934     esac
1935   done
1936 done
1937 { ac_configure_args0=; unset ac_configure_args0;}
1938 { ac_configure_args1=; unset ac_configure_args1;}
1939
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log.  We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946   # Save into config.log some information that might help in debugging.
1947   {
1948     echo
1949
1950     $as_echo "## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##"
1953     echo
1954     # The following way of writing the cache mishandles newlines in values,
1955 (
1956   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957     eval ac_val=\$$ac_var
1958     case $ac_val in #(
1959     *${as_nl}*)
1960       case $ac_var in #(
1961       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963       esac
1964       case $ac_var in #(
1965       _ | IFS | as_nl) ;; #(
1966       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967       *) { eval $ac_var=; unset $ac_var;} ;;
1968       esac ;;
1969     esac
1970   done
1971   (set) 2>&1 |
1972     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973     *${as_nl}ac_space=\ *)
1974       sed -n \
1975         "s/'\''/'\''\\\\'\'''\''/g;
1976           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977       ;; #(
1978     *)
1979       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980       ;;
1981     esac |
1982     sort
1983 )
1984     echo
1985
1986     $as_echo "## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##"
1989     echo
1990     for ac_var in $ac_subst_vars
1991     do
1992       eval ac_val=\$$ac_var
1993       case $ac_val in
1994       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995       esac
1996       $as_echo "$ac_var='\''$ac_val'\''"
1997     done | sort
1998     echo
1999
2000     if test -n "$ac_subst_files"; then
2001       $as_echo "## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##"
2004       echo
2005       for ac_var in $ac_subst_files
2006       do
2007         eval ac_val=\$$ac_var
2008         case $ac_val in
2009         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010         esac
2011         $as_echo "$ac_var='\''$ac_val'\''"
2012       done | sort
2013       echo
2014     fi
2015
2016     if test -s confdefs.h; then
2017       $as_echo "## ----------- ##
2018 ## confdefs.h. ##
2019 ## ----------- ##"
2020       echo
2021       cat confdefs.h
2022       echo
2023     fi
2024     test "$ac_signal" != 0 &&
2025       $as_echo "$as_me: caught signal $ac_signal"
2026     $as_echo "$as_me: exit $exit_status"
2027   } >&5
2028   rm -f core *.core core.conftest.* &&
2029     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030     exit $exit_status
2031 ' 0
2032 for ac_signal in 1 2 13 15; do
2033   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2034 done
2035 ac_signal=0
2036
2037 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2038 rm -f -r conftest* confdefs.h
2039
2040 $as_echo "/* confdefs.h */" > confdefs.h
2041
2042 # Predefined preprocessor variables.
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_NAME "$PACKAGE_NAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_STRING "$PACKAGE_STRING"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_URL "$PACKAGE_URL"
2066 _ACEOF
2067
2068
2069 # Let the site file select an alternate cache file if it wants to.
2070 # Prefer an explicitly selected file to automatically selected ones.
2071 ac_site_file1=NONE
2072 ac_site_file2=NONE
2073 if test -n "$CONFIG_SITE"; then
2074   # We do not want a PATH search for config.site.
2075   case $CONFIG_SITE in #((
2076     -*)  ac_site_file1=./$CONFIG_SITE;;
2077     */*) ac_site_file1=$CONFIG_SITE;;
2078     *)   ac_site_file1=./$CONFIG_SITE;;
2079   esac
2080 elif test "x$prefix" != xNONE; then
2081   ac_site_file1=$prefix/share/config.site
2082   ac_site_file2=$prefix/etc/config.site
2083 else
2084   ac_site_file1=$ac_default_prefix/share/config.site
2085   ac_site_file2=$ac_default_prefix/etc/config.site
2086 fi
2087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 do
2089   test "x$ac_site_file" = xNONE && continue
2090   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2091     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093     sed 's/^/| /' "$ac_site_file" >&5
2094     . "$ac_site_file" \
2095       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 as_fn_error $? "failed to load site script $ac_site_file
2098 See \`config.log' for more details" "$LINENO" 5; }
2099   fi
2100 done
2101
2102 if test -r "$cache_file"; then
2103   # Some versions of bash will fail to source /dev/null (special files
2104   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2105   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107 $as_echo "$as_me: loading cache $cache_file" >&6;}
2108     case $cache_file in
2109       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110       *)                      . "./$cache_file";;
2111     esac
2112   fi
2113 else
2114   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115 $as_echo "$as_me: creating cache $cache_file" >&6;}
2116   >$cache_file
2117 fi
2118
2119 # Check that the precious variables saved in the cache have kept the same
2120 # value.
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124   eval ac_new_set=\$ac_env_${ac_var}_set
2125   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126   eval ac_new_val=\$ac_env_${ac_var}_value
2127   case $ac_old_set,$ac_new_set in
2128     set,)
2129       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131       ac_cache_corrupted=: ;;
2132     ,set)
2133       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135       ac_cache_corrupted=: ;;
2136     ,);;
2137     *)
2138       if test "x$ac_old_val" != "x$ac_new_val"; then
2139         # differences in whitespace do not lead to failure.
2140         ac_old_val_w=`echo x $ac_old_val`
2141         ac_new_val_w=`echo x $ac_new_val`
2142         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145           ac_cache_corrupted=:
2146         else
2147           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149           eval $ac_var=\$ac_old_val
2150         fi
2151         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2152 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2153         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2154 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2155       fi;;
2156   esac
2157   # Pass precious variables to config.status.
2158   if test "$ac_new_set" = set; then
2159     case $ac_new_val in
2160     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161     *) ac_arg=$ac_var=$ac_new_val ;;
2162     esac
2163     case " $ac_configure_args " in
2164       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2165       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2166     esac
2167   fi
2168 done
2169 if $ac_cache_corrupted; then
2170   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175 fi
2176 ## -------------------- ##
2177 ## Main body of script. ##
2178 ## -------------------- ##
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187 ac_aux_dir=
2188 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189   if test -f "$ac_dir/install-sh"; then
2190     ac_aux_dir=$ac_dir
2191     ac_install_sh="$ac_aux_dir/install-sh -c"
2192     break
2193   elif test -f "$ac_dir/install.sh"; then
2194     ac_aux_dir=$ac_dir
2195     ac_install_sh="$ac_aux_dir/install.sh -c"
2196     break
2197   elif test -f "$ac_dir/shtool"; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/shtool install -c"
2200     break
2201   fi
2202 done
2203 if test -z "$ac_aux_dir"; then
2204   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2205 fi
2206
2207 # These three variables are undocumented and unsupported,
2208 # and are intended to be withdrawn in a future Autoconf release.
2209 # They can cause serious problems if a builder's source tree is in a directory
2210 # whose full name contains unusual characters.
2211 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2212 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2213 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2214
2215
2216 # Make sure we can run config.sub.
2217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2218   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2219
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2221 $as_echo_n "checking build system type... " >&6; }
2222 if ${ac_cv_build+:} false; then :
2223   $as_echo_n "(cached) " >&6
2224 else
2225   ac_build_alias=$build_alias
2226 test "x$ac_build_alias" = x &&
2227   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2228 test "x$ac_build_alias" = x &&
2229   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2231   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2232
2233 fi
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2235 $as_echo "$ac_cv_build" >&6; }
2236 case $ac_cv_build in
2237 *-*-*) ;;
2238 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2239 esac
2240 build=$ac_cv_build
2241 ac_save_IFS=$IFS; IFS='-'
2242 set x $ac_cv_build
2243 shift
2244 build_cpu=$1
2245 build_vendor=$2
2246 shift; shift
2247 # Remember, the first character of IFS is used to create $*,
2248 # except with old shells:
2249 build_os=$*
2250 IFS=$ac_save_IFS
2251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2252
2253
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2255 $as_echo_n "checking host system type... " >&6; }
2256 if ${ac_cv_host+:} false; then :
2257   $as_echo_n "(cached) " >&6
2258 else
2259   if test "x$host_alias" = x; then
2260   ac_cv_host=$ac_cv_build
2261 else
2262   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2263     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2264 fi
2265
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2268 $as_echo "$ac_cv_host" >&6; }
2269 case $ac_cv_host in
2270 *-*-*) ;;
2271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2272 esac
2273 host=$ac_cv_host
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_host
2276 shift
2277 host_cpu=$1
2278 host_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 host_os=$*
2283 IFS=$ac_save_IFS
2284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2285
2286
2287
2288 am__api_version='1.11'
2289
2290 # Find a good install program.  We prefer a C program (faster),
2291 # so one script is as good as another.  But avoid the broken or
2292 # incompatible versions:
2293 # SysV /etc/install, /usr/sbin/install
2294 # SunOS /usr/etc/install
2295 # IRIX /sbin/install
2296 # AIX /bin/install
2297 # AmigaOS /C/install, which installs bootblocks on floppy discs
2298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2301 # OS/2's system install, which has a completely different semantic
2302 # ./install, which can be erroneously created by make from ./install.sh.
2303 # Reject install programs that cannot install multiple files.
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2305 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2306 if test -z "$INSTALL"; then
2307 if ${ac_cv_path_install+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315     # Account for people who put trailing slashes in PATH elements.
2316 case $as_dir/ in #((
2317   ./ | .// | /[cC]/* | \
2318   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2319   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2320   /usr/ucb/* ) ;;
2321   *)
2322     # OSF1 and SCO ODT 3.0 have their own names for install.
2323     # Don't use installbsd from OSF since it installs stuff as root
2324     # by default.
2325     for ac_prog in ginstall scoinst install; do
2326       for ac_exec_ext in '' $ac_executable_extensions; do
2327         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2328           if test $ac_prog = install &&
2329             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330             # AIX install.  It has an incompatible calling convention.
2331             :
2332           elif test $ac_prog = install &&
2333             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334             # program-specific install script used by HP pwplus--don't use.
2335             :
2336           else
2337             rm -rf conftest.one conftest.two conftest.dir
2338             echo one > conftest.one
2339             echo two > conftest.two
2340             mkdir conftest.dir
2341             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2342               test -s conftest.one && test -s conftest.two &&
2343               test -s conftest.dir/conftest.one &&
2344               test -s conftest.dir/conftest.two
2345             then
2346               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2347               break 3
2348             fi
2349           fi
2350         fi
2351       done
2352     done
2353     ;;
2354 esac
2355
2356   done
2357 IFS=$as_save_IFS
2358
2359 rm -rf conftest.one conftest.two conftest.dir
2360
2361 fi
2362   if test "${ac_cv_path_install+set}" = set; then
2363     INSTALL=$ac_cv_path_install
2364   else
2365     # As a last resort, use the slow shell script.  Don't cache a
2366     # value for INSTALL within a source directory, because that will
2367     # break other packages using the cache if that directory is
2368     # removed, or if the value is a relative name.
2369     INSTALL=$ac_install_sh
2370   fi
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2373 $as_echo "$INSTALL" >&6; }
2374
2375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2376 # It thinks the first close brace ends the variable substitution.
2377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2378
2379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2380
2381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2382
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2384 $as_echo_n "checking whether build environment is sane... " >&6; }
2385 # Just in case
2386 sleep 1
2387 echo timestamp > conftest.file
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name.  Accept space and tab only in the latter.
2390 am_lf='
2391 '
2392 case `pwd` in
2393   *[\\\"\#\$\&\'\`$am_lf]*)
2394     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395 esac
2396 case $srcdir in
2397   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2398     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2399 esac
2400
2401 # Do `set' in a subshell so we don't clobber the current shell's
2402 # arguments.  Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2405 # directory).
2406 if (
2407    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2408    if test "$*" = "X"; then
2409       # -L didn't work.
2410       set X `ls -t "$srcdir/configure" conftest.file`
2411    fi
2412    rm -f conftest.file
2413    if test "$*" != "X $srcdir/configure conftest.file" \
2414       && test "$*" != "X conftest.file $srcdir/configure"; then
2415
2416       # If neither matched, then we have a broken ls.  This can happen
2417       # if, for instance, CONFIG_SHELL is bash and it inherits a
2418       # broken ls alias from the environment.  This has actually
2419       # happened.  Such a system could not be considered "sane".
2420       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2422    fi
2423
2424    test "$2" = conftest.file
2425    )
2426 then
2427    # Ok.
2428    :
2429 else
2430    as_fn_error $? "newly created file is older than distributed files!
2431 Check your system clock" "$LINENO" 5
2432 fi
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2435 test "$program_prefix" != NONE &&
2436   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444
2445 # expand $ac_aux_dir to an absolute path
2446 am_aux_dir=`cd $ac_aux_dir && pwd`
2447
2448 if test x"${MISSING+set}" != xset; then
2449   case $am_aux_dir in
2450   *\ * | *\     *)
2451     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2452   *)
2453     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2454   esac
2455 fi
2456 # Use eval to expand $SHELL
2457 if eval "$MISSING --run true"; then
2458   am_missing_run="$MISSING --run "
2459 else
2460   am_missing_run=
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2462 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2463 fi
2464
2465 if test x"${install_sh}" != xset; then
2466   case $am_aux_dir in
2467   *\ * | *\     *)
2468     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2469   *)
2470     install_sh="\${SHELL} $am_aux_dir/install-sh"
2471   esac
2472 fi
2473
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'.  However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479   if test -n "$ac_tool_prefix"; then
2480   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_STRIP+:} false; then :
2485   $as_echo_n "(cached) " >&6
2486 else
2487   if test -n "$STRIP"; then
2488   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495     for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502   done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2510 $as_echo "$STRIP" >&6; }
2511 else
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516
2517 fi
2518 if test -z "$ac_cv_prog_STRIP"; then
2519   ac_ct_STRIP=$STRIP
2520   # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test -n "$ac_ct_STRIP"; then
2528   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535     for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_ac_ct_STRIP="strip"
2538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2550 $as_echo "$ac_ct_STRIP" >&6; }
2551 else
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556   if test "x$ac_ct_STRIP" = x; then
2557     STRIP=":"
2558   else
2559     case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563 ac_tool_warned=yes ;;
2564 esac
2565     STRIP=$ac_ct_STRIP
2566   fi
2567 else
2568   STRIP="$ac_cv_prog_STRIP"
2569 fi
2570
2571 fi
2572 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2575 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2576 if test -z "$MKDIR_P"; then
2577   if ${ac_cv_path_mkdir+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_prog in mkdir gmkdir; do
2586          for ac_exec_ext in '' $ac_executable_extensions; do
2587            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2588            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2589              'mkdir (GNU coreutils) '* | \
2590              'mkdir (coreutils) '* | \
2591              'mkdir (fileutils) '4.1*)
2592                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2593                break 3;;
2594            esac
2595          done
2596        done
2597   done
2598 IFS=$as_save_IFS
2599
2600 fi
2601
2602   test -d ./--version && rmdir ./--version
2603   if test "${ac_cv_path_mkdir+set}" = set; then
2604     MKDIR_P="$ac_cv_path_mkdir -p"
2605   else
2606     # As a last resort, use the slow shell script.  Don't cache a
2607     # value for MKDIR_P within a source directory, because that will
2608     # break other packages using the cache if that directory is
2609     # removed, or if the value is a relative name.
2610     MKDIR_P="$ac_install_sh -d"
2611   fi
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2614 $as_echo "$MKDIR_P" >&6; }
2615
2616 mkdir_p="$MKDIR_P"
2617 case $mkdir_p in
2618   [\\/$]* | ?:[\\/]*) ;;
2619   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2620 esac
2621
2622 for ac_prog in gawk mawk nawk awk
2623 do
2624   # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$AWK"; then
2632   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_AWK="$ac_prog"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 AWK=$ac_cv_prog_AWK
2652 if test -n "$AWK"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660
2661   test -n "$AWK" && break
2662 done
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 set x ${MAKE-make}
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   cat >conftest.make <<\_ACEOF
2672 SHELL = /bin/sh
2673 all:
2674         @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 _ACEOF
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678   *@@@%%%=?*=@@@%%%*)
2679     eval ac_cv_prog_make_${ac_make}_set=yes;;
2680   *)
2681     eval ac_cv_prog_make_${ac_make}_set=no;;
2682 esac
2683 rm -f conftest.make
2684 fi
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2688   SET_MAKE=
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692   SET_MAKE="MAKE=${MAKE-make}"
2693 fi
2694
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2698   am__leading_dot=.
2699 else
2700   am__leading_dot=_
2701 fi
2702 rmdir .tst 2>/dev/null
2703
2704 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2705   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2706   # is not polluted with repeated "-I."
2707   am__isrc=' -I$(srcdir)'
2708   # test to see if srcdir already configured
2709   if test -f $srcdir/config.status; then
2710     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2711   fi
2712 fi
2713
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716   if (cygpath --version) >/dev/null 2>/dev/null; then
2717     CYGPATH_W='cygpath -w'
2718   else
2719     CYGPATH_W=echo
2720   fi
2721 fi
2722
2723
2724 # Define the identity of the package.
2725  PACKAGE='bullet'
2726  VERSION='2.81'
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE "$PACKAGE"
2731 _ACEOF
2732
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define VERSION "$VERSION"
2736 _ACEOF
2737
2738 # Some tools Automake needs.
2739
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2741
2742
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2744
2745
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2747
2748
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2750
2751
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2753
2754 # We need awk for the "check" target.  The system "awk" is bad on
2755 # some platforms.
2756 # Always define AMTAR for backward compatibility.
2757
2758 AMTAR=${AMTAR-"${am_missing_run}tar"}
2759
2760 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2761
2762
2763
2764
2765
2766 DEPDIR="${am__leading_dot}deps"
2767
2768 ac_config_commands="$ac_config_commands depfiles"
2769
2770
2771 am_make=${MAKE-make}
2772 cat > confinc << 'END'
2773 am__doit:
2774         @echo this is the am__doit target
2775 .PHONY: am__doit
2776 END
2777 # If we don't find an include directive, just comment out the code.
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2780 am__include="#"
2781 am__quote=
2782 _am_result=none
2783 # First try GNU make style include.
2784 echo "include confinc" > confmf
2785 # Ignore all kinds of additional output from `make'.
2786 case `$am_make -s -f confmf 2> /dev/null` in #(
2787 *the\ am__doit\ target*)
2788   am__include=include
2789   am__quote=
2790   _am_result=GNU
2791   ;;
2792 esac
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795    echo '.include "confinc"' > confmf
2796    case `$am_make -s -f confmf 2> /dev/null` in #(
2797    *the\ am__doit\ target*)
2798      am__include=.include
2799      am__quote="\""
2800      _am_result=BSD
2801      ;;
2802    esac
2803 fi
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2807 $as_echo "$_am_result" >&6; }
2808 rm -f confinc confmf
2809
2810 # Check whether --enable-dependency-tracking was given.
2811 if test "${enable_dependency_tracking+set}" = set; then :
2812   enableval=$enable_dependency_tracking;
2813 fi
2814
2815 if test "x$enable_dependency_tracking" != xno; then
2816   am_depcomp="$ac_aux_dir/depcomp"
2817   AMDEPBACKSLASH='\'
2818 fi
2819  if test "x$enable_dependency_tracking" != xno; then
2820   AMDEP_TRUE=
2821   AMDEP_FALSE='#'
2822 else
2823   AMDEP_TRUE='#'
2824   AMDEP_FALSE=
2825 fi
2826
2827
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 if test -n "$ac_tool_prefix"; then
2834   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_CC+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   if test -n "$CC"; then
2842   ac_cv_prog_CC="$CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849     for ac_exec_ext in '' $ac_executable_extensions; do
2850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856   done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 CC=$ac_cv_prog_CC
2862 if test -n "$CC"; then
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2865 else
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870
2871 fi
2872 if test -z "$ac_cv_prog_CC"; then
2873   ac_ct_CC=$CC
2874   # Extract the first word of "gcc", so it can be a program name with args.
2875 set dummy gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   if test -n "$ac_ct_CC"; then
2882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889     for ac_exec_ext in '' $ac_executable_extensions; do
2890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891     ac_cv_prog_ac_ct_CC="gcc"
2892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896   done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2905 else
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910   if test "x$ac_ct_CC" = x; then
2911     CC=""
2912   else
2913     case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2918 esac
2919     CC=$ac_ct_CC
2920   fi
2921 else
2922   CC="$ac_cv_prog_CC"
2923 fi
2924
2925 if test -z "$CC"; then
2926           if test -n "$ac_tool_prefix"; then
2927     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   if test -n "$CC"; then
2935   ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940   IFS=$as_save_IFS
2941   test -z "$as_dir" && as_dir=.
2942     for ac_exec_ext in '' $ac_executable_extensions; do
2943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944     ac_cv_prog_CC="${ac_tool_prefix}cc"
2945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946     break 2
2947   fi
2948 done
2949   done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964   fi
2965 fi
2966 if test -z "$CC"; then
2967   # Extract the first word of "cc", so it can be a program name with args.
2968 set dummy cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$CC"; then
2975   ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977   ac_prog_rejected=no
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986        ac_prog_rejected=yes
2987        continue
2988      fi
2989     ac_cv_prog_CC="cc"
2990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994   done
2995 IFS=$as_save_IFS
2996
2997 if test $ac_prog_rejected = yes; then
2998   # We found a bogon in the path, so make sure we never use it.
2999   set dummy $ac_cv_prog_CC
3000   shift
3001   if test $# != 0; then
3002     # We chose a different compiler from the bogus one.
3003     # However, it has the same basename, so the bogon will be chosen
3004     # first if we set CC to just the basename; use the full file name.
3005     shift
3006     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3007   fi
3008 fi
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 fi
3022 if test -z "$CC"; then
3023   if test -n "$ac_tool_prefix"; then
3024   for ac_prog in cl.exe
3025   do
3026     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063     test -n "$CC" && break
3064   done
3065 fi
3066 if test -z "$CC"; then
3067   ac_ct_CC=$CC
3068   for ac_prog in cl.exe
3069 do
3070   # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075   $as_echo_n "(cached) " >&6
3076 else
3077   if test -n "$ac_ct_CC"; then
3078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085     for ac_exec_ext in '' $ac_executable_extensions; do
3086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087     ac_cv_prog_ac_ct_CC="$ac_prog"
3088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089     break 2
3090   fi
3091 done
3092   done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107   test -n "$ac_ct_CC" && break
3108 done
3109
3110   if test "x$ac_ct_CC" = x; then
3111     CC=""
3112   else
3113     case $cross_compiling:$ac_tool_warned in
3114 yes:)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117 ac_tool_warned=yes ;;
3118 esac
3119     CC=$ac_ct_CC
3120   fi
3121 fi
3122
3123 fi
3124
3125
3126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error $? "no acceptable C compiler found in \$PATH
3129 See \`config.log' for more details" "$LINENO" 5; }
3130
3131 # Provide some information about the compiler.
3132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3133 set X $ac_compile
3134 ac_compiler=$2
3135 for ac_option in --version -v -V -qversion; do
3136   { { ac_try="$ac_compiler $ac_option >&5"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3144   ac_status=$?
3145   if test -s conftest.err; then
3146     sed '10a\
3147 ... rest of stderr output deleted ...
3148          10q' conftest.err >conftest.er1
3149     cat conftest.er1 >&5
3150   fi
3151   rm -f conftest.er1 conftest.err
3152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153   test $ac_status = 0; }
3154 done
3155
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3171 # of exeext.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3173 $as_echo_n "checking whether the C compiler works... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
3179 ac_rmfiles=
3180 for ac_file in $ac_files
3181 do
3182   case $ac_file in
3183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185   esac
3186 done
3187 rm -f $ac_rmfiles
3188
3189 if { { ac_try="$ac_link_default"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196   (eval "$ac_link_default") 2>&5
3197   ac_status=$?
3198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199   test $ac_status = 0; }; then :
3200   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3204 # Autoconf.
3205 for ac_file in $ac_files ''
3206 do
3207   test -f "$ac_file" || continue
3208   case $ac_file in
3209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3210         ;;
3211     [ab].out )
3212         # We found the default executable, but exeext='' is most
3213         # certainly right.
3214         break;;
3215     *.* )
3216         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3217         then :; else
3218            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219         fi
3220         # We set ac_cv_exeext here because the later test for it is not
3221         # safe: cross compilers may not add the suffix if given an `-o'
3222         # argument, so we may need to know it at that point already.
3223         # Even if this section looks crufty: it has the advantage of
3224         # actually working.
3225         break;;
3226     * )
3227         break;;
3228   esac
3229 done
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
3232 else
3233   ac_file=''
3234 fi
3235 if test -z "$ac_file"; then :
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error 77 "C compiler cannot create executables
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 else
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250 $as_echo_n "checking for C compiler default output file name... " >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 ac_exeext=$ac_cv_exeext
3254
3255 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258 $as_echo_n "checking for suffix of executables... " >&6; }
3259 if { { ac_try="$ac_link"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266   (eval "$ac_link") 2>&5
3267   ac_status=$?
3268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269   test $ac_status = 0; }; then :
3270   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3272 # work properly (i.e., refer to `conftest.exe'), while it won't with
3273 # `rm'.
3274 for ac_file in conftest.exe conftest conftest.*; do
3275   test -f "$ac_file" || continue
3276   case $ac_file in
3277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279           break;;
3280     * ) break;;
3281   esac
3282 done
3283 else
3284   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287 See \`config.log' for more details" "$LINENO" 5; }
3288 fi
3289 rm -f conftest conftest$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3292
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3295 ac_exeext=$EXEEXT
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298 #include <stdio.h>
3299 int
3300 main ()
3301 {
3302 FILE *f = fopen ("conftest.out", "w");
3303  return ferror (f) || fclose (f) != 0;
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 ac_clean_files="$ac_clean_files conftest.out"
3310 # Check that the compiler produces executables we can run.  If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313 $as_echo_n "checking whether we are cross compiling... " >&6; }
3314 if test "$cross_compiling" != yes; then
3315   { { ac_try="$ac_link"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322   (eval "$ac_link") 2>&5
3323   ac_status=$?
3324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325   test $ac_status = 0; }
3326   if { ac_try='./conftest$ac_cv_exeext'
3327   { { case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333   (eval "$ac_try") 2>&5
3334   ac_status=$?
3335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336   test $ac_status = 0; }; }; then
3337     cross_compiling=no
3338   else
3339     if test "$cross_compiling" = maybe; then
3340         cross_compiling=yes
3341     else
3342         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot run C compiled programs.
3345 If you meant to cross compile, use \`--host'.
3346 See \`config.log' for more details" "$LINENO" 5; }
3347     fi
3348   fi
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3352
3353 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if ${ac_cv_objext+:} false; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h.  */
3362
3363 int
3364 main ()
3365 {
3366
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_compile") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }; then :
3383   for ac_file in conftest.o conftest.obj conftest.*; do
3384   test -f "$ac_file" || continue;
3385   case $ac_file in
3386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388        break;;
3389   esac
3390 done
3391 else
3392   $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details" "$LINENO" 5; }
3399 fi
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3405 ac_objext=$OBJEXT
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408 if ${ac_cv_c_compiler_gnu+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h.  */
3413
3414 int
3415 main ()
3416 {
3417 #ifndef __GNUC__
3418        choke me
3419 #endif
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426   ac_compiler_gnu=yes
3427 else
3428   ac_compiler_gnu=no
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3432
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3437   GCC=yes
3438 else
3439   GCC=
3440 fi
3441 ac_test_CFLAGS=${CFLAGS+set}
3442 ac_save_CFLAGS=$CFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3444 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3445 if ${ac_cv_prog_cc_g+:} false; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   ac_save_c_werror_flag=$ac_c_werror_flag
3449    ac_c_werror_flag=yes
3450    ac_cv_prog_cc_g=no
3451    CFLAGS="-g"
3452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_c_try_compile "$LINENO"; then :
3464   ac_cv_prog_cc_g=yes
3465 else
3466   CFLAGS=""
3467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479
3480 else
3481   ac_c_werror_flag=$ac_save_c_werror_flag
3482          CFLAGS="-g"
3483          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495   ac_cv_prog_cc_g=yes
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502    ac_c_werror_flag=$ac_save_c_werror_flag
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3505 $as_echo "$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507   CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509   if test "$GCC" = yes; then
3510     CFLAGS="-g -O2"
3511   else
3512     CFLAGS="-g"
3513   fi
3514 else
3515   if test "$GCC" = yes; then
3516     CFLAGS="-O2"
3517   else
3518     CFLAGS=
3519   fi
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3522 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3523 if ${ac_cv_prog_cc_c89+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   ac_cv_prog_cc_c89=no
3527 ac_save_CC=$CC
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530 #include <stdarg.h>
3531 #include <stdio.h>
3532 #include <sys/types.h>
3533 #include <sys/stat.h>
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3538      char **p;
3539      int i;
3540 {
3541   return p[i];
3542 }
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3544 {
3545   char *s;
3546   va_list v;
3547   va_start (v,p);
3548   s = g (p, va_arg (v,int));
3549   va_end (v);
3550   return s;
3551 }
3552
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3554    function prototypes and stuff, but not '\xHH' hex character constants.
3555    These don't provoke an error unfortunately, instead are silently treated
3556    as 'x'.  The following induces an error, until -std is added to get
3557    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3558    array size at least.  It's necessary to write '\x00'==0 to get something
3559    that's true only with -std.  */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563    inside strings and character constants.  */
3564 #define FOO(x) 'x'
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 int argc;
3572 char **argv;
3573 int
3574 main ()
3575 {
3576 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 do
3584   CC="$ac_save_CC $ac_arg"
3585   if ac_fn_c_try_compile "$LINENO"; then :
3586   ac_cv_prog_cc_c89=$ac_arg
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext
3589   test "x$ac_cv_prog_cc_c89" != "xno" && break
3590 done
3591 rm -f conftest.$ac_ext
3592 CC=$ac_save_CC
3593
3594 fi
3595 # AC_CACHE_VAL
3596 case "x$ac_cv_prog_cc_c89" in
3597   x)
3598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599 $as_echo "none needed" >&6; } ;;
3600   xno)
3601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602 $as_echo "unsupported" >&6; } ;;
3603   *)
3604     CC="$CC $ac_cv_prog_cc_c89"
3605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3607 esac
3608 if test "x$ac_cv_prog_cc_c89" != xno; then :
3609
3610 fi
3611
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618 depcc="$CC"   am_compiler_list=
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621 $as_echo_n "checking dependency style of $depcc... " >&6; }
3622 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626   # We make a subdir and do the tests there.  Otherwise we can end up
3627   # making bogus files that we don't know about and never remove.  For
3628   # instance it was reported that on HP-UX the gcc test will end up
3629   # making a dummy file named `D' -- because `-MD' means `put the output
3630   # in D'.
3631   mkdir conftest.dir
3632   # Copy depcomp to subdir because otherwise we won't find it if we're
3633   # using a relative directory.
3634   cp "$am_depcomp" conftest.dir
3635   cd conftest.dir
3636   # We will build objects and dependencies in a subdirectory because
3637   # it helps to detect inapplicable dependency modes.  For instance
3638   # both Tru64's cc and ICC support -MD to output dependencies as a
3639   # side effect of compilation, but ICC will put the dependencies in
3640   # the current directory while Tru64 will put them in the object
3641   # directory.
3642   mkdir sub
3643
3644   am_cv_CC_dependencies_compiler_type=none
3645   if test "$am_compiler_list" = ""; then
3646      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3647   fi
3648   am__universal=false
3649   case " $depcc " in #(
3650      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3651      esac
3652
3653   for depmode in $am_compiler_list; do
3654     # Setup a source with many dependencies, because some compilers
3655     # like to wrap large dependency lists on column 80 (with \), and
3656     # we should not choose a depcomp mode which is confused by this.
3657     #
3658     # We need to recreate these files for each test, as the compiler may
3659     # overwrite some of them when testing with obscure command lines.
3660     # This happens at least with the AIX C compiler.
3661     : > sub/conftest.c
3662     for i in 1 2 3 4 5 6; do
3663       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3664       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3665       # Solaris 8's {/usr,}/bin/sh.
3666       touch sub/conftst$i.h
3667     done
3668     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3669
3670     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671     # mode.  It turns out that the SunPro C++ compiler does not properly
3672     # handle `-M -o', and we need to detect this.  Also, some Intel
3673     # versions had trouble with output in subdirs
3674     am__obj=sub/conftest.${OBJEXT-o}
3675     am__minus_obj="-o $am__obj"
3676     case $depmode in
3677     gcc)
3678       # This depmode causes a compiler race in universal mode.
3679       test "$am__universal" = false || continue
3680       ;;
3681     nosideeffect)
3682       # after this tag, mechanisms are not by side-effect, so they'll
3683       # only be used when explicitly requested
3684       if test "x$enable_dependency_tracking" = xyes; then
3685         continue
3686       else
3687         break
3688       fi
3689       ;;
3690     msvisualcpp | msvcmsys)
3691       # This compiler won't grok `-c -o', but also, the minuso test has
3692       # not run yet.  These depmodes are late enough in the game, and
3693       # so weak that their functioning should not be impacted.
3694       am__obj=conftest.${OBJEXT-o}
3695       am__minus_obj=
3696       ;;
3697     none) break ;;
3698     esac
3699     if depmode=$depmode \
3700        source=sub/conftest.c object=$am__obj \
3701        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3702        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3703          >/dev/null 2>conftest.err &&
3704        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3705        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3706        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3707        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3708       # icc doesn't choke on unknown options, it will just issue warnings
3709       # or remarks (even with -Werror).  So we grep stderr for any message
3710       # that says an option was ignored or not supported.
3711       # When given -MP, icc 7.0 and 7.1 complain thusly:
3712       #   icc: Command line warning: ignoring option '-M'; no argument required
3713       # The diagnosis changed in icc 8.0:
3714       #   icc: Command line remark: option '-MP' not supported
3715       if (grep 'ignoring option' conftest.err ||
3716           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3717         am_cv_CC_dependencies_compiler_type=$depmode
3718         break
3719       fi
3720     fi
3721   done
3722
3723   cd ..
3724   rm -rf conftest.dir
3725 else
3726   am_cv_CC_dependencies_compiler_type=none
3727 fi
3728
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3731 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3732 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3733
3734  if
3735   test "x$enable_dependency_tracking" != xno \
3736   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3737   am__fastdepCC_TRUE=
3738   am__fastdepCC_FALSE='#'
3739 else
3740   am__fastdepCC_TRUE='#'
3741   am__fastdepCC_FALSE=
3742 fi
3743
3744
3745 if test "x$CC" != xcc; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3747 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3750 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3751 fi
3752 set dummy $CC; ac_cc=`$as_echo "$2" |
3753                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3754 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3755   $as_echo_n "(cached) " >&6
3756 else
3757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h.  */
3759
3760 int
3761 main ()
3762 {
3763
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 # Make sure it works both with $CC and with simple cc.
3769 # We do the test twice because some compilers refuse to overwrite an
3770 # existing .o file with -o, though they will create one.
3771 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3772 rm -f conftest2.*
3773 if { { case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779   (eval "$ac_try") 2>&5
3780   ac_status=$?
3781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782   test $ac_status = 0; } &&
3783    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789   (eval "$ac_try") 2>&5
3790   ac_status=$?
3791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792   test $ac_status = 0; };
3793 then
3794   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3795   if test "x$CC" != xcc; then
3796     # Test first that cc exists at all.
3797     if { ac_try='cc -c conftest.$ac_ext >&5'
3798   { { case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_try") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; }; then
3808       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3809       rm -f conftest2.*
3810       if { { case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_try") 2>&5
3817   ac_status=$?
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; } &&
3820          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826   (eval "$ac_try") 2>&5
3827   ac_status=$?
3828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829   test $ac_status = 0; };
3830       then
3831         # cc works too.
3832         :
3833       else
3834         # cc exists but doesn't like -o.
3835         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3836       fi
3837     fi
3838   fi
3839 else
3840   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3841 fi
3842 rm -f core conftest*
3843
3844 fi
3845 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847 $as_echo "yes" >&6; }
3848 else
3849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851
3852 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3853
3854 fi
3855
3856 # FIXME: we rely on the cache variable name because
3857 # there is no other way.
3858 set dummy $CC
3859 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3860 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3861 if test "$am_t" != yes; then
3862    # Losing compiler, so override with the script.
3863    # FIXME: It is wrong to rewrite CC.
3864    # But if we don't then we get into trouble of one sort or another.
3865    # A longer-term fix would be to have automake use am__CC in this case,
3866    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3867    CC="$am_aux_dir/compile $CC"
3868 fi
3869
3870
3871 ac_ext=cpp
3872 ac_cpp='$CXXCPP $CPPFLAGS'
3873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3876 if test -z "$CXX"; then
3877   if test -n "$CCC"; then
3878     CXX=$CCC
3879   else
3880     if test -n "$ac_tool_prefix"; then
3881   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3882   do
3883     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CXX+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   if test -n "$CXX"; then
3891   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898     for ac_exec_ext in '' $ac_executable_extensions; do
3899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905   done
3906 IFS=$as_save_IFS
3907
3908 fi
3909 fi
3910 CXX=$ac_cv_prog_CXX
3911 if test -n "$CXX"; then
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3913 $as_echo "$CXX" >&6; }
3914 else
3915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 fi
3918
3919
3920     test -n "$CXX" && break
3921   done
3922 fi
3923 if test -z "$CXX"; then
3924   ac_ct_CXX=$CXX
3925   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3926 do
3927   # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   if test -n "$ac_ct_CXX"; then
3935   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940   IFS=$as_save_IFS
3941   test -z "$as_dir" && as_dir=.
3942     for ac_exec_ext in '' $ac_executable_extensions; do
3943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944     ac_cv_prog_ac_ct_CXX="$ac_prog"
3945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946     break 2
3947   fi
3948 done
3949   done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3955 if test -n "$ac_ct_CXX"; then
3956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3957 $as_echo "$ac_ct_CXX" >&6; }
3958 else
3959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 fi
3962
3963
3964   test -n "$ac_ct_CXX" && break
3965 done
3966
3967   if test "x$ac_ct_CXX" = x; then
3968     CXX="g++"
3969   else
3970     case $cross_compiling:$ac_tool_warned in
3971 yes:)
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3975 esac
3976     CXX=$ac_ct_CXX
3977   fi
3978 fi
3979
3980   fi
3981 fi
3982 # Provide some information about the compiler.
3983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3984 set X $ac_compile
3985 ac_compiler=$2
3986 for ac_option in --version -v -V -qversion; do
3987   { { ac_try="$ac_compiler $ac_option >&5"
3988 case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3995   ac_status=$?
3996   if test -s conftest.err; then
3997     sed '10a\
3998 ... rest of stderr output deleted ...
3999          10q' conftest.err >conftest.er1
4000     cat conftest.er1 >&5
4001   fi
4002   rm -f conftest.er1 conftest.err
4003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004   test $ac_status = 0; }
4005 done
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4008 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4009 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014
4015 int
4016 main ()
4017 {
4018 #ifndef __GNUC__
4019        choke me
4020 #endif
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_cxx_try_compile "$LINENO"; then :
4027   ac_compiler_gnu=yes
4028 else
4029   ac_compiler_gnu=no
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4033
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4036 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4038   GXX=yes
4039 else
4040   GXX=
4041 fi
4042 ac_test_CXXFLAGS=${CXXFLAGS+set}
4043 ac_save_CXXFLAGS=$CXXFLAGS
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4045 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4046 if ${ac_cv_prog_cxx_g+:} false; then :
4047   $as_echo_n "(cached) " >&6
4048 else
4049   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4050    ac_cxx_werror_flag=yes
4051    ac_cv_prog_cxx_g=no
4052    CXXFLAGS="-g"
4053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_cxx_try_compile "$LINENO"; then :
4065   ac_cv_prog_cxx_g=yes
4066 else
4067   CXXFLAGS=""
4068       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h.  */
4070
4071 int
4072 main ()
4073 {
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_cxx_try_compile "$LINENO"; then :
4080
4081 else
4082   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4083          CXXFLAGS="-g"
4084          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_cxx_try_compile "$LINENO"; then :
4096   ac_cv_prog_cxx_g=yes
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4106 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4107 if test "$ac_test_CXXFLAGS" = set; then
4108   CXXFLAGS=$ac_save_CXXFLAGS
4109 elif test $ac_cv_prog_cxx_g = yes; then
4110   if test "$GXX" = yes; then
4111     CXXFLAGS="-g -O2"
4112   else
4113     CXXFLAGS="-g"
4114   fi
4115 else
4116   if test "$GXX" = yes; then
4117     CXXFLAGS="-O2"
4118   else
4119     CXXFLAGS=
4120   fi
4121 fi
4122 ac_ext=c
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127
4128 depcc="$CXX"  am_compiler_list=
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4131 $as_echo_n "checking dependency style of $depcc... " >&6; }
4132 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4136   # We make a subdir and do the tests there.  Otherwise we can end up
4137   # making bogus files that we don't know about and never remove.  For
4138   # instance it was reported that on HP-UX the gcc test will end up
4139   # making a dummy file named `D' -- because `-MD' means `put the output
4140   # in D'.
4141   mkdir conftest.dir
4142   # Copy depcomp to subdir because otherwise we won't find it if we're
4143   # using a relative directory.
4144   cp "$am_depcomp" conftest.dir
4145   cd conftest.dir
4146   # We will build objects and dependencies in a subdirectory because
4147   # it helps to detect inapplicable dependency modes.  For instance
4148   # both Tru64's cc and ICC support -MD to output dependencies as a
4149   # side effect of compilation, but ICC will put the dependencies in
4150   # the current directory while Tru64 will put them in the object
4151   # directory.
4152   mkdir sub
4153
4154   am_cv_CXX_dependencies_compiler_type=none
4155   if test "$am_compiler_list" = ""; then
4156      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4157   fi
4158   am__universal=false
4159   case " $depcc " in #(
4160      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4161      esac
4162
4163   for depmode in $am_compiler_list; do
4164     # Setup a source with many dependencies, because some compilers
4165     # like to wrap large dependency lists on column 80 (with \), and
4166     # we should not choose a depcomp mode which is confused by this.
4167     #
4168     # We need to recreate these files for each test, as the compiler may
4169     # overwrite some of them when testing with obscure command lines.
4170     # This happens at least with the AIX C compiler.
4171     : > sub/conftest.c
4172     for i in 1 2 3 4 5 6; do
4173       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4174       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4175       # Solaris 8's {/usr,}/bin/sh.
4176       touch sub/conftst$i.h
4177     done
4178     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179
4180     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4181     # mode.  It turns out that the SunPro C++ compiler does not properly
4182     # handle `-M -o', and we need to detect this.  Also, some Intel
4183     # versions had trouble with output in subdirs
4184     am__obj=sub/conftest.${OBJEXT-o}
4185     am__minus_obj="-o $am__obj"
4186     case $depmode in
4187     gcc)
4188       # This depmode causes a compiler race in universal mode.
4189       test "$am__universal" = false || continue
4190       ;;
4191     nosideeffect)
4192       # after this tag, mechanisms are not by side-effect, so they'll
4193       # only be used when explicitly requested
4194       if test "x$enable_dependency_tracking" = xyes; then
4195         continue
4196       else
4197         break
4198       fi
4199       ;;
4200     msvisualcpp | msvcmsys)
4201       # This compiler won't grok `-c -o', but also, the minuso test has
4202       # not run yet.  These depmodes are late enough in the game, and
4203       # so weak that their functioning should not be impacted.
4204       am__obj=conftest.${OBJEXT-o}
4205       am__minus_obj=
4206       ;;
4207     none) break ;;
4208     esac
4209     if depmode=$depmode \
4210        source=sub/conftest.c object=$am__obj \
4211        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4212        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4213          >/dev/null 2>conftest.err &&
4214        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4215        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4217        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218       # icc doesn't choke on unknown options, it will just issue warnings
4219       # or remarks (even with -Werror).  So we grep stderr for any message
4220       # that says an option was ignored or not supported.
4221       # When given -MP, icc 7.0 and 7.1 complain thusly:
4222       #   icc: Command line warning: ignoring option '-M'; no argument required
4223       # The diagnosis changed in icc 8.0:
4224       #   icc: Command line remark: option '-MP' not supported
4225       if (grep 'ignoring option' conftest.err ||
4226           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227         am_cv_CXX_dependencies_compiler_type=$depmode
4228         break
4229       fi
4230     fi
4231   done
4232
4233   cd ..
4234   rm -rf conftest.dir
4235 else
4236   am_cv_CXX_dependencies_compiler_type=none
4237 fi
4238
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4242 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4243
4244  if
4245   test "x$enable_dependency_tracking" != xno \
4246   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4247   am__fastdepCXX_TRUE=
4248   am__fastdepCXX_FALSE='#'
4249 else
4250   am__fastdepCXX_TRUE='#'
4251   am__fastdepCXX_FALSE=
4252 fi
4253
4254
4255 case `pwd` in
4256   *\ * | *\     *)
4257     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4258 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4259 esac
4260
4261
4262
4263 macro_version='2.4'
4264 macro_revision='1.3293'
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 ltmain="$ac_aux_dir/ltmain.sh"
4279
4280 # Backslashify metacharacters that are still active within
4281 # double-quoted strings.
4282 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4283
4284 # Same as above, but do not quote variable references.
4285 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4286
4287 # Sed substitution to delay expansion of an escaped shell variable in a
4288 # double_quote_subst'ed string.
4289 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4290
4291 # Sed substitution to delay expansion of an escaped single quote.
4292 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4293
4294 # Sed substitution to avoid accidental globbing in evaled expressions
4295 no_glob_subst='s/\*/\\\*/g'
4296
4297 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4298 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4299 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4302 $as_echo_n "checking how to print strings... " >&6; }
4303 # Test print first, because it will be a builtin if present.
4304 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4305    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4306   ECHO='print -r --'
4307 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4308   ECHO='printf %s\n'
4309 else
4310   # Use this function as a fallback that always works.
4311   func_fallback_echo ()
4312   {
4313     eval 'cat <<_LTECHO_EOF
4314 $1
4315 _LTECHO_EOF'
4316   }
4317   ECHO='func_fallback_echo'
4318 fi
4319
4320 # func_echo_all arg...
4321 # Invoke $ECHO with all args, space-separated.
4322 func_echo_all ()
4323 {
4324     $ECHO ""
4325 }
4326
4327 case "$ECHO" in
4328   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4329 $as_echo "printf" >&6; } ;;
4330   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4331 $as_echo "print -r" >&6; } ;;
4332   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4333 $as_echo "cat" >&6; } ;;
4334 esac
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4350 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4351 if ${ac_cv_path_SED+:} false; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4355      for ac_i in 1 2 3 4 5 6 7; do
4356        ac_script="$ac_script$as_nl$ac_script"
4357      done
4358      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4359      { ac_script=; unset ac_script;}
4360      if test -z "$SED"; then
4361   ac_path_SED_found=false
4362   # Loop through the user's path and test for each of PROGNAME-LIST
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_prog in sed gsed; do
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4371       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4372 # Check for GNU ac_path_SED and select it if it is found.
4373   # Check for GNU $ac_path_SED
4374 case `"$ac_path_SED" --version 2>&1` in
4375 *GNU*)
4376   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4377 *)
4378   ac_count=0
4379   $as_echo_n 0123456789 >"conftest.in"
4380   while :
4381   do
4382     cat "conftest.in" "conftest.in" >"conftest.tmp"
4383     mv "conftest.tmp" "conftest.in"
4384     cp "conftest.in" "conftest.nl"
4385     $as_echo '' >> "conftest.nl"
4386     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388     as_fn_arith $ac_count + 1 && ac_count=$as_val
4389     if test $ac_count -gt ${ac_path_SED_max-0}; then
4390       # Best one so far, save it but keep looking for a better one
4391       ac_cv_path_SED="$ac_path_SED"
4392       ac_path_SED_max=$ac_count
4393     fi
4394     # 10*(2^10) chars as input seems more than enough
4395     test $ac_count -gt 10 && break
4396   done
4397   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398 esac
4399
4400       $ac_path_SED_found && break 3
4401     done
4402   done
4403   done
4404 IFS=$as_save_IFS
4405   if test -z "$ac_cv_path_SED"; then
4406     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4407   fi
4408 else
4409   ac_cv_path_SED=$SED
4410 fi
4411
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4414 $as_echo "$ac_cv_path_SED" >&6; }
4415  SED="$ac_cv_path_SED"
4416   rm -f conftest.sed
4417
4418 test -z "$SED" && SED=sed
4419 Xsed="$SED -e 1s/^X//"
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433 if ${ac_cv_path_GREP+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   if test -z "$GREP"; then
4437   ac_path_GREP_found=false
4438   # Loop through the user's path and test for each of PROGNAME-LIST
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     for ac_prog in grep ggrep; do
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4448 # Check for GNU ac_path_GREP and select it if it is found.
4449   # Check for GNU $ac_path_GREP
4450 case `"$ac_path_GREP" --version 2>&1` in
4451 *GNU*)
4452   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453 *)
4454   ac_count=0
4455   $as_echo_n 0123456789 >"conftest.in"
4456   while :
4457   do
4458     cat "conftest.in" "conftest.in" >"conftest.tmp"
4459     mv "conftest.tmp" "conftest.in"
4460     cp "conftest.in" "conftest.nl"
4461     $as_echo 'GREP' >> "conftest.nl"
4462     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464     as_fn_arith $ac_count + 1 && ac_count=$as_val
4465     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466       # Best one so far, save it but keep looking for a better one
4467       ac_cv_path_GREP="$ac_path_GREP"
4468       ac_path_GREP_max=$ac_count
4469     fi
4470     # 10*(2^10) chars as input seems more than enough
4471     test $ac_count -gt 10 && break
4472   done
4473   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474 esac
4475
4476       $ac_path_GREP_found && break 3
4477     done
4478   done
4479   done
4480 IFS=$as_save_IFS
4481   if test -z "$ac_cv_path_GREP"; then
4482     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483   fi
4484 else
4485   ac_cv_path_GREP=$GREP
4486 fi
4487
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490 $as_echo "$ac_cv_path_GREP" >&6; }
4491  GREP="$ac_cv_path_GREP"
4492
4493
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495 $as_echo_n "checking for egrep... " >&6; }
4496 if ${ac_cv_path_EGREP+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500    then ac_cv_path_EGREP="$GREP -E"
4501    else
4502      if test -z "$EGREP"; then
4503   ac_path_EGREP_found=false
4504   # Loop through the user's path and test for each of PROGNAME-LIST
4505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510     for ac_prog in egrep; do
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4514 # Check for GNU ac_path_EGREP and select it if it is found.
4515   # Check for GNU $ac_path_EGREP
4516 case `"$ac_path_EGREP" --version 2>&1` in
4517 *GNU*)
4518   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519 *)
4520   ac_count=0
4521   $as_echo_n 0123456789 >"conftest.in"
4522   while :
4523   do
4524     cat "conftest.in" "conftest.in" >"conftest.tmp"
4525     mv "conftest.tmp" "conftest.in"
4526     cp "conftest.in" "conftest.nl"
4527     $as_echo 'EGREP' >> "conftest.nl"
4528     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530     as_fn_arith $ac_count + 1 && ac_count=$as_val
4531     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532       # Best one so far, save it but keep looking for a better one
4533       ac_cv_path_EGREP="$ac_path_EGREP"
4534       ac_path_EGREP_max=$ac_count
4535     fi
4536     # 10*(2^10) chars as input seems more than enough
4537     test $ac_count -gt 10 && break
4538   done
4539   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 esac
4541
4542       $ac_path_EGREP_found && break 3
4543     done
4544   done
4545   done
4546 IFS=$as_save_IFS
4547   if test -z "$ac_cv_path_EGREP"; then
4548     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549   fi
4550 else
4551   ac_cv_path_EGREP=$EGREP
4552 fi
4553
4554    fi
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557 $as_echo "$ac_cv_path_EGREP" >&6; }
4558  EGREP="$ac_cv_path_EGREP"
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4562 $as_echo_n "checking for fgrep... " >&6; }
4563 if ${ac_cv_path_FGREP+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4567    then ac_cv_path_FGREP="$GREP -F"
4568    else
4569      if test -z "$FGREP"; then
4570   ac_path_FGREP_found=false
4571   # Loop through the user's path and test for each of PROGNAME-LIST
4572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577     for ac_prog in fgrep; do
4578     for ac_exec_ext in '' $ac_executable_extensions; do
4579       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4580       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4581 # Check for GNU ac_path_FGREP and select it if it is found.
4582   # Check for GNU $ac_path_FGREP
4583 case `"$ac_path_FGREP" --version 2>&1` in
4584 *GNU*)
4585   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4586 *)
4587   ac_count=0
4588   $as_echo_n 0123456789 >"conftest.in"
4589   while :
4590   do
4591     cat "conftest.in" "conftest.in" >"conftest.tmp"
4592     mv "conftest.tmp" "conftest.in"
4593     cp "conftest.in" "conftest.nl"
4594     $as_echo 'FGREP' >> "conftest.nl"
4595     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597     as_fn_arith $ac_count + 1 && ac_count=$as_val
4598     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4599       # Best one so far, save it but keep looking for a better one
4600       ac_cv_path_FGREP="$ac_path_FGREP"
4601       ac_path_FGREP_max=$ac_count
4602     fi
4603     # 10*(2^10) chars as input seems more than enough
4604     test $ac_count -gt 10 && break
4605   done
4606   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 esac
4608
4609       $ac_path_FGREP_found && break 3
4610     done
4611   done
4612   done
4613 IFS=$as_save_IFS
4614   if test -z "$ac_cv_path_FGREP"; then
4615     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616   fi
4617 else
4618   ac_cv_path_FGREP=$FGREP
4619 fi
4620
4621    fi
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4624 $as_echo "$ac_cv_path_FGREP" >&6; }
4625  FGREP="$ac_cv_path_FGREP"
4626
4627
4628 test -z "$GREP" && GREP=grep
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648 # Check whether --with-gnu-ld was given.
4649 if test "${with_gnu_ld+set}" = set; then :
4650   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4651 else
4652   with_gnu_ld=no
4653 fi
4654
4655 ac_prog=ld
4656 if test "$GCC" = yes; then
4657   # Check if gcc -print-prog-name=ld gives a path.
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4659 $as_echo_n "checking for ld used by $CC... " >&6; }
4660   case $host in
4661   *-*-mingw*)
4662     # gcc leaves a trailing carriage return which upsets mingw
4663     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4664   *)
4665     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4666   esac
4667   case $ac_prog in
4668     # Accept absolute paths.
4669     [\\/]* | ?:[\\/]*)
4670       re_direlt='/[^/][^/]*/\.\./'
4671       # Canonicalize the pathname of ld
4672       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4673       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4674         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4675       done
4676       test -z "$LD" && LD="$ac_prog"
4677       ;;
4678   "")
4679     # If it fails, then pretend we aren't using GCC.
4680     ac_prog=ld
4681     ;;
4682   *)
4683     # If it is relative, then search for the first ld in PATH.
4684     with_gnu_ld=unknown
4685     ;;
4686   esac
4687 elif test "$with_gnu_ld" = yes; then
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4689 $as_echo_n "checking for GNU ld... " >&6; }
4690 else
4691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4692 $as_echo_n "checking for non-GNU ld... " >&6; }
4693 fi
4694 if ${lt_cv_path_LD+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   if test -z "$LD"; then
4698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4699   for ac_dir in $PATH; do
4700     IFS="$lt_save_ifs"
4701     test -z "$ac_dir" && ac_dir=.
4702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4703       lt_cv_path_LD="$ac_dir/$ac_prog"
4704       # Check to see if the program is GNU ld.  I'd rather use --version,
4705       # but apparently some variants of GNU ld only accept -v.
4706       # Break only if it was the GNU/non-GNU ld that we prefer.
4707       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4708       *GNU* | *'with BFD'*)
4709         test "$with_gnu_ld" != no && break
4710         ;;
4711       *)
4712         test "$with_gnu_ld" != yes && break
4713         ;;
4714       esac
4715     fi
4716   done
4717   IFS="$lt_save_ifs"
4718 else
4719   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4720 fi
4721 fi
4722
4723 LD="$lt_cv_path_LD"
4724 if test -n "$LD"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4726 $as_echo "$LD" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4734 if ${lt_cv_prog_gnu_ld+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4738 case `$LD -v 2>&1 </dev/null` in
4739 *GNU* | *'with BFD'*)
4740   lt_cv_prog_gnu_ld=yes
4741   ;;
4742 *)
4743   lt_cv_prog_gnu_ld=no
4744   ;;
4745 esac
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4749 with_gnu_ld=$lt_cv_prog_gnu_ld
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4760 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4761 if ${lt_cv_path_NM+:} false; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -n "$NM"; then
4765   # Let the user override the test.
4766   lt_cv_path_NM="$NM"
4767 else
4768   lt_nm_to_check="${ac_tool_prefix}nm"
4769   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4770     lt_nm_to_check="$lt_nm_to_check nm"
4771   fi
4772   for lt_tmp_nm in $lt_nm_to_check; do
4773     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4774     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4775       IFS="$lt_save_ifs"
4776       test -z "$ac_dir" && ac_dir=.
4777       tmp_nm="$ac_dir/$lt_tmp_nm"
4778       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4779         # Check to see if the nm accepts a BSD-compat flag.
4780         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4781         #   nm: unknown option "B" ignored
4782         # Tru64's nm complains that /dev/null is an invalid object file
4783         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4784         */dev/null* | *'Invalid file or object type'*)
4785           lt_cv_path_NM="$tmp_nm -B"
4786           break
4787           ;;
4788         *)
4789           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4790           */dev/null*)
4791             lt_cv_path_NM="$tmp_nm -p"
4792             break
4793             ;;
4794           *)
4795             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4796             continue # so that we can try to find one that supports BSD flags
4797             ;;
4798           esac
4799           ;;
4800         esac
4801       fi
4802     done
4803     IFS="$lt_save_ifs"
4804   done
4805   : ${lt_cv_path_NM=no}
4806 fi
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4809 $as_echo "$lt_cv_path_NM" >&6; }
4810 if test "$lt_cv_path_NM" != "no"; then
4811   NM="$lt_cv_path_NM"
4812 else
4813   # Didn't find any BSD compatible name lister, look for dumpbin.
4814   if test -n "$DUMPBIN"; then :
4815     # Let the user override the test.
4816   else
4817     if test -n "$ac_tool_prefix"; then
4818   for ac_prog in dumpbin "link -dump"
4819   do
4820     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_DUMPBIN+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   if test -n "$DUMPBIN"; then
4828   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835     for ac_exec_ext in '' $ac_executable_extensions; do
4836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842   done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 DUMPBIN=$ac_cv_prog_DUMPBIN
4848 if test -n "$DUMPBIN"; then
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4850 $as_echo "$DUMPBIN" >&6; }
4851 else
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856
4857     test -n "$DUMPBIN" && break
4858   done
4859 fi
4860 if test -z "$DUMPBIN"; then
4861   ac_ct_DUMPBIN=$DUMPBIN
4862   for ac_prog in dumpbin "link -dump"
4863 do
4864   # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   if test -n "$ac_ct_DUMPBIN"; then
4872   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886   done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4892 if test -n "$ac_ct_DUMPBIN"; then
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4894 $as_echo "$ac_ct_DUMPBIN" >&6; }
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900
4901   test -n "$ac_ct_DUMPBIN" && break
4902 done
4903
4904   if test "x$ac_ct_DUMPBIN" = x; then
4905     DUMPBIN=":"
4906   else
4907     case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913     DUMPBIN=$ac_ct_DUMPBIN
4914   fi
4915 fi
4916
4917     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4918     *COFF*)
4919       DUMPBIN="$DUMPBIN -symbols"
4920       ;;
4921     *)
4922       DUMPBIN=:
4923       ;;
4924     esac
4925   fi
4926
4927   if test "$DUMPBIN" != ":"; then
4928     NM="$DUMPBIN"
4929   fi
4930 fi
4931 test -z "$NM" && NM=nm
4932
4933
4934
4935
4936
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4939 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4940 if ${lt_cv_nm_interface+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   lt_cv_nm_interface="BSD nm"
4944   echo "int some_variable = 0;" > conftest.$ac_ext
4945   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4946   (eval "$ac_compile" 2>conftest.err)
4947   cat conftest.err >&5
4948   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4949   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4950   cat conftest.err >&5
4951   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4952   cat conftest.out >&5
4953   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4954     lt_cv_nm_interface="MS dumpbin"
4955   fi
4956   rm -f conftest*
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4959 $as_echo "$lt_cv_nm_interface" >&6; }
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4962 $as_echo_n "checking whether ln -s works... " >&6; }
4963 LN_S=$as_ln_s
4964 if test "$LN_S" = "ln -s"; then
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }
4967 else
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4969 $as_echo "no, using $LN_S" >&6; }
4970 fi
4971
4972 # find the maximum length of command line arguments
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4974 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4975 if ${lt_cv_sys_max_cmd_len+:} false; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978     i=0
4979   teststring="ABCD"
4980
4981   case $build_os in
4982   msdosdjgpp*)
4983     # On DJGPP, this test can blow up pretty badly due to problems in libc
4984     # (any single argument exceeding 2000 bytes causes a buffer overrun
4985     # during glob expansion).  Even if it were fixed, the result of this
4986     # check would be larger than it should be.
4987     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4988     ;;
4989
4990   gnu*)
4991     # Under GNU Hurd, this test is not required because there is
4992     # no limit to the length of command line arguments.
4993     # Libtool will interpret -1 as no limit whatsoever
4994     lt_cv_sys_max_cmd_len=-1;
4995     ;;
4996
4997   cygwin* | mingw* | cegcc*)
4998     # On Win9x/ME, this test blows up -- it succeeds, but takes
4999     # about 5 minutes as the teststring grows exponentially.
5000     # Worse, since 9x/ME are not pre-emptively multitasking,
5001     # you end up with a "frozen" computer, even though with patience
5002     # the test eventually succeeds (with a max line length of 256k).
5003     # Instead, let's just punt: use the minimum linelength reported by
5004     # all of the supported platforms: 8192 (on NT/2K/XP).
5005     lt_cv_sys_max_cmd_len=8192;
5006     ;;
5007
5008   mint*)
5009     # On MiNT this can take a long time and run out of memory.
5010     lt_cv_sys_max_cmd_len=8192;
5011     ;;
5012
5013   amigaos*)
5014     # On AmigaOS with pdksh, this test takes hours, literally.
5015     # So we just punt and use a minimum line length of 8192.
5016     lt_cv_sys_max_cmd_len=8192;
5017     ;;
5018
5019   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5020     # This has been around since 386BSD, at least.  Likely further.
5021     if test -x /sbin/sysctl; then
5022       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5023     elif test -x /usr/sbin/sysctl; then
5024       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5025     else
5026       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5027     fi
5028     # And add a safety zone
5029     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5030     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5031     ;;
5032
5033   interix*)
5034     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5035     lt_cv_sys_max_cmd_len=196608
5036     ;;
5037
5038   osf*)
5039     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5040     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5041     # nice to cause kernel panics so lets avoid the loop below.
5042     # First set a reasonable default.
5043     lt_cv_sys_max_cmd_len=16384
5044     #
5045     if test -x /sbin/sysconfig; then
5046       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5047         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5048       esac
5049     fi
5050     ;;
5051   sco3.2v5*)
5052     lt_cv_sys_max_cmd_len=102400
5053     ;;
5054   sysv5* | sco5v6* | sysv4.2uw2*)
5055     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5056     if test -n "$kargmax"; then
5057       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5058     else
5059       lt_cv_sys_max_cmd_len=32768
5060     fi
5061     ;;
5062   *)
5063     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5064     if test -n "$lt_cv_sys_max_cmd_len"; then
5065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5067     else
5068       # Make teststring a little bigger before we do anything with it.
5069       # a 1K string should be a reasonable start.
5070       for i in 1 2 3 4 5 6 7 8 ; do
5071         teststring=$teststring$teststring
5072       done
5073       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5074       # If test is not a shell built-in, we'll probably end up computing a
5075       # maximum length that is only half of the actual maximum length, but
5076       # we can't tell.
5077       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5078                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5079               test $i != 17 # 1/2 MB should be enough
5080       do
5081         i=`expr $i + 1`
5082         teststring=$teststring$teststring
5083       done
5084       # Only check the string length outside the loop.
5085       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5086       teststring=
5087       # Add a significant safety factor because C++ compilers can tack on
5088       # massive amounts of additional arguments before passing them to the
5089       # linker.  It appears as though 1/2 is a usable value.
5090       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5091     fi
5092     ;;
5093   esac
5094
5095 fi
5096
5097 if test -n $lt_cv_sys_max_cmd_len ; then
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5100 else
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5102 $as_echo "none" >&6; }
5103 fi
5104 max_cmd_len=$lt_cv_sys_max_cmd_len
5105
5106
5107
5108
5109
5110
5111 : ${CP="cp -f"}
5112 : ${MV="mv -f"}
5113 : ${RM="rm -f"}
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5117 # Try some XSI features
5118 xsi_shell=no
5119 ( _lt_dummy="a/b/c"
5120   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5121       = c,a/b,b/c, \
5122     && eval 'test $(( 1 + 1 )) -eq 2 \
5123     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5124   && xsi_shell=yes
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5126 $as_echo "$xsi_shell" >&6; }
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5131 lt_shell_append=no
5132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5133     >/dev/null 2>&1 \
5134   && lt_shell_append=yes
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5136 $as_echo "$lt_shell_append" >&6; }
5137
5138
5139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5140   lt_unset=unset
5141 else
5142   lt_unset=false
5143 fi
5144
5145
5146
5147
5148
5149 # test EBCDIC or ASCII
5150 case `echo X|tr X '\101'` in
5151  A) # ASCII based system
5152     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5153   lt_SP2NL='tr \040 \012'
5154   lt_NL2SP='tr \015\012 \040\040'
5155   ;;
5156  *) # EBCDIC based system
5157   lt_SP2NL='tr \100 \n'
5158   lt_NL2SP='tr \r\n \100\100'
5159   ;;
5160 esac
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5171 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5172 if ${lt_cv_to_host_file_cmd+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   case $host in
5176   *-*-mingw* )
5177     case $build in
5178       *-*-mingw* ) # actually msys
5179         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5180         ;;
5181       *-*-cygwin* )
5182         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5183         ;;
5184       * ) # otherwise, assume *nix
5185         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5186         ;;
5187     esac
5188     ;;
5189   *-*-cygwin* )
5190     case $build in
5191       *-*-mingw* ) # actually msys
5192         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5193         ;;
5194       *-*-cygwin* )
5195         lt_cv_to_host_file_cmd=func_convert_file_noop
5196         ;;
5197       * ) # otherwise, assume *nix
5198         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5199         ;;
5200     esac
5201     ;;
5202   * ) # unhandled hosts (and "normal" native builds)
5203     lt_cv_to_host_file_cmd=func_convert_file_noop
5204     ;;
5205 esac
5206
5207 fi
5208
5209 to_host_file_cmd=$lt_cv_to_host_file_cmd
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5211 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5212
5213
5214
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5218 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5219 if ${lt_cv_to_tool_file_cmd+:} false; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   #assume ordinary cross tools, or native build.
5223 lt_cv_to_tool_file_cmd=func_convert_file_noop
5224 case $host in
5225   *-*-mingw* )
5226     case $build in
5227       *-*-mingw* ) # actually msys
5228         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5229         ;;
5230     esac
5231     ;;
5232 esac
5233
5234 fi
5235
5236 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5238 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5239
5240
5241
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5245 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5246 if ${lt_cv_ld_reload_flag+:} false; then :
5247   $as_echo_n "(cached) " >&6
5248 else
5249   lt_cv_ld_reload_flag='-r'
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5253 reload_flag=$lt_cv_ld_reload_flag
5254 case $reload_flag in
5255 "" | " "*) ;;
5256 *) reload_flag=" $reload_flag" ;;
5257 esac
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5259 case $host_os in
5260   cygwin* | mingw* | pw32* | cegcc*)
5261     if test "$GCC" != yes; then
5262       reload_cmds=false
5263     fi
5264     ;;
5265   darwin*)
5266     if test "$GCC" = yes; then
5267       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5268     else
5269       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270     fi
5271     ;;
5272 esac
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 if test -n "$ac_tool_prefix"; then
5283   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_OBJDUMP+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   if test -n "$OBJDUMP"; then
5291   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305   done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 OBJDUMP=$ac_cv_prog_OBJDUMP
5311 if test -n "$OBJDUMP"; then
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5313 $as_echo "$OBJDUMP" >&6; }
5314 else
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319
5320 fi
5321 if test -z "$ac_cv_prog_OBJDUMP"; then
5322   ac_ct_OBJDUMP=$OBJDUMP
5323   # Extract the first word of "objdump", so it can be a program name with args.
5324 set dummy objdump; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   if test -n "$ac_ct_OBJDUMP"; then
5331   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338     for ac_exec_ext in '' $ac_executable_extensions; do
5339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345   done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5351 if test -n "$ac_ct_OBJDUMP"; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5353 $as_echo "$ac_ct_OBJDUMP" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359   if test "x$ac_ct_OBJDUMP" = x; then
5360     OBJDUMP="false"
5361   else
5362     case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368     OBJDUMP=$ac_ct_OBJDUMP
5369   fi
5370 else
5371   OBJDUMP="$ac_cv_prog_OBJDUMP"
5372 fi
5373
5374 test -z "$OBJDUMP" && OBJDUMP=objdump
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5386 if ${lt_cv_deplibs_check_method+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   lt_cv_file_magic_cmd='$MAGIC_CMD'
5390 lt_cv_file_magic_test_file=
5391 lt_cv_deplibs_check_method='unknown'
5392 # Need to set the preceding variable on all platforms that support
5393 # interlibrary dependencies.
5394 # 'none' -- dependencies not supported.
5395 # `unknown' -- same as none, but documents that we really don't know.
5396 # 'pass_all' -- all dependencies passed with no checks.
5397 # 'test_compile' -- check by making test program.
5398 # 'file_magic [[regex]]' -- check by looking for files in library path
5399 # which responds to the $file_magic_cmd with a given extended regex.
5400 # If you have `file' or equivalent on your system and you're not sure
5401 # whether `pass_all' will *always* work, you probably want this one.
5402
5403 case $host_os in
5404 aix[4-9]*)
5405   lt_cv_deplibs_check_method=pass_all
5406   ;;
5407
5408 beos*)
5409   lt_cv_deplibs_check_method=pass_all
5410   ;;
5411
5412 bsdi[45]*)
5413   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5414   lt_cv_file_magic_cmd='/usr/bin/file -L'
5415   lt_cv_file_magic_test_file=/shlib/libc.so
5416   ;;
5417
5418 cygwin*)
5419   # func_win32_libid is a shell function defined in ltmain.sh
5420   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421   lt_cv_file_magic_cmd='func_win32_libid'
5422   ;;
5423
5424 mingw* | pw32*)
5425   # Base MSYS/MinGW do not provide the 'file' command needed by
5426   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5427   # unless we find 'file', for example because we are cross-compiling.
5428   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5429   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5430     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431     lt_cv_file_magic_cmd='func_win32_libid'
5432   else
5433     # Keep this pattern in sync with the one in func_win32_libid.
5434     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5435     lt_cv_file_magic_cmd='$OBJDUMP -f'
5436   fi
5437   ;;
5438
5439 cegcc*)
5440   # use the weaker test based on 'objdump'. See mingw*.
5441   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5442   lt_cv_file_magic_cmd='$OBJDUMP -f'
5443   ;;
5444
5445 darwin* | rhapsody*)
5446   lt_cv_deplibs_check_method=pass_all
5447   ;;
5448
5449 freebsd* | dragonfly*)
5450   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5451     case $host_cpu in
5452     i*86 )
5453       # Not sure whether the presence of OpenBSD here was a mistake.
5454       # Let's accept both of them until this is cleared up.
5455       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5456       lt_cv_file_magic_cmd=/usr/bin/file
5457       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5458       ;;
5459     esac
5460   else
5461     lt_cv_deplibs_check_method=pass_all
5462   fi
5463   ;;
5464
5465 gnu*)
5466   lt_cv_deplibs_check_method=pass_all
5467   ;;
5468
5469 haiku*)
5470   lt_cv_deplibs_check_method=pass_all
5471   ;;
5472
5473 hpux10.20* | hpux11*)
5474   lt_cv_file_magic_cmd=/usr/bin/file
5475   case $host_cpu in
5476   ia64*)
5477     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5479     ;;
5480   hppa*64*)
5481     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]'
5482     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5483     ;;
5484   *)
5485     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5486     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487     ;;
5488   esac
5489   ;;
5490
5491 interix[3-9]*)
5492   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5494   ;;
5495
5496 irix5* | irix6* | nonstopux*)
5497   case $LD in
5498   *-32|*"-32 ") libmagic=32-bit;;
5499   *-n32|*"-n32 ") libmagic=N32;;
5500   *-64|*"-64 ") libmagic=64-bit;;
5501   *) libmagic=never-match;;
5502   esac
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 # This must be Linux ELF.
5507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 netbsd*)
5512   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5514   else
5515     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5516   fi
5517   ;;
5518
5519 newos6*)
5520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521   lt_cv_file_magic_cmd=/usr/bin/file
5522   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5523   ;;
5524
5525 *nto* | *qnx*)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 openbsd*)
5530   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5532   else
5533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534   fi
5535   ;;
5536
5537 osf3* | osf4* | osf5*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 rdos*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 solaris*)
5546   lt_cv_deplibs_check_method=pass_all
5547   ;;
5548
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 sysv4 | sysv4.3*)
5554   case $host_vendor in
5555   motorola)
5556     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]'
5557     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558     ;;
5559   ncr)
5560     lt_cv_deplibs_check_method=pass_all
5561     ;;
5562   sequent)
5563     lt_cv_file_magic_cmd='/bin/file'
5564     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565     ;;
5566   sni)
5567     lt_cv_file_magic_cmd='/bin/file'
5568     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569     lt_cv_file_magic_test_file=/lib/libc.so
5570     ;;
5571   siemens)
5572     lt_cv_deplibs_check_method=pass_all
5573     ;;
5574   pc)
5575     lt_cv_deplibs_check_method=pass_all
5576     ;;
5577   esac
5578   ;;
5579
5580 tpf*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583 esac
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5588
5589 file_magic_glob=
5590 want_nocaseglob=no
5591 if test "$build" = "$host"; then
5592   case $host_os in
5593   mingw* | pw32*)
5594     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5595       want_nocaseglob=yes
5596     else
5597       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5598     fi
5599     ;;
5600   esac
5601 fi
5602
5603 file_magic_cmd=$lt_cv_file_magic_cmd
5604 deplibs_check_method=$lt_cv_deplibs_check_method
5605 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 if test -n "$ac_tool_prefix"; then
5629   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_DLLTOOL+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   if test -n "$DLLTOOL"; then
5637   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644     for ac_exec_ext in '' $ac_executable_extensions; do
5645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648     break 2
5649   fi
5650 done
5651   done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 DLLTOOL=$ac_cv_prog_DLLTOOL
5657 if test -n "$DLLTOOL"; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5659 $as_echo "$DLLTOOL" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_DLLTOOL"; then
5668   ac_ct_DLLTOOL=$DLLTOOL
5669   # Extract the first word of "dlltool", so it can be a program name with args.
5670 set dummy dlltool; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   if test -n "$ac_ct_DLLTOOL"; then
5677   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684     for ac_exec_ext in '' $ac_executable_extensions; do
5685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691   done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5697 if test -n "$ac_ct_DLLTOOL"; then
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5699 $as_echo "$ac_ct_DLLTOOL" >&6; }
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705   if test "x$ac_ct_DLLTOOL" = x; then
5706     DLLTOOL="false"
5707   else
5708     case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714     DLLTOOL=$ac_ct_DLLTOOL
5715   fi
5716 else
5717   DLLTOOL="$ac_cv_prog_DLLTOOL"
5718 fi
5719
5720 test -z "$DLLTOOL" && DLLTOOL=dlltool
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5732 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5733 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   lt_cv_sharedlib_from_linklib_cmd='unknown'
5737
5738 case $host_os in
5739 cygwin* | mingw* | pw32* | cegcc*)
5740   # two different shell functions defined in ltmain.sh
5741   # decide which to use based on capabilities of $DLLTOOL
5742   case `$DLLTOOL --help 2>&1` in
5743   *--identify-strict*)
5744     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5745     ;;
5746   *)
5747     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5748     ;;
5749   esac
5750   ;;
5751 *)
5752   # fallback: assume linklib IS sharedlib
5753   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5754   ;;
5755 esac
5756
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5759 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5760 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5761 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5762
5763
5764
5765
5766
5767
5768
5769
5770 if test -n "$ac_tool_prefix"; then
5771   for ac_prog in ar
5772   do
5773     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_AR+:} false; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   if test -n "$AR"; then
5781   ac_cv_prog_AR="$AR" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_exec_ext in '' $ac_executable_extensions; do
5789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792     break 2
5793   fi
5794 done
5795   done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 AR=$ac_cv_prog_AR
5801 if test -n "$AR"; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5803 $as_echo "$AR" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809
5810     test -n "$AR" && break
5811   done
5812 fi
5813 if test -z "$AR"; then
5814   ac_ct_AR=$AR
5815   for ac_prog in ar
5816 do
5817   # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   if test -n "$ac_ct_AR"; then
5825   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832     for ac_exec_ext in '' $ac_executable_extensions; do
5833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834     ac_cv_prog_ac_ct_AR="$ac_prog"
5835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836     break 2
5837   fi
5838 done
5839   done
5840 IFS=$as_save_IFS
5841
5842 fi
5843 fi
5844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5845 if test -n "$ac_ct_AR"; then
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5847 $as_echo "$ac_ct_AR" >&6; }
5848 else
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
5852
5853
5854   test -n "$ac_ct_AR" && break
5855 done
5856
5857   if test "x$ac_ct_AR" = x; then
5858     AR="false"
5859   else
5860     case $cross_compiling:$ac_tool_warned in
5861 yes:)
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864 ac_tool_warned=yes ;;
5865 esac
5866     AR=$ac_ct_AR
5867   fi
5868 fi
5869
5870 : ${AR=ar}
5871 : ${AR_FLAGS=cru}
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5884 $as_echo_n "checking for archiver @FILE support... " >&6; }
5885 if ${lt_cv_ar_at_file+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   lt_cv_ar_at_file=no
5889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901   echo conftest.$ac_objext > conftest.lst
5902       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5903       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5904   (eval $lt_ar_try) 2>&5
5905   ac_status=$?
5906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907   test $ac_status = 0; }
5908       if test "$ac_status" -eq 0; then
5909         # Ensure the archiver fails upon bogus file names.
5910         rm -f conftest.$ac_objext libconftest.a
5911         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5912   (eval $lt_ar_try) 2>&5
5913   ac_status=$?
5914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915   test $ac_status = 0; }
5916         if test "$ac_status" -ne 0; then
5917           lt_cv_ar_at_file=@
5918         fi
5919       fi
5920       rm -f conftest.* libconftest.a
5921
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5927 $as_echo "$lt_cv_ar_at_file" >&6; }
5928
5929 if test "x$lt_cv_ar_at_file" = xno; then
5930   archiver_list_spec=
5931 else
5932   archiver_list_spec=$lt_cv_ar_at_file
5933 fi
5934
5935
5936
5937
5938
5939
5940
5941 if test -n "$ac_tool_prefix"; then
5942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}strip; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_STRIP+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   if test -n "$STRIP"; then
5950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957     for ac_exec_ext in '' $ac_executable_extensions; do
5958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964   done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 STRIP=$ac_cv_prog_STRIP
5970 if test -n "$STRIP"; then
5971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5972 $as_echo "$STRIP" >&6; }
5973 else
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978
5979 fi
5980 if test -z "$ac_cv_prog_STRIP"; then
5981   ac_ct_STRIP=$STRIP
5982   # Extract the first word of "strip", so it can be a program name with args.
5983 set dummy strip; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   if test -n "$ac_ct_STRIP"; then
5990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997     for ac_exec_ext in '' $ac_executable_extensions; do
5998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999     ac_cv_prog_ac_ct_STRIP="strip"
6000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004   done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6010 if test -n "$ac_ct_STRIP"; then
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6012 $as_echo "$ac_ct_STRIP" >&6; }
6013 else
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018   if test "x$ac_ct_STRIP" = x; then
6019     STRIP=":"
6020   else
6021     case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027     STRIP=$ac_ct_STRIP
6028   fi
6029 else
6030   STRIP="$ac_cv_prog_STRIP"
6031 fi
6032
6033 test -z "$STRIP" && STRIP=:
6034
6035
6036
6037
6038
6039
6040 if test -n "$ac_tool_prefix"; then
6041   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_RANLIB+:} false; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if test -n "$RANLIB"; then
6049   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063   done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 RANLIB=$ac_cv_prog_RANLIB
6069 if test -n "$RANLIB"; then
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6071 $as_echo "$RANLIB" >&6; }
6072 else
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 fi
6079 if test -z "$ac_cv_prog_RANLIB"; then
6080   ac_ct_RANLIB=$RANLIB
6081   # Extract the first word of "ranlib", so it can be a program name with args.
6082 set dummy ranlib; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if test -n "$ac_ct_RANLIB"; then
6089   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_ac_ct_RANLIB="ranlib"
6099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103   done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109 if test -n "$ac_ct_RANLIB"; then
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6111 $as_echo "$ac_ct_RANLIB" >&6; }
6112 else
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117   if test "x$ac_ct_RANLIB" = x; then
6118     RANLIB=":"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     RANLIB=$ac_ct_RANLIB
6127   fi
6128 else
6129   RANLIB="$ac_cv_prog_RANLIB"
6130 fi
6131
6132 test -z "$RANLIB" && RANLIB=:
6133
6134
6135
6136
6137
6138
6139 # Determine commands to create old-style static archives.
6140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6141 old_postinstall_cmds='chmod 644 $oldlib'
6142 old_postuninstall_cmds=
6143
6144 if test -n "$RANLIB"; then
6145   case $host_os in
6146   openbsd*)
6147     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6148     ;;
6149   *)
6150     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6151     ;;
6152   esac
6153   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6154 fi
6155
6156 case $host_os in
6157   darwin*)
6158     lock_old_archive_extraction=yes ;;
6159   *)
6160     lock_old_archive_extraction=no ;;
6161 esac
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 # If no C compiler was specified, use CC.
6202 LTCC=${LTCC-"$CC"}
6203
6204 # If no C compiler flags were specified, use CFLAGS.
6205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6206
6207 # Allow CC to be a program name with arguments.
6208 compiler=$CC
6209
6210
6211 # Check for command to grab the raw symbol name followed by C symbol from nm.
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6213 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6214 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217
6218 # These are sane defaults that work on at least a few old systems.
6219 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6220
6221 # Character class describing NM global symbol codes.
6222 symcode='[BCDEGRST]'
6223
6224 # Regexp to match symbols that can be accessed directly from C.
6225 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6226
6227 # Define system-specific variables.
6228 case $host_os in
6229 aix*)
6230   symcode='[BCDT]'
6231   ;;
6232 cygwin* | mingw* | pw32* | cegcc*)
6233   symcode='[ABCDGISTW]'
6234   ;;
6235 hpux*)
6236   if test "$host_cpu" = ia64; then
6237     symcode='[ABCDEGRST]'
6238   fi
6239   ;;
6240 irix* | nonstopux*)
6241   symcode='[BCDEGRST]'
6242   ;;
6243 osf*)
6244   symcode='[BCDEGQRST]'
6245   ;;
6246 solaris*)
6247   symcode='[BDRT]'
6248   ;;
6249 sco3.2v5*)
6250   symcode='[DT]'
6251   ;;
6252 sysv4.2uw2*)
6253   symcode='[DT]'
6254   ;;
6255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6256   symcode='[ABDT]'
6257   ;;
6258 sysv4)
6259   symcode='[DFNSTU]'
6260   ;;
6261 esac
6262
6263 # If we're using GNU nm, then use its standard symbol codes.
6264 case `$NM -V 2>&1` in
6265 *GNU* | *'with BFD'*)
6266   symcode='[ABCDGIRSTW]' ;;
6267 esac
6268
6269 # Transform an extracted symbol line into a proper C declaration.
6270 # Some systems (esp. on ia64) link data and code symbols differently,
6271 # so use this general approach.
6272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6273
6274 # Transform an extracted symbol line into symbol name and symbol address
6275 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6276 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'"
6277
6278 # Handle CRLF in mingw tool chain
6279 opt_cr=
6280 case $build_os in
6281 mingw*)
6282   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6283   ;;
6284 esac
6285
6286 # Try without a prefix underscore, then with it.
6287 for ac_symprfx in "" "_"; do
6288
6289   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290   symxfrm="\\1 $ac_symprfx\\2 \\2"
6291
6292   # Write the raw and C identifiers.
6293   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294     # Fake it for dumpbin and say T for any non-static function
6295     # and D for any global variable.
6296     # Also find C++ and __fastcall symbols from MSVC++,
6297     # which start with @ or ?.
6298     lt_cv_sys_global_symbol_pipe="$AWK '"\
6299 "     {last_section=section; section=\$ 3};"\
6300 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301 "     \$ 0!~/External *\|/{next};"\
6302 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303 "     {if(hide[section]) next};"\
6304 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308 "     ' prfx=^$ac_symprfx"
6309   else
6310     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6311   fi
6312   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6313
6314   # Check to see that the pipe works correctly.
6315   pipe_works=no
6316
6317   rm -f conftest*
6318   cat > conftest.$ac_ext <<_LT_EOF
6319 #ifdef __cplusplus
6320 extern "C" {
6321 #endif
6322 char nm_test_var;
6323 void nm_test_func(void);
6324 void nm_test_func(void){}
6325 #ifdef __cplusplus
6326 }
6327 #endif
6328 int main(){nm_test_var='a';nm_test_func();return(0);}
6329 _LT_EOF
6330
6331   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332   (eval $ac_compile) 2>&5
6333   ac_status=$?
6334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335   test $ac_status = 0; }; then
6336     # Now try to grab the symbols.
6337     nlist=conftest.nm
6338     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6339   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6340   ac_status=$?
6341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342   test $ac_status = 0; } && test -s "$nlist"; then
6343       # Try sorting and uniquifying the output.
6344       if sort "$nlist" | uniq > "$nlist"T; then
6345         mv -f "$nlist"T "$nlist"
6346       else
6347         rm -f "$nlist"T
6348       fi
6349
6350       # Make sure that we snagged all the symbols we need.
6351       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6352         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6353           cat <<_LT_EOF > conftest.$ac_ext
6354 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6355 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6356 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6357    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6358 # define LT_DLSYM_CONST
6359 #elif defined(__osf__)
6360 /* This system does not cope well with relocations in const data.  */
6361 # define LT_DLSYM_CONST
6362 #else
6363 # define LT_DLSYM_CONST const
6364 #endif
6365
6366 #ifdef __cplusplus
6367 extern "C" {
6368 #endif
6369
6370 _LT_EOF
6371           # Now generate the symbol file.
6372           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6373
6374           cat <<_LT_EOF >> conftest.$ac_ext
6375
6376 /* The mapping between symbol names and symbols.  */
6377 LT_DLSYM_CONST struct {
6378   const char *name;
6379   void       *address;
6380 }
6381 lt__PROGRAM__LTX_preloaded_symbols[] =
6382 {
6383   { "@PROGRAM@", (void *) 0 },
6384 _LT_EOF
6385           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6386           cat <<\_LT_EOF >> conftest.$ac_ext
6387   {0, (void *) 0}
6388 };
6389
6390 /* This works around a problem in FreeBSD linker */
6391 #ifdef FREEBSD_WORKAROUND
6392 static const void *lt_preloaded_setup() {
6393   return lt__PROGRAM__LTX_preloaded_symbols;
6394 }
6395 #endif
6396
6397 #ifdef __cplusplus
6398 }
6399 #endif
6400 _LT_EOF
6401           # Now try linking the two files.
6402           mv conftest.$ac_objext conftstm.$ac_objext
6403           lt_globsym_save_LIBS=$LIBS
6404           lt_globsym_save_CFLAGS=$CFLAGS
6405           LIBS="conftstm.$ac_objext"
6406           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6407           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6408   (eval $ac_link) 2>&5
6409   ac_status=$?
6410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6412             pipe_works=yes
6413           fi
6414           LIBS=$lt_globsym_save_LIBS
6415           CFLAGS=$lt_globsym_save_CFLAGS
6416         else
6417           echo "cannot find nm_test_func in $nlist" >&5
6418         fi
6419       else
6420         echo "cannot find nm_test_var in $nlist" >&5
6421       fi
6422     else
6423       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6424     fi
6425   else
6426     echo "$progname: failed program was:" >&5
6427     cat conftest.$ac_ext >&5
6428   fi
6429   rm -rf conftest* conftst*
6430
6431   # Do not use the global_symbol_pipe unless it works.
6432   if test "$pipe_works" = yes; then
6433     break
6434   else
6435     lt_cv_sys_global_symbol_pipe=
6436   fi
6437 done
6438
6439 fi
6440
6441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6442   lt_cv_sys_global_symbol_to_cdecl=
6443 fi
6444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6446 $as_echo "failed" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6449 $as_echo "ok" >&6; }
6450 fi
6451
6452 # Response file support.
6453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6454   nm_file_list_spec='@'
6455 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6456   nm_file_list_spec='@'
6457 fi
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6486 $as_echo_n "checking for sysroot... " >&6; }
6487
6488 # Check whether --with-sysroot was given.
6489 if test "${with_sysroot+set}" = set; then :
6490   withval=$with_sysroot;
6491 else
6492   with_sysroot=no
6493 fi
6494
6495
6496 lt_sysroot=
6497 case ${with_sysroot} in #(
6498  yes)
6499    if test "$GCC" = yes; then
6500      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6501    fi
6502    ;; #(
6503  /*)
6504    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6505    ;; #(
6506  no|'')
6507    ;; #(
6508  *)
6509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6510 $as_echo "${with_sysroot}" >&6; }
6511    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6512    ;;
6513 esac
6514
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6516 $as_echo "${lt_sysroot:-no}" >&6; }
6517
6518
6519
6520
6521
6522 # Check whether --enable-libtool-lock was given.
6523 if test "${enable_libtool_lock+set}" = set; then :
6524   enableval=$enable_libtool_lock;
6525 fi
6526
6527 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6528
6529 # Some flags need to be propagated to the compiler or linker for good
6530 # libtool support.
6531 case $host in
6532 ia64-*-hpux*)
6533   # Find out which ABI we are using.
6534   echo 'int i;' > conftest.$ac_ext
6535   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536   (eval $ac_compile) 2>&5
6537   ac_status=$?
6538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539   test $ac_status = 0; }; then
6540     case `/usr/bin/file conftest.$ac_objext` in
6541       *ELF-32*)
6542         HPUX_IA64_MODE="32"
6543         ;;
6544       *ELF-64*)
6545         HPUX_IA64_MODE="64"
6546         ;;
6547     esac
6548   fi
6549   rm -rf conftest*
6550   ;;
6551 *-*-irix6*)
6552   # Find out which ABI we are using.
6553   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6555   (eval $ac_compile) 2>&5
6556   ac_status=$?
6557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558   test $ac_status = 0; }; then
6559     if test "$lt_cv_prog_gnu_ld" = yes; then
6560       case `/usr/bin/file conftest.$ac_objext` in
6561         *32-bit*)
6562           LD="${LD-ld} -melf32bsmip"
6563           ;;
6564         *N32*)
6565           LD="${LD-ld} -melf32bmipn32"
6566           ;;
6567         *64-bit*)
6568           LD="${LD-ld} -melf64bmip"
6569         ;;
6570       esac
6571     else
6572       case `/usr/bin/file conftest.$ac_objext` in
6573         *32-bit*)
6574           LD="${LD-ld} -32"
6575           ;;
6576         *N32*)
6577           LD="${LD-ld} -n32"
6578           ;;
6579         *64-bit*)
6580           LD="${LD-ld} -64"
6581           ;;
6582       esac
6583     fi
6584   fi
6585   rm -rf conftest*
6586   ;;
6587
6588 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6589 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6590   # Find out which ABI we are using.
6591   echo 'int i;' > conftest.$ac_ext
6592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593   (eval $ac_compile) 2>&5
6594   ac_status=$?
6595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596   test $ac_status = 0; }; then
6597     case `/usr/bin/file conftest.o` in
6598       *32-bit*)
6599         case $host in
6600           x86_64-*kfreebsd*-gnu)
6601             LD="${LD-ld} -m elf_i386_fbsd"
6602             ;;
6603           x86_64-*linux*)
6604             LD="${LD-ld} -m elf_i386"
6605             ;;
6606           ppc64-*linux*|powerpc64-*linux*)
6607             LD="${LD-ld} -m elf32ppclinux"
6608             ;;
6609           s390x-*linux*)
6610             LD="${LD-ld} -m elf_s390"
6611             ;;
6612           sparc64-*linux*)
6613             LD="${LD-ld} -m elf32_sparc"
6614             ;;
6615         esac
6616         ;;
6617       *64-bit*)
6618         case $host in
6619           x86_64-*kfreebsd*-gnu)
6620             LD="${LD-ld} -m elf_x86_64_fbsd"
6621             ;;
6622           x86_64-*linux*)
6623             LD="${LD-ld} -m elf_x86_64"
6624             ;;
6625           ppc*-*linux*|powerpc*-*linux*)
6626             LD="${LD-ld} -m elf64ppc"
6627             ;;
6628           s390*-*linux*|s390*-*tpf*)
6629             LD="${LD-ld} -m elf64_s390"
6630             ;;
6631           sparc*-*linux*)
6632             LD="${LD-ld} -m elf64_sparc"
6633             ;;
6634         esac
6635         ;;
6636     esac
6637   fi
6638   rm -rf conftest*
6639   ;;
6640
6641 *-*-sco3.2v5*)
6642   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6643   SAVE_CFLAGS="$CFLAGS"
6644   CFLAGS="$CFLAGS -belf"
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6646 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6647 if ${lt_cv_cc_needs_belf+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   ac_ext=c
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655
6656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h.  */
6658
6659 int
6660 main ()
6661 {
6662
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"; then :
6668   lt_cv_cc_needs_belf=yes
6669 else
6670   lt_cv_cc_needs_belf=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext \
6673     conftest$ac_exeext conftest.$ac_ext
6674      ac_ext=c
6675 ac_cpp='$CPP $CPPFLAGS'
6676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6682 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6683   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6684     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6685     CFLAGS="$SAVE_CFLAGS"
6686   fi
6687   ;;
6688 sparc*-*solaris*)
6689   # Find out which ABI we are using.
6690   echo 'int i;' > conftest.$ac_ext
6691   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692   (eval $ac_compile) 2>&5
6693   ac_status=$?
6694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695   test $ac_status = 0; }; then
6696     case `/usr/bin/file conftest.o` in
6697     *64-bit*)
6698       case $lt_cv_prog_gnu_ld in
6699       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6700       *)
6701         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6702           LD="${LD-ld} -64"
6703         fi
6704         ;;
6705       esac
6706       ;;
6707     esac
6708   fi
6709   rm -rf conftest*
6710   ;;
6711 esac
6712
6713 need_locks="$enable_libtool_lock"
6714
6715 if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}mt; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$MANIFEST_TOOL"; then
6724   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6744 if test -n "$MANIFEST_TOOL"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6746 $as_echo "$MANIFEST_TOOL" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6755   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6756   # Extract the first word of "mt", so it can be a program name with args.
6757 set dummy mt; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$ac_ct_MANIFEST_TOOL"; then
6764   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6784 if test -n "$ac_ct_MANIFEST_TOOL"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6786 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6793     MANIFEST_TOOL=":"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6802   fi
6803 else
6804   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6805 fi
6806
6807 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6809 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6810 if ${lt_cv_path_mainfest_tool+:} false; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   lt_cv_path_mainfest_tool=no
6814   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6815   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6816   cat conftest.err >&5
6817   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6818     lt_cv_path_mainfest_tool=yes
6819   fi
6820   rm -f conftest*
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6823 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6824 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6825   MANIFEST_TOOL=:
6826 fi
6827
6828
6829
6830
6831
6832
6833   case $host_os in
6834     rhapsody* | darwin*)
6835     if test -n "$ac_tool_prefix"; then
6836   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -n "$DSYMUTIL"; then
6844   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851     for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858   done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6864 if test -n "$DSYMUTIL"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6866 $as_echo "$DSYMUTIL" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873 fi
6874 if test -z "$ac_cv_prog_DSYMUTIL"; then
6875   ac_ct_DSYMUTIL=$DSYMUTIL
6876   # Extract the first word of "dsymutil", so it can be a program name with args.
6877 set dummy dsymutil; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   if test -n "$ac_ct_DSYMUTIL"; then
6884   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891     for ac_exec_ext in '' $ac_executable_extensions; do
6892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898   done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6904 if test -n "$ac_ct_DSYMUTIL"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6906 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912   if test "x$ac_ct_DSYMUTIL" = x; then
6913     DSYMUTIL=":"
6914   else
6915     case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921     DSYMUTIL=$ac_ct_DSYMUTIL
6922   fi
6923 else
6924   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6925 fi
6926
6927     if test -n "$ac_tool_prefix"; then
6928   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_NMEDIT+:} false; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   if test -n "$NMEDIT"; then
6936   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943     for ac_exec_ext in '' $ac_executable_extensions; do
6944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950   done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 NMEDIT=$ac_cv_prog_NMEDIT
6956 if test -n "$NMEDIT"; then
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6958 $as_echo "$NMEDIT" >&6; }
6959 else
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964
6965 fi
6966 if test -z "$ac_cv_prog_NMEDIT"; then
6967   ac_ct_NMEDIT=$NMEDIT
6968   # Extract the first word of "nmedit", so it can be a program name with args.
6969 set dummy nmedit; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   if test -n "$ac_ct_NMEDIT"; then
6976   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983     for ac_exec_ext in '' $ac_executable_extensions; do
6984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990   done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6996 if test -n "$ac_ct_NMEDIT"; then
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6998 $as_echo "$ac_ct_NMEDIT" >&6; }
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004   if test "x$ac_ct_NMEDIT" = x; then
7005     NMEDIT=":"
7006   else
7007     case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013     NMEDIT=$ac_ct_NMEDIT
7014   fi
7015 else
7016   NMEDIT="$ac_cv_prog_NMEDIT"
7017 fi
7018
7019     if test -n "$ac_tool_prefix"; then
7020   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_LIPO+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   if test -n "$LIPO"; then
7028   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035     for ac_exec_ext in '' $ac_executable_extensions; do
7036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042   done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 LIPO=$ac_cv_prog_LIPO
7048 if test -n "$LIPO"; then
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7050 $as_echo "$LIPO" >&6; }
7051 else
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_LIPO"; then
7059   ac_ct_LIPO=$LIPO
7060   # Extract the first word of "lipo", so it can be a program name with args.
7061 set dummy lipo; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   if test -n "$ac_ct_LIPO"; then
7068   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075     for ac_exec_ext in '' $ac_executable_extensions; do
7076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077     ac_cv_prog_ac_ct_LIPO="lipo"
7078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082   done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7088 if test -n "$ac_ct_LIPO"; then
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7090 $as_echo "$ac_ct_LIPO" >&6; }
7091 else
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096   if test "x$ac_ct_LIPO" = x; then
7097     LIPO=":"
7098   else
7099     case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     LIPO=$ac_ct_LIPO
7106   fi
7107 else
7108   LIPO="$ac_cv_prog_LIPO"
7109 fi
7110
7111     if test -n "$ac_tool_prefix"; then
7112   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}otool; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_OTOOL+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if test -n "$OTOOL"; then
7120   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127     for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134   done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 OTOOL=$ac_cv_prog_OTOOL
7140 if test -n "$OTOOL"; then
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7142 $as_echo "$OTOOL" >&6; }
7143 else
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148
7149 fi
7150 if test -z "$ac_cv_prog_OTOOL"; then
7151   ac_ct_OTOOL=$OTOOL
7152   # Extract the first word of "otool", so it can be a program name with args.
7153 set dummy otool; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   if test -n "$ac_ct_OTOOL"; then
7160   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169     ac_cv_prog_ac_ct_OTOOL="otool"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7180 if test -n "$ac_ct_OTOOL"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7182 $as_echo "$ac_ct_OTOOL" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188   if test "x$ac_ct_OTOOL" = x; then
7189     OTOOL=":"
7190   else
7191     case $cross_compiling:$ac_tool_warned in
7192 yes:)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197     OTOOL=$ac_ct_OTOOL
7198   fi
7199 else
7200   OTOOL="$ac_cv_prog_OTOOL"
7201 fi
7202
7203     if test -n "$ac_tool_prefix"; then
7204   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_OTOOL64+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$OTOOL64"; then
7212   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 OTOOL64=$ac_cv_prog_OTOOL64
7232 if test -n "$OTOOL64"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7234 $as_echo "$OTOOL64" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241 fi
7242 if test -z "$ac_cv_prog_OTOOL64"; then
7243   ac_ct_OTOOL64=$OTOOL64
7244   # Extract the first word of "otool64", so it can be a program name with args.
7245 set dummy otool64; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7249   $as_echo_n "(cached) " >&6
7250 else
7251   if test -n "$ac_ct_OTOOL64"; then
7252   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259     for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_prog_ac_ct_OTOOL64="otool64"
7262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266   done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7272 if test -n "$ac_ct_OTOOL64"; then
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7274 $as_echo "$ac_ct_OTOOL64" >&6; }
7275 else
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280   if test "x$ac_ct_OTOOL64" = x; then
7281     OTOOL64=":"
7282   else
7283     case $cross_compiling:$ac_tool_warned in
7284 yes:)
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7288 esac
7289     OTOOL64=$ac_ct_OTOOL64
7290   fi
7291 else
7292   OTOOL64="$ac_cv_prog_OTOOL64"
7293 fi
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7322 $as_echo_n "checking for -single_module linker flag... " >&6; }
7323 if ${lt_cv_apple_cc_single_mod+:} false; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   lt_cv_apple_cc_single_mod=no
7327       if test -z "${LT_MULTI_MODULE}"; then
7328         # By default we will add the -single_module flag. You can override
7329         # by either setting the environment variable LT_MULTI_MODULE
7330         # non-empty at configure time, or by adding -multi_module to the
7331         # link flags.
7332         rm -rf libconftest.dylib*
7333         echo "int foo(void){return 1;}" > conftest.c
7334         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7335 -dynamiclib -Wl,-single_module conftest.c" >&5
7336         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7338         _lt_result=$?
7339         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7340           lt_cv_apple_cc_single_mod=yes
7341         else
7342           cat conftest.err >&5
7343         fi
7344         rm -rf libconftest.dylib*
7345         rm -f conftest.*
7346       fi
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7351 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7352 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   lt_cv_ld_exported_symbols_list=no
7356       save_LDFLAGS=$LDFLAGS
7357       echo "_main" > conftest.sym
7358       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h.  */
7361
7362 int
7363 main ()
7364 {
7365
7366   ;
7367   return 0;
7368 }
7369 _ACEOF
7370 if ac_fn_c_try_link "$LINENO"; then :
7371   lt_cv_ld_exported_symbols_list=yes
7372 else
7373   lt_cv_ld_exported_symbols_list=no
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext \
7376     conftest$ac_exeext conftest.$ac_ext
7377         LDFLAGS="$save_LDFLAGS"
7378
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7381 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7383 $as_echo_n "checking for -force_load linker flag... " >&6; }
7384 if ${lt_cv_ld_force_load+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   lt_cv_ld_force_load=no
7388       cat > conftest.c << _LT_EOF
7389 int forced_loaded() { return 2;}
7390 _LT_EOF
7391       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7392       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7393       echo "$AR cru libconftest.a conftest.o" >&5
7394       $AR cru libconftest.a conftest.o 2>&5
7395       echo "$RANLIB libconftest.a" >&5
7396       $RANLIB libconftest.a 2>&5
7397       cat > conftest.c << _LT_EOF
7398 int main() { return 0;}
7399 _LT_EOF
7400       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7401       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7402       _lt_result=$?
7403       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7404         lt_cv_ld_force_load=yes
7405       else
7406         cat conftest.err >&5
7407       fi
7408         rm -f conftest.err libconftest.a conftest conftest.c
7409         rm -rf conftest.dSYM
7410
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7413 $as_echo "$lt_cv_ld_force_load" >&6; }
7414     case $host_os in
7415     rhapsody* | darwin1.[012])
7416       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7417     darwin1.*)
7418       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419     darwin*) # darwin 5.x on
7420       # if running on 10.5 or later, the deployment target defaults
7421       # to the OS version, if on x86, and 10.4, the deployment
7422       # target defaults to 10.4. Don't you love it?
7423       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7424         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7425           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7426         10.[012]*)
7427           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7428         10.*)
7429           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7430       esac
7431     ;;
7432   esac
7433     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7434       _lt_dar_single_mod='$single_module'
7435     fi
7436     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7437       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7438     else
7439       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7440     fi
7441     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7442       _lt_dsymutil='~$DSYMUTIL $lib || :'
7443     else
7444       _lt_dsymutil=
7445     fi
7446     ;;
7447   esac
7448
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7456 # On Suns, sometimes $CPP names a directory.
7457 if test -n "$CPP" && test -d "$CPP"; then
7458   CPP=
7459 fi
7460 if test -z "$CPP"; then
7461   if ${ac_cv_prog_CPP+:} false; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464       # Double quotes because CPP needs to be expanded
7465     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7466     do
7467       ac_preproc_ok=false
7468 for ac_c_preproc_warn_flag in '' yes
7469 do
7470   # Use a header file that comes with gcc, so configuring glibc
7471   # with a fresh cross-compiler works.
7472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473   # <limits.h> exists even on freestanding compilers.
7474   # On the NeXT, cc -E runs the code through the compiler's parser,
7475   # not just through cpp. "Syntax error" is here to catch this case.
7476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h.  */
7478 #ifdef __STDC__
7479 # include <limits.h>
7480 #else
7481 # include <assert.h>
7482 #endif
7483                      Syntax error
7484 _ACEOF
7485 if ac_fn_c_try_cpp "$LINENO"; then :
7486
7487 else
7488   # Broken: fails on valid input.
7489 continue
7490 fi
7491 rm -f conftest.err conftest.i conftest.$ac_ext
7492
7493   # OK, works on sane cases.  Now check whether nonexistent headers
7494   # can be detected and how.
7495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h.  */
7497 #include <ac_nonexistent.h>
7498 _ACEOF
7499 if ac_fn_c_try_cpp "$LINENO"; then :
7500   # Broken: success on invalid input.
7501 continue
7502 else
7503   # Passes both tests.
7504 ac_preproc_ok=:
7505 break
7506 fi
7507 rm -f conftest.err conftest.i conftest.$ac_ext
7508
7509 done
7510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7511 rm -f conftest.i conftest.err conftest.$ac_ext
7512 if $ac_preproc_ok; then :
7513   break
7514 fi
7515
7516     done
7517     ac_cv_prog_CPP=$CPP
7518
7519 fi
7520   CPP=$ac_cv_prog_CPP
7521 else
7522   ac_cv_prog_CPP=$CPP
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7525 $as_echo "$CPP" >&6; }
7526 ac_preproc_ok=false
7527 for ac_c_preproc_warn_flag in '' yes
7528 do
7529   # Use a header file that comes with gcc, so configuring glibc
7530   # with a fresh cross-compiler works.
7531   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532   # <limits.h> exists even on freestanding compilers.
7533   # On the NeXT, cc -E runs the code through the compiler's parser,
7534   # not just through cpp. "Syntax error" is here to catch this case.
7535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h.  */
7537 #ifdef __STDC__
7538 # include <limits.h>
7539 #else
7540 # include <assert.h>
7541 #endif
7542                      Syntax error
7543 _ACEOF
7544 if ac_fn_c_try_cpp "$LINENO"; then :
7545
7546 else
7547   # Broken: fails on valid input.
7548 continue
7549 fi
7550 rm -f conftest.err conftest.i conftest.$ac_ext
7551
7552   # OK, works on sane cases.  Now check whether nonexistent headers
7553   # can be detected and how.
7554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h.  */
7556 #include <ac_nonexistent.h>
7557 _ACEOF
7558 if ac_fn_c_try_cpp "$LINENO"; then :
7559   # Broken: success on invalid input.
7560 continue
7561 else
7562   # Passes both tests.
7563 ac_preproc_ok=:
7564 break
7565 fi
7566 rm -f conftest.err conftest.i conftest.$ac_ext
7567
7568 done
7569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7570 rm -f conftest.i conftest.err conftest.$ac_ext
7571 if $ac_preproc_ok; then :
7572
7573 else
7574   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7577 See \`config.log' for more details" "$LINENO" 5; }
7578 fi
7579
7580 ac_ext=c
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585
7586
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7588 $as_echo_n "checking for ANSI C header files... " >&6; }
7589 if ${ac_cv_header_stdc+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h.  */
7594 #include <stdlib.h>
7595 #include <stdarg.h>
7596 #include <string.h>
7597 #include <float.h>
7598
7599 int
7600 main ()
7601 {
7602
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608   ac_cv_header_stdc=yes
7609 else
7610   ac_cv_header_stdc=no
7611 fi
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613
7614 if test $ac_cv_header_stdc = yes; then
7615   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h.  */
7618 #include <string.h>
7619
7620 _ACEOF
7621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622   $EGREP "memchr" >/dev/null 2>&1; then :
7623
7624 else
7625   ac_cv_header_stdc=no
7626 fi
7627 rm -f conftest*
7628
7629 fi
7630
7631 if test $ac_cv_header_stdc = yes; then
7632   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h.  */
7635 #include <stdlib.h>
7636
7637 _ACEOF
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639   $EGREP "free" >/dev/null 2>&1; then :
7640
7641 else
7642   ac_cv_header_stdc=no
7643 fi
7644 rm -f conftest*
7645
7646 fi
7647
7648 if test $ac_cv_header_stdc = yes; then
7649   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7650   if test "$cross_compiling" = yes; then :
7651   :
7652 else
7653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655 #include <ctype.h>
7656 #include <stdlib.h>
7657 #if ((' ' & 0x0FF) == 0x020)
7658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7660 #else
7661 # define ISLOWER(c) \
7662                    (('a' <= (c) && (c) <= 'i') \
7663                      || ('j' <= (c) && (c) <= 'r') \
7664                      || ('s' <= (c) && (c) <= 'z'))
7665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7666 #endif
7667
7668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7669 int
7670 main ()
7671 {
7672   int i;
7673   for (i = 0; i < 256; i++)
7674     if (XOR (islower (i), ISLOWER (i))
7675         || toupper (i) != TOUPPER (i))
7676       return 2;
7677   return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_run "$LINENO"; then :
7681
7682 else
7683   ac_cv_header_stdc=no
7684 fi
7685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7686   conftest.$ac_objext conftest.beam conftest.$ac_ext
7687 fi
7688
7689 fi
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7692 $as_echo "$ac_cv_header_stdc" >&6; }
7693 if test $ac_cv_header_stdc = yes; then
7694
7695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7696
7697 fi
7698
7699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7701                   inttypes.h stdint.h unistd.h
7702 do :
7703   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7705 "
7706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7707   cat >>confdefs.h <<_ACEOF
7708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7709 _ACEOF
7710
7711 fi
7712
7713 done
7714
7715
7716 for ac_header in dlfcn.h
7717 do :
7718   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7719 "
7720 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7721   cat >>confdefs.h <<_ACEOF
7722 #define HAVE_DLFCN_H 1
7723 _ACEOF
7724
7725 fi
7726
7727 done
7728
7729
7730
7731
7732 func_stripname_cnf ()
7733 {
7734   case ${2} in
7735   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7736   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7737   esac
7738 } # func_stripname_cnf
7739
7740
7741
7742
7743
7744 # Set options
7745
7746
7747
7748         enable_dlopen=no
7749
7750
7751   enable_win32_dll=no
7752
7753
7754             # Check whether --enable-shared was given.
7755 if test "${enable_shared+set}" = set; then :
7756   enableval=$enable_shared; p=${PACKAGE-default}
7757     case $enableval in
7758     yes) enable_shared=yes ;;
7759     no) enable_shared=no ;;
7760     *)
7761       enable_shared=no
7762       # Look at the argument we got.  We use all the common list separators.
7763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764       for pkg in $enableval; do
7765         IFS="$lt_save_ifs"
7766         if test "X$pkg" = "X$p"; then
7767           enable_shared=yes
7768         fi
7769       done
7770       IFS="$lt_save_ifs"
7771       ;;
7772     esac
7773 else
7774   enable_shared=yes
7775 fi
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785   # Check whether --enable-static was given.
7786 if test "${enable_static+set}" = set; then :
7787   enableval=$enable_static; p=${PACKAGE-default}
7788     case $enableval in
7789     yes) enable_static=yes ;;
7790     no) enable_static=no ;;
7791     *)
7792      enable_static=no
7793       # Look at the argument we got.  We use all the common list separators.
7794       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7795       for pkg in $enableval; do
7796         IFS="$lt_save_ifs"
7797         if test "X$pkg" = "X$p"; then
7798           enable_static=yes
7799         fi
7800       done
7801       IFS="$lt_save_ifs"
7802       ;;
7803     esac
7804 else
7805   enable_static=yes
7806 fi
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817 # Check whether --with-pic was given.
7818 if test "${with_pic+set}" = set; then :
7819   withval=$with_pic; pic_mode="$withval"
7820 else
7821   pic_mode=default
7822 fi
7823
7824
7825 test -z "$pic_mode" && pic_mode=default
7826
7827
7828
7829
7830
7831
7832
7833   # Check whether --enable-fast-install was given.
7834 if test "${enable_fast_install+set}" = set; then :
7835   enableval=$enable_fast_install; p=${PACKAGE-default}
7836     case $enableval in
7837     yes) enable_fast_install=yes ;;
7838     no) enable_fast_install=no ;;
7839     *)
7840       enable_fast_install=no
7841       # Look at the argument we got.  We use all the common list separators.
7842       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7843       for pkg in $enableval; do
7844         IFS="$lt_save_ifs"
7845         if test "X$pkg" = "X$p"; then
7846           enable_fast_install=yes
7847         fi
7848       done
7849       IFS="$lt_save_ifs"
7850       ;;
7851     esac
7852 else
7853   enable_fast_install=yes
7854 fi
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 # This can be used to rebuild libtool when needed
7867 LIBTOOL_DEPS="$ltmain"
7868
7869 # Always use our own libtool.
7870 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897 test -z "$LN_S" && LN_S="ln -s"
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912 if test -n "${ZSH_VERSION+set}" ; then
7913    setopt NO_GLOB_SUBST
7914 fi
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7917 $as_echo_n "checking for objdir... " >&6; }
7918 if ${lt_cv_objdir+:} false; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   rm -f .libs 2>/dev/null
7922 mkdir .libs 2>/dev/null
7923 if test -d .libs; then
7924   lt_cv_objdir=.libs
7925 else
7926   # MS-DOS does not allow filenames that begin with a dot.
7927   lt_cv_objdir=_libs
7928 fi
7929 rmdir .libs 2>/dev/null
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7932 $as_echo "$lt_cv_objdir" >&6; }
7933 objdir=$lt_cv_objdir
7934
7935
7936
7937
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define LT_OBJDIR "$lt_cv_objdir/"
7941 _ACEOF
7942
7943
7944
7945
7946 case $host_os in
7947 aix3*)
7948   # AIX sometimes has problems with the GCC collect2 program.  For some
7949   # reason, if we set the COLLECT_NAMES environment variable, the problems
7950   # vanish in a puff of smoke.
7951   if test "X${COLLECT_NAMES+set}" != Xset; then
7952     COLLECT_NAMES=
7953     export COLLECT_NAMES
7954   fi
7955   ;;
7956 esac
7957
7958 # Global variables:
7959 ofile=libtool
7960 can_build_shared=yes
7961
7962 # All known linkers require a `.a' archive for static linking (except MSVC,
7963 # which needs '.lib').
7964 libext=a
7965
7966 with_gnu_ld="$lt_cv_prog_gnu_ld"
7967
7968 old_CC="$CC"
7969 old_CFLAGS="$CFLAGS"
7970
7971 # Set sane defaults for various variables
7972 test -z "$CC" && CC=cc
7973 test -z "$LTCC" && LTCC=$CC
7974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7975 test -z "$LD" && LD=ld
7976 test -z "$ac_objext" && ac_objext=o
7977
7978 for cc_temp in $compiler""; do
7979   case $cc_temp in
7980     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7981     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7982     \-*) ;;
7983     *) break;;
7984   esac
7985 done
7986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7987
7988
7989 # Only perform the check for file, if the check method requires it
7990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7991 case $deplibs_check_method in
7992 file_magic*)
7993   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7996 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   case $MAGIC_CMD in
8000 [\\/*] |  ?:[\\/]*)
8001   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8002   ;;
8003 *)
8004   lt_save_MAGIC_CMD="$MAGIC_CMD"
8005   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8006   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8007   for ac_dir in $ac_dummy; do
8008     IFS="$lt_save_ifs"
8009     test -z "$ac_dir" && ac_dir=.
8010     if test -f $ac_dir/${ac_tool_prefix}file; then
8011       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8012       if test -n "$file_magic_test_file"; then
8013         case $deplibs_check_method in
8014         "file_magic "*)
8015           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8016           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8017           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8018             $EGREP "$file_magic_regex" > /dev/null; then
8019             :
8020           else
8021             cat <<_LT_EOF 1>&2
8022
8023 *** Warning: the command libtool uses to detect shared libraries,
8024 *** $file_magic_cmd, produces output that libtool cannot recognize.
8025 *** The result is that libtool may fail to recognize shared libraries
8026 *** as such.  This will affect the creation of libtool libraries that
8027 *** depend on shared libraries, but programs linked with such libtool
8028 *** libraries will work regardless of this problem.  Nevertheless, you
8029 *** may want to report the problem to your system manager and/or to
8030 *** bug-libtool@gnu.org
8031
8032 _LT_EOF
8033           fi ;;
8034         esac
8035       fi
8036       break
8037     fi
8038   done
8039   IFS="$lt_save_ifs"
8040   MAGIC_CMD="$lt_save_MAGIC_CMD"
8041   ;;
8042 esac
8043 fi
8044
8045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8046 if test -n "$MAGIC_CMD"; then
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8048 $as_echo "$MAGIC_CMD" >&6; }
8049 else
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054
8055
8056
8057
8058 if test -z "$lt_cv_path_MAGIC_CMD"; then
8059   if test -n "$ac_tool_prefix"; then
8060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8061 $as_echo_n "checking for file... " >&6; }
8062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   case $MAGIC_CMD in
8066 [\\/*] |  ?:[\\/]*)
8067   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8068   ;;
8069 *)
8070   lt_save_MAGIC_CMD="$MAGIC_CMD"
8071   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8072   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8073   for ac_dir in $ac_dummy; do
8074     IFS="$lt_save_ifs"
8075     test -z "$ac_dir" && ac_dir=.
8076     if test -f $ac_dir/file; then
8077       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8078       if test -n "$file_magic_test_file"; then
8079         case $deplibs_check_method in
8080         "file_magic "*)
8081           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8082           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8083           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8084             $EGREP "$file_magic_regex" > /dev/null; then
8085             :
8086           else
8087             cat <<_LT_EOF 1>&2
8088
8089 *** Warning: the command libtool uses to detect shared libraries,
8090 *** $file_magic_cmd, produces output that libtool cannot recognize.
8091 *** The result is that libtool may fail to recognize shared libraries
8092 *** as such.  This will affect the creation of libtool libraries that
8093 *** depend on shared libraries, but programs linked with such libtool
8094 *** libraries will work regardless of this problem.  Nevertheless, you
8095 *** may want to report the problem to your system manager and/or to
8096 *** bug-libtool@gnu.org
8097
8098 _LT_EOF
8099           fi ;;
8100         esac
8101       fi
8102       break
8103     fi
8104   done
8105   IFS="$lt_save_ifs"
8106   MAGIC_CMD="$lt_save_MAGIC_CMD"
8107   ;;
8108 esac
8109 fi
8110
8111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112 if test -n "$MAGIC_CMD"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8114 $as_echo "$MAGIC_CMD" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121   else
8122     MAGIC_CMD=:
8123   fi
8124 fi
8125
8126   fi
8127   ;;
8128 esac
8129
8130 # Use C for the default configuration in the libtool script
8131
8132 lt_save_CC="$CC"
8133 ac_ext=c
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138
8139
8140 # Source file extension for C test sources.
8141 ac_ext=c
8142
8143 # Object file extension for compiled C test sources.
8144 objext=o
8145 objext=$objext
8146
8147 # Code to be used in simple compile tests
8148 lt_simple_compile_test_code="int some_variable = 0;"
8149
8150 # Code to be used in simple link tests
8151 lt_simple_link_test_code='int main(){return(0);}'
8152
8153
8154
8155
8156
8157
8158
8159 # If no C compiler was specified, use CC.
8160 LTCC=${LTCC-"$CC"}
8161
8162 # If no C compiler flags were specified, use CFLAGS.
8163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8164
8165 # Allow CC to be a program name with arguments.
8166 compiler=$CC
8167
8168 # Save the default compiler, since it gets overwritten when the other
8169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8170 compiler_DEFAULT=$CC
8171
8172 # save warnings/boilerplate of simple test code
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8176 _lt_compiler_boilerplate=`cat conftest.err`
8177 $RM conftest*
8178
8179 ac_outfile=conftest.$ac_objext
8180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8182 _lt_linker_boilerplate=`cat conftest.err`
8183 $RM -r conftest*
8184
8185
8186 if test -n "$compiler"; then
8187
8188 lt_prog_compiler_no_builtin_flag=
8189
8190 if test "$GCC" = yes; then
8191   case $cc_basename in
8192   nvcc*)
8193     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8194   *)
8195     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8196   esac
8197
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8199 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8200 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   lt_cv_prog_compiler_rtti_exceptions=no
8204    ac_outfile=conftest.$ac_objext
8205    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206    lt_compiler_flag="-fno-rtti -fno-exceptions"
8207    # Insert the option either (1) after the last *FLAGS variable, or
8208    # (2) before a word containing "conftest.", or (3) at the end.
8209    # Note that $ac_compile itself does not contain backslashes and begins
8210    # with a dollar sign (not a hyphen), so the echo should work correctly.
8211    # The option is referenced via a variable to avoid confusing sed.
8212    lt_compile=`echo "$ac_compile" | $SED \
8213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215    -e 's:$: $lt_compiler_flag:'`
8216    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217    (eval "$lt_compile" 2>conftest.err)
8218    ac_status=$?
8219    cat conftest.err >&5
8220    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221    if (exit $ac_status) && test -s "$ac_outfile"; then
8222      # The compiler can only warn and ignore the option if not recognized
8223      # So say no if there are warnings other than the usual output.
8224      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227        lt_cv_prog_compiler_rtti_exceptions=yes
8228      fi
8229    fi
8230    $RM conftest*
8231
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8234 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8235
8236 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8237     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8238 else
8239     :
8240 fi
8241
8242 fi
8243
8244
8245
8246
8247
8248
8249   lt_prog_compiler_wl=
8250 lt_prog_compiler_pic=
8251 lt_prog_compiler_static=
8252
8253
8254   if test "$GCC" = yes; then
8255     lt_prog_compiler_wl='-Wl,'
8256     lt_prog_compiler_static='-static'
8257
8258     case $host_os in
8259       aix*)
8260       # All AIX code is PIC.
8261       if test "$host_cpu" = ia64; then
8262         # AIX 5 now supports IA64 processor
8263         lt_prog_compiler_static='-Bstatic'
8264       fi
8265       ;;
8266
8267     amigaos*)
8268       case $host_cpu in
8269       powerpc)
8270             # see comment about AmigaOS4 .so support
8271             lt_prog_compiler_pic='-fPIC'
8272         ;;
8273       m68k)
8274             # FIXME: we need at least 68020 code to build shared libraries, but
8275             # adding the `-m68020' flag to GCC prevents building anything better,
8276             # like `-m68040'.
8277             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8278         ;;
8279       esac
8280       ;;
8281
8282     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8283       # PIC is the default for these OSes.
8284       ;;
8285
8286     mingw* | cygwin* | pw32* | os2* | cegcc*)
8287       # This hack is so that the source file can tell whether it is being
8288       # built for inclusion in a dll (and should export symbols for example).
8289       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8290       # (--disable-auto-import) libraries
8291       lt_prog_compiler_pic='-DDLL_EXPORT'
8292       ;;
8293
8294     darwin* | rhapsody*)
8295       # PIC is the default on this platform
8296       # Common symbols not allowed in MH_DYLIB files
8297       lt_prog_compiler_pic='-fno-common'
8298       ;;
8299
8300     haiku*)
8301       # PIC is the default for Haiku.
8302       # The "-static" flag exists, but is broken.
8303       lt_prog_compiler_static=
8304       ;;
8305
8306     hpux*)
8307       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8308       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8309       # sets the default TLS model and affects inlining.
8310       case $host_cpu in
8311       hppa*64*)
8312         # +Z the default
8313         ;;
8314       *)
8315         lt_prog_compiler_pic='-fPIC'
8316         ;;
8317       esac
8318       ;;
8319
8320     interix[3-9]*)
8321       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8322       # Instead, we relocate shared libraries at runtime.
8323       ;;
8324
8325     msdosdjgpp*)
8326       # Just because we use GCC doesn't mean we suddenly get shared libraries
8327       # on systems that don't support them.
8328       lt_prog_compiler_can_build_shared=no
8329       enable_shared=no
8330       ;;
8331
8332     *nto* | *qnx*)
8333       # QNX uses GNU C++, but need to define -shared option too, otherwise
8334       # it will coredump.
8335       lt_prog_compiler_pic='-fPIC -shared'
8336       ;;
8337
8338     sysv4*MP*)
8339       if test -d /usr/nec; then
8340         lt_prog_compiler_pic=-Kconform_pic
8341       fi
8342       ;;
8343
8344     *)
8345       lt_prog_compiler_pic='-fPIC'
8346       ;;
8347     esac
8348
8349     case $cc_basename in
8350     nvcc*) # Cuda Compiler Driver 2.2
8351       lt_prog_compiler_wl='-Xlinker '
8352       lt_prog_compiler_pic='-Xcompiler -fPIC'
8353       ;;
8354     esac
8355   else
8356     # PORTME Check for flag to pass linker flags through the system compiler.
8357     case $host_os in
8358     aix*)
8359       lt_prog_compiler_wl='-Wl,'
8360       if test "$host_cpu" = ia64; then
8361         # AIX 5 now supports IA64 processor
8362         lt_prog_compiler_static='-Bstatic'
8363       else
8364         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8365       fi
8366       ;;
8367
8368     mingw* | cygwin* | pw32* | os2* | cegcc*)
8369       # This hack is so that the source file can tell whether it is being
8370       # built for inclusion in a dll (and should export symbols for example).
8371       lt_prog_compiler_pic='-DDLL_EXPORT'
8372       ;;
8373
8374     hpux9* | hpux10* | hpux11*)
8375       lt_prog_compiler_wl='-Wl,'
8376       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8377       # not for PA HP-UX.
8378       case $host_cpu in
8379       hppa*64*|ia64*)
8380         # +Z the default
8381         ;;
8382       *)
8383         lt_prog_compiler_pic='+Z'
8384         ;;
8385       esac
8386       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8387       lt_prog_compiler_static='${wl}-a ${wl}archive'
8388       ;;
8389
8390     irix5* | irix6* | nonstopux*)
8391       lt_prog_compiler_wl='-Wl,'
8392       # PIC (with -KPIC) is the default.
8393       lt_prog_compiler_static='-non_shared'
8394       ;;
8395
8396     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8397       case $cc_basename in
8398       # old Intel for x86_64 which still supported -KPIC.
8399       ecc*)
8400         lt_prog_compiler_wl='-Wl,'
8401         lt_prog_compiler_pic='-KPIC'
8402         lt_prog_compiler_static='-static'
8403         ;;
8404       # icc used to be incompatible with GCC.
8405       # ICC 10 doesn't accept -KPIC any more.
8406       icc* | ifort*)
8407         lt_prog_compiler_wl='-Wl,'
8408         lt_prog_compiler_pic='-fPIC'
8409         lt_prog_compiler_static='-static'
8410         ;;
8411       # Lahey Fortran 8.1.
8412       lf95*)
8413         lt_prog_compiler_wl='-Wl,'
8414         lt_prog_compiler_pic='--shared'
8415         lt_prog_compiler_static='--static'
8416         ;;
8417       nagfor*)
8418         # NAG Fortran compiler
8419         lt_prog_compiler_wl='-Wl,-Wl,,'
8420         lt_prog_compiler_pic='-PIC'
8421         lt_prog_compiler_static='-Bstatic'
8422         ;;
8423       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8424         # Portland Group compilers (*not* the Pentium gcc compiler,
8425         # which looks to be a dead project)
8426         lt_prog_compiler_wl='-Wl,'
8427         lt_prog_compiler_pic='-fpic'
8428         lt_prog_compiler_static='-Bstatic'
8429         ;;
8430       ccc*)
8431         lt_prog_compiler_wl='-Wl,'
8432         # All Alpha code is PIC.
8433         lt_prog_compiler_static='-non_shared'
8434         ;;
8435       xl* | bgxl* | bgf* | mpixl*)
8436         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8437         lt_prog_compiler_wl='-Wl,'
8438         lt_prog_compiler_pic='-qpic'
8439         lt_prog_compiler_static='-qstaticlink'
8440         ;;
8441       *)
8442         case `$CC -V 2>&1 | sed 5q` in
8443         *Sun\ F* | *Sun*Fortran*)
8444           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8445           lt_prog_compiler_pic='-KPIC'
8446           lt_prog_compiler_static='-Bstatic'
8447           lt_prog_compiler_wl=''
8448           ;;
8449         *Sun\ C*)
8450           # Sun C 5.9
8451           lt_prog_compiler_pic='-KPIC'
8452           lt_prog_compiler_static='-Bstatic'
8453           lt_prog_compiler_wl='-Wl,'
8454           ;;
8455         esac
8456         ;;
8457       esac
8458       ;;
8459
8460     newsos6)
8461       lt_prog_compiler_pic='-KPIC'
8462       lt_prog_compiler_static='-Bstatic'
8463       ;;
8464
8465     *nto* | *qnx*)
8466       # QNX uses GNU C++, but need to define -shared option too, otherwise
8467       # it will coredump.
8468       lt_prog_compiler_pic='-fPIC -shared'
8469       ;;
8470
8471     osf3* | osf4* | osf5*)
8472       lt_prog_compiler_wl='-Wl,'
8473       # All OSF/1 code is PIC.
8474       lt_prog_compiler_static='-non_shared'
8475       ;;
8476
8477     rdos*)
8478       lt_prog_compiler_static='-non_shared'
8479       ;;
8480
8481     solaris*)
8482       lt_prog_compiler_pic='-KPIC'
8483       lt_prog_compiler_static='-Bstatic'
8484       case $cc_basename in
8485       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8486         lt_prog_compiler_wl='-Qoption ld ';;
8487       *)
8488         lt_prog_compiler_wl='-Wl,';;
8489       esac
8490       ;;
8491
8492     sunos4*)
8493       lt_prog_compiler_wl='-Qoption ld '
8494       lt_prog_compiler_pic='-PIC'
8495       lt_prog_compiler_static='-Bstatic'
8496       ;;
8497
8498     sysv4 | sysv4.2uw2* | sysv4.3*)
8499       lt_prog_compiler_wl='-Wl,'
8500       lt_prog_compiler_pic='-KPIC'
8501       lt_prog_compiler_static='-Bstatic'
8502       ;;
8503
8504     sysv4*MP*)
8505       if test -d /usr/nec ;then
8506         lt_prog_compiler_pic='-Kconform_pic'
8507         lt_prog_compiler_static='-Bstatic'
8508       fi
8509       ;;
8510
8511     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8512       lt_prog_compiler_wl='-Wl,'
8513       lt_prog_compiler_pic='-KPIC'
8514       lt_prog_compiler_static='-Bstatic'
8515       ;;
8516
8517     unicos*)
8518       lt_prog_compiler_wl='-Wl,'
8519       lt_prog_compiler_can_build_shared=no
8520       ;;
8521
8522     uts4*)
8523       lt_prog_compiler_pic='-pic'
8524       lt_prog_compiler_static='-Bstatic'
8525       ;;
8526
8527     *)
8528       lt_prog_compiler_can_build_shared=no
8529       ;;
8530     esac
8531   fi
8532
8533 case $host_os in
8534   # For platforms which do not support PIC, -DPIC is meaningless:
8535   *djgpp*)
8536     lt_prog_compiler_pic=
8537     ;;
8538   *)
8539     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8540     ;;
8541 esac
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8544 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8545 if ${lt_cv_prog_compiler_pic+:} false; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8549 fi
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8551 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8552 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8553
8554 #
8555 # Check to make sure the PIC flag actually works.
8556 #
8557 if test -n "$lt_prog_compiler_pic"; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8559 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8560 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8561   $as_echo_n "(cached) " >&6
8562 else
8563   lt_cv_prog_compiler_pic_works=no
8564    ac_outfile=conftest.$ac_objext
8565    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8566    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8567    # Insert the option either (1) after the last *FLAGS variable, or
8568    # (2) before a word containing "conftest.", or (3) at the end.
8569    # Note that $ac_compile itself does not contain backslashes and begins
8570    # with a dollar sign (not a hyphen), so the echo should work correctly.
8571    # The option is referenced via a variable to avoid confusing sed.
8572    lt_compile=`echo "$ac_compile" | $SED \
8573    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8574    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8575    -e 's:$: $lt_compiler_flag:'`
8576    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8577    (eval "$lt_compile" 2>conftest.err)
8578    ac_status=$?
8579    cat conftest.err >&5
8580    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581    if (exit $ac_status) && test -s "$ac_outfile"; then
8582      # The compiler can only warn and ignore the option if not recognized
8583      # So say no if there are warnings other than the usual output.
8584      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8585      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8586      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8587        lt_cv_prog_compiler_pic_works=yes
8588      fi
8589    fi
8590    $RM conftest*
8591
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8594 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8595
8596 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8597     case $lt_prog_compiler_pic in
8598      "" | " "*) ;;
8599      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8600      esac
8601 else
8602     lt_prog_compiler_pic=
8603      lt_prog_compiler_can_build_shared=no
8604 fi
8605
8606 fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618 #
8619 # Check to make sure the static flag actually works.
8620 #
8621 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8623 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8624 if ${lt_cv_prog_compiler_static_works+:} false; then :
8625   $as_echo_n "(cached) " >&6
8626 else
8627   lt_cv_prog_compiler_static_works=no
8628    save_LDFLAGS="$LDFLAGS"
8629    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8630    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8631    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8632      # The linker can only warn and ignore the option if not recognized
8633      # So say no if there are warnings
8634      if test -s conftest.err; then
8635        # Append any errors to the config.log.
8636        cat conftest.err 1>&5
8637        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8638        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8639        if diff conftest.exp conftest.er2 >/dev/null; then
8640          lt_cv_prog_compiler_static_works=yes
8641        fi
8642      else
8643        lt_cv_prog_compiler_static_works=yes
8644      fi
8645    fi
8646    $RM -r conftest*
8647    LDFLAGS="$save_LDFLAGS"
8648
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8651 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8652
8653 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8654     :
8655 else
8656     lt_prog_compiler_static=
8657 fi
8658
8659
8660
8661
8662
8663
8664
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8666 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8667 if ${lt_cv_prog_compiler_c_o+:} false; then :
8668   $as_echo_n "(cached) " >&6
8669 else
8670   lt_cv_prog_compiler_c_o=no
8671    $RM -r conftest 2>/dev/null
8672    mkdir conftest
8673    cd conftest
8674    mkdir out
8675    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8676
8677    lt_compiler_flag="-o out/conftest2.$ac_objext"
8678    # Insert the option either (1) after the last *FLAGS variable, or
8679    # (2) before a word containing "conftest.", or (3) at the end.
8680    # Note that $ac_compile itself does not contain backslashes and begins
8681    # with a dollar sign (not a hyphen), so the echo should work correctly.
8682    lt_compile=`echo "$ac_compile" | $SED \
8683    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8684    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8685    -e 's:$: $lt_compiler_flag:'`
8686    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8687    (eval "$lt_compile" 2>out/conftest.err)
8688    ac_status=$?
8689    cat out/conftest.err >&5
8690    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8692    then
8693      # The compiler can only warn and ignore the option if not recognized
8694      # So say no if there are warnings
8695      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8696      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8697      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8698        lt_cv_prog_compiler_c_o=yes
8699      fi
8700    fi
8701    chmod u+w . 2>&5
8702    $RM conftest*
8703    # SGI C++ compiler will create directory out/ii_files/ for
8704    # template instantiation
8705    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8706    $RM out/* && rmdir out
8707    cd ..
8708    $RM -r conftest
8709    $RM conftest*
8710
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8713 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8714
8715
8716
8717
8718
8719
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8722 if ${lt_cv_prog_compiler_c_o+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   lt_cv_prog_compiler_c_o=no
8726    $RM -r conftest 2>/dev/null
8727    mkdir conftest
8728    cd conftest
8729    mkdir out
8730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8731
8732    lt_compiler_flag="-o out/conftest2.$ac_objext"
8733    # Insert the option either (1) after the last *FLAGS variable, or
8734    # (2) before a word containing "conftest.", or (3) at the end.
8735    # Note that $ac_compile itself does not contain backslashes and begins
8736    # with a dollar sign (not a hyphen), so the echo should work correctly.
8737    lt_compile=`echo "$ac_compile" | $SED \
8738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740    -e 's:$: $lt_compiler_flag:'`
8741    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8742    (eval "$lt_compile" 2>out/conftest.err)
8743    ac_status=$?
8744    cat out/conftest.err >&5
8745    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8747    then
8748      # The compiler can only warn and ignore the option if not recognized
8749      # So say no if there are warnings
8750      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8751      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8752      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8753        lt_cv_prog_compiler_c_o=yes
8754      fi
8755    fi
8756    chmod u+w . 2>&5
8757    $RM conftest*
8758    # SGI C++ compiler will create directory out/ii_files/ for
8759    # template instantiation
8760    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8761    $RM out/* && rmdir out
8762    cd ..
8763    $RM -r conftest
8764    $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8768 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8769
8770
8771
8772
8773 hard_links="nottested"
8774 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8775   # do not overwrite the value of need_locks provided by the user
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8777 $as_echo_n "checking if we can lock with hard links... " >&6; }
8778   hard_links=yes
8779   $RM conftest*
8780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8781   touch conftest.a
8782   ln conftest.a conftest.b 2>&5 || hard_links=no
8783   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8785 $as_echo "$hard_links" >&6; }
8786   if test "$hard_links" = no; then
8787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8788 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8789     need_locks=warn
8790   fi
8791 else
8792   need_locks=no
8793 fi
8794
8795
8796
8797
8798
8799
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8801 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8802
8803   runpath_var=
8804   allow_undefined_flag=
8805   always_export_symbols=no
8806   archive_cmds=
8807   archive_expsym_cmds=
8808   compiler_needs_object=no
8809   enable_shared_with_static_runtimes=no
8810   export_dynamic_flag_spec=
8811   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8812   hardcode_automatic=no
8813   hardcode_direct=no
8814   hardcode_direct_absolute=no
8815   hardcode_libdir_flag_spec=
8816   hardcode_libdir_flag_spec_ld=
8817   hardcode_libdir_separator=
8818   hardcode_minus_L=no
8819   hardcode_shlibpath_var=unsupported
8820   inherit_rpath=no
8821   link_all_deplibs=unknown
8822   module_cmds=
8823   module_expsym_cmds=
8824   old_archive_from_new_cmds=
8825   old_archive_from_expsyms_cmds=
8826   thread_safe_flag_spec=
8827   whole_archive_flag_spec=
8828   # include_expsyms should be a list of space-separated symbols to be *always*
8829   # included in the symbol list
8830   include_expsyms=
8831   # exclude_expsyms can be an extended regexp of symbols to exclude
8832   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8833   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8834   # as well as any symbol that contains `d'.
8835   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8836   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8837   # platforms (ab)use it in PIC code, but their linkers get confused if
8838   # the symbol is explicitly referenced.  Since portable code cannot
8839   # rely on this symbol name, it's probably fine to never include it in
8840   # preloaded symbol tables.
8841   # Exclude shared library initialization/finalization symbols.
8842   extract_expsyms_cmds=
8843
8844   case $host_os in
8845   cygwin* | mingw* | pw32* | cegcc*)
8846     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8847     # When not using gcc, we currently assume that we are using
8848     # Microsoft Visual C++.
8849     if test "$GCC" != yes; then
8850       with_gnu_ld=no
8851     fi
8852     ;;
8853   interix*)
8854     # we just hope/assume this is gcc and not c89 (= MSVC++)
8855     with_gnu_ld=yes
8856     ;;
8857   openbsd*)
8858     with_gnu_ld=no
8859     ;;
8860   esac
8861
8862   ld_shlibs=yes
8863
8864   # On some targets, GNU ld is compatible enough with the native linker
8865   # that we're better off using the native interface for both.
8866   lt_use_gnu_ld_interface=no
8867   if test "$with_gnu_ld" = yes; then
8868     case $host_os in
8869       aix*)
8870         # The AIX port of GNU ld has always aspired to compatibility
8871         # with the native linker.  However, as the warning in the GNU ld
8872         # block says, versions before 2.19.5* couldn't really create working
8873         # shared libraries, regardless of the interface used.
8874         case `$LD -v 2>&1` in
8875           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8876           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8877           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8878           *)
8879             lt_use_gnu_ld_interface=yes
8880             ;;
8881         esac
8882         ;;
8883       *)
8884         lt_use_gnu_ld_interface=yes
8885         ;;
8886     esac
8887   fi
8888
8889   if test "$lt_use_gnu_ld_interface" = yes; then
8890     # If archive_cmds runs LD, not CC, wlarc should be empty
8891     wlarc='${wl}'
8892
8893     # Set some defaults for GNU ld with shared library support. These
8894     # are reset later if shared libraries are not supported. Putting them
8895     # here allows them to be overridden if necessary.
8896     runpath_var=LD_RUN_PATH
8897     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8898     export_dynamic_flag_spec='${wl}--export-dynamic'
8899     # ancient GNU ld didn't support --whole-archive et. al.
8900     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8901       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8902     else
8903       whole_archive_flag_spec=
8904     fi
8905     supports_anon_versioning=no
8906     case `$LD -v 2>&1` in
8907       *GNU\ gold*) supports_anon_versioning=yes ;;
8908       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8909       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8910       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8911       *\ 2.11.*) ;; # other 2.11 versions
8912       *) supports_anon_versioning=yes ;;
8913     esac
8914
8915     # See if GNU ld supports shared libraries.
8916     case $host_os in
8917     aix[3-9]*)
8918       # On AIX/PPC, the GNU linker is very broken
8919       if test "$host_cpu" != ia64; then
8920         ld_shlibs=no
8921         cat <<_LT_EOF 1>&2
8922
8923 *** Warning: the GNU linker, at least up to release 2.19, is reported
8924 *** to be unable to reliably create shared libraries on AIX.
8925 *** Therefore, libtool is disabling shared libraries support.  If you
8926 *** really care for shared libraries, you may want to install binutils
8927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8928 *** You will then need to restart the configuration process.
8929
8930 _LT_EOF
8931       fi
8932       ;;
8933
8934     amigaos*)
8935       case $host_cpu in
8936       powerpc)
8937             # see comment about AmigaOS4 .so support
8938             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939             archive_expsym_cmds=''
8940         ;;
8941       m68k)
8942             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)'
8943             hardcode_libdir_flag_spec='-L$libdir'
8944             hardcode_minus_L=yes
8945         ;;
8946       esac
8947       ;;
8948
8949     beos*)
8950       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8951         allow_undefined_flag=unsupported
8952         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8953         # support --undefined.  This deserves some investigation.  FIXME
8954         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955       else
8956         ld_shlibs=no
8957       fi
8958       ;;
8959
8960     cygwin* | mingw* | pw32* | cegcc*)
8961       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8962       # as there is no search path for DLLs.
8963       hardcode_libdir_flag_spec='-L$libdir'
8964       export_dynamic_flag_spec='${wl}--export-all-symbols'
8965       allow_undefined_flag=unsupported
8966       always_export_symbols=no
8967       enable_shared_with_static_runtimes=yes
8968       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'
8969       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8970
8971       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8972         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8973         # If the export-symbols file already is a .def file (1st line
8974         # is EXPORTS), use it as is; otherwise, prepend...
8975         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8976           cp $export_symbols $output_objdir/$soname.def;
8977         else
8978           echo EXPORTS > $output_objdir/$soname.def;
8979           cat $export_symbols >> $output_objdir/$soname.def;
8980         fi~
8981         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8982       else
8983         ld_shlibs=no
8984       fi
8985       ;;
8986
8987     haiku*)
8988       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989       link_all_deplibs=yes
8990       ;;
8991
8992     interix[3-9]*)
8993       hardcode_direct=no
8994       hardcode_shlibpath_var=no
8995       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8996       export_dynamic_flag_spec='${wl}-E'
8997       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8998       # Instead, shared libraries are loaded at an image base (0x10000000 by
8999       # default) and relocated if they conflict, which is a slow very memory
9000       # consuming and fragmenting process.  To avoid this, we pick a random,
9001       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9002       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9003       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9004       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'
9005       ;;
9006
9007     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9008       tmp_diet=no
9009       if test "$host_os" = linux-dietlibc; then
9010         case $cc_basename in
9011           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9012         esac
9013       fi
9014       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9015          && test "$tmp_diet" = no
9016       then
9017         tmp_addflag=' $pic_flag'
9018         tmp_sharedflag='-shared'
9019         case $cc_basename,$host_cpu in
9020         pgcc*)                          # Portland Group C compiler
9021           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'
9022           tmp_addflag=' $pic_flag'
9023           ;;
9024         pgf77* | pgf90* | pgf95* | pgfortran*)
9025                                         # Portland Group f77 and f90 compilers
9026           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'
9027           tmp_addflag=' $pic_flag -Mnomain' ;;
9028         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9029           tmp_addflag=' -i_dynamic' ;;
9030         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9031           tmp_addflag=' -i_dynamic -nofor_main' ;;
9032         ifc* | ifort*)                  # Intel Fortran compiler
9033           tmp_addflag=' -nofor_main' ;;
9034         lf95*)                          # Lahey Fortran 8.1
9035           whole_archive_flag_spec=
9036           tmp_sharedflag='--shared' ;;
9037         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9038           tmp_sharedflag='-qmkshrobj'
9039           tmp_addflag= ;;
9040         nvcc*)  # Cuda Compiler Driver 2.2
9041           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'
9042           compiler_needs_object=yes
9043           ;;
9044         esac
9045         case `$CC -V 2>&1 | sed 5q` in
9046         *Sun\ C*)                       # Sun C 5.9
9047           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'
9048           compiler_needs_object=yes
9049           tmp_sharedflag='-G' ;;
9050         *Sun\ F*)                       # Sun Fortran 8.3
9051           tmp_sharedflag='-G' ;;
9052         esac
9053         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054
9055         if test "x$supports_anon_versioning" = xyes; then
9056           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9057             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9058             echo "local: *; };" >> $output_objdir/$libname.ver~
9059             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9060         fi
9061
9062         case $cc_basename in
9063         xlf* | bgf* | bgxlf* | mpixlf*)
9064           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9065           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9066           hardcode_libdir_flag_spec=
9067           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9068           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9069           if test "x$supports_anon_versioning" = xyes; then
9070             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9071               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9072               echo "local: *; };" >> $output_objdir/$libname.ver~
9073               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9074           fi
9075           ;;
9076         esac
9077       else
9078         ld_shlibs=no
9079       fi
9080       ;;
9081
9082     netbsd*)
9083       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9084         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9085         wlarc=
9086       else
9087         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089       fi
9090       ;;
9091
9092     solaris*)
9093       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9094         ld_shlibs=no
9095         cat <<_LT_EOF 1>&2
9096
9097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9098 *** create shared libraries on Solaris systems.  Therefore, libtool
9099 *** is disabling shared libraries support.  We urge you to upgrade GNU
9100 *** binutils to release 2.9.1 or newer.  Another option is to modify
9101 *** your PATH or compiler configuration so that the native linker is
9102 *** used, and then restart.
9103
9104 _LT_EOF
9105       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9106         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108       else
9109         ld_shlibs=no
9110       fi
9111       ;;
9112
9113     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9114       case `$LD -v 2>&1` in
9115         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9116         ld_shlibs=no
9117         cat <<_LT_EOF 1>&2
9118
9119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9120 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9121 *** is disabling shared libraries support.  We urge you to upgrade GNU
9122 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9123 *** your PATH or compiler configuration so that the native linker is
9124 *** used, and then restart.
9125
9126 _LT_EOF
9127         ;;
9128         *)
9129           # For security reasons, it is highly recommended that you always
9130           # use absolute paths for naming shared libraries, and exclude the
9131           # DT_RUNPATH tag from executables and libraries.  But doing so
9132           # requires that you compile everything twice, which is a pain.
9133           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9134             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9135             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9137           else
9138             ld_shlibs=no
9139           fi
9140         ;;
9141       esac
9142       ;;
9143
9144     sunos4*)
9145       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9146       wlarc=
9147       hardcode_direct=yes
9148       hardcode_shlibpath_var=no
9149       ;;
9150
9151     *)
9152       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9153         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9155       else
9156         ld_shlibs=no
9157       fi
9158       ;;
9159     esac
9160
9161     if test "$ld_shlibs" = no; then
9162       runpath_var=
9163       hardcode_libdir_flag_spec=
9164       export_dynamic_flag_spec=
9165       whole_archive_flag_spec=
9166     fi
9167   else
9168     # PORTME fill in a description of your system's linker (not GNU ld)
9169     case $host_os in
9170     aix3*)
9171       allow_undefined_flag=unsupported
9172       always_export_symbols=yes
9173       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'
9174       # Note: this linker hardcodes the directories in LIBPATH if there
9175       # are no directories specified by -L.
9176       hardcode_minus_L=yes
9177       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9178         # Neither direct hardcoding nor static linking is supported with a
9179         # broken collect2.
9180         hardcode_direct=unsupported
9181       fi
9182       ;;
9183
9184     aix[4-9]*)
9185       if test "$host_cpu" = ia64; then
9186         # On IA64, the linker does run time linking by default, so we don't
9187         # have to do anything special.
9188         aix_use_runtimelinking=no
9189         exp_sym_flag='-Bexport'
9190         no_entry_flag=""
9191       else
9192         # If we're using GNU nm, then we don't want the "-C" option.
9193         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9194         # Also, AIX nm treats weak defined symbols like other global
9195         # defined symbols, whereas GNU nm marks them as "W".
9196         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9197           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'
9198         else
9199           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'
9200         fi
9201         aix_use_runtimelinking=no
9202
9203         # Test if we are trying to use run time linking or normal
9204         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9205         # need to do runtime linking.
9206         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9207           for ld_flag in $LDFLAGS; do
9208           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9209             aix_use_runtimelinking=yes
9210             break
9211           fi
9212           done
9213           ;;
9214         esac
9215
9216         exp_sym_flag='-bexport'
9217         no_entry_flag='-bnoentry'
9218       fi
9219
9220       # When large executables or shared objects are built, AIX ld can
9221       # have problems creating the table of contents.  If linking a library
9222       # or program results in "error TOC overflow" add -mminimal-toc to
9223       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9224       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9225
9226       archive_cmds=''
9227       hardcode_direct=yes
9228       hardcode_direct_absolute=yes
9229       hardcode_libdir_separator=':'
9230       link_all_deplibs=yes
9231       file_list_spec='${wl}-f,'
9232
9233       if test "$GCC" = yes; then
9234         case $host_os in aix4.[012]|aix4.[012].*)
9235         # We only want to do this on AIX 4.2 and lower, the check
9236         # below for broken collect2 doesn't work under 4.3+
9237           collect2name=`${CC} -print-prog-name=collect2`
9238           if test -f "$collect2name" &&
9239            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9240           then
9241           # We have reworked collect2
9242           :
9243           else
9244           # We have old collect2
9245           hardcode_direct=unsupported
9246           # It fails to find uninstalled libraries when the uninstalled
9247           # path is not listed in the libpath.  Setting hardcode_minus_L
9248           # to unsupported forces relinking
9249           hardcode_minus_L=yes
9250           hardcode_libdir_flag_spec='-L$libdir'
9251           hardcode_libdir_separator=
9252           fi
9253           ;;
9254         esac
9255         shared_flag='-shared'
9256         if test "$aix_use_runtimelinking" = yes; then
9257           shared_flag="$shared_flag "'${wl}-G'
9258         fi
9259       else
9260         # not using gcc
9261         if test "$host_cpu" = ia64; then
9262         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9263         # chokes on -Wl,-G. The following line is correct:
9264           shared_flag='-G'
9265         else
9266           if test "$aix_use_runtimelinking" = yes; then
9267             shared_flag='${wl}-G'
9268           else
9269             shared_flag='${wl}-bM:SRE'
9270           fi
9271         fi
9272       fi
9273
9274       export_dynamic_flag_spec='${wl}-bexpall'
9275       # It seems that -bexpall does not export symbols beginning with
9276       # underscore (_), so it is better to generate a list of symbols to export.
9277       always_export_symbols=yes
9278       if test "$aix_use_runtimelinking" = yes; then
9279         # Warning - without using the other runtime loading flags (-brtl),
9280         # -berok will link without error, but may produce a broken library.
9281         allow_undefined_flag='-berok'
9282         # Determine the default libpath from the value encoded in an
9283         # empty executable.
9284         if test "${lt_cv_aix_libpath+set}" = set; then
9285   aix_libpath=$lt_cv_aix_libpath
9286 else
9287   if ${lt_cv_aix_libpath_+:} false; then :
9288   $as_echo_n "(cached) " >&6
9289 else
9290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h.  */
9292
9293 int
9294 main ()
9295 {
9296
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_link "$LINENO"; then :
9302
9303   lt_aix_libpath_sed='
9304       /Import File Strings/,/^$/ {
9305           /^0/ {
9306               s/^0  *\([^ ]*\) *$/\1/
9307               p
9308           }
9309       }'
9310   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9311   # Check for a 64-bit object if we didn't find anything.
9312   if test -z "$lt_cv_aix_libpath_"; then
9313     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9314   fi
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext \
9317     conftest$ac_exeext conftest.$ac_ext
9318   if test -z "$lt_cv_aix_libpath_"; then
9319     lt_cv_aix_libpath_="/usr/lib:/lib"
9320   fi
9321
9322 fi
9323
9324   aix_libpath=$lt_cv_aix_libpath_
9325 fi
9326
9327         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9328         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"
9329       else
9330         if test "$host_cpu" = ia64; then
9331           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9332           allow_undefined_flag="-z nodefs"
9333           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"
9334         else
9335          # Determine the default libpath from the value encoded in an
9336          # empty executable.
9337          if test "${lt_cv_aix_libpath+set}" = set; then
9338   aix_libpath=$lt_cv_aix_libpath
9339 else
9340   if ${lt_cv_aix_libpath_+:} false; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h.  */
9345
9346 int
9347 main ()
9348 {
9349
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 if ac_fn_c_try_link "$LINENO"; then :
9355
9356   lt_aix_libpath_sed='
9357       /Import File Strings/,/^$/ {
9358           /^0/ {
9359               s/^0  *\([^ ]*\) *$/\1/
9360               p
9361           }
9362       }'
9363   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9364   # Check for a 64-bit object if we didn't find anything.
9365   if test -z "$lt_cv_aix_libpath_"; then
9366     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9367   fi
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext \
9370     conftest$ac_exeext conftest.$ac_ext
9371   if test -z "$lt_cv_aix_libpath_"; then
9372     lt_cv_aix_libpath_="/usr/lib:/lib"
9373   fi
9374
9375 fi
9376
9377   aix_libpath=$lt_cv_aix_libpath_
9378 fi
9379
9380          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9381           # Warning - without using the other run time loading flags,
9382           # -berok will link without error, but may produce a broken library.
9383           no_undefined_flag=' ${wl}-bernotok'
9384           allow_undefined_flag=' ${wl}-berok'
9385           if test "$with_gnu_ld" = yes; then
9386             # We only use this code for GNU lds that support --whole-archive.
9387             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9388           else
9389             # Exported symbols can be pulled into shared objects from archives
9390             whole_archive_flag_spec='$convenience'
9391           fi
9392           archive_cmds_need_lc=yes
9393           # This is similar to how AIX traditionally builds its shared libraries.
9394           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'
9395         fi
9396       fi
9397       ;;
9398
9399     amigaos*)
9400       case $host_cpu in
9401       powerpc)
9402             # see comment about AmigaOS4 .so support
9403             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404             archive_expsym_cmds=''
9405         ;;
9406       m68k)
9407             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)'
9408             hardcode_libdir_flag_spec='-L$libdir'
9409             hardcode_minus_L=yes
9410         ;;
9411       esac
9412       ;;
9413
9414     bsdi[45]*)
9415       export_dynamic_flag_spec=-rdynamic
9416       ;;
9417
9418     cygwin* | mingw* | pw32* | cegcc*)
9419       # When not using gcc, we currently assume that we are using
9420       # Microsoft Visual C++.
9421       # hardcode_libdir_flag_spec is actually meaningless, as there is
9422       # no search path for DLLs.
9423       case $cc_basename in
9424       cl*)
9425         # Native MSVC
9426         hardcode_libdir_flag_spec=' '
9427         allow_undefined_flag=unsupported
9428         always_export_symbols=yes
9429         file_list_spec='@'
9430         # Tell ltmain to make .lib files, not .a files.
9431         libext=lib
9432         # Tell ltmain to make .dll files, not .so files.
9433         shrext_cmds=".dll"
9434         # FIXME: Setting linknames here is a bad hack.
9435         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9436         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9437             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9438           else
9439             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9440           fi~
9441           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9442           linknames='
9443         # The linker will not automatically build a static lib if we build a DLL.
9444         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9445         enable_shared_with_static_runtimes=yes
9446         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9447         # Don't use ranlib
9448         old_postinstall_cmds='chmod 644 $oldlib'
9449         postlink_cmds='lt_outputfile="@OUTPUT@"~
9450           lt_tool_outputfile="@TOOL_OUTPUT@"~
9451           case $lt_outputfile in
9452             *.exe|*.EXE) ;;
9453             *)
9454               lt_outputfile="$lt_outputfile.exe"
9455               lt_tool_outputfile="$lt_tool_outputfile.exe"
9456               ;;
9457           esac~
9458           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9459             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9460             $RM "$lt_outputfile.manifest";
9461           fi'
9462         ;;
9463       *)
9464         # Assume MSVC wrapper
9465         hardcode_libdir_flag_spec=' '
9466         allow_undefined_flag=unsupported
9467         # Tell ltmain to make .lib files, not .a files.
9468         libext=lib
9469         # Tell ltmain to make .dll files, not .so files.
9470         shrext_cmds=".dll"
9471         # FIXME: Setting linknames here is a bad hack.
9472         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9473         # The linker will automatically build a .lib file if we build a DLL.
9474         old_archive_from_new_cmds='true'
9475         # FIXME: Should let the user specify the lib program.
9476         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9477         enable_shared_with_static_runtimes=yes
9478         ;;
9479       esac
9480       ;;
9481
9482     darwin* | rhapsody*)
9483
9484
9485   archive_cmds_need_lc=no
9486   hardcode_direct=no
9487   hardcode_automatic=yes
9488   hardcode_shlibpath_var=unsupported
9489   if test "$lt_cv_ld_force_load" = "yes"; then
9490     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\"`'
9491   else
9492     whole_archive_flag_spec=''
9493   fi
9494   link_all_deplibs=yes
9495   allow_undefined_flag="$_lt_dar_allow_undefined"
9496   case $cc_basename in
9497      ifort*) _lt_dar_can_shared=yes ;;
9498      *) _lt_dar_can_shared=$GCC ;;
9499   esac
9500   if test "$_lt_dar_can_shared" = "yes"; then
9501     output_verbose_link_cmd=func_echo_all
9502     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9503     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9504     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}"
9505     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}"
9506
9507   else
9508   ld_shlibs=no
9509   fi
9510
9511       ;;
9512
9513     dgux*)
9514       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515       hardcode_libdir_flag_spec='-L$libdir'
9516       hardcode_shlibpath_var=no
9517       ;;
9518
9519     freebsd1*)
9520       ld_shlibs=no
9521       ;;
9522
9523     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9524     # support.  Future versions do this automatically, but an explicit c++rt0.o
9525     # does not break anything, and helps significantly (at the cost of a little
9526     # extra space).
9527     freebsd2.2*)
9528       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9529       hardcode_libdir_flag_spec='-R$libdir'
9530       hardcode_direct=yes
9531       hardcode_shlibpath_var=no
9532       ;;
9533
9534     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9535     freebsd2*)
9536       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9537       hardcode_direct=yes
9538       hardcode_minus_L=yes
9539       hardcode_shlibpath_var=no
9540       ;;
9541
9542     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9543     freebsd* | dragonfly*)
9544       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545       hardcode_libdir_flag_spec='-R$libdir'
9546       hardcode_direct=yes
9547       hardcode_shlibpath_var=no
9548       ;;
9549
9550     hpux9*)
9551       if test "$GCC" = yes; then
9552         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'
9553       else
9554         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'
9555       fi
9556       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9557       hardcode_libdir_separator=:
9558       hardcode_direct=yes
9559
9560       # hardcode_minus_L: Not really in the search PATH,
9561       # but as the default location of the library.
9562       hardcode_minus_L=yes
9563       export_dynamic_flag_spec='${wl}-E'
9564       ;;
9565
9566     hpux10*)
9567       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9568         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9569       else
9570         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9571       fi
9572       if test "$with_gnu_ld" = no; then
9573         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9574         hardcode_libdir_flag_spec_ld='+b $libdir'
9575         hardcode_libdir_separator=:
9576         hardcode_direct=yes
9577         hardcode_direct_absolute=yes
9578         export_dynamic_flag_spec='${wl}-E'
9579         # hardcode_minus_L: Not really in the search PATH,
9580         # but as the default location of the library.
9581         hardcode_minus_L=yes
9582       fi
9583       ;;
9584
9585     hpux11*)
9586       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9587         case $host_cpu in
9588         hppa*64*)
9589           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9590           ;;
9591         ia64*)
9592           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9593           ;;
9594         *)
9595           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9596           ;;
9597         esac
9598       else
9599         case $host_cpu in
9600         hppa*64*)
9601           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602           ;;
9603         ia64*)
9604           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9605           ;;
9606         *)
9607
9608           # Older versions of the 11.00 compiler do not understand -b yet
9609           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9610           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9611 $as_echo_n "checking if $CC understands -b... " >&6; }
9612 if ${lt_cv_prog_compiler__b+:} false; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   lt_cv_prog_compiler__b=no
9616    save_LDFLAGS="$LDFLAGS"
9617    LDFLAGS="$LDFLAGS -b"
9618    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9619    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9620      # The linker can only warn and ignore the option if not recognized
9621      # So say no if there are warnings
9622      if test -s conftest.err; then
9623        # Append any errors to the config.log.
9624        cat conftest.err 1>&5
9625        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9626        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9627        if diff conftest.exp conftest.er2 >/dev/null; then
9628          lt_cv_prog_compiler__b=yes
9629        fi
9630      else
9631        lt_cv_prog_compiler__b=yes
9632      fi
9633    fi
9634    $RM -r conftest*
9635    LDFLAGS="$save_LDFLAGS"
9636
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9639 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9640
9641 if test x"$lt_cv_prog_compiler__b" = xyes; then
9642     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9643 else
9644     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9645 fi
9646
9647           ;;
9648         esac
9649       fi
9650       if test "$with_gnu_ld" = no; then
9651         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9652         hardcode_libdir_separator=:
9653
9654         case $host_cpu in
9655         hppa*64*|ia64*)
9656           hardcode_direct=no
9657           hardcode_shlibpath_var=no
9658           ;;
9659         *)
9660           hardcode_direct=yes
9661           hardcode_direct_absolute=yes
9662           export_dynamic_flag_spec='${wl}-E'
9663
9664           # hardcode_minus_L: Not really in the search PATH,
9665           # but as the default location of the library.
9666           hardcode_minus_L=yes
9667           ;;
9668         esac
9669       fi
9670       ;;
9671
9672     irix5* | irix6* | nonstopux*)
9673       if test "$GCC" = yes; then
9674         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'
9675         # Try to use the -exported_symbol ld option, if it does not
9676         # work, assume that -exports_file does not work either and
9677         # implicitly export all symbols.
9678         # This should be the same for all languages, so no per-tag cache variable.
9679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9680 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9681 if ${lt_cv_irix_exported_symbol+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   save_LDFLAGS="$LDFLAGS"
9685            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9686            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h.  */
9688 int foo (void) { return 0; }
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"; then :
9691   lt_cv_irix_exported_symbol=yes
9692 else
9693   lt_cv_irix_exported_symbol=no
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext \
9696     conftest$ac_exeext conftest.$ac_ext
9697            LDFLAGS="$save_LDFLAGS"
9698 fi
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9700 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9701         if test "$lt_cv_irix_exported_symbol" = yes; then
9702           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'
9703         fi
9704       else
9705         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'
9706         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'
9707       fi
9708       archive_cmds_need_lc='no'
9709       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710       hardcode_libdir_separator=:
9711       inherit_rpath=yes
9712       link_all_deplibs=yes
9713       ;;
9714
9715     netbsd*)
9716       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9717         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9718       else
9719         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9720       fi
9721       hardcode_libdir_flag_spec='-R$libdir'
9722       hardcode_direct=yes
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     newsos6)
9727       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728       hardcode_direct=yes
9729       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9730       hardcode_libdir_separator=:
9731       hardcode_shlibpath_var=no
9732       ;;
9733
9734     *nto* | *qnx*)
9735       ;;
9736
9737     openbsd*)
9738       if test -f /usr/libexec/ld.so; then
9739         hardcode_direct=yes
9740         hardcode_shlibpath_var=no
9741         hardcode_direct_absolute=yes
9742         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9743           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9744           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9745           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9746           export_dynamic_flag_spec='${wl}-E'
9747         else
9748           case $host_os in
9749            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9750              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9751              hardcode_libdir_flag_spec='-R$libdir'
9752              ;;
9753            *)
9754              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9755              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9756              ;;
9757           esac
9758         fi
9759       else
9760         ld_shlibs=no
9761       fi
9762       ;;
9763
9764     os2*)
9765       hardcode_libdir_flag_spec='-L$libdir'
9766       hardcode_minus_L=yes
9767       allow_undefined_flag=unsupported
9768       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'
9769       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9770       ;;
9771
9772     osf3*)
9773       if test "$GCC" = yes; then
9774         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9775         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'
9776       else
9777         allow_undefined_flag=' -expect_unresolved \*'
9778         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'
9779       fi
9780       archive_cmds_need_lc='no'
9781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782       hardcode_libdir_separator=:
9783       ;;
9784
9785     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9786       if test "$GCC" = yes; then
9787         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788         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'
9789         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790       else
9791         allow_undefined_flag=' -expect_unresolved \*'
9792         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'
9793         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~
9794         $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'
9795
9796         # Both c and cxx compiler support -rpath directly
9797         hardcode_libdir_flag_spec='-rpath $libdir'
9798       fi
9799       archive_cmds_need_lc='no'
9800       hardcode_libdir_separator=:
9801       ;;
9802
9803     solaris*)
9804       no_undefined_flag=' -z defs'
9805       if test "$GCC" = yes; then
9806         wlarc='${wl}'
9807         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9808         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9809           $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'
9810       else
9811         case `$CC -V 2>&1` in
9812         *"Compilers 5.0"*)
9813           wlarc=''
9814           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9816           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9817           ;;
9818         *)
9819           wlarc='${wl}'
9820           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9821           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9822           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9823           ;;
9824         esac
9825       fi
9826       hardcode_libdir_flag_spec='-R$libdir'
9827       hardcode_shlibpath_var=no
9828       case $host_os in
9829       solaris2.[0-5] | solaris2.[0-5].*) ;;
9830       *)
9831         # The compiler driver will combine and reorder linker options,
9832         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9833         # but is careful enough not to reorder.
9834         # Supported since Solaris 2.6 (maybe 2.5.1?)
9835         if test "$GCC" = yes; then
9836           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9837         else
9838           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9839         fi
9840         ;;
9841       esac
9842       link_all_deplibs=yes
9843       ;;
9844
9845     sunos4*)
9846       if test "x$host_vendor" = xsequent; then
9847         # Use $CC to link under sequent, because it throws in some extra .o
9848         # files that make .init and .fini sections work.
9849         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9850       else
9851         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9852       fi
9853       hardcode_libdir_flag_spec='-L$libdir'
9854       hardcode_direct=yes
9855       hardcode_minus_L=yes
9856       hardcode_shlibpath_var=no
9857       ;;
9858
9859     sysv4)
9860       case $host_vendor in
9861         sni)
9862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863           hardcode_direct=yes # is this really true???
9864         ;;
9865         siemens)
9866           ## LD is ld it makes a PLAMLIB
9867           ## CC just makes a GrossModule.
9868           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9869           reload_cmds='$CC -r -o $output$reload_objs'
9870           hardcode_direct=no
9871         ;;
9872         motorola)
9873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9874           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9875         ;;
9876       esac
9877       runpath_var='LD_RUN_PATH'
9878       hardcode_shlibpath_var=no
9879       ;;
9880
9881     sysv4.3*)
9882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883       hardcode_shlibpath_var=no
9884       export_dynamic_flag_spec='-Bexport'
9885       ;;
9886
9887     sysv4*MP*)
9888       if test -d /usr/nec; then
9889         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890         hardcode_shlibpath_var=no
9891         runpath_var=LD_RUN_PATH
9892         hardcode_runpath_var=yes
9893         ld_shlibs=yes
9894       fi
9895       ;;
9896
9897     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9898       no_undefined_flag='${wl}-z,text'
9899       archive_cmds_need_lc=no
9900       hardcode_shlibpath_var=no
9901       runpath_var='LD_RUN_PATH'
9902
9903       if test "$GCC" = yes; then
9904         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9905         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9906       else
9907         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909       fi
9910       ;;
9911
9912     sysv5* | sco3.2v5* | sco5v6*)
9913       # Note: We can NOT use -z defs as we might desire, because we do not
9914       # link with -lc, and that would cause any symbols used from libc to
9915       # always be unresolved, which means just about no library would
9916       # ever link correctly.  If we're not using GNU ld we use -z text
9917       # though, which does catch some bad symbols but isn't as heavy-handed
9918       # as -z defs.
9919       no_undefined_flag='${wl}-z,text'
9920       allow_undefined_flag='${wl}-z,nodefs'
9921       archive_cmds_need_lc=no
9922       hardcode_shlibpath_var=no
9923       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9924       hardcode_libdir_separator=':'
9925       link_all_deplibs=yes
9926       export_dynamic_flag_spec='${wl}-Bexport'
9927       runpath_var='LD_RUN_PATH'
9928
9929       if test "$GCC" = yes; then
9930         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9931         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932       else
9933         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9934         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935       fi
9936       ;;
9937
9938     uts4*)
9939       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9940       hardcode_libdir_flag_spec='-L$libdir'
9941       hardcode_shlibpath_var=no
9942       ;;
9943
9944     *)
9945       ld_shlibs=no
9946       ;;
9947     esac
9948
9949     if test x$host_vendor = xsni; then
9950       case $host in
9951       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9952         export_dynamic_flag_spec='${wl}-Blargedynsym'
9953         ;;
9954       esac
9955     fi
9956   fi
9957
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9959 $as_echo "$ld_shlibs" >&6; }
9960 test "$ld_shlibs" = no && can_build_shared=no
9961
9962 with_gnu_ld=$with_gnu_ld
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978 #
9979 # Do we need to explicitly link libc?
9980 #
9981 case "x$archive_cmds_need_lc" in
9982 x|xyes)
9983   # Assume -lc should be added
9984   archive_cmds_need_lc=yes
9985
9986   if test "$enable_shared" = yes && test "$GCC" = yes; then
9987     case $archive_cmds in
9988     *'~'*)
9989       # FIXME: we may have to deal with multi-command sequences.
9990       ;;
9991     '$CC '*)
9992       # Test whether the compiler implicitly links with -lc since on some
9993       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9994       # to ld, don't add -lc before -lgcc.
9995       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9996 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9997 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000   $RM conftest*
10001         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10002
10003         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10004   (eval $ac_compile) 2>&5
10005   ac_status=$?
10006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10007   test $ac_status = 0; } 2>conftest.err; then
10008           soname=conftest
10009           lib=conftest
10010           libobjs=conftest.$ac_objext
10011           deplibs=
10012           wl=$lt_prog_compiler_wl
10013           pic_flag=$lt_prog_compiler_pic
10014           compiler_flags=-v
10015           linker_flags=-v
10016           verstring=
10017           output_objdir=.
10018           libname=conftest
10019           lt_save_allow_undefined_flag=$allow_undefined_flag
10020           allow_undefined_flag=
10021           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10022   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10023   ac_status=$?
10024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10025   test $ac_status = 0; }
10026           then
10027             lt_cv_archive_cmds_need_lc=no
10028           else
10029             lt_cv_archive_cmds_need_lc=yes
10030           fi
10031           allow_undefined_flag=$lt_save_allow_undefined_flag
10032         else
10033           cat conftest.err 1>&5
10034         fi
10035         $RM conftest*
10036
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10039 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10040       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10041       ;;
10042     esac
10043   fi
10044   ;;
10045 esac
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10204 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10205
10206 if test "$GCC" = yes; then
10207   case $host_os in
10208     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10209     *) lt_awk_arg="/^libraries:/" ;;
10210   esac
10211   case $host_os in
10212     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10213     *) lt_sed_strip_eq="s,=/,/,g" ;;
10214   esac
10215   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10216   case $lt_search_path_spec in
10217   *\;*)
10218     # if the path contains ";" then we assume it to be the separator
10219     # otherwise default to the standard path separator (i.e. ":") - it is
10220     # assumed that no part of a normal pathname contains ";" but that should
10221     # okay in the real world where ";" in dirpaths is itself problematic.
10222     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10223     ;;
10224   *)
10225     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10226     ;;
10227   esac
10228   # Ok, now we have the path, separated by spaces, we can step through it
10229   # and add multilib dir if necessary.
10230   lt_tmp_lt_search_path_spec=
10231   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10232   for lt_sys_path in $lt_search_path_spec; do
10233     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10234       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10235     else
10236       test -d "$lt_sys_path" && \
10237         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10238     fi
10239   done
10240   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10241 BEGIN {RS=" "; FS="/|\n";} {
10242   lt_foo="";
10243   lt_count=0;
10244   for (lt_i = NF; lt_i > 0; lt_i--) {
10245     if ($lt_i != "" && $lt_i != ".") {
10246       if ($lt_i == "..") {
10247         lt_count++;
10248       } else {
10249         if (lt_count == 0) {
10250           lt_foo="/" $lt_i lt_foo;
10251         } else {
10252           lt_count--;
10253         }
10254       }
10255     }
10256   }
10257   if (lt_foo != "") { lt_freq[lt_foo]++; }
10258   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10259 }'`
10260   # AWK program above erroneously prepends '/' to C:/dos/paths
10261   # for these hosts.
10262   case $host_os in
10263     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10264       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10265   esac
10266   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10267 else
10268   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10269 fi
10270 library_names_spec=
10271 libname_spec='lib$name'
10272 soname_spec=
10273 shrext_cmds=".so"
10274 postinstall_cmds=
10275 postuninstall_cmds=
10276 finish_cmds=
10277 finish_eval=
10278 shlibpath_var=
10279 shlibpath_overrides_runpath=unknown
10280 version_type=none
10281 dynamic_linker="$host_os ld.so"
10282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10283 need_lib_prefix=unknown
10284 hardcode_into_libs=no
10285
10286 # when you set need_version to no, make sure it does not cause -set_version
10287 # flags to be left without arguments
10288 need_version=unknown
10289
10290 case $host_os in
10291 aix3*)
10292   version_type=linux
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10294   shlibpath_var=LIBPATH
10295
10296   # AIX 3 has no versioning support, so we append a major version to the name.
10297   soname_spec='${libname}${release}${shared_ext}$major'
10298   ;;
10299
10300 aix[4-9]*)
10301   version_type=linux
10302   need_lib_prefix=no
10303   need_version=no
10304   hardcode_into_libs=yes
10305   if test "$host_cpu" = ia64; then
10306     # AIX 5 supports IA64
10307     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10308     shlibpath_var=LD_LIBRARY_PATH
10309   else
10310     # With GCC up to 2.95.x, collect2 would create an import file
10311     # for dependence libraries.  The import file would start with
10312     # the line `#! .'.  This would cause the generated library to
10313     # depend on `.', always an invalid library.  This was fixed in
10314     # development snapshots of GCC prior to 3.0.
10315     case $host_os in
10316       aix4 | aix4.[01] | aix4.[01].*)
10317       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10318            echo ' yes '
10319            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10320         :
10321       else
10322         can_build_shared=no
10323       fi
10324       ;;
10325     esac
10326     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10327     # soname into executable. Probably we can add versioning support to
10328     # collect2, so additional links can be useful in future.
10329     if test "$aix_use_runtimelinking" = yes; then
10330       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10331       # instead of lib<name>.a to let people know that these are not
10332       # typical AIX shared libraries.
10333       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334     else
10335       # We preserve .a as extension for shared libraries through AIX4.2
10336       # and later when we are not doing run time linking.
10337       library_names_spec='${libname}${release}.a $libname.a'
10338       soname_spec='${libname}${release}${shared_ext}$major'
10339     fi
10340     shlibpath_var=LIBPATH
10341   fi
10342   ;;
10343
10344 amigaos*)
10345   case $host_cpu in
10346   powerpc)
10347     # Since July 2007 AmigaOS4 officially supports .so libraries.
10348     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350     ;;
10351   m68k)
10352     library_names_spec='$libname.ixlibrary $libname.a'
10353     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10354     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'
10355     ;;
10356   esac
10357   ;;
10358
10359 beos*)
10360   library_names_spec='${libname}${shared_ext}'
10361   dynamic_linker="$host_os ld.so"
10362   shlibpath_var=LIBRARY_PATH
10363   ;;
10364
10365 bsdi[45]*)
10366   version_type=linux
10367   need_version=no
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369   soname_spec='${libname}${release}${shared_ext}$major'
10370   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10371   shlibpath_var=LD_LIBRARY_PATH
10372   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10373   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10374   # the default ld.so.conf also contains /usr/contrib/lib and
10375   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10376   # libtool to hard-code these into programs
10377   ;;
10378
10379 cygwin* | mingw* | pw32* | cegcc*)
10380   version_type=windows
10381   shrext_cmds=".dll"
10382   need_version=no
10383   need_lib_prefix=no
10384
10385   case $GCC,$cc_basename in
10386   yes,*)
10387     # gcc
10388     library_names_spec='$libname.dll.a'
10389     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10390     postinstall_cmds='base_file=`basename \${file}`~
10391       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10392       dldir=$destdir/`dirname \$dlpath`~
10393       test -d \$dldir || mkdir -p \$dldir~
10394       $install_prog $dir/$dlname \$dldir/$dlname~
10395       chmod a+x \$dldir/$dlname~
10396       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10397         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10398       fi'
10399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10400       dlpath=$dir/\$dldll~
10401        $RM \$dlpath'
10402     shlibpath_overrides_runpath=yes
10403
10404     case $host_os in
10405     cygwin*)
10406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408
10409       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10410       ;;
10411     mingw* | cegcc*)
10412       # MinGW DLLs use traditional 'lib' prefix
10413       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10414       ;;
10415     pw32*)
10416       # pw32 DLLs use 'pw' prefix rather than 'lib'
10417       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10418       ;;
10419     esac
10420     dynamic_linker='Win32 ld.exe'
10421     ;;
10422
10423   *,cl*)
10424     # Native MSVC
10425     libname_spec='$name'
10426     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10427     library_names_spec='${libname}.dll.lib'
10428
10429     case $build_os in
10430     mingw*)
10431       sys_lib_search_path_spec=
10432       lt_save_ifs=$IFS
10433       IFS=';'
10434       for lt_path in $LIB
10435       do
10436         IFS=$lt_save_ifs
10437         # Let DOS variable expansion print the short 8.3 style file name.
10438         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10439         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10440       done
10441       IFS=$lt_save_ifs
10442       # Convert to MSYS style.
10443       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10444       ;;
10445     cygwin*)
10446       # Convert to unix form, then to dos form, then back to unix form
10447       # but this time dos style (no spaces!) so that the unix form looks
10448       # like /cygdrive/c/PROGRA~1:/cygdr...
10449       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10450       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10451       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10452       ;;
10453     *)
10454       sys_lib_search_path_spec="$LIB"
10455       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10456         # It is most probably a Windows format PATH.
10457         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10458       else
10459         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10460       fi
10461       # FIXME: find the short name or the path components, as spaces are
10462       # common. (e.g. "Program Files" -> "PROGRA~1")
10463       ;;
10464     esac
10465
10466     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10467     postinstall_cmds='base_file=`basename \${file}`~
10468       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10469       dldir=$destdir/`dirname \$dlpath`~
10470       test -d \$dldir || mkdir -p \$dldir~
10471       $install_prog $dir/$dlname \$dldir/$dlname'
10472     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10473       dlpath=$dir/\$dldll~
10474        $RM \$dlpath'
10475     shlibpath_overrides_runpath=yes
10476     dynamic_linker='Win32 link.exe'
10477     ;;
10478
10479   *)
10480     # Assume MSVC wrapper
10481     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10482     dynamic_linker='Win32 ld.exe'
10483     ;;
10484   esac
10485   # FIXME: first we should search . and the directory the executable is in
10486   shlibpath_var=PATH
10487   ;;
10488
10489 darwin* | rhapsody*)
10490   dynamic_linker="$host_os dyld"
10491   version_type=darwin
10492   need_lib_prefix=no
10493   need_version=no
10494   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10495   soname_spec='${libname}${release}${major}$shared_ext'
10496   shlibpath_overrides_runpath=yes
10497   shlibpath_var=DYLD_LIBRARY_PATH
10498   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10499
10500   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10501   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10502   ;;
10503
10504 dgux*)
10505   version_type=linux
10506   need_lib_prefix=no
10507   need_version=no
10508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10509   soname_spec='${libname}${release}${shared_ext}$major'
10510   shlibpath_var=LD_LIBRARY_PATH
10511   ;;
10512
10513 freebsd1*)
10514   dynamic_linker=no
10515   ;;
10516
10517 freebsd* | dragonfly*)
10518   # DragonFly does not have aout.  When/if they implement a new
10519   # versioning mechanism, adjust this.
10520   if test -x /usr/bin/objformat; then
10521     objformat=`/usr/bin/objformat`
10522   else
10523     case $host_os in
10524     freebsd[123]*) objformat=aout ;;
10525     *) objformat=elf ;;
10526     esac
10527   fi
10528   version_type=freebsd-$objformat
10529   case $version_type in
10530     freebsd-elf*)
10531       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10532       need_version=no
10533       need_lib_prefix=no
10534       ;;
10535     freebsd-*)
10536       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10537       need_version=yes
10538       ;;
10539   esac
10540   shlibpath_var=LD_LIBRARY_PATH
10541   case $host_os in
10542   freebsd2*)
10543     shlibpath_overrides_runpath=yes
10544     ;;
10545   freebsd3.[01]* | freebsdelf3.[01]*)
10546     shlibpath_overrides_runpath=yes
10547     hardcode_into_libs=yes
10548     ;;
10549   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10550   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10551     shlibpath_overrides_runpath=no
10552     hardcode_into_libs=yes
10553     ;;
10554   *) # from 4.6 on, and DragonFly
10555     shlibpath_overrides_runpath=yes
10556     hardcode_into_libs=yes
10557     ;;
10558   esac
10559   ;;
10560
10561 gnu*)
10562   version_type=linux
10563   need_lib_prefix=no
10564   need_version=no
10565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10566   soname_spec='${libname}${release}${shared_ext}$major'
10567   shlibpath_var=LD_LIBRARY_PATH
10568   hardcode_into_libs=yes
10569   ;;
10570
10571 haiku*)
10572   version_type=linux
10573   need_lib_prefix=no
10574   need_version=no
10575   dynamic_linker="$host_os runtime_loader"
10576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10577   soname_spec='${libname}${release}${shared_ext}$major'
10578   shlibpath_var=LIBRARY_PATH
10579   shlibpath_overrides_runpath=yes
10580   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10581   hardcode_into_libs=yes
10582   ;;
10583
10584 hpux9* | hpux10* | hpux11*)
10585   # Give a soname corresponding to the major version so that dld.sl refuses to
10586   # link against other versions.
10587   version_type=sunos
10588   need_lib_prefix=no
10589   need_version=no
10590   case $host_cpu in
10591   ia64*)
10592     shrext_cmds='.so'
10593     hardcode_into_libs=yes
10594     dynamic_linker="$host_os dld.so"
10595     shlibpath_var=LD_LIBRARY_PATH
10596     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598     soname_spec='${libname}${release}${shared_ext}$major'
10599     if test "X$HPUX_IA64_MODE" = X32; then
10600       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10601     else
10602       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10603     fi
10604     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10605     ;;
10606   hppa*64*)
10607     shrext_cmds='.sl'
10608     hardcode_into_libs=yes
10609     dynamic_linker="$host_os dld.sl"
10610     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613     soname_spec='${libname}${release}${shared_ext}$major'
10614     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10616     ;;
10617   *)
10618     shrext_cmds='.sl'
10619     dynamic_linker="$host_os dld.sl"
10620     shlibpath_var=SHLIB_PATH
10621     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623     soname_spec='${libname}${release}${shared_ext}$major'
10624     ;;
10625   esac
10626   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10627   postinstall_cmds='chmod 555 $lib'
10628   # or fails outright, so override atomically:
10629   install_override_mode=555
10630   ;;
10631
10632 interix[3-9]*)
10633   version_type=linux
10634   need_lib_prefix=no
10635   need_version=no
10636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10637   soname_spec='${libname}${release}${shared_ext}$major'
10638   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10639   shlibpath_var=LD_LIBRARY_PATH
10640   shlibpath_overrides_runpath=no
10641   hardcode_into_libs=yes
10642   ;;
10643
10644 irix5* | irix6* | nonstopux*)
10645   case $host_os in
10646     nonstopux*) version_type=nonstopux ;;
10647     *)
10648         if test "$lt_cv_prog_gnu_ld" = yes; then
10649                 version_type=linux
10650         else
10651                 version_type=irix
10652         fi ;;
10653   esac
10654   need_lib_prefix=no
10655   need_version=no
10656   soname_spec='${libname}${release}${shared_ext}$major'
10657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10658   case $host_os in
10659   irix5* | nonstopux*)
10660     libsuff= shlibsuff=
10661     ;;
10662   *)
10663     case $LD in # libtool.m4 will add one of these switches to LD
10664     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10665       libsuff= shlibsuff= libmagic=32-bit;;
10666     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10667       libsuff=32 shlibsuff=N32 libmagic=N32;;
10668     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10669       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10670     *) libsuff= shlibsuff= libmagic=never-match;;
10671     esac
10672     ;;
10673   esac
10674   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10675   shlibpath_overrides_runpath=no
10676   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10677   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10678   hardcode_into_libs=yes
10679   ;;
10680
10681 # No shared lib support for Linux oldld, aout, or coff.
10682 linux*oldld* | linux*aout* | linux*coff*)
10683   dynamic_linker=no
10684   ;;
10685
10686 # This must be Linux ELF.
10687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10688   version_type=linux
10689   need_lib_prefix=no
10690   need_version=no
10691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692   soname_spec='${libname}${release}${shared_ext}$major'
10693   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10694   shlibpath_var=LD_LIBRARY_PATH
10695   shlibpath_overrides_runpath=no
10696
10697   # Some binutils ld are patched to set DT_RUNPATH
10698   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701   lt_cv_shlibpath_overrides_runpath=no
10702     save_LDFLAGS=$LDFLAGS
10703     save_libdir=$libdir
10704     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10705          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h.  */
10708
10709 int
10710 main ()
10711 {
10712
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10719   lt_cv_shlibpath_overrides_runpath=yes
10720 fi
10721 fi
10722 rm -f core conftest.err conftest.$ac_objext \
10723     conftest$ac_exeext conftest.$ac_ext
10724     LDFLAGS=$save_LDFLAGS
10725     libdir=$save_libdir
10726
10727 fi
10728
10729   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10730
10731   # This implies no fast_install, which is unacceptable.
10732   # Some rework will be needed to allow for fast_install
10733   # before this can be enabled.
10734   hardcode_into_libs=yes
10735
10736   # Append ld.so.conf contents to the search path
10737   if test -f /etc/ld.so.conf; then
10738     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' ' '`
10739     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10740   fi
10741
10742   # We used to test for /lib/ld.so.1 and disable shared libraries on
10743   # powerpc, because MkLinux only supported shared libraries with the
10744   # GNU dynamic linker.  Since this was broken with cross compilers,
10745   # most powerpc-linux boxes support dynamic linking these days and
10746   # people can always --disable-shared, the test was removed, and we
10747   # assume the GNU/Linux dynamic linker is in use.
10748   dynamic_linker='GNU/Linux ld.so'
10749   ;;
10750
10751 netbsd*)
10752   version_type=sunos
10753   need_lib_prefix=no
10754   need_version=no
10755   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10757     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10758     dynamic_linker='NetBSD (a.out) ld.so'
10759   else
10760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10761     soname_spec='${libname}${release}${shared_ext}$major'
10762     dynamic_linker='NetBSD ld.elf_so'
10763   fi
10764   shlibpath_var=LD_LIBRARY_PATH
10765   shlibpath_overrides_runpath=yes
10766   hardcode_into_libs=yes
10767   ;;
10768
10769 newsos6)
10770   version_type=linux
10771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=yes
10774   ;;
10775
10776 *nto* | *qnx*)
10777   version_type=qnx
10778   need_lib_prefix=no
10779   need_version=no
10780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781   soname_spec='${libname}${release}${shared_ext}$major'
10782   shlibpath_var=LD_LIBRARY_PATH
10783   shlibpath_overrides_runpath=no
10784   hardcode_into_libs=yes
10785   dynamic_linker='ldqnx.so'
10786   ;;
10787
10788 openbsd*)
10789   version_type=sunos
10790   sys_lib_dlsearch_path_spec="/usr/lib"
10791   need_lib_prefix=no
10792   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10793   case $host_os in
10794     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10795     *)                          need_version=no  ;;
10796   esac
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10801     case $host_os in
10802       openbsd2.[89] | openbsd2.[89].*)
10803         shlibpath_overrides_runpath=no
10804         ;;
10805       *)
10806         shlibpath_overrides_runpath=yes
10807         ;;
10808       esac
10809   else
10810     shlibpath_overrides_runpath=yes
10811   fi
10812   ;;
10813
10814 os2*)
10815   libname_spec='$name'
10816   shrext_cmds=".dll"
10817   need_lib_prefix=no
10818   library_names_spec='$libname${shared_ext} $libname.a'
10819   dynamic_linker='OS/2 ld.exe'
10820   shlibpath_var=LIBPATH
10821   ;;
10822
10823 osf3* | osf4* | osf5*)
10824   version_type=osf
10825   need_lib_prefix=no
10826   need_version=no
10827   soname_spec='${libname}${release}${shared_ext}$major'
10828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829   shlibpath_var=LD_LIBRARY_PATH
10830   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10831   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10832   ;;
10833
10834 rdos*)
10835   dynamic_linker=no
10836   ;;
10837
10838 solaris*)
10839   version_type=linux
10840   need_lib_prefix=no
10841   need_version=no
10842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843   soname_spec='${libname}${release}${shared_ext}$major'
10844   shlibpath_var=LD_LIBRARY_PATH
10845   shlibpath_overrides_runpath=yes
10846   hardcode_into_libs=yes
10847   # ldd complains unless libraries are executable
10848   postinstall_cmds='chmod +x $lib'
10849   ;;
10850
10851 sunos4*)
10852   version_type=sunos
10853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10854   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10855   shlibpath_var=LD_LIBRARY_PATH
10856   shlibpath_overrides_runpath=yes
10857   if test "$with_gnu_ld" = yes; then
10858     need_lib_prefix=no
10859   fi
10860   need_version=yes
10861   ;;
10862
10863 sysv4 | sysv4.3*)
10864   version_type=linux
10865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866   soname_spec='${libname}${release}${shared_ext}$major'
10867   shlibpath_var=LD_LIBRARY_PATH
10868   case $host_vendor in
10869     sni)
10870       shlibpath_overrides_runpath=no
10871       need_lib_prefix=no
10872       runpath_var=LD_RUN_PATH
10873       ;;
10874     siemens)
10875       need_lib_prefix=no
10876       ;;
10877     motorola)
10878       need_lib_prefix=no
10879       need_version=no
10880       shlibpath_overrides_runpath=no
10881       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10882       ;;
10883   esac
10884   ;;
10885
10886 sysv4*MP*)
10887   if test -d /usr/nec ;then
10888     version_type=linux
10889     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10890     soname_spec='$libname${shared_ext}.$major'
10891     shlibpath_var=LD_LIBRARY_PATH
10892   fi
10893   ;;
10894
10895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10896   version_type=freebsd-elf
10897   need_lib_prefix=no
10898   need_version=no
10899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10900   soname_spec='${libname}${release}${shared_ext}$major'
10901   shlibpath_var=LD_LIBRARY_PATH
10902   shlibpath_overrides_runpath=yes
10903   hardcode_into_libs=yes
10904   if test "$with_gnu_ld" = yes; then
10905     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10906   else
10907     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10908     case $host_os in
10909       sco3.2v5*)
10910         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10911         ;;
10912     esac
10913   fi
10914   sys_lib_dlsearch_path_spec='/usr/lib'
10915   ;;
10916
10917 tpf*)
10918   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10919   version_type=linux
10920   need_lib_prefix=no
10921   need_version=no
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923   shlibpath_var=LD_LIBRARY_PATH
10924   shlibpath_overrides_runpath=no
10925   hardcode_into_libs=yes
10926   ;;
10927
10928 uts4*)
10929   version_type=linux
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931   soname_spec='${libname}${release}${shared_ext}$major'
10932   shlibpath_var=LD_LIBRARY_PATH
10933   ;;
10934
10935 *)
10936   dynamic_linker=no
10937   ;;
10938 esac
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10940 $as_echo "$dynamic_linker" >&6; }
10941 test "$dynamic_linker" = no && can_build_shared=no
10942
10943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10944 if test "$GCC" = yes; then
10945   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10946 fi
10947
10948 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10949   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10950 fi
10951 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10952   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10953 fi
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11047 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11048 hardcode_action=
11049 if test -n "$hardcode_libdir_flag_spec" ||
11050    test -n "$runpath_var" ||
11051    test "X$hardcode_automatic" = "Xyes" ; then
11052
11053   # We can hardcode non-existent directories.
11054   if test "$hardcode_direct" != no &&
11055      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11056      # have to relink, otherwise we might link with an installed library
11057      # when we should be linking with a yet-to-be-installed one
11058      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11059      test "$hardcode_minus_L" != no; then
11060     # Linking always hardcodes the temporary library directory.
11061     hardcode_action=relink
11062   else
11063     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11064     hardcode_action=immediate
11065   fi
11066 else
11067   # We cannot hardcode anything, or else we can only hardcode existing
11068   # directories.
11069   hardcode_action=unsupported
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11072 $as_echo "$hardcode_action" >&6; }
11073
11074 if test "$hardcode_action" = relink ||
11075    test "$inherit_rpath" = yes; then
11076   # Fast installation is not supported
11077   enable_fast_install=no
11078 elif test "$shlibpath_overrides_runpath" = yes ||
11079      test "$enable_shared" = no; then
11080   # Fast installation is not necessary
11081   enable_fast_install=needless
11082 fi
11083
11084
11085
11086
11087
11088
11089   if test "x$enable_dlopen" != xyes; then
11090   enable_dlopen=unknown
11091   enable_dlopen_self=unknown
11092   enable_dlopen_self_static=unknown
11093 else
11094   lt_cv_dlopen=no
11095   lt_cv_dlopen_libs=
11096
11097   case $host_os in
11098   beos*)
11099     lt_cv_dlopen="load_add_on"
11100     lt_cv_dlopen_libs=
11101     lt_cv_dlopen_self=yes
11102     ;;
11103
11104   mingw* | pw32* | cegcc*)
11105     lt_cv_dlopen="LoadLibrary"
11106     lt_cv_dlopen_libs=
11107     ;;
11108
11109   cygwin*)
11110     lt_cv_dlopen="dlopen"
11111     lt_cv_dlopen_libs=
11112     ;;
11113
11114   darwin*)
11115   # if libdl is installed we need to link against it
11116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11118 if ${ac_cv_lib_dl_dlopen+:} false; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-ldl  $LIBS"
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h.  */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127    Use char because int might match the return type of a GCC
11128    builtin and then its argument prototype would still apply.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char dlopen ();
11133 int
11134 main ()
11135 {
11136 return dlopen ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142   ac_cv_lib_dl_dlopen=yes
11143 else
11144   ac_cv_lib_dl_dlopen=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147     conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11151 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11152 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11154 else
11155
11156     lt_cv_dlopen="dyld"
11157     lt_cv_dlopen_libs=
11158     lt_cv_dlopen_self=yes
11159
11160 fi
11161
11162     ;;
11163
11164   *)
11165     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11166 if test "x$ac_cv_func_shl_load" = xyes; then :
11167   lt_cv_dlopen="shl_load"
11168 else
11169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11170 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11171 if ${ac_cv_lib_dld_shl_load+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174   ac_check_lib_save_LIBS=$LIBS
11175 LIBS="-ldld  $LIBS"
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h.  */
11178
11179 /* Override any GCC internal prototype to avoid an error.
11180    Use char because int might match the return type of a GCC
11181    builtin and then its argument prototype would still apply.  */
11182 #ifdef __cplusplus
11183 extern "C"
11184 #endif
11185 char shl_load ();
11186 int
11187 main ()
11188 {
11189 return shl_load ();
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 if ac_fn_c_try_link "$LINENO"; then :
11195   ac_cv_lib_dld_shl_load=yes
11196 else
11197   ac_cv_lib_dld_shl_load=no
11198 fi
11199 rm -f core conftest.err conftest.$ac_objext \
11200     conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11202 fi
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11204 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11205 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11206   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11207 else
11208   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11209 if test "x$ac_cv_func_dlopen" = xyes; then :
11210   lt_cv_dlopen="dlopen"
11211 else
11212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11213 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11214 if ${ac_cv_lib_dl_dlopen+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   ac_check_lib_save_LIBS=$LIBS
11218 LIBS="-ldl  $LIBS"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h.  */
11221
11222 /* Override any GCC internal prototype to avoid an error.
11223    Use char because int might match the return type of a GCC
11224    builtin and then its argument prototype would still apply.  */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 char dlopen ();
11229 int
11230 main ()
11231 {
11232 return dlopen ();
11233   ;
11234   return 0;
11235 }
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"; then :
11238   ac_cv_lib_dl_dlopen=yes
11239 else
11240   ac_cv_lib_dl_dlopen=no
11241 fi
11242 rm -f core conftest.err conftest.$ac_objext \
11243     conftest$ac_exeext conftest.$ac_ext
11244 LIBS=$ac_check_lib_save_LIBS
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11247 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11248 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11249   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11250 else
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11252 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11253 if ${ac_cv_lib_svld_dlopen+:} false; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   ac_check_lib_save_LIBS=$LIBS
11257 LIBS="-lsvld  $LIBS"
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h.  */
11260
11261 /* Override any GCC internal prototype to avoid an error.
11262    Use char because int might match the return type of a GCC
11263    builtin and then its argument prototype would still apply.  */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 char dlopen ();
11268 int
11269 main ()
11270 {
11271 return dlopen ();
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 if ac_fn_c_try_link "$LINENO"; then :
11277   ac_cv_lib_svld_dlopen=yes
11278 else
11279   ac_cv_lib_svld_dlopen=no
11280 fi
11281 rm -f core conftest.err conftest.$ac_objext \
11282     conftest$ac_exeext conftest.$ac_ext
11283 LIBS=$ac_check_lib_save_LIBS
11284 fi
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11286 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11287 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11288   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11291 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11292 if ${ac_cv_lib_dld_dld_link+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   ac_check_lib_save_LIBS=$LIBS
11296 LIBS="-ldld  $LIBS"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11299
11300 /* Override any GCC internal prototype to avoid an error.
11301    Use char because int might match the return type of a GCC
11302    builtin and then its argument prototype would still apply.  */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 char dld_link ();
11307 int
11308 main ()
11309 {
11310 return dld_link ();
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_link "$LINENO"; then :
11316   ac_cv_lib_dld_dld_link=yes
11317 else
11318   ac_cv_lib_dld_dld_link=no
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext \
11321     conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11325 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11326 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11327   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11328 fi
11329
11330
11331 fi
11332
11333
11334 fi
11335
11336
11337 fi
11338
11339
11340 fi
11341
11342
11343 fi
11344
11345     ;;
11346   esac
11347
11348   if test "x$lt_cv_dlopen" != xno; then
11349     enable_dlopen=yes
11350   else
11351     enable_dlopen=no
11352   fi
11353
11354   case $lt_cv_dlopen in
11355   dlopen)
11356     save_CPPFLAGS="$CPPFLAGS"
11357     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11358
11359     save_LDFLAGS="$LDFLAGS"
11360     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11361
11362     save_LIBS="$LIBS"
11363     LIBS="$lt_cv_dlopen_libs $LIBS"
11364
11365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11366 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11367 if ${lt_cv_dlopen_self+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370           if test "$cross_compiling" = yes; then :
11371   lt_cv_dlopen_self=cross
11372 else
11373   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11374   lt_status=$lt_dlunknown
11375   cat > conftest.$ac_ext <<_LT_EOF
11376 #line $LINENO "configure"
11377 #include "confdefs.h"
11378
11379 #if HAVE_DLFCN_H
11380 #include <dlfcn.h>
11381 #endif
11382
11383 #include <stdio.h>
11384
11385 #ifdef RTLD_GLOBAL
11386 #  define LT_DLGLOBAL           RTLD_GLOBAL
11387 #else
11388 #  ifdef DL_GLOBAL
11389 #    define LT_DLGLOBAL         DL_GLOBAL
11390 #  else
11391 #    define LT_DLGLOBAL         0
11392 #  endif
11393 #endif
11394
11395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11396    find out it does not work in some platform. */
11397 #ifndef LT_DLLAZY_OR_NOW
11398 #  ifdef RTLD_LAZY
11399 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11400 #  else
11401 #    ifdef DL_LAZY
11402 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11403 #    else
11404 #      ifdef RTLD_NOW
11405 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11406 #      else
11407 #        ifdef DL_NOW
11408 #          define LT_DLLAZY_OR_NOW      DL_NOW
11409 #        else
11410 #          define LT_DLLAZY_OR_NOW      0
11411 #        endif
11412 #      endif
11413 #    endif
11414 #  endif
11415 #endif
11416
11417 /* When -fvisbility=hidden is used, assume the code has been annotated
11418    correspondingly for the symbols needed.  */
11419 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11420 int fnord () __attribute__((visibility("default")));
11421 #endif
11422
11423 int fnord () { return 42; }
11424 int main ()
11425 {
11426   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11427   int status = $lt_dlunknown;
11428
11429   if (self)
11430     {
11431       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11432       else
11433         {
11434           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11435           else puts (dlerror ());
11436         }
11437       /* dlclose (self); */
11438     }
11439   else
11440     puts (dlerror ());
11441
11442   return status;
11443 }
11444 _LT_EOF
11445   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11446   (eval $ac_link) 2>&5
11447   ac_status=$?
11448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11449   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11450     (./conftest; exit; ) >&5 2>/dev/null
11451     lt_status=$?
11452     case x$lt_status in
11453       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11454       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11455       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11456     esac
11457   else :
11458     # compilation failed
11459     lt_cv_dlopen_self=no
11460   fi
11461 fi
11462 rm -fr conftest*
11463
11464
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11467 $as_echo "$lt_cv_dlopen_self" >&6; }
11468
11469     if test "x$lt_cv_dlopen_self" = xyes; then
11470       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11471       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11472 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11473 if ${lt_cv_dlopen_self_static+:} false; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476           if test "$cross_compiling" = yes; then :
11477   lt_cv_dlopen_self_static=cross
11478 else
11479   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11480   lt_status=$lt_dlunknown
11481   cat > conftest.$ac_ext <<_LT_EOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11484
11485 #if HAVE_DLFCN_H
11486 #include <dlfcn.h>
11487 #endif
11488
11489 #include <stdio.h>
11490
11491 #ifdef RTLD_GLOBAL
11492 #  define LT_DLGLOBAL           RTLD_GLOBAL
11493 #else
11494 #  ifdef DL_GLOBAL
11495 #    define LT_DLGLOBAL         DL_GLOBAL
11496 #  else
11497 #    define LT_DLGLOBAL         0
11498 #  endif
11499 #endif
11500
11501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11502    find out it does not work in some platform. */
11503 #ifndef LT_DLLAZY_OR_NOW
11504 #  ifdef RTLD_LAZY
11505 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11506 #  else
11507 #    ifdef DL_LAZY
11508 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11509 #    else
11510 #      ifdef RTLD_NOW
11511 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11512 #      else
11513 #        ifdef DL_NOW
11514 #          define LT_DLLAZY_OR_NOW      DL_NOW
11515 #        else
11516 #          define LT_DLLAZY_OR_NOW      0
11517 #        endif
11518 #      endif
11519 #    endif
11520 #  endif
11521 #endif
11522
11523 /* When -fvisbility=hidden is used, assume the code has been annotated
11524    correspondingly for the symbols needed.  */
11525 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11526 int fnord () __attribute__((visibility("default")));
11527 #endif
11528
11529 int fnord () { return 42; }
11530 int main ()
11531 {
11532   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11533   int status = $lt_dlunknown;
11534
11535   if (self)
11536     {
11537       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11538       else
11539         {
11540           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11541           else puts (dlerror ());
11542         }
11543       /* dlclose (self); */
11544     }
11545   else
11546     puts (dlerror ());
11547
11548   return status;
11549 }
11550 _LT_EOF
11551   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11552   (eval $ac_link) 2>&5
11553   ac_status=$?
11554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11555   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11556     (./conftest; exit; ) >&5 2>/dev/null
11557     lt_status=$?
11558     case x$lt_status in
11559       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11560       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11561       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11562     esac
11563   else :
11564     # compilation failed
11565     lt_cv_dlopen_self_static=no
11566   fi
11567 fi
11568 rm -fr conftest*
11569
11570
11571 fi
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11573 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11574     fi
11575
11576     CPPFLAGS="$save_CPPFLAGS"
11577     LDFLAGS="$save_LDFLAGS"
11578     LIBS="$save_LIBS"
11579     ;;
11580   esac
11581
11582   case $lt_cv_dlopen_self in
11583   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11584   *) enable_dlopen_self=unknown ;;
11585   esac
11586
11587   case $lt_cv_dlopen_self_static in
11588   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11589   *) enable_dlopen_self_static=unknown ;;
11590   esac
11591 fi
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609 striplib=
11610 old_striplib=
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11612 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11614   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11615   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 $as_echo "yes" >&6; }
11618 else
11619 # FIXME - insert some real tests, host_os isn't really good enough
11620   case $host_os in
11621   darwin*)
11622     if test -n "$STRIP" ; then
11623       striplib="$STRIP -x"
11624       old_striplib="$STRIP -S"
11625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11627     else
11628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630     fi
11631     ;;
11632   *)
11633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635     ;;
11636   esac
11637 fi
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650   # Report which library types will actually be built
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11652 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11654 $as_echo "$can_build_shared" >&6; }
11655
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11657 $as_echo_n "checking whether to build shared libraries... " >&6; }
11658   test "$can_build_shared" = "no" && enable_shared=no
11659
11660   # On AIX, shared libraries and static libraries use the same namespace, and
11661   # are all built from PIC.
11662   case $host_os in
11663   aix3*)
11664     test "$enable_shared" = yes && enable_static=no
11665     if test -n "$RANLIB"; then
11666       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11667       postinstall_cmds='$RANLIB $lib'
11668     fi
11669     ;;
11670
11671   aix[4-9]*)
11672     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11673       test "$enable_shared" = yes && enable_static=no
11674     fi
11675     ;;
11676   esac
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11678 $as_echo "$enable_shared" >&6; }
11679
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11681 $as_echo_n "checking whether to build static libraries... " >&6; }
11682   # Make sure either enable_shared or enable_static is yes.
11683   test "$enable_shared" = yes || enable_static=yes
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11685 $as_echo "$enable_static" >&6; }
11686
11687
11688
11689
11690 fi
11691 ac_ext=c
11692 ac_cpp='$CPP $CPPFLAGS'
11693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11696
11697 CC="$lt_save_CC"
11698
11699       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11700     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11701     (test "X$CXX" != "Xg++"))) ; then
11702   ac_ext=cpp
11703 ac_cpp='$CXXCPP $CPPFLAGS'
11704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11708 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11709 if test -z "$CXXCPP"; then
11710   if ${ac_cv_prog_CXXCPP+:} false; then :
11711   $as_echo_n "(cached) " >&6
11712 else
11713       # Double quotes because CXXCPP needs to be expanded
11714     for CXXCPP in "$CXX -E" "/lib/cpp"
11715     do
11716       ac_preproc_ok=false
11717 for ac_cxx_preproc_warn_flag in '' yes
11718 do
11719   # Use a header file that comes with gcc, so configuring glibc
11720   # with a fresh cross-compiler works.
11721   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722   # <limits.h> exists even on freestanding compilers.
11723   # On the NeXT, cc -E runs the code through the compiler's parser,
11724   # not just through cpp. "Syntax error" is here to catch this case.
11725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h.  */
11727 #ifdef __STDC__
11728 # include <limits.h>
11729 #else
11730 # include <assert.h>
11731 #endif
11732                      Syntax error
11733 _ACEOF
11734 if ac_fn_cxx_try_cpp "$LINENO"; then :
11735
11736 else
11737   # Broken: fails on valid input.
11738 continue
11739 fi
11740 rm -f conftest.err conftest.i conftest.$ac_ext
11741
11742   # OK, works on sane cases.  Now check whether nonexistent headers
11743   # can be detected and how.
11744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h.  */
11746 #include <ac_nonexistent.h>
11747 _ACEOF
11748 if ac_fn_cxx_try_cpp "$LINENO"; then :
11749   # Broken: success on invalid input.
11750 continue
11751 else
11752   # Passes both tests.
11753 ac_preproc_ok=:
11754 break
11755 fi
11756 rm -f conftest.err conftest.i conftest.$ac_ext
11757
11758 done
11759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11760 rm -f conftest.i conftest.err conftest.$ac_ext
11761 if $ac_preproc_ok; then :
11762   break
11763 fi
11764
11765     done
11766     ac_cv_prog_CXXCPP=$CXXCPP
11767
11768 fi
11769   CXXCPP=$ac_cv_prog_CXXCPP
11770 else
11771   ac_cv_prog_CXXCPP=$CXXCPP
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11774 $as_echo "$CXXCPP" >&6; }
11775 ac_preproc_ok=false
11776 for ac_cxx_preproc_warn_flag in '' yes
11777 do
11778   # Use a header file that comes with gcc, so configuring glibc
11779   # with a fresh cross-compiler works.
11780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11781   # <limits.h> exists even on freestanding compilers.
11782   # On the NeXT, cc -E runs the code through the compiler's parser,
11783   # not just through cpp. "Syntax error" is here to catch this case.
11784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h.  */
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11791                      Syntax error
11792 _ACEOF
11793 if ac_fn_cxx_try_cpp "$LINENO"; then :
11794
11795 else
11796   # Broken: fails on valid input.
11797 continue
11798 fi
11799 rm -f conftest.err conftest.i conftest.$ac_ext
11800
11801   # OK, works on sane cases.  Now check whether nonexistent headers
11802   # can be detected and how.
11803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h.  */
11805 #include <ac_nonexistent.h>
11806 _ACEOF
11807 if ac_fn_cxx_try_cpp "$LINENO"; then :
11808   # Broken: success on invalid input.
11809 continue
11810 else
11811   # Passes both tests.
11812 ac_preproc_ok=:
11813 break
11814 fi
11815 rm -f conftest.err conftest.i conftest.$ac_ext
11816
11817 done
11818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11819 rm -f conftest.i conftest.err conftest.$ac_ext
11820 if $ac_preproc_ok; then :
11821
11822 else
11823   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11825 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11826 See \`config.log' for more details" "$LINENO" 5; }
11827 fi
11828
11829 ac_ext=c
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834
11835 else
11836   _lt_caught_CXX_error=yes
11837 fi
11838
11839 ac_ext=cpp
11840 ac_cpp='$CXXCPP $CPPFLAGS'
11841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11844
11845 archive_cmds_need_lc_CXX=no
11846 allow_undefined_flag_CXX=
11847 always_export_symbols_CXX=no
11848 archive_expsym_cmds_CXX=
11849 compiler_needs_object_CXX=no
11850 export_dynamic_flag_spec_CXX=
11851 hardcode_direct_CXX=no
11852 hardcode_direct_absolute_CXX=no
11853 hardcode_libdir_flag_spec_CXX=
11854 hardcode_libdir_flag_spec_ld_CXX=
11855 hardcode_libdir_separator_CXX=
11856 hardcode_minus_L_CXX=no
11857 hardcode_shlibpath_var_CXX=unsupported
11858 hardcode_automatic_CXX=no
11859 inherit_rpath_CXX=no
11860 module_cmds_CXX=
11861 module_expsym_cmds_CXX=
11862 link_all_deplibs_CXX=unknown
11863 old_archive_cmds_CXX=$old_archive_cmds
11864 reload_flag_CXX=$reload_flag
11865 reload_cmds_CXX=$reload_cmds
11866 no_undefined_flag_CXX=
11867 whole_archive_flag_spec_CXX=
11868 enable_shared_with_static_runtimes_CXX=no
11869
11870 # Source file extension for C++ test sources.
11871 ac_ext=cpp
11872
11873 # Object file extension for compiled C++ test sources.
11874 objext=o
11875 objext_CXX=$objext
11876
11877 # No sense in running all these tests if we already determined that
11878 # the CXX compiler isn't working.  Some variables (like enable_shared)
11879 # are currently assumed to apply to all compilers on this platform,
11880 # and will be corrupted by setting them based on a non-working compiler.
11881 if test "$_lt_caught_CXX_error" != yes; then
11882   # Code to be used in simple compile tests
11883   lt_simple_compile_test_code="int some_variable = 0;"
11884
11885   # Code to be used in simple link tests
11886   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11887
11888   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11889
11890
11891
11892
11893
11894
11895 # If no C compiler was specified, use CC.
11896 LTCC=${LTCC-"$CC"}
11897
11898 # If no C compiler flags were specified, use CFLAGS.
11899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11900
11901 # Allow CC to be a program name with arguments.
11902 compiler=$CC
11903
11904
11905   # save warnings/boilerplate of simple test code
11906   ac_outfile=conftest.$ac_objext
11907 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11909 _lt_compiler_boilerplate=`cat conftest.err`
11910 $RM conftest*
11911
11912   ac_outfile=conftest.$ac_objext
11913 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11915 _lt_linker_boilerplate=`cat conftest.err`
11916 $RM -r conftest*
11917
11918
11919   # Allow CC to be a program name with arguments.
11920   lt_save_CC=$CC
11921   lt_save_CFLAGS=$CFLAGS
11922   lt_save_LD=$LD
11923   lt_save_GCC=$GCC
11924   GCC=$GXX
11925   lt_save_with_gnu_ld=$with_gnu_ld
11926   lt_save_path_LD=$lt_cv_path_LD
11927   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11928     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11929   else
11930     $as_unset lt_cv_prog_gnu_ld
11931   fi
11932   if test -n "${lt_cv_path_LDCXX+set}"; then
11933     lt_cv_path_LD=$lt_cv_path_LDCXX
11934   else
11935     $as_unset lt_cv_path_LD
11936   fi
11937   test -z "${LDCXX+set}" || LD=$LDCXX
11938   CC=${CXX-"c++"}
11939   CFLAGS=$CXXFLAGS
11940   compiler=$CC
11941   compiler_CXX=$CC
11942   for cc_temp in $compiler""; do
11943   case $cc_temp in
11944     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11945     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11946     \-*) ;;
11947     *) break;;
11948   esac
11949 done
11950 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11951
11952
11953   if test -n "$compiler"; then
11954     # We don't want -fno-exception when compiling C++ code, so set the
11955     # no_builtin_flag separately
11956     if test "$GXX" = yes; then
11957       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11958     else
11959       lt_prog_compiler_no_builtin_flag_CXX=
11960     fi
11961
11962     if test "$GXX" = yes; then
11963       # Set up default GNU C++ configuration
11964
11965
11966
11967 # Check whether --with-gnu-ld was given.
11968 if test "${with_gnu_ld+set}" = set; then :
11969   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11970 else
11971   with_gnu_ld=no
11972 fi
11973
11974 ac_prog=ld
11975 if test "$GCC" = yes; then
11976   # Check if gcc -print-prog-name=ld gives a path.
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11978 $as_echo_n "checking for ld used by $CC... " >&6; }
11979   case $host in
11980   *-*-mingw*)
11981     # gcc leaves a trailing carriage return which upsets mingw
11982     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11983   *)
11984     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11985   esac
11986   case $ac_prog in
11987     # Accept absolute paths.
11988     [\\/]* | ?:[\\/]*)
11989       re_direlt='/[^/][^/]*/\.\./'
11990       # Canonicalize the pathname of ld
11991       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11992       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11993         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11994       done
11995       test -z "$LD" && LD="$ac_prog"
11996       ;;
11997   "")
11998     # If it fails, then pretend we aren't using GCC.
11999     ac_prog=ld
12000     ;;
12001   *)
12002     # If it is relative, then search for the first ld in PATH.
12003     with_gnu_ld=unknown
12004     ;;
12005   esac
12006 elif test "$with_gnu_ld" = yes; then
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12008 $as_echo_n "checking for GNU ld... " >&6; }
12009 else
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12011 $as_echo_n "checking for non-GNU ld... " >&6; }
12012 fi
12013 if ${lt_cv_path_LD+:} false; then :
12014   $as_echo_n "(cached) " >&6
12015 else
12016   if test -z "$LD"; then
12017   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12018   for ac_dir in $PATH; do
12019     IFS="$lt_save_ifs"
12020     test -z "$ac_dir" && ac_dir=.
12021     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12022       lt_cv_path_LD="$ac_dir/$ac_prog"
12023       # Check to see if the program is GNU ld.  I'd rather use --version,
12024       # but apparently some variants of GNU ld only accept -v.
12025       # Break only if it was the GNU/non-GNU ld that we prefer.
12026       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12027       *GNU* | *'with BFD'*)
12028         test "$with_gnu_ld" != no && break
12029         ;;
12030       *)
12031         test "$with_gnu_ld" != yes && break
12032         ;;
12033       esac
12034     fi
12035   done
12036   IFS="$lt_save_ifs"
12037 else
12038   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12039 fi
12040 fi
12041
12042 LD="$lt_cv_path_LD"
12043 if test -n "$LD"; then
12044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12045 $as_echo "$LD" >&6; }
12046 else
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12049 fi
12050 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12052 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12053 if ${lt_cv_prog_gnu_ld+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12057 case `$LD -v 2>&1 </dev/null` in
12058 *GNU* | *'with BFD'*)
12059   lt_cv_prog_gnu_ld=yes
12060   ;;
12061 *)
12062   lt_cv_prog_gnu_ld=no
12063   ;;
12064 esac
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12067 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12068 with_gnu_ld=$lt_cv_prog_gnu_ld
12069
12070
12071
12072
12073
12074
12075
12076       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12077       # archiving commands below assume that GNU ld is being used.
12078       if test "$with_gnu_ld" = yes; then
12079         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080         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'
12081
12082         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12084
12085         # If archive_cmds runs LD, not CC, wlarc should be empty
12086         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12087         #     investigate it a little bit more. (MM)
12088         wlarc='${wl}'
12089
12090         # ancient GNU ld didn't support --whole-archive et. al.
12091         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12092           $GREP 'no-whole-archive' > /dev/null; then
12093           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12094         else
12095           whole_archive_flag_spec_CXX=
12096         fi
12097       else
12098         with_gnu_ld=no
12099         wlarc=
12100
12101         # A generic and very simple default shared library creation
12102         # command for GNU C++ for the case where it uses the native
12103         # linker, instead of GNU ld.  If possible, this setting should
12104         # overridden to take advantage of the native linker features on
12105         # the platform it is being used on.
12106         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107       fi
12108
12109       # Commands to make compiler produce verbose output that lists
12110       # what "hidden" libraries, object files and flags are used when
12111       # linking a shared library.
12112       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12113
12114     else
12115       GXX=no
12116       with_gnu_ld=no
12117       wlarc=
12118     fi
12119
12120     # PORTME: fill in a description of your system's C++ link characteristics
12121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12123     ld_shlibs_CXX=yes
12124     case $host_os in
12125       aix3*)
12126         # FIXME: insert proper C++ library support
12127         ld_shlibs_CXX=no
12128         ;;
12129       aix[4-9]*)
12130         if test "$host_cpu" = ia64; then
12131           # On IA64, the linker does run time linking by default, so we don't
12132           # have to do anything special.
12133           aix_use_runtimelinking=no
12134           exp_sym_flag='-Bexport'
12135           no_entry_flag=""
12136         else
12137           aix_use_runtimelinking=no
12138
12139           # Test if we are trying to use run time linking or normal
12140           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12141           # need to do runtime linking.
12142           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12143             for ld_flag in $LDFLAGS; do
12144               case $ld_flag in
12145               *-brtl*)
12146                 aix_use_runtimelinking=yes
12147                 break
12148                 ;;
12149               esac
12150             done
12151             ;;
12152           esac
12153
12154           exp_sym_flag='-bexport'
12155           no_entry_flag='-bnoentry'
12156         fi
12157
12158         # When large executables or shared objects are built, AIX ld can
12159         # have problems creating the table of contents.  If linking a library
12160         # or program results in "error TOC overflow" add -mminimal-toc to
12161         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12162         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12163
12164         archive_cmds_CXX=''
12165         hardcode_direct_CXX=yes
12166         hardcode_direct_absolute_CXX=yes
12167         hardcode_libdir_separator_CXX=':'
12168         link_all_deplibs_CXX=yes
12169         file_list_spec_CXX='${wl}-f,'
12170
12171         if test "$GXX" = yes; then
12172           case $host_os in aix4.[012]|aix4.[012].*)
12173           # We only want to do this on AIX 4.2 and lower, the check
12174           # below for broken collect2 doesn't work under 4.3+
12175           collect2name=`${CC} -print-prog-name=collect2`
12176           if test -f "$collect2name" &&
12177              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12178           then
12179             # We have reworked collect2
12180             :
12181           else
12182             # We have old collect2
12183             hardcode_direct_CXX=unsupported
12184             # It fails to find uninstalled libraries when the uninstalled
12185             # path is not listed in the libpath.  Setting hardcode_minus_L
12186             # to unsupported forces relinking
12187             hardcode_minus_L_CXX=yes
12188             hardcode_libdir_flag_spec_CXX='-L$libdir'
12189             hardcode_libdir_separator_CXX=
12190           fi
12191           esac
12192           shared_flag='-shared'
12193           if test "$aix_use_runtimelinking" = yes; then
12194             shared_flag="$shared_flag "'${wl}-G'
12195           fi
12196         else
12197           # not using gcc
12198           if test "$host_cpu" = ia64; then
12199           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12200           # chokes on -Wl,-G. The following line is correct:
12201           shared_flag='-G'
12202           else
12203             if test "$aix_use_runtimelinking" = yes; then
12204               shared_flag='${wl}-G'
12205             else
12206               shared_flag='${wl}-bM:SRE'
12207             fi
12208           fi
12209         fi
12210
12211         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12212         # It seems that -bexpall does not export symbols beginning with
12213         # underscore (_), so it is better to generate a list of symbols to
12214         # export.
12215         always_export_symbols_CXX=yes
12216         if test "$aix_use_runtimelinking" = yes; then
12217           # Warning - without using the other runtime loading flags (-brtl),
12218           # -berok will link without error, but may produce a broken library.
12219           allow_undefined_flag_CXX='-berok'
12220           # Determine the default libpath from the value encoded in an empty
12221           # executable.
12222           if test "${lt_cv_aix_libpath+set}" = set; then
12223   aix_libpath=$lt_cv_aix_libpath
12224 else
12225   if ${lt_cv_aix_libpath__CXX+:} false; then :
12226   $as_echo_n "(cached) " >&6
12227 else
12228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h.  */
12230
12231 int
12232 main ()
12233 {
12234
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 if ac_fn_cxx_try_link "$LINENO"; then :
12240
12241   lt_aix_libpath_sed='
12242       /Import File Strings/,/^$/ {
12243           /^0/ {
12244               s/^0  *\([^ ]*\) *$/\1/
12245               p
12246           }
12247       }'
12248   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12249   # Check for a 64-bit object if we didn't find anything.
12250   if test -z "$lt_cv_aix_libpath__CXX"; then
12251     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12252   fi
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext \
12255     conftest$ac_exeext conftest.$ac_ext
12256   if test -z "$lt_cv_aix_libpath__CXX"; then
12257     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12258   fi
12259
12260 fi
12261
12262   aix_libpath=$lt_cv_aix_libpath__CXX
12263 fi
12264
12265           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12266
12267           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"
12268         else
12269           if test "$host_cpu" = ia64; then
12270             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12271             allow_undefined_flag_CXX="-z nodefs"
12272             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"
12273           else
12274             # Determine the default libpath from the value encoded in an
12275             # empty executable.
12276             if test "${lt_cv_aix_libpath+set}" = set; then
12277   aix_libpath=$lt_cv_aix_libpath
12278 else
12279   if ${lt_cv_aix_libpath__CXX+:} false; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h.  */
12284
12285 int
12286 main ()
12287 {
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 if ac_fn_cxx_try_link "$LINENO"; then :
12294
12295   lt_aix_libpath_sed='
12296       /Import File Strings/,/^$/ {
12297           /^0/ {
12298               s/^0  *\([^ ]*\) *$/\1/
12299               p
12300           }
12301       }'
12302   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12303   # Check for a 64-bit object if we didn't find anything.
12304   if test -z "$lt_cv_aix_libpath__CXX"; then
12305     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12306   fi
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext \
12309     conftest$ac_exeext conftest.$ac_ext
12310   if test -z "$lt_cv_aix_libpath__CXX"; then
12311     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12312   fi
12313
12314 fi
12315
12316   aix_libpath=$lt_cv_aix_libpath__CXX
12317 fi
12318
12319             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12320             # Warning - without using the other run time loading flags,
12321             # -berok will link without error, but may produce a broken library.
12322             no_undefined_flag_CXX=' ${wl}-bernotok'
12323             allow_undefined_flag_CXX=' ${wl}-berok'
12324             if test "$with_gnu_ld" = yes; then
12325               # We only use this code for GNU lds that support --whole-archive.
12326               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12327             else
12328               # Exported symbols can be pulled into shared objects from archives
12329               whole_archive_flag_spec_CXX='$convenience'
12330             fi
12331             archive_cmds_need_lc_CXX=yes
12332             # This is similar to how AIX traditionally builds its shared
12333             # libraries.
12334             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'
12335           fi
12336         fi
12337         ;;
12338
12339       beos*)
12340         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12341           allow_undefined_flag_CXX=unsupported
12342           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12343           # support --undefined.  This deserves some investigation.  FIXME
12344           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12345         else
12346           ld_shlibs_CXX=no
12347         fi
12348         ;;
12349
12350       chorus*)
12351         case $cc_basename in
12352           *)
12353           # FIXME: insert proper C++ library support
12354           ld_shlibs_CXX=no
12355           ;;
12356         esac
12357         ;;
12358
12359       cygwin* | mingw* | pw32* | cegcc*)
12360         case $GXX,$cc_basename in
12361         ,cl* | no,cl*)
12362           # Native MSVC
12363           # hardcode_libdir_flag_spec is actually meaningless, as there is
12364           # no search path for DLLs.
12365           hardcode_libdir_flag_spec_CXX=' '
12366           allow_undefined_flag_CXX=unsupported
12367           always_export_symbols_CXX=yes
12368           file_list_spec_CXX='@'
12369           # Tell ltmain to make .lib files, not .a files.
12370           libext=lib
12371           # Tell ltmain to make .dll files, not .so files.
12372           shrext_cmds=".dll"
12373           # FIXME: Setting linknames here is a bad hack.
12374           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12375           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12376               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12377             else
12378               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12379             fi~
12380             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12381             linknames='
12382           # The linker will not automatically build a static lib if we build a DLL.
12383           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12384           enable_shared_with_static_runtimes_CXX=yes
12385           # Don't use ranlib
12386           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12387           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12388             lt_tool_outputfile="@TOOL_OUTPUT@"~
12389             case $lt_outputfile in
12390               *.exe|*.EXE) ;;
12391               *)
12392                 lt_outputfile="$lt_outputfile.exe"
12393                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12394                 ;;
12395             esac~
12396             func_to_tool_file "$lt_outputfile"~
12397             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12398               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12399               $RM "$lt_outputfile.manifest";
12400             fi'
12401           ;;
12402         *)
12403           # g++
12404           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12405           # as there is no search path for DLLs.
12406           hardcode_libdir_flag_spec_CXX='-L$libdir'
12407           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12408           allow_undefined_flag_CXX=unsupported
12409           always_export_symbols_CXX=no
12410           enable_shared_with_static_runtimes_CXX=yes
12411
12412           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12413             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'
12414             # If the export-symbols file already is a .def file (1st line
12415             # is EXPORTS), use it as is; otherwise, prepend...
12416             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12417               cp $export_symbols $output_objdir/$soname.def;
12418             else
12419               echo EXPORTS > $output_objdir/$soname.def;
12420               cat $export_symbols >> $output_objdir/$soname.def;
12421             fi~
12422             $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'
12423           else
12424             ld_shlibs_CXX=no
12425           fi
12426           ;;
12427         esac
12428         ;;
12429       darwin* | rhapsody*)
12430
12431
12432   archive_cmds_need_lc_CXX=no
12433   hardcode_direct_CXX=no
12434   hardcode_automatic_CXX=yes
12435   hardcode_shlibpath_var_CXX=unsupported
12436   if test "$lt_cv_ld_force_load" = "yes"; then
12437     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\"`'
12438   else
12439     whole_archive_flag_spec_CXX=''
12440   fi
12441   link_all_deplibs_CXX=yes
12442   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12443   case $cc_basename in
12444      ifort*) _lt_dar_can_shared=yes ;;
12445      *) _lt_dar_can_shared=$GCC ;;
12446   esac
12447   if test "$_lt_dar_can_shared" = "yes"; then
12448     output_verbose_link_cmd=func_echo_all
12449     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}"
12450     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12451     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}"
12452     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}"
12453        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12454       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}"
12455       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}"
12456     fi
12457
12458   else
12459   ld_shlibs_CXX=no
12460   fi
12461
12462         ;;
12463
12464       dgux*)
12465         case $cc_basename in
12466           ec++*)
12467             # FIXME: insert proper C++ library support
12468             ld_shlibs_CXX=no
12469             ;;
12470           ghcx*)
12471             # Green Hills C++ Compiler
12472             # FIXME: insert proper C++ library support
12473             ld_shlibs_CXX=no
12474             ;;
12475           *)
12476             # FIXME: insert proper C++ library support
12477             ld_shlibs_CXX=no
12478             ;;
12479         esac
12480         ;;
12481
12482       freebsd[12]*)
12483         # C++ shared libraries reported to be fairly broken before
12484         # switch to ELF
12485         ld_shlibs_CXX=no
12486         ;;
12487
12488       freebsd-elf*)
12489         archive_cmds_need_lc_CXX=no
12490         ;;
12491
12492       freebsd* | dragonfly*)
12493         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12494         # conventions
12495         ld_shlibs_CXX=yes
12496         ;;
12497
12498       gnu*)
12499         ;;
12500
12501       haiku*)
12502         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12503         link_all_deplibs_CXX=yes
12504         ;;
12505
12506       hpux9*)
12507         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12508         hardcode_libdir_separator_CXX=:
12509         export_dynamic_flag_spec_CXX='${wl}-E'
12510         hardcode_direct_CXX=yes
12511         hardcode_minus_L_CXX=yes # Not in the search PATH,
12512                                              # but as the default
12513                                              # location of the library.
12514
12515         case $cc_basename in
12516           CC*)
12517             # FIXME: insert proper C++ library support
12518             ld_shlibs_CXX=no
12519             ;;
12520           aCC*)
12521             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'
12522             # Commands to make compiler produce verbose output that lists
12523             # what "hidden" libraries, object files and flags are used when
12524             # linking a shared library.
12525             #
12526             # There doesn't appear to be a way to prevent this compiler from
12527             # explicitly linking system object files so we need to strip them
12528             # from the output so that they don't get included in the library
12529             # dependencies.
12530             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"'
12531             ;;
12532           *)
12533             if test "$GXX" = yes; then
12534               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'
12535             else
12536               # FIXME: insert proper C++ library support
12537               ld_shlibs_CXX=no
12538             fi
12539             ;;
12540         esac
12541         ;;
12542
12543       hpux10*|hpux11*)
12544         if test $with_gnu_ld = no; then
12545           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12546           hardcode_libdir_separator_CXX=:
12547
12548           case $host_cpu in
12549             hppa*64*|ia64*)
12550               ;;
12551             *)
12552               export_dynamic_flag_spec_CXX='${wl}-E'
12553               ;;
12554           esac
12555         fi
12556         case $host_cpu in
12557           hppa*64*|ia64*)
12558             hardcode_direct_CXX=no
12559             hardcode_shlibpath_var_CXX=no
12560             ;;
12561           *)
12562             hardcode_direct_CXX=yes
12563             hardcode_direct_absolute_CXX=yes
12564             hardcode_minus_L_CXX=yes # Not in the search PATH,
12565                                                  # but as the default
12566                                                  # location of the library.
12567             ;;
12568         esac
12569
12570         case $cc_basename in
12571           CC*)
12572             # FIXME: insert proper C++ library support
12573             ld_shlibs_CXX=no
12574             ;;
12575           aCC*)
12576             case $host_cpu in
12577               hppa*64*)
12578                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12579                 ;;
12580               ia64*)
12581                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12582                 ;;
12583               *)
12584                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12585                 ;;
12586             esac
12587             # Commands to make compiler produce verbose output that lists
12588             # what "hidden" libraries, object files and flags are used when
12589             # linking a shared library.
12590             #
12591             # There doesn't appear to be a way to prevent this compiler from
12592             # explicitly linking system object files so we need to strip them
12593             # from the output so that they don't get included in the library
12594             # dependencies.
12595             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"'
12596             ;;
12597           *)
12598             if test "$GXX" = yes; then
12599               if test $with_gnu_ld = no; then
12600                 case $host_cpu in
12601                   hppa*64*)
12602                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12603                     ;;
12604                   ia64*)
12605                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12606                     ;;
12607                   *)
12608                     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'
12609                     ;;
12610                 esac
12611               fi
12612             else
12613               # FIXME: insert proper C++ library support
12614               ld_shlibs_CXX=no
12615             fi
12616             ;;
12617         esac
12618         ;;
12619
12620       interix[3-9]*)
12621         hardcode_direct_CXX=no
12622         hardcode_shlibpath_var_CXX=no
12623         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12624         export_dynamic_flag_spec_CXX='${wl}-E'
12625         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12626         # Instead, shared libraries are loaded at an image base (0x10000000 by
12627         # default) and relocated if they conflict, which is a slow very memory
12628         # consuming and fragmenting process.  To avoid this, we pick a random,
12629         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12630         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12631         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'
12632         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'
12633         ;;
12634       irix5* | irix6*)
12635         case $cc_basename in
12636           CC*)
12637             # SGI C++
12638             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'
12639
12640             # Archives containing C++ object files must be created using
12641             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12642             # necessary to make sure instantiated templates are included
12643             # in the archive.
12644             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12645             ;;
12646           *)
12647             if test "$GXX" = yes; then
12648               if test "$with_gnu_ld" = no; then
12649                 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'
12650               else
12651                 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'
12652               fi
12653             fi
12654             link_all_deplibs_CXX=yes
12655             ;;
12656         esac
12657         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12658         hardcode_libdir_separator_CXX=:
12659         inherit_rpath_CXX=yes
12660         ;;
12661
12662       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12663         case $cc_basename in
12664           KCC*)
12665             # Kuck and Associates, Inc. (KAI) C++ Compiler
12666
12667             # KCC will only create a shared library if the output file
12668             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12669             # to its proper name (with version) after linking.
12670             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'
12671             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'
12672             # Commands to make compiler produce verbose output that lists
12673             # what "hidden" libraries, object files and flags are used when
12674             # linking a shared library.
12675             #
12676             # There doesn't appear to be a way to prevent this compiler from
12677             # explicitly linking system object files so we need to strip them
12678             # from the output so that they don't get included in the library
12679             # dependencies.
12680             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"'
12681
12682             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12683             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12684
12685             # Archives containing C++ object files must be created using
12686             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12687             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12688             ;;
12689           icpc* | ecpc* )
12690             # Intel C++
12691             with_gnu_ld=yes
12692             # version 8.0 and above of icpc choke on multiply defined symbols
12693             # if we add $predep_objects and $postdep_objects, however 7.1 and
12694             # earlier do not add the objects themselves.
12695             case `$CC -V 2>&1` in
12696               *"Version 7."*)
12697                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12698                 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'
12699                 ;;
12700               *)  # Version 8.0 or newer
12701                 tmp_idyn=
12702                 case $host_cpu in
12703                   ia64*) tmp_idyn=' -i_dynamic';;
12704                 esac
12705                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12706                 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'
12707                 ;;
12708             esac
12709             archive_cmds_need_lc_CXX=no
12710             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12711             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12712             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12713             ;;
12714           pgCC* | pgcpp*)
12715             # Portland Group C++ compiler
12716             case `$CC -V` in
12717             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12718               prelink_cmds_CXX='tpldir=Template.dir~
12719                 rm -rf $tpldir~
12720                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12721                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12722               old_archive_cmds_CXX='tpldir=Template.dir~
12723                 rm -rf $tpldir~
12724                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12725                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12726                 $RANLIB $oldlib'
12727               archive_cmds_CXX='tpldir=Template.dir~
12728                 rm -rf $tpldir~
12729                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12730                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12731               archive_expsym_cmds_CXX='tpldir=Template.dir~
12732                 rm -rf $tpldir~
12733                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12734                 $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'
12735               ;;
12736             *) # Version 6 and above use weak symbols
12737               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12738               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'
12739               ;;
12740             esac
12741
12742             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12743             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12744             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'
12745             ;;
12746           cxx*)
12747             # Compaq C++
12748             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12749             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'
12750
12751             runpath_var=LD_RUN_PATH
12752             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12753             hardcode_libdir_separator_CXX=:
12754
12755             # Commands to make compiler produce verbose output that lists
12756             # what "hidden" libraries, object files and flags are used when
12757             # linking a shared library.
12758             #
12759             # There doesn't appear to be a way to prevent this compiler from
12760             # explicitly linking system object files so we need to strip them
12761             # from the output so that they don't get included in the library
12762             # dependencies.
12763             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'
12764             ;;
12765           xl* | mpixl* | bgxl*)
12766             # IBM XL 8.0 on PPC, with GNU ld
12767             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12768             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12769             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770             if test "x$supports_anon_versioning" = xyes; then
12771               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12772                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12773                 echo "local: *; };" >> $output_objdir/$libname.ver~
12774                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12775             fi
12776             ;;
12777           *)
12778             case `$CC -V 2>&1 | sed 5q` in
12779             *Sun\ C*)
12780               # Sun C++ 5.9
12781               no_undefined_flag_CXX=' -zdefs'
12782               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12783               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'
12784               hardcode_libdir_flag_spec_CXX='-R$libdir'
12785               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'
12786               compiler_needs_object_CXX=yes
12787
12788               # Not sure whether something based on
12789               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12790               # would be better.
12791               output_verbose_link_cmd='func_echo_all'
12792
12793               # Archives containing C++ object files must be created using
12794               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12795               # necessary to make sure instantiated templates are included
12796               # in the archive.
12797               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12798               ;;
12799             esac
12800             ;;
12801         esac
12802         ;;
12803
12804       lynxos*)
12805         # FIXME: insert proper C++ library support
12806         ld_shlibs_CXX=no
12807         ;;
12808
12809       m88k*)
12810         # FIXME: insert proper C++ library support
12811         ld_shlibs_CXX=no
12812         ;;
12813
12814       mvs*)
12815         case $cc_basename in
12816           cxx*)
12817             # FIXME: insert proper C++ library support
12818             ld_shlibs_CXX=no
12819             ;;
12820           *)
12821             # FIXME: insert proper C++ library support
12822             ld_shlibs_CXX=no
12823             ;;
12824         esac
12825         ;;
12826
12827       netbsd*)
12828         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12829           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12830           wlarc=
12831           hardcode_libdir_flag_spec_CXX='-R$libdir'
12832           hardcode_direct_CXX=yes
12833           hardcode_shlibpath_var_CXX=no
12834         fi
12835         # Workaround some broken pre-1.5 toolchains
12836         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12837         ;;
12838
12839       *nto* | *qnx*)
12840         ld_shlibs_CXX=yes
12841         ;;
12842
12843       openbsd2*)
12844         # C++ shared libraries are fairly broken
12845         ld_shlibs_CXX=no
12846         ;;
12847
12848       openbsd*)
12849         if test -f /usr/libexec/ld.so; then
12850           hardcode_direct_CXX=yes
12851           hardcode_shlibpath_var_CXX=no
12852           hardcode_direct_absolute_CXX=yes
12853           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12854           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12855           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12856             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12857             export_dynamic_flag_spec_CXX='${wl}-E'
12858             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12859           fi
12860           output_verbose_link_cmd=func_echo_all
12861         else
12862           ld_shlibs_CXX=no
12863         fi
12864         ;;
12865
12866       osf3* | osf4* | osf5*)
12867         case $cc_basename in
12868           KCC*)
12869             # Kuck and Associates, Inc. (KAI) C++ Compiler
12870
12871             # KCC will only create a shared library if the output file
12872             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12873             # to its proper name (with version) after linking.
12874             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'
12875
12876             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12877             hardcode_libdir_separator_CXX=:
12878
12879             # Archives containing C++ object files must be created using
12880             # the KAI C++ compiler.
12881             case $host in
12882               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12883               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12884             esac
12885             ;;
12886           RCC*)
12887             # Rational C++ 2.4.1
12888             # FIXME: insert proper C++ library support
12889             ld_shlibs_CXX=no
12890             ;;
12891           cxx*)
12892             case $host in
12893               osf3*)
12894                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12895                 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'
12896                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12897                 ;;
12898               *)
12899                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12900                 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'
12901                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12902                   echo "-hidden">> $lib.exp~
12903                   $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~
12904                   $RM $lib.exp'
12905                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12906                 ;;
12907             esac
12908
12909             hardcode_libdir_separator_CXX=:
12910
12911             # Commands to make compiler produce verbose output that lists
12912             # what "hidden" libraries, object files and flags are used when
12913             # linking a shared library.
12914             #
12915             # There doesn't appear to be a way to prevent this compiler from
12916             # explicitly linking system object files so we need to strip them
12917             # from the output so that they don't get included in the library
12918             # dependencies.
12919             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"'
12920             ;;
12921           *)
12922             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12923               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12924               case $host in
12925                 osf3*)
12926                   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'
12927                   ;;
12928                 *)
12929                   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'
12930                   ;;
12931               esac
12932
12933               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934               hardcode_libdir_separator_CXX=:
12935
12936               # Commands to make compiler produce verbose output that lists
12937               # what "hidden" libraries, object files and flags are used when
12938               # linking a shared library.
12939               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12940
12941             else
12942               # FIXME: insert proper C++ library support
12943               ld_shlibs_CXX=no
12944             fi
12945             ;;
12946         esac
12947         ;;
12948
12949       psos*)
12950         # FIXME: insert proper C++ library support
12951         ld_shlibs_CXX=no
12952         ;;
12953
12954       sunos4*)
12955         case $cc_basename in
12956           CC*)
12957             # Sun C++ 4.x
12958             # FIXME: insert proper C++ library support
12959             ld_shlibs_CXX=no
12960             ;;
12961           lcc*)
12962             # Lucid
12963             # FIXME: insert proper C++ library support
12964             ld_shlibs_CXX=no
12965             ;;
12966           *)
12967             # FIXME: insert proper C++ library support
12968             ld_shlibs_CXX=no
12969             ;;
12970         esac
12971         ;;
12972
12973       solaris*)
12974         case $cc_basename in
12975           CC* | sunCC*)
12976             # Sun C++ 4.2, 5.x and Centerline C++
12977             archive_cmds_need_lc_CXX=yes
12978             no_undefined_flag_CXX=' -zdefs'
12979             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12980             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12981               $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'
12982
12983             hardcode_libdir_flag_spec_CXX='-R$libdir'
12984             hardcode_shlibpath_var_CXX=no
12985             case $host_os in
12986               solaris2.[0-5] | solaris2.[0-5].*) ;;
12987               *)
12988                 # The compiler driver will combine and reorder linker options,
12989                 # but understands `-z linker_flag'.
12990                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12991                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12992                 ;;
12993             esac
12994             link_all_deplibs_CXX=yes
12995
12996             output_verbose_link_cmd='func_echo_all'
12997
12998             # Archives containing C++ object files must be created using
12999             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13000             # necessary to make sure instantiated templates are included
13001             # in the archive.
13002             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13003             ;;
13004           gcx*)
13005             # Green Hills C++ Compiler
13006             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13007
13008             # The C++ compiler must be used to create the archive.
13009             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13010             ;;
13011           *)
13012             # GNU C++ compiler with Solaris linker
13013             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13014               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13015               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13016                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13017                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13018                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13019
13020                 # Commands to make compiler produce verbose output that lists
13021                 # what "hidden" libraries, object files and flags are used when
13022                 # linking a shared library.
13023                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13024               else
13025                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13026                 # platform.
13027                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13028                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13029                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13030
13031                 # Commands to make compiler produce verbose output that lists
13032                 # what "hidden" libraries, object files and flags are used when
13033                 # linking a shared library.
13034                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13035               fi
13036
13037               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13038               case $host_os in
13039                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13040                 *)
13041                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13042                   ;;
13043               esac
13044             fi
13045             ;;
13046         esac
13047         ;;
13048
13049     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13050       no_undefined_flag_CXX='${wl}-z,text'
13051       archive_cmds_need_lc_CXX=no
13052       hardcode_shlibpath_var_CXX=no
13053       runpath_var='LD_RUN_PATH'
13054
13055       case $cc_basename in
13056         CC*)
13057           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13058           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13059           ;;
13060         *)
13061           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063           ;;
13064       esac
13065       ;;
13066
13067       sysv5* | sco3.2v5* | sco5v6*)
13068         # Note: We can NOT use -z defs as we might desire, because we do not
13069         # link with -lc, and that would cause any symbols used from libc to
13070         # always be unresolved, which means just about no library would
13071         # ever link correctly.  If we're not using GNU ld we use -z text
13072         # though, which does catch some bad symbols but isn't as heavy-handed
13073         # as -z defs.
13074         no_undefined_flag_CXX='${wl}-z,text'
13075         allow_undefined_flag_CXX='${wl}-z,nodefs'
13076         archive_cmds_need_lc_CXX=no
13077         hardcode_shlibpath_var_CXX=no
13078         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13079         hardcode_libdir_separator_CXX=':'
13080         link_all_deplibs_CXX=yes
13081         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13082         runpath_var='LD_RUN_PATH'
13083
13084         case $cc_basename in
13085           CC*)
13086             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13087             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13089               '"$old_archive_cmds_CXX"
13090             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13091               '"$reload_cmds_CXX"
13092             ;;
13093           *)
13094             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096             ;;
13097         esac
13098       ;;
13099
13100       tandem*)
13101         case $cc_basename in
13102           NCC*)
13103             # NonStop-UX NCC 3.20
13104             # FIXME: insert proper C++ library support
13105             ld_shlibs_CXX=no
13106             ;;
13107           *)
13108             # FIXME: insert proper C++ library support
13109             ld_shlibs_CXX=no
13110             ;;
13111         esac
13112         ;;
13113
13114       vxworks*)
13115         # FIXME: insert proper C++ library support
13116         ld_shlibs_CXX=no
13117         ;;
13118
13119       *)
13120         # FIXME: insert proper C++ library support
13121         ld_shlibs_CXX=no
13122         ;;
13123     esac
13124
13125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13126 $as_echo "$ld_shlibs_CXX" >&6; }
13127     test "$ld_shlibs_CXX" = no && can_build_shared=no
13128
13129     GCC_CXX="$GXX"
13130     LD_CXX="$LD"
13131
13132     ## CAVEAT EMPTOR:
13133     ## There is no encapsulation within the following macros, do not change
13134     ## the running order or otherwise move them around unless you know exactly
13135     ## what you are doing...
13136     # Dependencies to place before and after the object being linked:
13137 predep_objects_CXX=
13138 postdep_objects_CXX=
13139 predeps_CXX=
13140 postdeps_CXX=
13141 compiler_lib_search_path_CXX=
13142
13143 cat > conftest.$ac_ext <<_LT_EOF
13144 class Foo
13145 {
13146 public:
13147   Foo (void) { a = 0; }
13148 private:
13149   int a;
13150 };
13151 _LT_EOF
13152
13153
13154 _lt_libdeps_save_CFLAGS=$CFLAGS
13155 case "$CC $CFLAGS " in #(
13156 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13157 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13158 esac
13159
13160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161   (eval $ac_compile) 2>&5
13162   ac_status=$?
13163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164   test $ac_status = 0; }; then
13165   # Parse the compiler output and extract the necessary
13166   # objects, libraries and library flags.
13167
13168   # Sentinel used to keep track of whether or not we are before
13169   # the conftest object file.
13170   pre_test_object_deps_done=no
13171
13172   for p in `eval "$output_verbose_link_cmd"`; do
13173     case ${prev}${p} in
13174
13175     -L* | -R* | -l*)
13176        # Some compilers place space between "-{L,R}" and the path.
13177        # Remove the space.
13178        if test $p = "-L" ||
13179           test $p = "-R"; then
13180          prev=$p
13181          continue
13182        fi
13183
13184        # Expand the sysroot to ease extracting the directories later.
13185        if test -z "$prev"; then
13186          case $p in
13187          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13188          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13189          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13190          esac
13191        fi
13192        case $p in
13193        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13194        esac
13195        if test "$pre_test_object_deps_done" = no; then
13196          case ${prev} in
13197          -L | -R)
13198            # Internal compiler library paths should come after those
13199            # provided the user.  The postdeps already come after the
13200            # user supplied libs so there is no need to process them.
13201            if test -z "$compiler_lib_search_path_CXX"; then
13202              compiler_lib_search_path_CXX="${prev}${p}"
13203            else
13204              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13205            fi
13206            ;;
13207          # The "-l" case would never come before the object being
13208          # linked, so don't bother handling this case.
13209          esac
13210        else
13211          if test -z "$postdeps_CXX"; then
13212            postdeps_CXX="${prev}${p}"
13213          else
13214            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13215          fi
13216        fi
13217        prev=
13218        ;;
13219
13220     *.lto.$objext) ;; # Ignore GCC LTO objects
13221     *.$objext)
13222        # This assumes that the test object file only shows up
13223        # once in the compiler output.
13224        if test "$p" = "conftest.$objext"; then
13225          pre_test_object_deps_done=yes
13226          continue
13227        fi
13228
13229        if test "$pre_test_object_deps_done" = no; then
13230          if test -z "$predep_objects_CXX"; then
13231            predep_objects_CXX="$p"
13232          else
13233            predep_objects_CXX="$predep_objects_CXX $p"
13234          fi
13235        else
13236          if test -z "$postdep_objects_CXX"; then
13237            postdep_objects_CXX="$p"
13238          else
13239            postdep_objects_CXX="$postdep_objects_CXX $p"
13240          fi
13241        fi
13242        ;;
13243
13244     *) ;; # Ignore the rest.
13245
13246     esac
13247   done
13248
13249   # Clean up.
13250   rm -f a.out a.exe
13251 else
13252   echo "libtool.m4: error: problem compiling CXX test program"
13253 fi
13254
13255 $RM -f confest.$objext
13256 CFLAGS=$_lt_libdeps_save_CFLAGS
13257
13258 # PORTME: override above test on systems where it is broken
13259 case $host_os in
13260 interix[3-9]*)
13261   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13262   # hack all around it, let's just trust "g++" to DTRT.
13263   predep_objects_CXX=
13264   postdep_objects_CXX=
13265   postdeps_CXX=
13266   ;;
13267
13268 linux*)
13269   case `$CC -V 2>&1 | sed 5q` in
13270   *Sun\ C*)
13271     # Sun C++ 5.9
13272
13273     # The more standards-conforming stlport4 library is
13274     # incompatible with the Cstd library. Avoid specifying
13275     # it if it's in CXXFLAGS. Ignore libCrun as
13276     # -library=stlport4 depends on it.
13277     case " $CXX $CXXFLAGS " in
13278     *" -library=stlport4 "*)
13279       solaris_use_stlport4=yes
13280       ;;
13281     esac
13282
13283     if test "$solaris_use_stlport4" != yes; then
13284       postdeps_CXX='-library=Cstd -library=Crun'
13285     fi
13286     ;;
13287   esac
13288   ;;
13289
13290 solaris*)
13291   case $cc_basename in
13292   CC* | sunCC*)
13293     # The more standards-conforming stlport4 library is
13294     # incompatible with the Cstd library. Avoid specifying
13295     # it if it's in CXXFLAGS. Ignore libCrun as
13296     # -library=stlport4 depends on it.
13297     case " $CXX $CXXFLAGS " in
13298     *" -library=stlport4 "*)
13299       solaris_use_stlport4=yes
13300       ;;
13301     esac
13302
13303     # Adding this requires a known-good setup of shared libraries for
13304     # Sun compiler versions before 5.6, else PIC objects from an old
13305     # archive will be linked into the output, leading to subtle bugs.
13306     if test "$solaris_use_stlport4" != yes; then
13307       postdeps_CXX='-library=Cstd -library=Crun'
13308     fi
13309     ;;
13310   esac
13311   ;;
13312 esac
13313
13314
13315 case " $postdeps_CXX " in
13316 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13317 esac
13318  compiler_lib_search_dirs_CXX=
13319 if test -n "${compiler_lib_search_path_CXX}"; then
13320  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13321 fi
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353     lt_prog_compiler_wl_CXX=
13354 lt_prog_compiler_pic_CXX=
13355 lt_prog_compiler_static_CXX=
13356
13357
13358   # C++ specific cases for pic, static, wl, etc.
13359   if test "$GXX" = yes; then
13360     lt_prog_compiler_wl_CXX='-Wl,'
13361     lt_prog_compiler_static_CXX='-static'
13362
13363     case $host_os in
13364     aix*)
13365       # All AIX code is PIC.
13366       if test "$host_cpu" = ia64; then
13367         # AIX 5 now supports IA64 processor
13368         lt_prog_compiler_static_CXX='-Bstatic'
13369       fi
13370       ;;
13371
13372     amigaos*)
13373       case $host_cpu in
13374       powerpc)
13375             # see comment about AmigaOS4 .so support
13376             lt_prog_compiler_pic_CXX='-fPIC'
13377         ;;
13378       m68k)
13379             # FIXME: we need at least 68020 code to build shared libraries, but
13380             # adding the `-m68020' flag to GCC prevents building anything better,
13381             # like `-m68040'.
13382             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13383         ;;
13384       esac
13385       ;;
13386
13387     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13388       # PIC is the default for these OSes.
13389       ;;
13390     mingw* | cygwin* | os2* | pw32* | cegcc*)
13391       # This hack is so that the source file can tell whether it is being
13392       # built for inclusion in a dll (and should export symbols for example).
13393       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13394       # (--disable-auto-import) libraries
13395       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13396       ;;
13397     darwin* | rhapsody*)
13398       # PIC is the default on this platform
13399       # Common symbols not allowed in MH_DYLIB files
13400       lt_prog_compiler_pic_CXX='-fno-common'
13401       ;;
13402     *djgpp*)
13403       # DJGPP does not support shared libraries at all
13404       lt_prog_compiler_pic_CXX=
13405       ;;
13406     haiku*)
13407       # PIC is the default for Haiku.
13408       # The "-static" flag exists, but is broken.
13409       lt_prog_compiler_static_CXX=
13410       ;;
13411     interix[3-9]*)
13412       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13413       # Instead, we relocate shared libraries at runtime.
13414       ;;
13415     sysv4*MP*)
13416       if test -d /usr/nec; then
13417         lt_prog_compiler_pic_CXX=-Kconform_pic
13418       fi
13419       ;;
13420     hpux*)
13421       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13422       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13423       # sets the default TLS model and affects inlining.
13424       case $host_cpu in
13425       hppa*64*)
13426         ;;
13427       *)
13428         lt_prog_compiler_pic_CXX='-fPIC'
13429         ;;
13430       esac
13431       ;;
13432     *qnx* | *nto*)
13433       # QNX uses GNU C++, but need to define -shared option too, otherwise
13434       # it will coredump.
13435       lt_prog_compiler_pic_CXX='-fPIC -shared'
13436       ;;
13437     *)
13438       lt_prog_compiler_pic_CXX='-fPIC'
13439       ;;
13440     esac
13441   else
13442     case $host_os in
13443       aix[4-9]*)
13444         # All AIX code is PIC.
13445         if test "$host_cpu" = ia64; then
13446           # AIX 5 now supports IA64 processor
13447           lt_prog_compiler_static_CXX='-Bstatic'
13448         else
13449           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13450         fi
13451         ;;
13452       chorus*)
13453         case $cc_basename in
13454         cxch68*)
13455           # Green Hills C++ Compiler
13456           # _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"
13457           ;;
13458         esac
13459         ;;
13460       mingw* | cygwin* | os2* | pw32* | cegcc*)
13461         # This hack is so that the source file can tell whether it is being
13462         # built for inclusion in a dll (and should export symbols for example).
13463         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13464         ;;
13465       dgux*)
13466         case $cc_basename in
13467           ec++*)
13468             lt_prog_compiler_pic_CXX='-KPIC'
13469             ;;
13470           ghcx*)
13471             # Green Hills C++ Compiler
13472             lt_prog_compiler_pic_CXX='-pic'
13473             ;;
13474           *)
13475             ;;
13476         esac
13477         ;;
13478       freebsd* | dragonfly*)
13479         # FreeBSD uses GNU C++
13480         ;;
13481       hpux9* | hpux10* | hpux11*)
13482         case $cc_basename in
13483           CC*)
13484             lt_prog_compiler_wl_CXX='-Wl,'
13485             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13486             if test "$host_cpu" != ia64; then
13487               lt_prog_compiler_pic_CXX='+Z'
13488             fi
13489             ;;
13490           aCC*)
13491             lt_prog_compiler_wl_CXX='-Wl,'
13492             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13493             case $host_cpu in
13494             hppa*64*|ia64*)
13495               # +Z the default
13496               ;;
13497             *)
13498               lt_prog_compiler_pic_CXX='+Z'
13499               ;;
13500             esac
13501             ;;
13502           *)
13503             ;;
13504         esac
13505         ;;
13506       interix*)
13507         # This is c89, which is MS Visual C++ (no shared libs)
13508         # Anyone wants to do a port?
13509         ;;
13510       irix5* | irix6* | nonstopux*)
13511         case $cc_basename in
13512           CC*)
13513             lt_prog_compiler_wl_CXX='-Wl,'
13514             lt_prog_compiler_static_CXX='-non_shared'
13515             # CC pic flag -KPIC is the default.
13516             ;;
13517           *)
13518             ;;
13519         esac
13520         ;;
13521       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13522         case $cc_basename in
13523           KCC*)
13524             # KAI C++ Compiler
13525             lt_prog_compiler_wl_CXX='--backend -Wl,'
13526             lt_prog_compiler_pic_CXX='-fPIC'
13527             ;;
13528           ecpc* )
13529             # old Intel C++ for x86_64 which still supported -KPIC.
13530             lt_prog_compiler_wl_CXX='-Wl,'
13531             lt_prog_compiler_pic_CXX='-KPIC'
13532             lt_prog_compiler_static_CXX='-static'
13533             ;;
13534           icpc* )
13535             # Intel C++, used to be incompatible with GCC.
13536             # ICC 10 doesn't accept -KPIC any more.
13537             lt_prog_compiler_wl_CXX='-Wl,'
13538             lt_prog_compiler_pic_CXX='-fPIC'
13539             lt_prog_compiler_static_CXX='-static'
13540             ;;
13541           pgCC* | pgcpp*)
13542             # Portland Group C++ compiler
13543             lt_prog_compiler_wl_CXX='-Wl,'
13544             lt_prog_compiler_pic_CXX='-fpic'
13545             lt_prog_compiler_static_CXX='-Bstatic'
13546             ;;
13547           cxx*)
13548             # Compaq C++
13549             # Make sure the PIC flag is empty.  It appears that all Alpha
13550             # Linux and Compaq Tru64 Unix objects are PIC.
13551             lt_prog_compiler_pic_CXX=
13552             lt_prog_compiler_static_CXX='-non_shared'
13553             ;;
13554           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13555             # IBM XL 8.0, 9.0 on PPC and BlueGene
13556             lt_prog_compiler_wl_CXX='-Wl,'
13557             lt_prog_compiler_pic_CXX='-qpic'
13558             lt_prog_compiler_static_CXX='-qstaticlink'
13559             ;;
13560           *)
13561             case `$CC -V 2>&1 | sed 5q` in
13562             *Sun\ C*)
13563               # Sun C++ 5.9
13564               lt_prog_compiler_pic_CXX='-KPIC'
13565               lt_prog_compiler_static_CXX='-Bstatic'
13566               lt_prog_compiler_wl_CXX='-Qoption ld '
13567               ;;
13568             esac
13569             ;;
13570         esac
13571         ;;
13572       lynxos*)
13573         ;;
13574       m88k*)
13575         ;;
13576       mvs*)
13577         case $cc_basename in
13578           cxx*)
13579             lt_prog_compiler_pic_CXX='-W c,exportall'
13580             ;;
13581           *)
13582             ;;
13583         esac
13584         ;;
13585       netbsd*)
13586         ;;
13587       *qnx* | *nto*)
13588         # QNX uses GNU C++, but need to define -shared option too, otherwise
13589         # it will coredump.
13590         lt_prog_compiler_pic_CXX='-fPIC -shared'
13591         ;;
13592       osf3* | osf4* | osf5*)
13593         case $cc_basename in
13594           KCC*)
13595             lt_prog_compiler_wl_CXX='--backend -Wl,'
13596             ;;
13597           RCC*)
13598             # Rational C++ 2.4.1
13599             lt_prog_compiler_pic_CXX='-pic'
13600             ;;
13601           cxx*)
13602             # Digital/Compaq C++
13603             lt_prog_compiler_wl_CXX='-Wl,'
13604             # Make sure the PIC flag is empty.  It appears that all Alpha
13605             # Linux and Compaq Tru64 Unix objects are PIC.
13606             lt_prog_compiler_pic_CXX=
13607             lt_prog_compiler_static_CXX='-non_shared'
13608             ;;
13609           *)
13610             ;;
13611         esac
13612         ;;
13613       psos*)
13614         ;;
13615       solaris*)
13616         case $cc_basename in
13617           CC* | sunCC*)
13618             # Sun C++ 4.2, 5.x and Centerline C++
13619             lt_prog_compiler_pic_CXX='-KPIC'
13620             lt_prog_compiler_static_CXX='-Bstatic'
13621             lt_prog_compiler_wl_CXX='-Qoption ld '
13622             ;;
13623           gcx*)
13624             # Green Hills C++ Compiler
13625             lt_prog_compiler_pic_CXX='-PIC'
13626             ;;
13627           *)
13628             ;;
13629         esac
13630         ;;
13631       sunos4*)
13632         case $cc_basename in
13633           CC*)
13634             # Sun C++ 4.x
13635             lt_prog_compiler_pic_CXX='-pic'
13636             lt_prog_compiler_static_CXX='-Bstatic'
13637             ;;
13638           lcc*)
13639             # Lucid
13640             lt_prog_compiler_pic_CXX='-pic'
13641             ;;
13642           *)
13643             ;;
13644         esac
13645         ;;
13646       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13647         case $cc_basename in
13648           CC*)
13649             lt_prog_compiler_wl_CXX='-Wl,'
13650             lt_prog_compiler_pic_CXX='-KPIC'
13651             lt_prog_compiler_static_CXX='-Bstatic'
13652             ;;
13653         esac
13654         ;;
13655       tandem*)
13656         case $cc_basename in
13657           NCC*)
13658             # NonStop-UX NCC 3.20
13659             lt_prog_compiler_pic_CXX='-KPIC'
13660             ;;
13661           *)
13662             ;;
13663         esac
13664         ;;
13665       vxworks*)
13666         ;;
13667       *)
13668         lt_prog_compiler_can_build_shared_CXX=no
13669         ;;
13670     esac
13671   fi
13672
13673 case $host_os in
13674   # For platforms which do not support PIC, -DPIC is meaningless:
13675   *djgpp*)
13676     lt_prog_compiler_pic_CXX=
13677     ;;
13678   *)
13679     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13680     ;;
13681 esac
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13684 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13685 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13686   $as_echo_n "(cached) " >&6
13687 else
13688   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13691 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13692 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13693
13694 #
13695 # Check to make sure the PIC flag actually works.
13696 #
13697 if test -n "$lt_prog_compiler_pic_CXX"; then
13698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13699 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13700 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13701   $as_echo_n "(cached) " >&6
13702 else
13703   lt_cv_prog_compiler_pic_works_CXX=no
13704    ac_outfile=conftest.$ac_objext
13705    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13706    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13707    # Insert the option either (1) after the last *FLAGS variable, or
13708    # (2) before a word containing "conftest.", or (3) at the end.
13709    # Note that $ac_compile itself does not contain backslashes and begins
13710    # with a dollar sign (not a hyphen), so the echo should work correctly.
13711    # The option is referenced via a variable to avoid confusing sed.
13712    lt_compile=`echo "$ac_compile" | $SED \
13713    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13715    -e 's:$: $lt_compiler_flag:'`
13716    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13717    (eval "$lt_compile" 2>conftest.err)
13718    ac_status=$?
13719    cat conftest.err >&5
13720    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721    if (exit $ac_status) && test -s "$ac_outfile"; then
13722      # The compiler can only warn and ignore the option if not recognized
13723      # So say no if there are warnings other than the usual output.
13724      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13725      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13726      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13727        lt_cv_prog_compiler_pic_works_CXX=yes
13728      fi
13729    fi
13730    $RM conftest*
13731
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13734 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13735
13736 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13737     case $lt_prog_compiler_pic_CXX in
13738      "" | " "*) ;;
13739      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13740      esac
13741 else
13742     lt_prog_compiler_pic_CXX=
13743      lt_prog_compiler_can_build_shared_CXX=no
13744 fi
13745
13746 fi
13747
13748
13749
13750
13751
13752 #
13753 # Check to make sure the static flag actually works.
13754 #
13755 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13757 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13758 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13759   $as_echo_n "(cached) " >&6
13760 else
13761   lt_cv_prog_compiler_static_works_CXX=no
13762    save_LDFLAGS="$LDFLAGS"
13763    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13764    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13765    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13766      # The linker can only warn and ignore the option if not recognized
13767      # So say no if there are warnings
13768      if test -s conftest.err; then
13769        # Append any errors to the config.log.
13770        cat conftest.err 1>&5
13771        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13772        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13773        if diff conftest.exp conftest.er2 >/dev/null; then
13774          lt_cv_prog_compiler_static_works_CXX=yes
13775        fi
13776      else
13777        lt_cv_prog_compiler_static_works_CXX=yes
13778      fi
13779    fi
13780    $RM -r conftest*
13781    LDFLAGS="$save_LDFLAGS"
13782
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13785 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13786
13787 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13788     :
13789 else
13790     lt_prog_compiler_static_CXX=
13791 fi
13792
13793
13794
13795
13796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13798 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13799   $as_echo_n "(cached) " >&6
13800 else
13801   lt_cv_prog_compiler_c_o_CXX=no
13802    $RM -r conftest 2>/dev/null
13803    mkdir conftest
13804    cd conftest
13805    mkdir out
13806    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13807
13808    lt_compiler_flag="-o out/conftest2.$ac_objext"
13809    # Insert the option either (1) after the last *FLAGS variable, or
13810    # (2) before a word containing "conftest.", or (3) at the end.
13811    # Note that $ac_compile itself does not contain backslashes and begins
13812    # with a dollar sign (not a hyphen), so the echo should work correctly.
13813    lt_compile=`echo "$ac_compile" | $SED \
13814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13816    -e 's:$: $lt_compiler_flag:'`
13817    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13818    (eval "$lt_compile" 2>out/conftest.err)
13819    ac_status=$?
13820    cat out/conftest.err >&5
13821    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13823    then
13824      # The compiler can only warn and ignore the option if not recognized
13825      # So say no if there are warnings
13826      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13827      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13828      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13829        lt_cv_prog_compiler_c_o_CXX=yes
13830      fi
13831    fi
13832    chmod u+w . 2>&5
13833    $RM conftest*
13834    # SGI C++ compiler will create directory out/ii_files/ for
13835    # template instantiation
13836    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13837    $RM out/* && rmdir out
13838    cd ..
13839    $RM -r conftest
13840    $RM conftest*
13841
13842 fi
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13844 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13845
13846
13847
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13850 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853   lt_cv_prog_compiler_c_o_CXX=no
13854    $RM -r conftest 2>/dev/null
13855    mkdir conftest
13856    cd conftest
13857    mkdir out
13858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13859
13860    lt_compiler_flag="-o out/conftest2.$ac_objext"
13861    # Insert the option either (1) after the last *FLAGS variable, or
13862    # (2) before a word containing "conftest.", or (3) at the end.
13863    # Note that $ac_compile itself does not contain backslashes and begins
13864    # with a dollar sign (not a hyphen), so the echo should work correctly.
13865    lt_compile=`echo "$ac_compile" | $SED \
13866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13868    -e 's:$: $lt_compiler_flag:'`
13869    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13870    (eval "$lt_compile" 2>out/conftest.err)
13871    ac_status=$?
13872    cat out/conftest.err >&5
13873    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13875    then
13876      # The compiler can only warn and ignore the option if not recognized
13877      # So say no if there are warnings
13878      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13879      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13880      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13881        lt_cv_prog_compiler_c_o_CXX=yes
13882      fi
13883    fi
13884    chmod u+w . 2>&5
13885    $RM conftest*
13886    # SGI C++ compiler will create directory out/ii_files/ for
13887    # template instantiation
13888    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13889    $RM out/* && rmdir out
13890    cd ..
13891    $RM -r conftest
13892    $RM conftest*
13893
13894 fi
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13896 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13897
13898
13899
13900
13901 hard_links="nottested"
13902 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13903   # do not overwrite the value of need_locks provided by the user
13904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13905 $as_echo_n "checking if we can lock with hard links... " >&6; }
13906   hard_links=yes
13907   $RM conftest*
13908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13909   touch conftest.a
13910   ln conftest.a conftest.b 2>&5 || hard_links=no
13911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13913 $as_echo "$hard_links" >&6; }
13914   if test "$hard_links" = no; then
13915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13916 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13917     need_locks=warn
13918   fi
13919 else
13920   need_locks=no
13921 fi
13922
13923
13924
13925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13926 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13927
13928   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13929   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13930   case $host_os in
13931   aix[4-9]*)
13932     # If we're using GNU nm, then we don't want the "-C" option.
13933     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13934     # Also, AIX nm treats weak defined symbols like other global defined
13935     # symbols, whereas GNU nm marks them as "W".
13936     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13937       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'
13938     else
13939       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'
13940     fi
13941     ;;
13942   pw32*)
13943     export_symbols_cmds_CXX="$ltdll_cmds"
13944     ;;
13945   cygwin* | mingw* | cegcc*)
13946     case $cc_basename in
13947     cl*) ;;
13948     *)
13949       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'
13950       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13951       ;;
13952     esac
13953     ;;
13954   *)
13955     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13956     ;;
13957   esac
13958
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13960 $as_echo "$ld_shlibs_CXX" >&6; }
13961 test "$ld_shlibs_CXX" = no && can_build_shared=no
13962
13963 with_gnu_ld_CXX=$with_gnu_ld
13964
13965
13966
13967
13968
13969
13970 #
13971 # Do we need to explicitly link libc?
13972 #
13973 case "x$archive_cmds_need_lc_CXX" in
13974 x|xyes)
13975   # Assume -lc should be added
13976   archive_cmds_need_lc_CXX=yes
13977
13978   if test "$enable_shared" = yes && test "$GCC" = yes; then
13979     case $archive_cmds_CXX in
13980     *'~'*)
13981       # FIXME: we may have to deal with multi-command sequences.
13982       ;;
13983     '$CC '*)
13984       # Test whether the compiler implicitly links with -lc since on some
13985       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13986       # to ld, don't add -lc before -lgcc.
13987       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13988 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13989 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13990   $as_echo_n "(cached) " >&6
13991 else
13992   $RM conftest*
13993         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13994
13995         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13996   (eval $ac_compile) 2>&5
13997   ac_status=$?
13998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999   test $ac_status = 0; } 2>conftest.err; then
14000           soname=conftest
14001           lib=conftest
14002           libobjs=conftest.$ac_objext
14003           deplibs=
14004           wl=$lt_prog_compiler_wl_CXX
14005           pic_flag=$lt_prog_compiler_pic_CXX
14006           compiler_flags=-v
14007           linker_flags=-v
14008           verstring=
14009           output_objdir=.
14010           libname=conftest
14011           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14012           allow_undefined_flag_CXX=
14013           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14014   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14015   ac_status=$?
14016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017   test $ac_status = 0; }
14018           then
14019             lt_cv_archive_cmds_need_lc_CXX=no
14020           else
14021             lt_cv_archive_cmds_need_lc_CXX=yes
14022           fi
14023           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14024         else
14025           cat conftest.err 1>&5
14026         fi
14027         $RM conftest*
14028
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14031 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14032       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14033       ;;
14034     esac
14035   fi
14036   ;;
14037 esac
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14103 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14104
14105 library_names_spec=
14106 libname_spec='lib$name'
14107 soname_spec=
14108 shrext_cmds=".so"
14109 postinstall_cmds=
14110 postuninstall_cmds=
14111 finish_cmds=
14112 finish_eval=
14113 shlibpath_var=
14114 shlibpath_overrides_runpath=unknown
14115 version_type=none
14116 dynamic_linker="$host_os ld.so"
14117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14118 need_lib_prefix=unknown
14119 hardcode_into_libs=no
14120
14121 # when you set need_version to no, make sure it does not cause -set_version
14122 # flags to be left without arguments
14123 need_version=unknown
14124
14125 case $host_os in
14126 aix3*)
14127   version_type=linux
14128   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14129   shlibpath_var=LIBPATH
14130
14131   # AIX 3 has no versioning support, so we append a major version to the name.
14132   soname_spec='${libname}${release}${shared_ext}$major'
14133   ;;
14134
14135 aix[4-9]*)
14136   version_type=linux
14137   need_lib_prefix=no
14138   need_version=no
14139   hardcode_into_libs=yes
14140   if test "$host_cpu" = ia64; then
14141     # AIX 5 supports IA64
14142     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14143     shlibpath_var=LD_LIBRARY_PATH
14144   else
14145     # With GCC up to 2.95.x, collect2 would create an import file
14146     # for dependence libraries.  The import file would start with
14147     # the line `#! .'.  This would cause the generated library to
14148     # depend on `.', always an invalid library.  This was fixed in
14149     # development snapshots of GCC prior to 3.0.
14150     case $host_os in
14151       aix4 | aix4.[01] | aix4.[01].*)
14152       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14153            echo ' yes '
14154            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14155         :
14156       else
14157         can_build_shared=no
14158       fi
14159       ;;
14160     esac
14161     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14162     # soname into executable. Probably we can add versioning support to
14163     # collect2, so additional links can be useful in future.
14164     if test "$aix_use_runtimelinking" = yes; then
14165       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14166       # instead of lib<name>.a to let people know that these are not
14167       # typical AIX shared libraries.
14168       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169     else
14170       # We preserve .a as extension for shared libraries through AIX4.2
14171       # and later when we are not doing run time linking.
14172       library_names_spec='${libname}${release}.a $libname.a'
14173       soname_spec='${libname}${release}${shared_ext}$major'
14174     fi
14175     shlibpath_var=LIBPATH
14176   fi
14177   ;;
14178
14179 amigaos*)
14180   case $host_cpu in
14181   powerpc)
14182     # Since July 2007 AmigaOS4 officially supports .so libraries.
14183     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185     ;;
14186   m68k)
14187     library_names_spec='$libname.ixlibrary $libname.a'
14188     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14189     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'
14190     ;;
14191   esac
14192   ;;
14193
14194 beos*)
14195   library_names_spec='${libname}${shared_ext}'
14196   dynamic_linker="$host_os ld.so"
14197   shlibpath_var=LIBRARY_PATH
14198   ;;
14199
14200 bsdi[45]*)
14201   version_type=linux
14202   need_version=no
14203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204   soname_spec='${libname}${release}${shared_ext}$major'
14205   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14206   shlibpath_var=LD_LIBRARY_PATH
14207   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14208   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14209   # the default ld.so.conf also contains /usr/contrib/lib and
14210   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14211   # libtool to hard-code these into programs
14212   ;;
14213
14214 cygwin* | mingw* | pw32* | cegcc*)
14215   version_type=windows
14216   shrext_cmds=".dll"
14217   need_version=no
14218   need_lib_prefix=no
14219
14220   case $GCC,$cc_basename in
14221   yes,*)
14222     # gcc
14223     library_names_spec='$libname.dll.a'
14224     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14225     postinstall_cmds='base_file=`basename \${file}`~
14226       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14227       dldir=$destdir/`dirname \$dlpath`~
14228       test -d \$dldir || mkdir -p \$dldir~
14229       $install_prog $dir/$dlname \$dldir/$dlname~
14230       chmod a+x \$dldir/$dlname~
14231       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14232         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14233       fi'
14234     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14235       dlpath=$dir/\$dldll~
14236        $RM \$dlpath'
14237     shlibpath_overrides_runpath=yes
14238
14239     case $host_os in
14240     cygwin*)
14241       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14242       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14243
14244       ;;
14245     mingw* | cegcc*)
14246       # MinGW DLLs use traditional 'lib' prefix
14247       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14248       ;;
14249     pw32*)
14250       # pw32 DLLs use 'pw' prefix rather than 'lib'
14251       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14252       ;;
14253     esac
14254     dynamic_linker='Win32 ld.exe'
14255     ;;
14256
14257   *,cl*)
14258     # Native MSVC
14259     libname_spec='$name'
14260     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14261     library_names_spec='${libname}.dll.lib'
14262
14263     case $build_os in
14264     mingw*)
14265       sys_lib_search_path_spec=
14266       lt_save_ifs=$IFS
14267       IFS=';'
14268       for lt_path in $LIB
14269       do
14270         IFS=$lt_save_ifs
14271         # Let DOS variable expansion print the short 8.3 style file name.
14272         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14273         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14274       done
14275       IFS=$lt_save_ifs
14276       # Convert to MSYS style.
14277       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14278       ;;
14279     cygwin*)
14280       # Convert to unix form, then to dos form, then back to unix form
14281       # but this time dos style (no spaces!) so that the unix form looks
14282       # like /cygdrive/c/PROGRA~1:/cygdr...
14283       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14284       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14285       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14286       ;;
14287     *)
14288       sys_lib_search_path_spec="$LIB"
14289       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14290         # It is most probably a Windows format PATH.
14291         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14292       else
14293         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14294       fi
14295       # FIXME: find the short name or the path components, as spaces are
14296       # common. (e.g. "Program Files" -> "PROGRA~1")
14297       ;;
14298     esac
14299
14300     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14301     postinstall_cmds='base_file=`basename \${file}`~
14302       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14303       dldir=$destdir/`dirname \$dlpath`~
14304       test -d \$dldir || mkdir -p \$dldir~
14305       $install_prog $dir/$dlname \$dldir/$dlname'
14306     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14307       dlpath=$dir/\$dldll~
14308        $RM \$dlpath'
14309     shlibpath_overrides_runpath=yes
14310     dynamic_linker='Win32 link.exe'
14311     ;;
14312
14313   *)
14314     # Assume MSVC wrapper
14315     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14316     dynamic_linker='Win32 ld.exe'
14317     ;;
14318   esac
14319   # FIXME: first we should search . and the directory the executable is in
14320   shlibpath_var=PATH
14321   ;;
14322
14323 darwin* | rhapsody*)
14324   dynamic_linker="$host_os dyld"
14325   version_type=darwin
14326   need_lib_prefix=no
14327   need_version=no
14328   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14329   soname_spec='${libname}${release}${major}$shared_ext'
14330   shlibpath_overrides_runpath=yes
14331   shlibpath_var=DYLD_LIBRARY_PATH
14332   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14333
14334   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14335   ;;
14336
14337 dgux*)
14338   version_type=linux
14339   need_lib_prefix=no
14340   need_version=no
14341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14342   soname_spec='${libname}${release}${shared_ext}$major'
14343   shlibpath_var=LD_LIBRARY_PATH
14344   ;;
14345
14346 freebsd1*)
14347   dynamic_linker=no
14348   ;;
14349
14350 freebsd* | dragonfly*)
14351   # DragonFly does not have aout.  When/if they implement a new
14352   # versioning mechanism, adjust this.
14353   if test -x /usr/bin/objformat; then
14354     objformat=`/usr/bin/objformat`
14355   else
14356     case $host_os in
14357     freebsd[123]*) objformat=aout ;;
14358     *) objformat=elf ;;
14359     esac
14360   fi
14361   version_type=freebsd-$objformat
14362   case $version_type in
14363     freebsd-elf*)
14364       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14365       need_version=no
14366       need_lib_prefix=no
14367       ;;
14368     freebsd-*)
14369       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14370       need_version=yes
14371       ;;
14372   esac
14373   shlibpath_var=LD_LIBRARY_PATH
14374   case $host_os in
14375   freebsd2*)
14376     shlibpath_overrides_runpath=yes
14377     ;;
14378   freebsd3.[01]* | freebsdelf3.[01]*)
14379     shlibpath_overrides_runpath=yes
14380     hardcode_into_libs=yes
14381     ;;
14382   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14383   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14384     shlibpath_overrides_runpath=no
14385     hardcode_into_libs=yes
14386     ;;
14387   *) # from 4.6 on, and DragonFly
14388     shlibpath_overrides_runpath=yes
14389     hardcode_into_libs=yes
14390     ;;
14391   esac
14392   ;;
14393
14394 gnu*)
14395   version_type=linux
14396   need_lib_prefix=no
14397   need_version=no
14398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14399   soname_spec='${libname}${release}${shared_ext}$major'
14400   shlibpath_var=LD_LIBRARY_PATH
14401   hardcode_into_libs=yes
14402   ;;
14403
14404 haiku*)
14405   version_type=linux
14406   need_lib_prefix=no
14407   need_version=no
14408   dynamic_linker="$host_os runtime_loader"
14409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14410   soname_spec='${libname}${release}${shared_ext}$major'
14411   shlibpath_var=LIBRARY_PATH
14412   shlibpath_overrides_runpath=yes
14413   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14414   hardcode_into_libs=yes
14415   ;;
14416
14417 hpux9* | hpux10* | hpux11*)
14418   # Give a soname corresponding to the major version so that dld.sl refuses to
14419   # link against other versions.
14420   version_type=sunos
14421   need_lib_prefix=no
14422   need_version=no
14423   case $host_cpu in
14424   ia64*)
14425     shrext_cmds='.so'
14426     hardcode_into_libs=yes
14427     dynamic_linker="$host_os dld.so"
14428     shlibpath_var=LD_LIBRARY_PATH
14429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431     soname_spec='${libname}${release}${shared_ext}$major'
14432     if test "X$HPUX_IA64_MODE" = X32; then
14433       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14434     else
14435       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14436     fi
14437     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14438     ;;
14439   hppa*64*)
14440     shrext_cmds='.sl'
14441     hardcode_into_libs=yes
14442     dynamic_linker="$host_os dld.sl"
14443     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14444     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446     soname_spec='${libname}${release}${shared_ext}$major'
14447     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14448     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14449     ;;
14450   *)
14451     shrext_cmds='.sl'
14452     dynamic_linker="$host_os dld.sl"
14453     shlibpath_var=SHLIB_PATH
14454     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456     soname_spec='${libname}${release}${shared_ext}$major'
14457     ;;
14458   esac
14459   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14460   postinstall_cmds='chmod 555 $lib'
14461   # or fails outright, so override atomically:
14462   install_override_mode=555
14463   ;;
14464
14465 interix[3-9]*)
14466   version_type=linux
14467   need_lib_prefix=no
14468   need_version=no
14469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14470   soname_spec='${libname}${release}${shared_ext}$major'
14471   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14472   shlibpath_var=LD_LIBRARY_PATH
14473   shlibpath_overrides_runpath=no
14474   hardcode_into_libs=yes
14475   ;;
14476
14477 irix5* | irix6* | nonstopux*)
14478   case $host_os in
14479     nonstopux*) version_type=nonstopux ;;
14480     *)
14481         if test "$lt_cv_prog_gnu_ld" = yes; then
14482                 version_type=linux
14483         else
14484                 version_type=irix
14485         fi ;;
14486   esac
14487   need_lib_prefix=no
14488   need_version=no
14489   soname_spec='${libname}${release}${shared_ext}$major'
14490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14491   case $host_os in
14492   irix5* | nonstopux*)
14493     libsuff= shlibsuff=
14494     ;;
14495   *)
14496     case $LD in # libtool.m4 will add one of these switches to LD
14497     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14498       libsuff= shlibsuff= libmagic=32-bit;;
14499     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14500       libsuff=32 shlibsuff=N32 libmagic=N32;;
14501     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14502       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14503     *) libsuff= shlibsuff= libmagic=never-match;;
14504     esac
14505     ;;
14506   esac
14507   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14508   shlibpath_overrides_runpath=no
14509   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14510   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14511   hardcode_into_libs=yes
14512   ;;
14513
14514 # No shared lib support for Linux oldld, aout, or coff.
14515 linux*oldld* | linux*aout* | linux*coff*)
14516   dynamic_linker=no
14517   ;;
14518
14519 # This must be Linux ELF.
14520 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14521   version_type=linux
14522   need_lib_prefix=no
14523   need_version=no
14524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525   soname_spec='${libname}${release}${shared_ext}$major'
14526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14527   shlibpath_var=LD_LIBRARY_PATH
14528   shlibpath_overrides_runpath=no
14529
14530   # Some binutils ld are patched to set DT_RUNPATH
14531   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534   lt_cv_shlibpath_overrides_runpath=no
14535     save_LDFLAGS=$LDFLAGS
14536     save_libdir=$libdir
14537     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14538          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14539     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h.  */
14541
14542 int
14543 main ()
14544 {
14545
14546   ;
14547   return 0;
14548 }
14549 _ACEOF
14550 if ac_fn_cxx_try_link "$LINENO"; then :
14551   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14552   lt_cv_shlibpath_overrides_runpath=yes
14553 fi
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext \
14556     conftest$ac_exeext conftest.$ac_ext
14557     LDFLAGS=$save_LDFLAGS
14558     libdir=$save_libdir
14559
14560 fi
14561
14562   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14563
14564   # This implies no fast_install, which is unacceptable.
14565   # Some rework will be needed to allow for fast_install
14566   # before this can be enabled.
14567   hardcode_into_libs=yes
14568
14569   # Append ld.so.conf contents to the search path
14570   if test -f /etc/ld.so.conf; then
14571     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' ' '`
14572     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14573   fi
14574
14575   # We used to test for /lib/ld.so.1 and disable shared libraries on
14576   # powerpc, because MkLinux only supported shared libraries with the
14577   # GNU dynamic linker.  Since this was broken with cross compilers,
14578   # most powerpc-linux boxes support dynamic linking these days and
14579   # people can always --disable-shared, the test was removed, and we
14580   # assume the GNU/Linux dynamic linker is in use.
14581   dynamic_linker='GNU/Linux ld.so'
14582   ;;
14583
14584 netbsd*)
14585   version_type=sunos
14586   need_lib_prefix=no
14587   need_version=no
14588   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14590     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14591     dynamic_linker='NetBSD (a.out) ld.so'
14592   else
14593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14594     soname_spec='${libname}${release}${shared_ext}$major'
14595     dynamic_linker='NetBSD ld.elf_so'
14596   fi
14597   shlibpath_var=LD_LIBRARY_PATH
14598   shlibpath_overrides_runpath=yes
14599   hardcode_into_libs=yes
14600   ;;
14601
14602 newsos6)
14603   version_type=linux
14604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605   shlibpath_var=LD_LIBRARY_PATH
14606   shlibpath_overrides_runpath=yes
14607   ;;
14608
14609 *nto* | *qnx*)
14610   version_type=qnx
14611   need_lib_prefix=no
14612   need_version=no
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   shlibpath_var=LD_LIBRARY_PATH
14616   shlibpath_overrides_runpath=no
14617   hardcode_into_libs=yes
14618   dynamic_linker='ldqnx.so'
14619   ;;
14620
14621 openbsd*)
14622   version_type=sunos
14623   sys_lib_dlsearch_path_spec="/usr/lib"
14624   need_lib_prefix=no
14625   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14626   case $host_os in
14627     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14628     *)                          need_version=no  ;;
14629   esac
14630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14634     case $host_os in
14635       openbsd2.[89] | openbsd2.[89].*)
14636         shlibpath_overrides_runpath=no
14637         ;;
14638       *)
14639         shlibpath_overrides_runpath=yes
14640         ;;
14641       esac
14642   else
14643     shlibpath_overrides_runpath=yes
14644   fi
14645   ;;
14646
14647 os2*)
14648   libname_spec='$name'
14649   shrext_cmds=".dll"
14650   need_lib_prefix=no
14651   library_names_spec='$libname${shared_ext} $libname.a'
14652   dynamic_linker='OS/2 ld.exe'
14653   shlibpath_var=LIBPATH
14654   ;;
14655
14656 osf3* | osf4* | osf5*)
14657   version_type=osf
14658   need_lib_prefix=no
14659   need_version=no
14660   soname_spec='${libname}${release}${shared_ext}$major'
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   shlibpath_var=LD_LIBRARY_PATH
14663   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14664   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14665   ;;
14666
14667 rdos*)
14668   dynamic_linker=no
14669   ;;
14670
14671 solaris*)
14672   version_type=linux
14673   need_lib_prefix=no
14674   need_version=no
14675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676   soname_spec='${libname}${release}${shared_ext}$major'
14677   shlibpath_var=LD_LIBRARY_PATH
14678   shlibpath_overrides_runpath=yes
14679   hardcode_into_libs=yes
14680   # ldd complains unless libraries are executable
14681   postinstall_cmds='chmod +x $lib'
14682   ;;
14683
14684 sunos4*)
14685   version_type=sunos
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14688   shlibpath_var=LD_LIBRARY_PATH
14689   shlibpath_overrides_runpath=yes
14690   if test "$with_gnu_ld" = yes; then
14691     need_lib_prefix=no
14692   fi
14693   need_version=yes
14694   ;;
14695
14696 sysv4 | sysv4.3*)
14697   version_type=linux
14698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699   soname_spec='${libname}${release}${shared_ext}$major'
14700   shlibpath_var=LD_LIBRARY_PATH
14701   case $host_vendor in
14702     sni)
14703       shlibpath_overrides_runpath=no
14704       need_lib_prefix=no
14705       runpath_var=LD_RUN_PATH
14706       ;;
14707     siemens)
14708       need_lib_prefix=no
14709       ;;
14710     motorola)
14711       need_lib_prefix=no
14712       need_version=no
14713       shlibpath_overrides_runpath=no
14714       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14715       ;;
14716   esac
14717   ;;
14718
14719 sysv4*MP*)
14720   if test -d /usr/nec ;then
14721     version_type=linux
14722     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14723     soname_spec='$libname${shared_ext}.$major'
14724     shlibpath_var=LD_LIBRARY_PATH
14725   fi
14726   ;;
14727
14728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14729   version_type=freebsd-elf
14730   need_lib_prefix=no
14731   need_version=no
14732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14733   soname_spec='${libname}${release}${shared_ext}$major'
14734   shlibpath_var=LD_LIBRARY_PATH
14735   shlibpath_overrides_runpath=yes
14736   hardcode_into_libs=yes
14737   if test "$with_gnu_ld" = yes; then
14738     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14739   else
14740     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14741     case $host_os in
14742       sco3.2v5*)
14743         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14744         ;;
14745     esac
14746   fi
14747   sys_lib_dlsearch_path_spec='/usr/lib'
14748   ;;
14749
14750 tpf*)
14751   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14752   version_type=linux
14753   need_lib_prefix=no
14754   need_version=no
14755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756   shlibpath_var=LD_LIBRARY_PATH
14757   shlibpath_overrides_runpath=no
14758   hardcode_into_libs=yes
14759   ;;
14760
14761 uts4*)
14762   version_type=linux
14763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764   soname_spec='${libname}${release}${shared_ext}$major'
14765   shlibpath_var=LD_LIBRARY_PATH
14766   ;;
14767
14768 *)
14769   dynamic_linker=no
14770   ;;
14771 esac
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14773 $as_echo "$dynamic_linker" >&6; }
14774 test "$dynamic_linker" = no && can_build_shared=no
14775
14776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14777 if test "$GCC" = yes; then
14778   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14779 fi
14780
14781 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14782   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14783 fi
14784 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14785   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14786 fi
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14826 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14827 hardcode_action_CXX=
14828 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14829    test -n "$runpath_var_CXX" ||
14830    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14831
14832   # We can hardcode non-existent directories.
14833   if test "$hardcode_direct_CXX" != no &&
14834      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14835      # have to relink, otherwise we might link with an installed library
14836      # when we should be linking with a yet-to-be-installed one
14837      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14838      test "$hardcode_minus_L_CXX" != no; then
14839     # Linking always hardcodes the temporary library directory.
14840     hardcode_action_CXX=relink
14841   else
14842     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14843     hardcode_action_CXX=immediate
14844   fi
14845 else
14846   # We cannot hardcode anything, or else we can only hardcode existing
14847   # directories.
14848   hardcode_action_CXX=unsupported
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14851 $as_echo "$hardcode_action_CXX" >&6; }
14852
14853 if test "$hardcode_action_CXX" = relink ||
14854    test "$inherit_rpath_CXX" = yes; then
14855   # Fast installation is not supported
14856   enable_fast_install=no
14857 elif test "$shlibpath_overrides_runpath" = yes ||
14858      test "$enable_shared" = no; then
14859   # Fast installation is not necessary
14860   enable_fast_install=needless
14861 fi
14862
14863
14864
14865
14866
14867
14868
14869   fi # test -n "$compiler"
14870
14871   CC=$lt_save_CC
14872   CFLAGS=$lt_save_CFLAGS
14873   LDCXX=$LD
14874   LD=$lt_save_LD
14875   GCC=$lt_save_GCC
14876   with_gnu_ld=$lt_save_with_gnu_ld
14877   lt_cv_path_LDCXX=$lt_cv_path_LD
14878   lt_cv_path_LD=$lt_save_path_LD
14879   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14880   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14881 fi # test "$_lt_caught_CXX_error" != yes
14882
14883 ac_ext=c
14884 ac_cpp='$CPP $CPPFLAGS'
14885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901         ac_config_commands="$ac_config_commands libtool"
14902
14903
14904
14905
14906 # Only expand once:
14907
14908
14909
14910 case "$host" in
14911         *-*-mingw*|*-*-cygwin*)
14912
14913 $as_echo "#define PLATFORM_WIN32 1" >>confdefs.h
14914
14915                 opengl_LIBS="-lunsupported_platform"
14916                 PLATFORM_STRING="Win32"
14917                 ;;
14918         *-*-linux*)
14919
14920 $as_echo "#define PLATFORM_LINUX 1" >>confdefs.h
14921
14922                 opengl_LIBS="-lGL -lGLU -lglut"
14923                 PLATFORM_STRING="Linux"
14924                 ;;
14925         *-*-darwin*)
14926                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hello" >&5
14927 $as_echo "$as_me: WARNING: Hello" >&2;}
14928
14929 $as_echo "#define PLATFORM_APPLE 1" >>confdefs.h
14930
14931                 opengl_LIBS="-framework AGL -framework OpenGL -framework GLUT"
14932                 PLATFORM_STRING="Apple"
14933                 ;;
14934         *)
14935                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please add $host to configure.ac checks!" >&5
14936 $as_echo "$as_me: WARNING: *** Please add $host to configure.ac checks!" >&2;}
14937                 ;;
14938 esac
14939
14940
14941 case "$host" in
14942         i?86-* | k?-* | athlon-* | pentium*-)
14943
14944 $as_echo "#define ARCH_X86 1" >>confdefs.h
14945
14946                 ARCH_SPECIFIC_CFLAGS=""
14947                 ARCH_STRING="X86"
14948                 ;;
14949         x86_64-*)
14950
14951 $as_echo "#define ARCH_X86_64 1" >>confdefs.h
14952
14953                 ARCH_SPECIFIC_CFLAGS="-DUSE_ADDR64"
14954                 ARCH_STRING="X86-64"
14955                 ;;
14956         ppc-* | powerpc-*)
14957                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HI THERE!" >&5
14958 $as_echo "$as_me: WARNING: HI THERE!" >&2;}
14959
14960 $as_echo "#define ARCH_PPC 1" >>confdefs.h
14961
14962                 ARCH_SPECIFIC_CFLAGS=""
14963                 ARCH_STRING="PowerPC"
14964                 ;;
14965         *)
14966                 as_fn_error $? "Unknown Architecture" "$LINENO" 5
14967                 ;;
14968 esac
14969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14970 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14971 if ${ac_cv_c_bigendian+:} false; then :
14972   $as_echo_n "(cached) " >&6
14973 else
14974   ac_cv_c_bigendian=unknown
14975     # See if we're dealing with a universal compiler.
14976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h.  */
14978 #ifndef __APPLE_CC__
14979                not a universal capable compiler
14980              #endif
14981              typedef int dummy;
14982
14983 _ACEOF
14984 if ac_fn_c_try_compile "$LINENO"; then :
14985
14986         # Check for potential -arch flags.  It is not universal unless
14987         # there are at least two -arch flags with different values.
14988         ac_arch=
14989         ac_prev=
14990         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14991          if test -n "$ac_prev"; then
14992            case $ac_word in
14993              i?86 | x86_64 | ppc | ppc64)
14994                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14995                  ac_arch=$ac_word
14996                else
14997                  ac_cv_c_bigendian=universal
14998                  break
14999                fi
15000                ;;
15001            esac
15002            ac_prev=
15003          elif test "x$ac_word" = "x-arch"; then
15004            ac_prev=arch
15005          fi
15006        done
15007 fi
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15009     if test $ac_cv_c_bigendian = unknown; then
15010       # See if sys/param.h defines the BYTE_ORDER macro.
15011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h.  */
15013 #include <sys/types.h>
15014              #include <sys/param.h>
15015
15016 int
15017 main ()
15018 {
15019 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15020                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15021                      && LITTLE_ENDIAN)
15022               bogus endian macros
15023              #endif
15024
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_compile "$LINENO"; then :
15030   # It does; now see whether it defined to BIG_ENDIAN or not.
15031          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15033 #include <sys/types.h>
15034                 #include <sys/param.h>
15035
15036 int
15037 main ()
15038 {
15039 #if BYTE_ORDER != BIG_ENDIAN
15040                  not big endian
15041                 #endif
15042
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048   ac_cv_c_bigendian=yes
15049 else
15050   ac_cv_c_bigendian=no
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055     fi
15056     if test $ac_cv_c_bigendian = unknown; then
15057       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15058       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h.  */
15060 #include <limits.h>
15061
15062 int
15063 main ()
15064 {
15065 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15066               bogus endian macros
15067              #endif
15068
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 if ac_fn_c_try_compile "$LINENO"; then :
15074   # It does; now see whether it defined to _BIG_ENDIAN or not.
15075          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h.  */
15077 #include <limits.h>
15078
15079 int
15080 main ()
15081 {
15082 #ifndef _BIG_ENDIAN
15083                  not big endian
15084                 #endif
15085
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_c_try_compile "$LINENO"; then :
15091   ac_cv_c_bigendian=yes
15092 else
15093   ac_cv_c_bigendian=no
15094 fi
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 fi
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098     fi
15099     if test $ac_cv_c_bigendian = unknown; then
15100       # Compile a test program.
15101       if test "$cross_compiling" = yes; then :
15102   # Try to guess by grepping values from an object file.
15103          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h.  */
15105 short int ascii_mm[] =
15106                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15107                 short int ascii_ii[] =
15108                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15109                 int use_ascii (int i) {
15110                   return ascii_mm[i] + ascii_ii[i];
15111                 }
15112                 short int ebcdic_ii[] =
15113                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15114                 short int ebcdic_mm[] =
15115                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15116                 int use_ebcdic (int i) {
15117                   return ebcdic_mm[i] + ebcdic_ii[i];
15118                 }
15119                 extern int foo;
15120
15121 int
15122 main ()
15123 {
15124 return use_ascii (foo) == use_ebcdic (foo);
15125   ;
15126   return 0;
15127 }
15128 _ACEOF
15129 if ac_fn_c_try_compile "$LINENO"; then :
15130   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15131               ac_cv_c_bigendian=yes
15132             fi
15133             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15134               if test "$ac_cv_c_bigendian" = unknown; then
15135                 ac_cv_c_bigendian=no
15136               else
15137                 # finding both strings is unlikely to happen, but who knows?
15138                 ac_cv_c_bigendian=unknown
15139               fi
15140             fi
15141 fi
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 else
15144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h.  */
15146 $ac_includes_default
15147 int
15148 main ()
15149 {
15150
15151              /* Are we little or big endian?  From Harbison&Steele.  */
15152              union
15153              {
15154                long int l;
15155                char c[sizeof (long int)];
15156              } u;
15157              u.l = 1;
15158              return u.c[sizeof (long int) - 1] == 1;
15159
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 if ac_fn_c_try_run "$LINENO"; then :
15165   ac_cv_c_bigendian=no
15166 else
15167   ac_cv_c_bigendian=yes
15168 fi
15169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15170   conftest.$ac_objext conftest.beam conftest.$ac_ext
15171 fi
15172
15173     fi
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15176 $as_echo "$ac_cv_c_bigendian" >&6; }
15177  case $ac_cv_c_bigendian in #(
15178    yes)
15179      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15180 ;; #(
15181    no)
15182       ;; #(
15183    universal)
15184
15185 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15186
15187      ;; #(
15188    *)
15189      as_fn_error $? "unknown endianness
15190  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15191  esac
15192
15193
15194
15195 #----------------------------------------------------------------------------
15196 # Setup for the configuration header.
15197 #----------------------------------------------------------------------------
15198 ac_config_headers="$ac_config_headers config.h"
15199
15200 #----------------------------------------------------------------------------
15201 # Package configuration switches.
15202 #----------------------------------------------------------------------------
15203 # Check whether --enable-multithreaded was given.
15204 if test "${enable_multithreaded+set}" = set; then :
15205   enableval=$enable_multithreaded; disable_multithreaded=no
15206 else
15207   disable_multithreaded=yes
15208 fi
15209
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking BulletMultiThreaded" >&5
15211 $as_echo_n "checking BulletMultiThreaded... " >&6; }
15212 if test "$disable_multithreaded" = yes; then :
15213   build_multithreaded=no
15214 else
15215   build_multithreaded=yes
15216 fi
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_multithreaded" >&5
15218 $as_echo "$build_multithreaded" >&6; }
15219  if test "$build_multithreaded" = yes; then
15220   CONDITIONAL_BUILD_MULTITHREADED_TRUE=
15221   CONDITIONAL_BUILD_MULTITHREADED_FALSE='#'
15222 else
15223   CONDITIONAL_BUILD_MULTITHREADED_TRUE='#'
15224   CONDITIONAL_BUILD_MULTITHREADED_FALSE=
15225 fi
15226
15227
15228 # Check whether --enable-demos was given.
15229 if test "${enable_demos+set}" = set; then :
15230   enableval=$enable_demos;
15231 else
15232   enable_demos=yes
15233 fi
15234
15235  if false; then
15236   CONDITIONAL_BUILD_DEMOS_TRUE=
15237   CONDITIONAL_BUILD_DEMOS_FALSE='#'
15238 else
15239   CONDITIONAL_BUILD_DEMOS_TRUE='#'
15240   CONDITIONAL_BUILD_DEMOS_FALSE=
15241 fi
15242
15243
15244
15245
15246 case "$host" in
15247         *-*-darwin*)
15248
15249 $as_echo "#define HAVE_APPLE_OPENGL_FRAMEWORK 1" >>confdefs.h
15250
15251                   GL_LIBS="-framework GLUT -framework OpenGL -framework Carbon -framework AGL"
15252                   have_glut=yes
15253                   have_glu=yes
15254                   have_gl=yes
15255                 ;;
15256         *)
15257                      have_gl_headers=yes
15258                       for ac_header in GL/gl.h GL/glu.h GL/glext.h GL/glut.h
15259 do :
15260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef WIN32
15262                              #include <windows.h>
15263                              #endif
15264                              #if HAVE_GL_GL_H
15265                              #include <GL/gl.h>
15266                              #endif
15267                                  #if HAVE_GL_GLU_H
15268                              #include <GL/glu.h>
15269                              #endif
15270
15271 "
15272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15273   cat >>confdefs.h <<_ACEOF
15274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15275 _ACEOF
15276
15277 else
15278   have_gl_headers=no
15279 fi
15280
15281 done
15282
15283                       have_gl=no
15284                       have_glu=no
15285                       have_glut=no
15286                       TEMP_LDFLAGS="$LDFLAGS"
15287                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
15288 $as_echo_n "checking for main in -lGL... " >&6; }
15289 if ${ac_cv_lib_GL_main+:} false; then :
15290   $as_echo_n "(cached) " >&6
15291 else
15292   ac_check_lib_save_LIBS=$LIBS
15293 LIBS="-lGL  $LIBS"
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h.  */
15296
15297
15298 int
15299 main ()
15300 {
15301 return main ();
15302   ;
15303   return 0;
15304 }
15305 _ACEOF
15306 if ac_fn_c_try_link "$LINENO"; then :
15307   ac_cv_lib_GL_main=yes
15308 else
15309   ac_cv_lib_GL_main=no
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext \
15312     conftest$ac_exeext conftest.$ac_ext
15313 LIBS=$ac_check_lib_save_LIBS
15314 fi
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
15316 $as_echo "$ac_cv_lib_GL_main" >&6; }
15317 if test "x$ac_cv_lib_GL_main" = xyes; then :
15318   GL_LIBS="-lGL"; have_gl=yes
15319 fi
15320
15321                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLU" >&5
15322 $as_echo_n "checking for main in -lGLU... " >&6; }
15323 if ${ac_cv_lib_GLU_main+:} false; then :
15324   $as_echo_n "(cached) " >&6
15325 else
15326   ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lGLU -lGL $LIBS"
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h.  */
15330
15331
15332 int
15333 main ()
15334 {
15335 return main ();
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 if ac_fn_c_try_link "$LINENO"; then :
15341   ac_cv_lib_GLU_main=yes
15342 else
15343   ac_cv_lib_GLU_main=no
15344 fi
15345 rm -f core conftest.err conftest.$ac_objext \
15346     conftest$ac_exeext conftest.$ac_ext
15347 LIBS=$ac_check_lib_save_LIBS
15348 fi
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_main" >&5
15350 $as_echo "$ac_cv_lib_GLU_main" >&6; }
15351 if test "x$ac_cv_lib_GLU_main" = xyes; then :
15352   GL_LIBS="-lGLU $GL_LIBS"; have_glu=yes
15353 fi
15354
15355                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLUT" >&5
15356 $as_echo_n "checking for main in -lGLUT... " >&6; }
15357 if ${ac_cv_lib_GLUT_main+:} false; then :
15358   $as_echo_n "(cached) " >&6
15359 else
15360   ac_check_lib_save_LIBS=$LIBS
15361 LIBS="-lGLUT -lGLUT $LIBS"
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h.  */
15364
15365
15366 int
15367 main ()
15368 {
15369 return main ();
15370   ;
15371   return 0;
15372 }
15373 _ACEOF
15374 if ac_fn_c_try_link "$LINENO"; then :
15375   ac_cv_lib_GLUT_main=yes
15376 else
15377   ac_cv_lib_GLUT_main=no
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext \
15380     conftest$ac_exeext conftest.$ac_ext
15381 LIBS=$ac_check_lib_save_LIBS
15382 fi
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLUT_main" >&5
15384 $as_echo "$ac_cv_lib_GLUT_main" >&6; }
15385 if test "x$ac_cv_lib_GLUT_main" = xyes; then :
15386   GL_LIBS="-lGLUT -LGLU  $GL_LIBS"; have_glut=yes
15387 fi
15388
15389                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5
15390 $as_echo_n "checking for main in -lopengl32... " >&6; }
15391 if ${ac_cv_lib_opengl32_main+:} false; then :
15392   $as_echo_n "(cached) " >&6
15393 else
15394   ac_check_lib_save_LIBS=$LIBS
15395 LIBS="-lopengl32  $LIBS"
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h.  */
15398
15399
15400 int
15401 main ()
15402 {
15403 return main ();
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 if ac_fn_c_try_link "$LINENO"; then :
15409   ac_cv_lib_opengl32_main=yes
15410 else
15411   ac_cv_lib_opengl32_main=no
15412 fi
15413 rm -f core conftest.err conftest.$ac_objext \
15414     conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15416 fi
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_main" >&5
15418 $as_echo "$ac_cv_lib_opengl32_main" >&6; }
15419 if test "x$ac_cv_lib_opengl32_main" = xyes; then :
15420   GL_LIBS="-lopengl32"; have_gl=yes
15421 fi
15422
15423                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglu32" >&5
15424 $as_echo_n "checking for main in -lglu32... " >&6; }
15425 if ${ac_cv_lib_glu32_main+:} false; then :
15426   $as_echo_n "(cached) " >&6
15427 else
15428   ac_check_lib_save_LIBS=$LIBS
15429 LIBS="-lglu32 -lopengl32 $LIBS"
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h.  */
15432
15433
15434 int
15435 main ()
15436 {
15437 return main ();
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_c_try_link "$LINENO"; then :
15443   ac_cv_lib_glu32_main=yes
15444 else
15445   ac_cv_lib_glu32_main=no
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext \
15448     conftest$ac_exeext conftest.$ac_ext
15449 LIBS=$ac_check_lib_save_LIBS
15450 fi
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glu32_main" >&5
15452 $as_echo "$ac_cv_lib_glu32_main" >&6; }
15453 if test "x$ac_cv_lib_glu32_main" = xyes; then :
15454   GL_LIBS="-lglu32 $GL_LIBS"; have_glu=yes
15455 fi
15456
15457                       LDFLAGS="$TEMP_LDFLAGS"
15458                       if test $have_gl = no -o $have_glu = no -o $have_gl_headers = no; then
15459                         if test x$enable_demos = xyes; then
15460                           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&5
15461 $as_echo "$as_me: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&2;}
15462                         fi
15463                         enable_demos=no
15464                       else
15465                       { $as_echo "$as_me:${as_lineno-$LINENO}: Found OpenGL" >&5
15466 $as_echo "$as_me: Found OpenGL" >&6;}
15467                       fi
15468                 ;;
15469 esac
15470
15471
15472
15473
15474
15475
15476 if test "x$enable_demos" != xno; then
15477     { $as_echo "$as_me:${as_lineno-$LINENO}: Building Bullet demos" >&5
15478 $as_echo "$as_me: Building Bullet demos" >&6;}
15479      if true; then
15480   CONDITIONAL_BUILD_DEMOS_TRUE=
15481   CONDITIONAL_BUILD_DEMOS_FALSE='#'
15482 else
15483   CONDITIONAL_BUILD_DEMOS_TRUE='#'
15484   CONDITIONAL_BUILD_DEMOS_FALSE=
15485 fi
15486
15487 fi
15488
15489
15490
15491 # Check whether --enable-debug was given.
15492 if test "${enable_debug+set}" = set; then :
15493   enableval=$enable_debug;
15494 else
15495   enable_debug=no
15496 fi
15497
15498
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build mode" >&5
15500 $as_echo_n "checking build mode... " >&6; }
15501 if test $enable_debug = yes; then :
15502   build_mode=debug
15503 else
15504   build_mode=optimize
15505 fi
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_mode" >&5
15507 $as_echo "$build_mode" >&6; }
15508
15509
15510
15511 CFLAGS="$ARCH_SPECIFIC_CFLAGS $CFLAGS"
15512 CXXFLAGS="$ARCH_SPECIFIC_CFLAGS $CXXFLAGS $CFLAGS"
15513 #----------------------------------------------------------------------------
15514 # Emit generated files.
15515 #----------------------------------------------------------------------------
15516 ac_config_files="$ac_config_files bullet.pc Makefile Demos/Makefile Demos/SoftDemo/Makefile Demos/AllBulletDemos/Makefile Demos/MultiThreadedDemo/Makefile Demos/OpenGL/Makefile Demos/BasicDemo/Makefile Demos/CcdPhysicsDemo/Makefile Demos/VehicleDemo/Makefile Demos/TerrainDemo/Makefile src/Makefile Extras/Makefile"
15517
15518 cat >confcache <<\_ACEOF
15519 # This file is a shell script that caches the results of configure
15520 # tests run on this system so they can be shared between configure
15521 # scripts and configure runs, see configure's option --config-cache.
15522 # It is not useful on other systems.  If it contains results you don't
15523 # want to keep, you may remove or edit it.
15524 #
15525 # config.status only pays attention to the cache file if you give it
15526 # the --recheck option to rerun configure.
15527 #
15528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15530 # following values.
15531
15532 _ACEOF
15533
15534 # The following way of writing the cache mishandles newlines in values,
15535 # but we know of no workaround that is simple, portable, and efficient.
15536 # So, we kill variables containing newlines.
15537 # Ultrix sh set writes to stderr and can't be redirected directly,
15538 # and sets the high bit in the cache file unless we assign to the vars.
15539 (
15540   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15541     eval ac_val=\$$ac_var
15542     case $ac_val in #(
15543     *${as_nl}*)
15544       case $ac_var in #(
15545       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15546 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15547       esac
15548       case $ac_var in #(
15549       _ | IFS | as_nl) ;; #(
15550       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15551       *) { eval $ac_var=; unset $ac_var;} ;;
15552       esac ;;
15553     esac
15554   done
15555
15556   (set) 2>&1 |
15557     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15558     *${as_nl}ac_space=\ *)
15559       # `set' does not quote correctly, so add quotes: double-quote
15560       # substitution turns \\\\ into \\, and sed turns \\ into \.
15561       sed -n \
15562         "s/'/'\\\\''/g;
15563           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15564       ;; #(
15565     *)
15566       # `set' quotes correctly as required by POSIX, so do not add quotes.
15567       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15568       ;;
15569     esac |
15570     sort
15571 ) |
15572   sed '
15573      /^ac_cv_env_/b end
15574      t clear
15575      :clear
15576      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15577      t end
15578      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15579      :end' >>confcache
15580 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15581   if test -w "$cache_file"; then
15582     if test "x$cache_file" != "x/dev/null"; then
15583       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15584 $as_echo "$as_me: updating cache $cache_file" >&6;}
15585       if test ! -f "$cache_file" || test -h "$cache_file"; then
15586         cat confcache >"$cache_file"
15587       else
15588         case $cache_file in #(
15589         */* | ?:*)
15590           mv -f confcache "$cache_file"$$ &&
15591           mv -f "$cache_file"$$ "$cache_file" ;; #(
15592         *)
15593           mv -f confcache "$cache_file" ;;
15594         esac
15595       fi
15596     fi
15597   else
15598     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15599 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15600   fi
15601 fi
15602 rm -f confcache
15603
15604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15605 # Let make expand exec_prefix.
15606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15607
15608 DEFS=-DHAVE_CONFIG_H
15609
15610 ac_libobjs=
15611 ac_ltlibobjs=
15612 U=
15613 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15614   # 1. Remove the extension, and $U if already installed.
15615   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15616   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15617   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15618   #    will be set to the directory where LIBOBJS objects are built.
15619   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15620   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15621 done
15622 LIBOBJS=$ac_libobjs
15623
15624 LTLIBOBJS=$ac_ltlibobjs
15625
15626
15627  if test -n "$EXEEXT"; then
15628   am__EXEEXT_TRUE=
15629   am__EXEEXT_FALSE='#'
15630 else
15631   am__EXEEXT_TRUE='#'
15632   am__EXEEXT_FALSE=
15633 fi
15634
15635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15636   as_fn_error $? "conditional \"AMDEP\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 fi
15639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15640   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 fi
15643 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15644   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 fi
15647
15648 if test -z "${CONDITIONAL_BUILD_MULTITHREADED_TRUE}" && test -z "${CONDITIONAL_BUILD_MULTITHREADED_FALSE}"; then
15649   as_fn_error $? "conditional \"CONDITIONAL_BUILD_MULTITHREADED\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 fi
15652 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15653   as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 fi
15656 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15657   as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 fi
15660
15661 : "${CONFIG_STATUS=./config.status}"
15662 ac_write_fail=0
15663 ac_clean_files_save=$ac_clean_files
15664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15667 as_write_fail=0
15668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15669 #! $SHELL
15670 # Generated by $as_me.
15671 # Run this file to recreate the current configuration.
15672 # Compiler output produced by configure, useful for debugging
15673 # configure, is in config.log if it exists.
15674
15675 debug=false
15676 ac_cs_recheck=false
15677 ac_cs_silent=false
15678
15679 SHELL=\${CONFIG_SHELL-$SHELL}
15680 export SHELL
15681 _ASEOF
15682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15683 ## -------------------- ##
15684 ## M4sh Initialization. ##
15685 ## -------------------- ##
15686
15687 # Be more Bourne compatible
15688 DUALCASE=1; export DUALCASE # for MKS sh
15689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15690   emulate sh
15691   NULLCMD=:
15692   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15693   # is contrary to our usage.  Disable this feature.
15694   alias -g '${1+"$@"}'='"$@"'
15695   setopt NO_GLOB_SUBST
15696 else
15697   case `(set -o) 2>/dev/null` in #(
15698   *posix*) :
15699     set -o posix ;; #(
15700   *) :
15701      ;;
15702 esac
15703 fi
15704
15705
15706 as_nl='
15707 '
15708 export as_nl
15709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15710 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15713 # Prefer a ksh shell builtin over an external printf program on Solaris,
15714 # but without wasting forks for bash or zsh.
15715 if test -z "$BASH_VERSION$ZSH_VERSION" \
15716     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15717   as_echo='print -r --'
15718   as_echo_n='print -rn --'
15719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15720   as_echo='printf %s\n'
15721   as_echo_n='printf %s'
15722 else
15723   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15724     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15725     as_echo_n='/usr/ucb/echo -n'
15726   else
15727     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15728     as_echo_n_body='eval
15729       arg=$1;
15730       case $arg in #(
15731       *"$as_nl"*)
15732         expr "X$arg" : "X\\(.*\\)$as_nl";
15733         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15734       esac;
15735       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15736     '
15737     export as_echo_n_body
15738     as_echo_n='sh -c $as_echo_n_body as_echo'
15739   fi
15740   export as_echo_body
15741   as_echo='sh -c $as_echo_body as_echo'
15742 fi
15743
15744 # The user is always right.
15745 if test "${PATH_SEPARATOR+set}" != set; then
15746   PATH_SEPARATOR=:
15747   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15748     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15749       PATH_SEPARATOR=';'
15750   }
15751 fi
15752
15753
15754 # IFS
15755 # We need space, tab and new line, in precisely that order.  Quoting is
15756 # there to prevent editors from complaining about space-tab.
15757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15758 # splitting by setting IFS to empty value.)
15759 IFS=" ""        $as_nl"
15760
15761 # Find who we are.  Look in the path if we contain no directory separator.
15762 as_myself=
15763 case $0 in #((
15764   *[\\/]* ) as_myself=$0 ;;
15765   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $PATH
15767 do
15768   IFS=$as_save_IFS
15769   test -z "$as_dir" && as_dir=.
15770     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15771   done
15772 IFS=$as_save_IFS
15773
15774      ;;
15775 esac
15776 # We did not find ourselves, most probably we were run as `sh COMMAND'
15777 # in which case we are not to be found in the path.
15778 if test "x$as_myself" = x; then
15779   as_myself=$0
15780 fi
15781 if test ! -f "$as_myself"; then
15782   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15783   exit 1
15784 fi
15785
15786 # Unset variables that we do not need and which cause bugs (e.g. in
15787 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15788 # suppresses any "Segmentation fault" message there.  '((' could
15789 # trigger a bug in pdksh 5.2.14.
15790 for as_var in BASH_ENV ENV MAIL MAILPATH
15791 do eval test x\${$as_var+set} = xset \
15792   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15793 done
15794 PS1='$ '
15795 PS2='> '
15796 PS4='+ '
15797
15798 # NLS nuisances.
15799 LC_ALL=C
15800 export LC_ALL
15801 LANGUAGE=C
15802 export LANGUAGE
15803
15804 # CDPATH.
15805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15806
15807
15808 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15809 # ----------------------------------------
15810 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15811 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15812 # script with STATUS, using 1 if that was 0.
15813 as_fn_error ()
15814 {
15815   as_status=$1; test $as_status -eq 0 && as_status=1
15816   if test "$4"; then
15817     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15818     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15819   fi
15820   $as_echo "$as_me: error: $2" >&2
15821   as_fn_exit $as_status
15822 } # as_fn_error
15823
15824
15825 # as_fn_set_status STATUS
15826 # -----------------------
15827 # Set $? to STATUS, without forking.
15828 as_fn_set_status ()
15829 {
15830   return $1
15831 } # as_fn_set_status
15832
15833 # as_fn_exit STATUS
15834 # -----------------
15835 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15836 as_fn_exit ()
15837 {
15838   set +e
15839   as_fn_set_status $1
15840   exit $1
15841 } # as_fn_exit
15842
15843 # as_fn_unset VAR
15844 # ---------------
15845 # Portably unset VAR.
15846 as_fn_unset ()
15847 {
15848   { eval $1=; unset $1;}
15849 }
15850 as_unset=as_fn_unset
15851 # as_fn_append VAR VALUE
15852 # ----------------------
15853 # Append the text in VALUE to the end of the definition contained in VAR. Take
15854 # advantage of any shell optimizations that allow amortized linear growth over
15855 # repeated appends, instead of the typical quadratic growth present in naive
15856 # implementations.
15857 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15858   eval 'as_fn_append ()
15859   {
15860     eval $1+=\$2
15861   }'
15862 else
15863   as_fn_append ()
15864   {
15865     eval $1=\$$1\$2
15866   }
15867 fi # as_fn_append
15868
15869 # as_fn_arith ARG...
15870 # ------------------
15871 # Perform arithmetic evaluation on the ARGs, and store the result in the
15872 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15873 # must be portable across $(()) and expr.
15874 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15875   eval 'as_fn_arith ()
15876   {
15877     as_val=$(( $* ))
15878   }'
15879 else
15880   as_fn_arith ()
15881   {
15882     as_val=`expr "$@" || test $? -eq 1`
15883   }
15884 fi # as_fn_arith
15885
15886
15887 if expr a : '\(a\)' >/dev/null 2>&1 &&
15888    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15889   as_expr=expr
15890 else
15891   as_expr=false
15892 fi
15893
15894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15895   as_basename=basename
15896 else
15897   as_basename=false
15898 fi
15899
15900 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15901   as_dirname=dirname
15902 else
15903   as_dirname=false
15904 fi
15905
15906 as_me=`$as_basename -- "$0" ||
15907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15908          X"$0" : 'X\(//\)$' \| \
15909          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15910 $as_echo X/"$0" |
15911     sed '/^.*\/\([^/][^/]*\)\/*$/{
15912             s//\1/
15913             q
15914           }
15915           /^X\/\(\/\/\)$/{
15916             s//\1/
15917             q
15918           }
15919           /^X\/\(\/\).*/{
15920             s//\1/
15921             q
15922           }
15923           s/.*/./; q'`
15924
15925 # Avoid depending upon Character Ranges.
15926 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15927 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15928 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15929 as_cr_digits='0123456789'
15930 as_cr_alnum=$as_cr_Letters$as_cr_digits
15931
15932 ECHO_C= ECHO_N= ECHO_T=
15933 case `echo -n x` in #(((((
15934 -n*)
15935   case `echo 'xy\c'` in
15936   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15937   xy)  ECHO_C='\c';;
15938   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15939        ECHO_T=' ';;
15940   esac;;
15941 *)
15942   ECHO_N='-n';;
15943 esac
15944
15945 rm -f conf$$ conf$$.exe conf$$.file
15946 if test -d conf$$.dir; then
15947   rm -f conf$$.dir/conf$$.file
15948 else
15949   rm -f conf$$.dir
15950   mkdir conf$$.dir 2>/dev/null
15951 fi
15952 if (echo >conf$$.file) 2>/dev/null; then
15953   if ln -s conf$$.file conf$$ 2>/dev/null; then
15954     as_ln_s='ln -s'
15955     # ... but there are two gotchas:
15956     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15957     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15958     # In both cases, we have to default to `cp -p'.
15959     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15960       as_ln_s='cp -p'
15961   elif ln conf$$.file conf$$ 2>/dev/null; then
15962     as_ln_s=ln
15963   else
15964     as_ln_s='cp -p'
15965   fi
15966 else
15967   as_ln_s='cp -p'
15968 fi
15969 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15970 rmdir conf$$.dir 2>/dev/null
15971
15972 if mkdir -p . 2>/dev/null; then
15973   as_mkdir_p='mkdir -p'
15974 elif mkdirs . 2>/dev/null; then
15975   as_mkdir_p='mkdirs'
15976 else
15977   as_mkdir_p=''
15978 fi
15979 test -d ./-p && rmdir ./-p
15980
15981 if test -x / >/dev/null 2>&1; then
15982   as_test_x='test -x'
15983 else
15984   if ls -dL / >/dev/null 2>&1; then
15985     as_ls_L_option=L
15986   else
15987     as_ls_L_option=
15988   fi
15989   as_test_x='
15990     eval sh -c '\''
15991       if test -d "$1"; then
15992         test -d "$1/.";
15993       else
15994         case $1 in #(
15995         -*)set "./$1";;
15996         esac;
15997         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15998         ???[sx]*):;;*)false;;esac;fi
15999     '\'' sh
16000   '
16001 fi
16002 as_executable_p=$as_test_x
16003
16004 # Sed expression to map a string onto a valid CPP name.
16005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16006
16007 # Sed expression to map a string onto a valid variable name.
16008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16009
16010
16011 exec 6>&1
16012 ## ----------------------------------- ##
16013 ## Main body of $CONFIG_STATUS script. ##
16014 ## ----------------------------------- ##
16015 _ASEOF
16016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16017
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 # Save the log message, to keep $0 and so on meaningful, and to
16020 # report actual input values of CONFIG_FILES etc. instead of their
16021 # values after options handling.
16022 ac_log="
16023 This file was extended by bullet $as_me 2.81, which was
16024 generated by GNU Autoconf 2.68.  Invocation command line was
16025
16026   CONFIG_FILES    = $CONFIG_FILES
16027   CONFIG_HEADERS  = $CONFIG_HEADERS
16028   CONFIG_LINKS    = $CONFIG_LINKS
16029   CONFIG_COMMANDS = $CONFIG_COMMANDS
16030   $ $0 $@
16031
16032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16033 "
16034
16035 _ACEOF
16036
16037 case $ac_config_files in *"
16038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16039 esac
16040
16041 case $ac_config_headers in *"
16042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16043 esac
16044
16045
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047 # Files that config.status was made for.
16048 config_files="$ac_config_files"
16049 config_headers="$ac_config_headers"
16050 config_commands="$ac_config_commands"
16051
16052 _ACEOF
16053
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055 ac_cs_usage="\
16056 \`$as_me' instantiates files and other configuration actions
16057 from templates according to the current configuration.  Unless the files
16058 and actions are specified as TAGs, all are instantiated by default.
16059
16060 Usage: $0 [OPTION]... [TAG]...
16061
16062   -h, --help       print this help, then exit
16063   -V, --version    print version number and configuration settings, then exit
16064       --config     print configuration, then exit
16065   -q, --quiet, --silent
16066                    do not print progress messages
16067   -d, --debug      don't remove temporary files
16068       --recheck    update $as_me by reconfiguring in the same conditions
16069       --file=FILE[:TEMPLATE]
16070                    instantiate the configuration file FILE
16071       --header=FILE[:TEMPLATE]
16072                    instantiate the configuration header FILE
16073
16074 Configuration files:
16075 $config_files
16076
16077 Configuration headers:
16078 $config_headers
16079
16080 Configuration commands:
16081 $config_commands
16082
16083 Report bugs to <bullet@erwincoumans.com>."
16084
16085 _ACEOF
16086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16087 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16088 ac_cs_version="\\
16089 bullet config.status 2.81
16090 configured by $0, generated by GNU Autoconf 2.68,
16091   with options \\"\$ac_cs_config\\"
16092
16093 Copyright (C) 2010 Free Software Foundation, Inc.
16094 This config.status script is free software; the Free Software Foundation
16095 gives unlimited permission to copy, distribute and modify it."
16096
16097 ac_pwd='$ac_pwd'
16098 srcdir='$srcdir'
16099 INSTALL='$INSTALL'
16100 MKDIR_P='$MKDIR_P'
16101 AWK='$AWK'
16102 test -n "\$AWK" || AWK=awk
16103 _ACEOF
16104
16105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106 # The default lists apply if the user does not specify any file.
16107 ac_need_defaults=:
16108 while test $# != 0
16109 do
16110   case $1 in
16111   --*=?*)
16112     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16113     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16114     ac_shift=:
16115     ;;
16116   --*=)
16117     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16118     ac_optarg=
16119     ac_shift=:
16120     ;;
16121   *)
16122     ac_option=$1
16123     ac_optarg=$2
16124     ac_shift=shift
16125     ;;
16126   esac
16127
16128   case $ac_option in
16129   # Handling of the options.
16130   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16131     ac_cs_recheck=: ;;
16132   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16133     $as_echo "$ac_cs_version"; exit ;;
16134   --config | --confi | --conf | --con | --co | --c )
16135     $as_echo "$ac_cs_config"; exit ;;
16136   --debug | --debu | --deb | --de | --d | -d )
16137     debug=: ;;
16138   --file | --fil | --fi | --f )
16139     $ac_shift
16140     case $ac_optarg in
16141     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16142     '') as_fn_error $? "missing file argument" ;;
16143     esac
16144     as_fn_append CONFIG_FILES " '$ac_optarg'"
16145     ac_need_defaults=false;;
16146   --header | --heade | --head | --hea )
16147     $ac_shift
16148     case $ac_optarg in
16149     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16150     esac
16151     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16152     ac_need_defaults=false;;
16153   --he | --h)
16154     # Conflict between --help and --header
16155     as_fn_error $? "ambiguous option: \`$1'
16156 Try \`$0 --help' for more information.";;
16157   --help | --hel | -h )
16158     $as_echo "$ac_cs_usage"; exit ;;
16159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16160   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16161     ac_cs_silent=: ;;
16162
16163   # This is an error.
16164   -*) as_fn_error $? "unrecognized option: \`$1'
16165 Try \`$0 --help' for more information." ;;
16166
16167   *) as_fn_append ac_config_targets " $1"
16168      ac_need_defaults=false ;;
16169
16170   esac
16171   shift
16172 done
16173
16174 ac_configure_extra_args=
16175
16176 if $ac_cs_silent; then
16177   exec 6>/dev/null
16178   ac_configure_extra_args="$ac_configure_extra_args --silent"
16179 fi
16180
16181 _ACEOF
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 if \$ac_cs_recheck; then
16184   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16185   shift
16186   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16187   CONFIG_SHELL='$SHELL'
16188   export CONFIG_SHELL
16189   exec "\$@"
16190 fi
16191
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194 exec 5>>config.log
16195 {
16196   echo
16197   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16198 ## Running $as_me. ##
16199 _ASBOX
16200   $as_echo "$ac_log"
16201 } >&5
16202
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 #
16206 # INIT-COMMANDS
16207 #
16208 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16209
16210
16211 # The HP-UX ksh and POSIX shell print the target directory to stdout
16212 # if CDPATH is set.
16213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16214
16215 sed_quote_subst='$sed_quote_subst'
16216 double_quote_subst='$double_quote_subst'
16217 delay_variable_subst='$delay_variable_subst'
16218 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16219 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16220 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16221 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16222 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16223 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16224 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16225 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16226 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16227 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16228 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16229 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16230 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16231 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16232 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16233 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16234 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16235 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16236 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16237 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16238 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16239 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16240 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16241 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16242 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16243 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16244 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16245 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16246 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16247 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16248 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16249 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16250 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16251 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16252 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16253 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16254 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16255 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16256 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16257 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16258 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16259 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16260 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16261 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16262 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16263 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16265 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16266 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16267 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16268 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16269 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16270 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16271 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16272 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16273 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"`'
16274 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16275 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16276 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16277 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16278 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16279 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16280 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16281 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16282 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16283 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16284 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16285 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16286 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16287 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16288 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16289 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16290 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16291 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16292 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16293 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16294 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16295 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16296 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16297 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16298 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16299 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16300 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16301 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16302 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16303 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16304 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16305 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16306 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16307 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16308 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16309 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16310 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16311 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16312 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16313 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16314 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16315 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16316 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16317 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16318 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16319 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16320 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16321 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16322 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16323 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16324 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16325 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16326 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16327 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16328 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16329 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16330 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16331 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16332 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16333 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16334 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16335 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16336 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16337 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16338 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16339 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16340 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16341 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16342 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16343 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16344 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16345 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16346 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16347 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16348 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16349 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16350 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16351 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16352 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16353 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16354 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16355 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16356 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16357 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16358 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16359 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16360 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16361 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16362 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16363 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16364 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16365 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16366 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16367 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16368 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16369 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16370 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16371 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16372 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16373 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16374 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16375 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16376 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16377 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16378 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16379 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16380 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16381 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16382 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16383 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16384 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16385 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16386 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16387 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16388 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16389 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16390 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16391 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16392 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16393 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16394 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16395 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16396 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16397 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16398 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16399 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16400 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16401 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16402 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16403
16404 LTCC='$LTCC'
16405 LTCFLAGS='$LTCFLAGS'
16406 compiler='$compiler_DEFAULT'
16407
16408 # A function that is used when there is no print builtin or printf.
16409 func_fallback_echo ()
16410 {
16411   eval 'cat <<_LTECHO_EOF
16412 \$1
16413 _LTECHO_EOF'
16414 }
16415
16416 # Quote evaled strings.
16417 for var in SHELL \
16418 ECHO \
16419 SED \
16420 GREP \
16421 EGREP \
16422 FGREP \
16423 LD \
16424 NM \
16425 LN_S \
16426 lt_SP2NL \
16427 lt_NL2SP \
16428 reload_flag \
16429 OBJDUMP \
16430 deplibs_check_method \
16431 file_magic_cmd \
16432 file_magic_glob \
16433 want_nocaseglob \
16434 DLLTOOL \
16435 sharedlib_from_linklib_cmd \
16436 AR \
16437 AR_FLAGS \
16438 archiver_list_spec \
16439 STRIP \
16440 RANLIB \
16441 CC \
16442 CFLAGS \
16443 compiler \
16444 lt_cv_sys_global_symbol_pipe \
16445 lt_cv_sys_global_symbol_to_cdecl \
16446 lt_cv_sys_global_symbol_to_c_name_address \
16447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16448 nm_file_list_spec \
16449 lt_prog_compiler_no_builtin_flag \
16450 lt_prog_compiler_pic \
16451 lt_prog_compiler_wl \
16452 lt_prog_compiler_static \
16453 lt_cv_prog_compiler_c_o \
16454 need_locks \
16455 MANIFEST_TOOL \
16456 DSYMUTIL \
16457 NMEDIT \
16458 LIPO \
16459 OTOOL \
16460 OTOOL64 \
16461 shrext_cmds \
16462 export_dynamic_flag_spec \
16463 whole_archive_flag_spec \
16464 compiler_needs_object \
16465 with_gnu_ld \
16466 allow_undefined_flag \
16467 no_undefined_flag \
16468 hardcode_libdir_flag_spec \
16469 hardcode_libdir_flag_spec_ld \
16470 hardcode_libdir_separator \
16471 exclude_expsyms \
16472 include_expsyms \
16473 file_list_spec \
16474 variables_saved_for_relink \
16475 libname_spec \
16476 library_names_spec \
16477 soname_spec \
16478 install_override_mode \
16479 finish_eval \
16480 old_striplib \
16481 striplib \
16482 compiler_lib_search_dirs \
16483 predep_objects \
16484 postdep_objects \
16485 predeps \
16486 postdeps \
16487 compiler_lib_search_path \
16488 LD_CXX \
16489 reload_flag_CXX \
16490 compiler_CXX \
16491 lt_prog_compiler_no_builtin_flag_CXX \
16492 lt_prog_compiler_pic_CXX \
16493 lt_prog_compiler_wl_CXX \
16494 lt_prog_compiler_static_CXX \
16495 lt_cv_prog_compiler_c_o_CXX \
16496 export_dynamic_flag_spec_CXX \
16497 whole_archive_flag_spec_CXX \
16498 compiler_needs_object_CXX \
16499 with_gnu_ld_CXX \
16500 allow_undefined_flag_CXX \
16501 no_undefined_flag_CXX \
16502 hardcode_libdir_flag_spec_CXX \
16503 hardcode_libdir_flag_spec_ld_CXX \
16504 hardcode_libdir_separator_CXX \
16505 exclude_expsyms_CXX \
16506 include_expsyms_CXX \
16507 file_list_spec_CXX \
16508 compiler_lib_search_dirs_CXX \
16509 predep_objects_CXX \
16510 postdep_objects_CXX \
16511 predeps_CXX \
16512 postdeps_CXX \
16513 compiler_lib_search_path_CXX; do
16514     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16515     *[\\\\\\\`\\"\\\$]*)
16516       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16517       ;;
16518     *)
16519       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16520       ;;
16521     esac
16522 done
16523
16524 # Double-quote double-evaled strings.
16525 for var in reload_cmds \
16526 old_postinstall_cmds \
16527 old_postuninstall_cmds \
16528 old_archive_cmds \
16529 extract_expsyms_cmds \
16530 old_archive_from_new_cmds \
16531 old_archive_from_expsyms_cmds \
16532 archive_cmds \
16533 archive_expsym_cmds \
16534 module_cmds \
16535 module_expsym_cmds \
16536 export_symbols_cmds \
16537 prelink_cmds \
16538 postlink_cmds \
16539 postinstall_cmds \
16540 postuninstall_cmds \
16541 finish_cmds \
16542 sys_lib_search_path_spec \
16543 sys_lib_dlsearch_path_spec \
16544 reload_cmds_CXX \
16545 old_archive_cmds_CXX \
16546 old_archive_from_new_cmds_CXX \
16547 old_archive_from_expsyms_cmds_CXX \
16548 archive_cmds_CXX \
16549 archive_expsym_cmds_CXX \
16550 module_cmds_CXX \
16551 module_expsym_cmds_CXX \
16552 export_symbols_cmds_CXX \
16553 prelink_cmds_CXX \
16554 postlink_cmds_CXX; do
16555     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16556     *[\\\\\\\`\\"\\\$]*)
16557       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16558       ;;
16559     *)
16560       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16561       ;;
16562     esac
16563 done
16564
16565 ac_aux_dir='$ac_aux_dir'
16566 xsi_shell='$xsi_shell'
16567 lt_shell_append='$lt_shell_append'
16568
16569 # See if we are running on zsh, and set the options which allow our
16570 # commands through without removal of \ escapes INIT.
16571 if test -n "\${ZSH_VERSION+set}" ; then
16572    setopt NO_GLOB_SUBST
16573 fi
16574
16575
16576     PACKAGE='$PACKAGE'
16577     VERSION='$VERSION'
16578     TIMESTAMP='$TIMESTAMP'
16579     RM='$RM'
16580     ofile='$ofile'
16581
16582
16583
16584
16585
16586
16587 _ACEOF
16588
16589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16590
16591 # Handling of arguments.
16592 for ac_config_target in $ac_config_targets
16593 do
16594   case $ac_config_target in
16595     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16596     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16597     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16598     "bullet.pc") CONFIG_FILES="$CONFIG_FILES bullet.pc" ;;
16599     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16600     "Demos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/Makefile" ;;
16601     "Demos/SoftDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/SoftDemo/Makefile" ;;
16602     "Demos/AllBulletDemos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/AllBulletDemos/Makefile" ;;
16603     "Demos/MultiThreadedDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/MultiThreadedDemo/Makefile" ;;
16604     "Demos/OpenGL/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/OpenGL/Makefile" ;;
16605     "Demos/BasicDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/BasicDemo/Makefile" ;;
16606     "Demos/CcdPhysicsDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/CcdPhysicsDemo/Makefile" ;;
16607     "Demos/VehicleDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/VehicleDemo/Makefile" ;;
16608     "Demos/TerrainDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/TerrainDemo/Makefile" ;;
16609     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16610     "Extras/Makefile") CONFIG_FILES="$CONFIG_FILES Extras/Makefile" ;;
16611
16612   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16613   esac
16614 done
16615
16616
16617 # If the user did not use the arguments to specify the items to instantiate,
16618 # then the envvar interface is used.  Set only those that are not.
16619 # We use the long form for the default assignment because of an extremely
16620 # bizarre bug on SunOS 4.1.3.
16621 if $ac_need_defaults; then
16622   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16623   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16624   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16625 fi
16626
16627 # Have a temporary directory for convenience.  Make it in the build tree
16628 # simply because there is no reason against having it here, and in addition,
16629 # creating and moving files from /tmp can sometimes cause problems.
16630 # Hook for its removal unless debugging.
16631 # Note that there is a small window in which the directory will not be cleaned:
16632 # after its creation but before its name has been assigned to `$tmp'.
16633 $debug ||
16634 {
16635   tmp= ac_tmp=
16636   trap 'exit_status=$?
16637   : "${ac_tmp:=$tmp}"
16638   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16639 ' 0
16640   trap 'as_fn_exit 1' 1 2 13 15
16641 }
16642 # Create a (secure) tmp directory for tmp files.
16643
16644 {
16645   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16646   test -d "$tmp"
16647 }  ||
16648 {
16649   tmp=./conf$$-$RANDOM
16650   (umask 077 && mkdir "$tmp")
16651 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16652 ac_tmp=$tmp
16653
16654 # Set up the scripts for CONFIG_FILES section.
16655 # No need to generate them if there are no CONFIG_FILES.
16656 # This happens for instance with `./config.status config.h'.
16657 if test -n "$CONFIG_FILES"; then
16658
16659
16660 ac_cr=`echo X | tr X '\015'`
16661 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16662 # But we know of no other shell where ac_cr would be empty at this
16663 # point, so we can use a bashism as a fallback.
16664 if test "x$ac_cr" = x; then
16665   eval ac_cr=\$\'\\r\'
16666 fi
16667 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16668 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16669   ac_cs_awk_cr='\\r'
16670 else
16671   ac_cs_awk_cr=$ac_cr
16672 fi
16673
16674 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16675 _ACEOF
16676
16677
16678 {
16679   echo "cat >conf$$subs.awk <<_ACEOF" &&
16680   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16681   echo "_ACEOF"
16682 } >conf$$subs.sh ||
16683   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16684 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16685 ac_delim='%!_!# '
16686 for ac_last_try in false false false false false :; do
16687   . ./conf$$subs.sh ||
16688     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16689
16690   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16691   if test $ac_delim_n = $ac_delim_num; then
16692     break
16693   elif $ac_last_try; then
16694     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16695   else
16696     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16697   fi
16698 done
16699 rm -f conf$$subs.sh
16700
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16703 _ACEOF
16704 sed -n '
16705 h
16706 s/^/S["/; s/!.*/"]=/
16707 p
16708 g
16709 s/^[^!]*!//
16710 :repl
16711 t repl
16712 s/'"$ac_delim"'$//
16713 t delim
16714 :nl
16715 h
16716 s/\(.\{148\}\)..*/\1/
16717 t more1
16718 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16719 p
16720 n
16721 b repl
16722 :more1
16723 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16724 p
16725 g
16726 s/.\{148\}//
16727 t nl
16728 :delim
16729 h
16730 s/\(.\{148\}\)..*/\1/
16731 t more2
16732 s/["\\]/\\&/g; s/^/"/; s/$/"/
16733 p
16734 b
16735 :more2
16736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16737 p
16738 g
16739 s/.\{148\}//
16740 t delim
16741 ' <conf$$subs.awk | sed '
16742 /^[^""]/{
16743   N
16744   s/\n//
16745 }
16746 ' >>$CONFIG_STATUS || ac_write_fail=1
16747 rm -f conf$$subs.awk
16748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 _ACAWK
16750 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16751   for (key in S) S_is_set[key] = 1
16752   FS = "\a"
16753
16754 }
16755 {
16756   line = $ 0
16757   nfields = split(line, field, "@")
16758   substed = 0
16759   len = length(field[1])
16760   for (i = 2; i < nfields; i++) {
16761     key = field[i]
16762     keylen = length(key)
16763     if (S_is_set[key]) {
16764       value = S[key]
16765       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16766       len += length(value) + length(field[++i])
16767       substed = 1
16768     } else
16769       len += 1 + keylen
16770   }
16771
16772   print line
16773 }
16774
16775 _ACAWK
16776 _ACEOF
16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16779   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16780 else
16781   cat
16782 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16783   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16784 _ACEOF
16785
16786 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16787 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16788 # trailing colons and then remove the whole line if VPATH becomes empty
16789 # (actually we leave an empty line to preserve line numbers).
16790 if test "x$srcdir" = x.; then
16791   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16792 h
16793 s///
16794 s/^/:/
16795 s/[      ]*$/:/
16796 s/:\$(srcdir):/:/g
16797 s/:\${srcdir}:/:/g
16798 s/:@srcdir@:/:/g
16799 s/^:*//
16800 s/:*$//
16801 x
16802 s/\(=[   ]*\).*/\1/
16803 G
16804 s/\n//
16805 s/^[^=]*=[       ]*$//
16806 }'
16807 fi
16808
16809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810 fi # test -n "$CONFIG_FILES"
16811
16812 # Set up the scripts for CONFIG_HEADERS section.
16813 # No need to generate them if there are no CONFIG_HEADERS.
16814 # This happens for instance with `./config.status Makefile'.
16815 if test -n "$CONFIG_HEADERS"; then
16816 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16817 BEGIN {
16818 _ACEOF
16819
16820 # Transform confdefs.h into an awk script `defines.awk', embedded as
16821 # here-document in config.status, that substitutes the proper values into
16822 # config.h.in to produce config.h.
16823
16824 # Create a delimiter string that does not exist in confdefs.h, to ease
16825 # handling of long lines.
16826 ac_delim='%!_!# '
16827 for ac_last_try in false false :; do
16828   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16829   if test -z "$ac_tt"; then
16830     break
16831   elif $ac_last_try; then
16832     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16833   else
16834     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16835   fi
16836 done
16837
16838 # For the awk script, D is an array of macro values keyed by name,
16839 # likewise P contains macro parameters if any.  Preserve backslash
16840 # newline sequences.
16841
16842 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16843 sed -n '
16844 s/.\{148\}/&'"$ac_delim"'/g
16845 t rset
16846 :rset
16847 s/^[     ]*#[    ]*define[       ][      ]*/ /
16848 t def
16849 d
16850 :def
16851 s/\\$//
16852 t bsnl
16853 s/["\\]/\\&/g
16854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16855 D["\1"]=" \3"/p
16856 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16857 d
16858 :bsnl
16859 s/["\\]/\\&/g
16860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16861 D["\1"]=" \3\\\\\\n"\\/p
16862 t cont
16863 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16864 t cont
16865 d
16866 :cont
16867 n
16868 s/.\{148\}/&'"$ac_delim"'/g
16869 t clear
16870 :clear
16871 s/\\$//
16872 t bsnlc
16873 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16874 d
16875 :bsnlc
16876 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16877 b cont
16878 ' <confdefs.h | sed '
16879 s/'"$ac_delim"'/"\\\
16880 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16881
16882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16883   for (key in D) D_is_set[key] = 1
16884   FS = "\a"
16885 }
16886 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16887   line = \$ 0
16888   split(line, arg, " ")
16889   if (arg[1] == "#") {
16890     defundef = arg[2]
16891     mac1 = arg[3]
16892   } else {
16893     defundef = substr(arg[1], 2)
16894     mac1 = arg[2]
16895   }
16896   split(mac1, mac2, "(") #)
16897   macro = mac2[1]
16898   prefix = substr(line, 1, index(line, defundef) - 1)
16899   if (D_is_set[macro]) {
16900     # Preserve the white space surrounding the "#".
16901     print prefix "define", macro P[macro] D[macro]
16902     next
16903   } else {
16904     # Replace #undef with comments.  This is necessary, for example,
16905     # in the case of _POSIX_SOURCE, which is predefined and required
16906     # on some systems where configure will not decide to define it.
16907     if (defundef == "undef") {
16908       print "/*", prefix defundef, macro, "*/"
16909       next
16910     }
16911   }
16912 }
16913 { print }
16914 _ACAWK
16915 _ACEOF
16916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16917   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16918 fi # test -n "$CONFIG_HEADERS"
16919
16920
16921 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16922 shift
16923 for ac_tag
16924 do
16925   case $ac_tag in
16926   :[FHLC]) ac_mode=$ac_tag; continue;;
16927   esac
16928   case $ac_mode$ac_tag in
16929   :[FHL]*:*);;
16930   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16931   :[FH]-) ac_tag=-:-;;
16932   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16933   esac
16934   ac_save_IFS=$IFS
16935   IFS=:
16936   set x $ac_tag
16937   IFS=$ac_save_IFS
16938   shift
16939   ac_file=$1
16940   shift
16941
16942   case $ac_mode in
16943   :L) ac_source=$1;;
16944   :[FH])
16945     ac_file_inputs=
16946     for ac_f
16947     do
16948       case $ac_f in
16949       -) ac_f="$ac_tmp/stdin";;
16950       *) # Look for the file first in the build tree, then in the source tree
16951          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16952          # because $ac_f cannot contain `:'.
16953          test -f "$ac_f" ||
16954            case $ac_f in
16955            [\\/$]*) false;;
16956            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16957            esac ||
16958            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16959       esac
16960       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16961       as_fn_append ac_file_inputs " '$ac_f'"
16962     done
16963
16964     # Let's still pretend it is `configure' which instantiates (i.e., don't
16965     # use $as_me), people would be surprised to read:
16966     #    /* config.h.  Generated by config.status.  */
16967     configure_input='Generated from '`
16968           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16969         `' by configure.'
16970     if test x"$ac_file" != x-; then
16971       configure_input="$ac_file.  $configure_input"
16972       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16973 $as_echo "$as_me: creating $ac_file" >&6;}
16974     fi
16975     # Neutralize special characters interpreted by sed in replacement strings.
16976     case $configure_input in #(
16977     *\&* | *\|* | *\\* )
16978        ac_sed_conf_input=`$as_echo "$configure_input" |
16979        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16980     *) ac_sed_conf_input=$configure_input;;
16981     esac
16982
16983     case $ac_tag in
16984     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16985       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16986     esac
16987     ;;
16988   esac
16989
16990   ac_dir=`$as_dirname -- "$ac_file" ||
16991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16992          X"$ac_file" : 'X\(//\)[^/]' \| \
16993          X"$ac_file" : 'X\(//\)$' \| \
16994          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16995 $as_echo X"$ac_file" |
16996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16997             s//\1/
16998             q
16999           }
17000           /^X\(\/\/\)[^/].*/{
17001             s//\1/
17002             q
17003           }
17004           /^X\(\/\/\)$/{
17005             s//\1/
17006             q
17007           }
17008           /^X\(\/\).*/{
17009             s//\1/
17010             q
17011           }
17012           s/.*/./; q'`
17013   { if test -n "$as_mkdir_p"; then
17014     $as_mkdir_p "$ac_dir"
17015   else
17016     as_dir="$ac_dir"
17017     as_dirs=
17018     while test ! -d "$as_dir"; do
17019       as_dirs="$as_dir $as_dirs"
17020       as_dir=`$as_dirname -- "$as_dir" ||
17021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17022          X"$as_dir" : 'X\(//\)[^/]' \| \
17023          X"$as_dir" : 'X\(//\)$' \| \
17024          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17025 $as_echo X"$as_dir" |
17026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17027             s//\1/
17028             q
17029           }
17030           /^X\(\/\/\)[^/].*/{
17031             s//\1/
17032             q
17033           }
17034           /^X\(\/\/\)$/{
17035             s//\1/
17036             q
17037           }
17038           /^X\(\/\).*/{
17039             s//\1/
17040             q
17041           }
17042           s/.*/./; q'`
17043     done
17044     test ! -n "$as_dirs" || mkdir $as_dirs
17045   fi || as_fn_error $? "cannot create directory \"$ac_dir\"" "$LINENO" 5; }
17046
17047   ac_builddir=.
17048
17049 case "$ac_dir" in
17050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17051 *)
17052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17053   # A ".." for each directory in $ac_dir_suffix.
17054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17055   case $ac_top_builddir_sub in
17056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17058   esac ;;
17059 esac
17060 ac_abs_top_builddir=$ac_pwd
17061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17062 # for backward compatibility:
17063 ac_top_builddir=$ac_top_build_prefix
17064
17065 case $srcdir in
17066   .)  # We are building in place.
17067     ac_srcdir=.
17068     ac_top_srcdir=$ac_top_builddir_sub
17069     ac_abs_top_srcdir=$ac_pwd ;;
17070   [\\/]* | ?:[\\/]* )  # Absolute name.
17071     ac_srcdir=$srcdir$ac_dir_suffix;
17072     ac_top_srcdir=$srcdir
17073     ac_abs_top_srcdir=$srcdir ;;
17074   *) # Relative name.
17075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17076     ac_top_srcdir=$ac_top_build_prefix$srcdir
17077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17078 esac
17079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17080
17081
17082   case $ac_mode in
17083   :F)
17084   #
17085   # CONFIG_FILE
17086   #
17087
17088   case $INSTALL in
17089   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17090   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17091   esac
17092   ac_MKDIR_P=$MKDIR_P
17093   case $MKDIR_P in
17094   [\\/$]* | ?:[\\/]* ) ;;
17095   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17096   esac
17097 _ACEOF
17098
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100 # If the template does not know about datarootdir, expand it.
17101 # FIXME: This hack should be removed a few years after 2.60.
17102 ac_datarootdir_hack=; ac_datarootdir_seen=
17103 ac_sed_dataroot='
17104 /datarootdir/ {
17105   p
17106   q
17107 }
17108 /@datadir@/p
17109 /@docdir@/p
17110 /@infodir@/p
17111 /@localedir@/p
17112 /@mandir@/p'
17113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17114 *datarootdir*) ac_datarootdir_seen=yes;;
17115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17118 _ACEOF
17119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17120   ac_datarootdir_hack='
17121   s&@datadir@&$datadir&g
17122   s&@docdir@&$docdir&g
17123   s&@infodir@&$infodir&g
17124   s&@localedir@&$localedir&g
17125   s&@mandir@&$mandir&g
17126   s&\\\${datarootdir}&$datarootdir&g' ;;
17127 esac
17128 _ACEOF
17129
17130 # Neutralize VPATH when `$srcdir' = `.'.
17131 # Shell code in configure.ac might set extrasub.
17132 # FIXME: do we really want to maintain this feature?
17133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17134 ac_sed_extra="$ac_vpsub
17135 $extrasub
17136 _ACEOF
17137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17138 :t
17139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17140 s|@configure_input@|$ac_sed_conf_input|;t t
17141 s&@top_builddir@&$ac_top_builddir_sub&;t t
17142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17143 s&@srcdir@&$ac_srcdir&;t t
17144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17145 s&@top_srcdir@&$ac_top_srcdir&;t t
17146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17147 s&@builddir@&$ac_builddir&;t t
17148 s&@abs_builddir@&$ac_abs_builddir&;t t
17149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17150 s&@INSTALL@&$ac_INSTALL&;t t
17151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17152 $ac_datarootdir_hack
17153 "
17154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17155   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17156
17157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17158   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17159   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17160       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17161   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17162 which seems to be undefined.  Please make sure it is defined" >&5
17163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17164 which seems to be undefined.  Please make sure it is defined" >&2;}
17165
17166   rm -f "$ac_tmp/stdin"
17167   case $ac_file in
17168   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17169   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17170   esac \
17171   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17172  ;;
17173   :H)
17174   #
17175   # CONFIG_HEADER
17176   #
17177   if test x"$ac_file" != x-; then
17178     {
17179       $as_echo "/* $configure_input  */" \
17180       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17181     } >"$ac_tmp/config.h" \
17182       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17183     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17184       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17186     else
17187       rm -f "$ac_file"
17188       mv "$ac_tmp/config.h" "$ac_file" \
17189         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17190     fi
17191   else
17192     $as_echo "/* $configure_input  */" \
17193       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17194       || as_fn_error $? "could not create -" "$LINENO" 5
17195   fi
17196 # Compute "$ac_file"'s index in $config_headers.
17197 _am_arg="$ac_file"
17198 _am_stamp_count=1
17199 for _am_header in $config_headers :; do
17200   case $_am_header in
17201     $_am_arg | $_am_arg:* )
17202       break ;;
17203     * )
17204       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17205   esac
17206 done
17207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17209          X"$_am_arg" : 'X\(//\)[^/]' \| \
17210          X"$_am_arg" : 'X\(//\)$' \| \
17211          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17212 $as_echo X"$_am_arg" |
17213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17214             s//\1/
17215             q
17216           }
17217           /^X\(\/\/\)[^/].*/{
17218             s//\1/
17219             q
17220           }
17221           /^X\(\/\/\)$/{
17222             s//\1/
17223             q
17224           }
17225           /^X\(\/\).*/{
17226             s//\1/
17227             q
17228           }
17229           s/.*/./; q'`/stamp-h$_am_stamp_count
17230  ;;
17231
17232   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17233 $as_echo "$as_me: executing $ac_file commands" >&6;}
17234  ;;
17235   esac
17236
17237
17238   case $ac_file$ac_mode in
17239     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17240   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17241   # are listed without --file.  Let's play safe and only enable the eval
17242   # if we detect the quoting.
17243   case $CONFIG_FILES in
17244   *\'*) eval set x "$CONFIG_FILES" ;;
17245   *)   set x $CONFIG_FILES ;;
17246   esac
17247   shift
17248   for mf
17249   do
17250     # Strip MF so we end up with the name of the file.
17251     mf=`echo "$mf" | sed -e 's/:.*$//'`
17252     # Check whether this is an Automake generated Makefile or not.
17253     # We used to match only the files named `Makefile.in', but
17254     # some people rename them; so instead we look at the file content.
17255     # Grep'ing the first line is not enough: some people post-process
17256     # each Makefile.in and add a new line on top of each file to say so.
17257     # Grep'ing the whole file is not good either: AIX grep has a line
17258     # limit of 2048, but all sed's we know have understand at least 4000.
17259     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17260       dirpart=`$as_dirname -- "$mf" ||
17261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17262          X"$mf" : 'X\(//\)[^/]' \| \
17263          X"$mf" : 'X\(//\)$' \| \
17264          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17265 $as_echo X"$mf" |
17266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17267             s//\1/
17268             q
17269           }
17270           /^X\(\/\/\)[^/].*/{
17271             s//\1/
17272             q
17273           }
17274           /^X\(\/\/\)$/{
17275             s//\1/
17276             q
17277           }
17278           /^X\(\/\).*/{
17279             s//\1/
17280             q
17281           }
17282           s/.*/./; q'`
17283     else
17284       continue
17285     fi
17286     # Extract the definition of DEPDIR, am__include, and am__quote
17287     # from the Makefile without running `make'.
17288     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17289     test -z "$DEPDIR" && continue
17290     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17291     test -z "am__include" && continue
17292     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17293     # When using ansi2knr, U may be empty or an underscore; expand it
17294     U=`sed -n 's/^U = //p' < "$mf"`
17295     # Find all dependency output files, they are included files with
17296     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17297     # simplest approach to changing $(DEPDIR) to its actual value in the
17298     # expansion.
17299     for file in `sed -n "
17300       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17301          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17302       # Make sure the directory exists.
17303       test -f "$dirpart/$file" && continue
17304       fdir=`$as_dirname -- "$file" ||
17305 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17306          X"$file" : 'X\(//\)[^/]' \| \
17307          X"$file" : 'X\(//\)$' \| \
17308          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17309 $as_echo X"$file" |
17310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17311             s//\1/
17312             q
17313           }
17314           /^X\(\/\/\)[^/].*/{
17315             s//\1/
17316             q
17317           }
17318           /^X\(\/\/\)$/{
17319             s//\1/
17320             q
17321           }
17322           /^X\(\/\).*/{
17323             s//\1/
17324             q
17325           }
17326           s/.*/./; q'`
17327       { if test -n "$as_mkdir_p"; then
17328     $as_mkdir_p $dirpart/$fdir
17329   else
17330     as_dir=$dirpart/$fdir
17331     as_dirs=
17332     while test ! -d "$as_dir"; do
17333       as_dirs="$as_dir $as_dirs"
17334       as_dir=`$as_dirname -- "$as_dir" ||
17335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17336          X"$as_dir" : 'X\(//\)[^/]' \| \
17337          X"$as_dir" : 'X\(//\)$' \| \
17338          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17339 $as_echo X"$as_dir" |
17340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17341             s//\1/
17342             q
17343           }
17344           /^X\(\/\/\)[^/].*/{
17345             s//\1/
17346             q
17347           }
17348           /^X\(\/\/\)$/{
17349             s//\1/
17350             q
17351           }
17352           /^X\(\/\).*/{
17353             s//\1/
17354             q
17355           }
17356           s/.*/./; q'`
17357     done
17358     test ! -n "$as_dirs" || mkdir $as_dirs
17359   fi || as_fn_error $? "cannot create directory $dirpart/$fdir" "$LINENO" 5; }
17360
17361       # echo "creating $dirpart/$file"
17362       echo '# dummy' > "$dirpart/$file"
17363     done
17364   done
17365 }
17366  ;;
17367     "libtool":C)
17368
17369     # See if we are running on zsh, and set the options which allow our
17370     # commands through without removal of \ escapes.
17371     if test -n "${ZSH_VERSION+set}" ; then
17372       setopt NO_GLOB_SUBST
17373     fi
17374
17375     cfgfile="${ofile}T"
17376     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17377     $RM "$cfgfile"
17378
17379     cat <<_LT_EOF >> "$cfgfile"
17380 #! $SHELL
17381
17382 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17383 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17386 #
17387 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17388 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17389 #                 Inc.
17390 #   Written by Gordon Matzigkeit, 1996
17391 #
17392 #   This file is part of GNU Libtool.
17393 #
17394 # GNU Libtool is free software; you can redistribute it and/or
17395 # modify it under the terms of the GNU General Public License as
17396 # published by the Free Software Foundation; either version 2 of
17397 # the License, or (at your option) any later version.
17398 #
17399 # As a special exception to the GNU General Public License,
17400 # if you distribute this file as part of a program or library that
17401 # is built using GNU Libtool, you may include this file under the
17402 # same distribution terms that you use for the rest of that program.
17403 #
17404 # GNU Libtool is distributed in the hope that it will be useful,
17405 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17407 # GNU General Public License for more details.
17408 #
17409 # You should have received a copy of the GNU General Public License
17410 # along with GNU Libtool; see the file COPYING.  If not, a copy
17411 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17412 # obtained by writing to the Free Software Foundation, Inc.,
17413 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17414
17415
17416 # The names of the tagged configurations supported by this script.
17417 available_tags="CXX "
17418
17419 # ### BEGIN LIBTOOL CONFIG
17420
17421 # Which release of libtool.m4 was used?
17422 macro_version=$macro_version
17423 macro_revision=$macro_revision
17424
17425 # Whether or not to build shared libraries.
17426 build_libtool_libs=$enable_shared
17427
17428 # Whether or not to build static libraries.
17429 build_old_libs=$enable_static
17430
17431 # What type of objects to build.
17432 pic_mode=$pic_mode
17433
17434 # Whether or not to optimize for fast installation.
17435 fast_install=$enable_fast_install
17436
17437 # Shell to use when invoking shell scripts.
17438 SHELL=$lt_SHELL
17439
17440 # An echo program that protects backslashes.
17441 ECHO=$lt_ECHO
17442
17443 # The host system.
17444 host_alias=$host_alias
17445 host=$host
17446 host_os=$host_os
17447
17448 # The build system.
17449 build_alias=$build_alias
17450 build=$build
17451 build_os=$build_os
17452
17453 # A sed program that does not truncate output.
17454 SED=$lt_SED
17455
17456 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17457 Xsed="\$SED -e 1s/^X//"
17458
17459 # A grep program that handles long lines.
17460 GREP=$lt_GREP
17461
17462 # An ERE matcher.
17463 EGREP=$lt_EGREP
17464
17465 # A literal string matcher.
17466 FGREP=$lt_FGREP
17467
17468 # A BSD- or MS-compatible name lister.
17469 NM=$lt_NM
17470
17471 # Whether we need soft or hard links.
17472 LN_S=$lt_LN_S
17473
17474 # What is the maximum length of a command?
17475 max_cmd_len=$max_cmd_len
17476
17477 # Object file suffix (normally "o").
17478 objext=$ac_objext
17479
17480 # Executable file suffix (normally "").
17481 exeext=$exeext
17482
17483 # whether the shell understands "unset".
17484 lt_unset=$lt_unset
17485
17486 # turn spaces into newlines.
17487 SP2NL=$lt_lt_SP2NL
17488
17489 # turn newlines into spaces.
17490 NL2SP=$lt_lt_NL2SP
17491
17492 # convert \$build file names to \$host format.
17493 to_host_file_cmd=$lt_cv_to_host_file_cmd
17494
17495 # convert \$build files to toolchain format.
17496 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17497
17498 # An object symbol dumper.
17499 OBJDUMP=$lt_OBJDUMP
17500
17501 # Method to check whether dependent libraries are shared objects.
17502 deplibs_check_method=$lt_deplibs_check_method
17503
17504 # Command to use when deplibs_check_method = "file_magic".
17505 file_magic_cmd=$lt_file_magic_cmd
17506
17507 # How to find potential files when deplibs_check_method = "file_magic".
17508 file_magic_glob=$lt_file_magic_glob
17509
17510 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17511 want_nocaseglob=$lt_want_nocaseglob
17512
17513 # DLL creation program.
17514 DLLTOOL=$lt_DLLTOOL
17515
17516 # Command to associate shared and link libraries.
17517 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17518
17519 # The archiver.
17520 AR=$lt_AR
17521
17522 # Flags to create an archive.
17523 AR_FLAGS=$lt_AR_FLAGS
17524
17525 # How to feed a file listing to the archiver.
17526 archiver_list_spec=$lt_archiver_list_spec
17527
17528 # A symbol stripping program.
17529 STRIP=$lt_STRIP
17530
17531 # Commands used to install an old-style archive.
17532 RANLIB=$lt_RANLIB
17533 old_postinstall_cmds=$lt_old_postinstall_cmds
17534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17535
17536 # Whether to use a lock for old archive extraction.
17537 lock_old_archive_extraction=$lock_old_archive_extraction
17538
17539 # A C compiler.
17540 LTCC=$lt_CC
17541
17542 # LTCC compiler flags.
17543 LTCFLAGS=$lt_CFLAGS
17544
17545 # Take the output of nm and produce a listing of raw symbols and C names.
17546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17547
17548 # Transform the output of nm in a proper C declaration.
17549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17550
17551 # Transform the output of nm in a C name address pair.
17552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17553
17554 # Transform the output of nm in a C name address pair when lib prefix is needed.
17555 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17556
17557 # Specify filename containing input files for \$NM.
17558 nm_file_list_spec=$lt_nm_file_list_spec
17559
17560 # The root where to search for dependent libraries,and in which our libraries should be installed.
17561 lt_sysroot=$lt_sysroot
17562
17563 # The name of the directory that contains temporary libtool files.
17564 objdir=$objdir
17565
17566 # Used to examine libraries when file_magic_cmd begins with "file".
17567 MAGIC_CMD=$MAGIC_CMD
17568
17569 # Must we lock files when doing compilation?
17570 need_locks=$lt_need_locks
17571
17572 # Manifest tool.
17573 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17574
17575 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17576 DSYMUTIL=$lt_DSYMUTIL
17577
17578 # Tool to change global to local symbols on Mac OS X.
17579 NMEDIT=$lt_NMEDIT
17580
17581 # Tool to manipulate fat objects and archives on Mac OS X.
17582 LIPO=$lt_LIPO
17583
17584 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17585 OTOOL=$lt_OTOOL
17586
17587 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17588 OTOOL64=$lt_OTOOL64
17589
17590 # Old archive suffix (normally "a").
17591 libext=$libext
17592
17593 # Shared library suffix (normally ".so").
17594 shrext_cmds=$lt_shrext_cmds
17595
17596 # The commands to extract the exported symbol list from a shared archive.
17597 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17598
17599 # Variables whose values should be saved in libtool wrapper scripts and
17600 # restored at link time.
17601 variables_saved_for_relink=$lt_variables_saved_for_relink
17602
17603 # Do we need the "lib" prefix for modules?
17604 need_lib_prefix=$need_lib_prefix
17605
17606 # Do we need a version for libraries?
17607 need_version=$need_version
17608
17609 # Library versioning type.
17610 version_type=$version_type
17611
17612 # Shared library runtime path variable.
17613 runpath_var=$runpath_var
17614
17615 # Shared library path variable.
17616 shlibpath_var=$shlibpath_var
17617
17618 # Is shlibpath searched before the hard-coded library search path?
17619 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17620
17621 # Format of library name prefix.
17622 libname_spec=$lt_libname_spec
17623
17624 # List of archive names.  First name is the real one, the rest are links.
17625 # The last name is the one that the linker finds with -lNAME
17626 library_names_spec=$lt_library_names_spec
17627
17628 # The coded name of the library, if different from the real name.
17629 soname_spec=$lt_soname_spec
17630
17631 # Permission mode override for installation of shared libraries.
17632 install_override_mode=$lt_install_override_mode
17633
17634 # Command to use after installation of a shared archive.
17635 postinstall_cmds=$lt_postinstall_cmds
17636
17637 # Command to use after uninstallation of a shared archive.
17638 postuninstall_cmds=$lt_postuninstall_cmds
17639
17640 # Commands used to finish a libtool library installation in a directory.
17641 finish_cmds=$lt_finish_cmds
17642
17643 # As "finish_cmds", except a single script fragment to be evaled but
17644 # not shown.
17645 finish_eval=$lt_finish_eval
17646
17647 # Whether we should hardcode library paths into libraries.
17648 hardcode_into_libs=$hardcode_into_libs
17649
17650 # Compile-time system search path for libraries.
17651 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17652
17653 # Run-time system search path for libraries.
17654 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17655
17656 # Whether dlopen is supported.
17657 dlopen_support=$enable_dlopen
17658
17659 # Whether dlopen of programs is supported.
17660 dlopen_self=$enable_dlopen_self
17661
17662 # Whether dlopen of statically linked programs is supported.
17663 dlopen_self_static=$enable_dlopen_self_static
17664
17665 # Commands to strip libraries.
17666 old_striplib=$lt_old_striplib
17667 striplib=$lt_striplib
17668
17669
17670 # The linker used to build libraries.
17671 LD=$lt_LD
17672
17673 # How to create reloadable object files.
17674 reload_flag=$lt_reload_flag
17675 reload_cmds=$lt_reload_cmds
17676
17677 # Commands used to build an old-style archive.
17678 old_archive_cmds=$lt_old_archive_cmds
17679
17680 # A language specific compiler.
17681 CC=$lt_compiler
17682
17683 # Is the compiler the GNU compiler?
17684 with_gcc=$GCC
17685
17686 # Compiler flag to turn off builtin functions.
17687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17688
17689 # Additional compiler flags for building library objects.
17690 pic_flag=$lt_lt_prog_compiler_pic
17691
17692 # How to pass a linker flag through the compiler.
17693 wl=$lt_lt_prog_compiler_wl
17694
17695 # Compiler flag to prevent dynamic linking.
17696 link_static_flag=$lt_lt_prog_compiler_static
17697
17698 # Does compiler simultaneously support -c and -o options?
17699 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17700
17701 # Whether or not to add -lc for building shared libraries.
17702 build_libtool_need_lc=$archive_cmds_need_lc
17703
17704 # Whether or not to disallow shared libs when runtime libs are static.
17705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17706
17707 # Compiler flag to allow reflexive dlopens.
17708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17709
17710 # Compiler flag to generate shared objects directly from archives.
17711 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17712
17713 # Whether the compiler copes with passing no objects directly.
17714 compiler_needs_object=$lt_compiler_needs_object
17715
17716 # Create an old-style archive from a shared archive.
17717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17718
17719 # Create a temporary old-style archive to link instead of a shared archive.
17720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17721
17722 # Commands used to build a shared archive.
17723 archive_cmds=$lt_archive_cmds
17724 archive_expsym_cmds=$lt_archive_expsym_cmds
17725
17726 # Commands used to build a loadable module if different from building
17727 # a shared archive.
17728 module_cmds=$lt_module_cmds
17729 module_expsym_cmds=$lt_module_expsym_cmds
17730
17731 # Whether we are building with GNU ld or not.
17732 with_gnu_ld=$lt_with_gnu_ld
17733
17734 # Flag that allows shared libraries with undefined symbols to be built.
17735 allow_undefined_flag=$lt_allow_undefined_flag
17736
17737 # Flag that enforces no undefined symbols.
17738 no_undefined_flag=$lt_no_undefined_flag
17739
17740 # Flag to hardcode \$libdir into a binary during linking.
17741 # This must work even if \$libdir does not exist
17742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17743
17744 # If ld is used when linking, flag to hardcode \$libdir into a binary
17745 # during linking.  This must work even if \$libdir does not exist.
17746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17747
17748 # Whether we need a single "-rpath" flag with a separated argument.
17749 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17750
17751 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17752 # DIR into the resulting binary.
17753 hardcode_direct=$hardcode_direct
17754
17755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17756 # DIR into the resulting binary and the resulting library dependency is
17757 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17758 # library is relocated.
17759 hardcode_direct_absolute=$hardcode_direct_absolute
17760
17761 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17762 # into the resulting binary.
17763 hardcode_minus_L=$hardcode_minus_L
17764
17765 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17766 # into the resulting binary.
17767 hardcode_shlibpath_var=$hardcode_shlibpath_var
17768
17769 # Set to "yes" if building a shared library automatically hardcodes DIR
17770 # into the library and all subsequent libraries and executables linked
17771 # against it.
17772 hardcode_automatic=$hardcode_automatic
17773
17774 # Set to yes if linker adds runtime paths of dependent libraries
17775 # to runtime path list.
17776 inherit_rpath=$inherit_rpath
17777
17778 # Whether libtool must link a program against all its dependency libraries.
17779 link_all_deplibs=$link_all_deplibs
17780
17781 # Set to "yes" if exported symbols are required.
17782 always_export_symbols=$always_export_symbols
17783
17784 # The commands to list exported symbols.
17785 export_symbols_cmds=$lt_export_symbols_cmds
17786
17787 # Symbols that should not be listed in the preloaded symbols.
17788 exclude_expsyms=$lt_exclude_expsyms
17789
17790 # Symbols that must always be exported.
17791 include_expsyms=$lt_include_expsyms
17792
17793 # Commands necessary for linking programs (against libraries) with templates.
17794 prelink_cmds=$lt_prelink_cmds
17795
17796 # Commands necessary for finishing linking programs.
17797 postlink_cmds=$lt_postlink_cmds
17798
17799 # Specify filename containing input files.
17800 file_list_spec=$lt_file_list_spec
17801
17802 # How to hardcode a shared library path into an executable.
17803 hardcode_action=$hardcode_action
17804
17805 # The directories searched by this compiler when creating a shared library.
17806 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17807
17808 # Dependencies to place before and after the objects being linked to
17809 # create a shared library.
17810 predep_objects=$lt_predep_objects
17811 postdep_objects=$lt_postdep_objects
17812 predeps=$lt_predeps
17813 postdeps=$lt_postdeps
17814
17815 # The library search path used internally by the compiler when linking
17816 # a shared library.
17817 compiler_lib_search_path=$lt_compiler_lib_search_path
17818
17819 # ### END LIBTOOL CONFIG
17820
17821 _LT_EOF
17822
17823   case $host_os in
17824   aix3*)
17825     cat <<\_LT_EOF >> "$cfgfile"
17826 # AIX sometimes has problems with the GCC collect2 program.  For some
17827 # reason, if we set the COLLECT_NAMES environment variable, the problems
17828 # vanish in a puff of smoke.
17829 if test "X${COLLECT_NAMES+set}" != Xset; then
17830   COLLECT_NAMES=
17831   export COLLECT_NAMES
17832 fi
17833 _LT_EOF
17834     ;;
17835   esac
17836
17837
17838 ltmain="$ac_aux_dir/ltmain.sh"
17839
17840
17841   # We use sed instead of cat because bash on DJGPP gets confused if
17842   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17843   # text mode, it properly converts lines to CR/LF.  This bash problem
17844   # is reportedly fixed, but why not run on old versions too?
17845   sed '$q' "$ltmain" >> "$cfgfile" \
17846      || (rm -f "$cfgfile"; exit 1)
17847
17848   if test x"$xsi_shell" = xyes; then
17849   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17850 func_dirname ()\
17851 {\
17852 \    case ${1} in\
17853 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17854 \      *  ) func_dirname_result="${3}" ;;\
17855 \    esac\
17856 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17857   && mv -f "$cfgfile.tmp" "$cfgfile" \
17858     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17859 test 0 -eq $? || _lt_function_replace_fail=:
17860
17861
17862   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17863 func_basename ()\
17864 {\
17865 \    func_basename_result="${1##*/}"\
17866 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17867   && mv -f "$cfgfile.tmp" "$cfgfile" \
17868     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17869 test 0 -eq $? || _lt_function_replace_fail=:
17870
17871
17872   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17873 func_dirname_and_basename ()\
17874 {\
17875 \    case ${1} in\
17876 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17877 \      *  ) func_dirname_result="${3}" ;;\
17878 \    esac\
17879 \    func_basename_result="${1##*/}"\
17880 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17881   && mv -f "$cfgfile.tmp" "$cfgfile" \
17882     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17883 test 0 -eq $? || _lt_function_replace_fail=:
17884
17885
17886   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17887 func_stripname ()\
17888 {\
17889 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17890 \    # positional parameters, so assign one to ordinary parameter first.\
17891 \    func_stripname_result=${3}\
17892 \    func_stripname_result=${func_stripname_result#"${1}"}\
17893 \    func_stripname_result=${func_stripname_result%"${2}"}\
17894 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17895   && mv -f "$cfgfile.tmp" "$cfgfile" \
17896     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17897 test 0 -eq $? || _lt_function_replace_fail=:
17898
17899
17900   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17901 func_split_long_opt ()\
17902 {\
17903 \    func_split_long_opt_name=${1%%=*}\
17904 \    func_split_long_opt_arg=${1#*=}\
17905 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17906   && mv -f "$cfgfile.tmp" "$cfgfile" \
17907     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17908 test 0 -eq $? || _lt_function_replace_fail=:
17909
17910
17911   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17912 func_split_short_opt ()\
17913 {\
17914 \    func_split_short_opt_arg=${1#??}\
17915 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17916 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17917   && mv -f "$cfgfile.tmp" "$cfgfile" \
17918     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17919 test 0 -eq $? || _lt_function_replace_fail=:
17920
17921
17922   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17923 func_lo2o ()\
17924 {\
17925 \    case ${1} in\
17926 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17927 \      *)    func_lo2o_result=${1} ;;\
17928 \    esac\
17929 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17930   && mv -f "$cfgfile.tmp" "$cfgfile" \
17931     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17932 test 0 -eq $? || _lt_function_replace_fail=:
17933
17934
17935   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17936 func_xform ()\
17937 {\
17938     func_xform_result=${1%.*}.lo\
17939 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17940   && mv -f "$cfgfile.tmp" "$cfgfile" \
17941     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17942 test 0 -eq $? || _lt_function_replace_fail=:
17943
17944
17945   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17946 func_arith ()\
17947 {\
17948     func_arith_result=$(( $* ))\
17949 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17950   && mv -f "$cfgfile.tmp" "$cfgfile" \
17951     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17952 test 0 -eq $? || _lt_function_replace_fail=:
17953
17954
17955   sed -e '/^func_len ()$/,/^} # func_len /c\
17956 func_len ()\
17957 {\
17958     func_len_result=${#1}\
17959 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17960   && mv -f "$cfgfile.tmp" "$cfgfile" \
17961     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17962 test 0 -eq $? || _lt_function_replace_fail=:
17963
17964 fi
17965
17966 if test x"$lt_shell_append" = xyes; then
17967   sed -e '/^func_append ()$/,/^} # func_append /c\
17968 func_append ()\
17969 {\
17970     eval "${1}+=\\${2}"\
17971 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17972   && mv -f "$cfgfile.tmp" "$cfgfile" \
17973     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17974 test 0 -eq $? || _lt_function_replace_fail=:
17975
17976
17977   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17978 func_append_quoted ()\
17979 {\
17980 \    func_quote_for_eval "${2}"\
17981 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17982 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17983   && mv -f "$cfgfile.tmp" "$cfgfile" \
17984     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17985 test 0 -eq $? || _lt_function_replace_fail=:
17986
17987
17988   # Save a `func_append' function call where possible by direct use of '+='
17989   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17990     && mv -f "$cfgfile.tmp" "$cfgfile" \
17991       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17992   test 0 -eq $? || _lt_function_replace_fail=:
17993 else
17994   # Save a `func_append' function call even when '+=' is not available
17995   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17996     && mv -f "$cfgfile.tmp" "$cfgfile" \
17997       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17998   test 0 -eq $? || _lt_function_replace_fail=:
17999 fi
18000
18001 if test x"$_lt_function_replace_fail" = x":"; then
18002   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18003 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18004 fi
18005
18006
18007    mv -f "$cfgfile" "$ofile" ||
18008     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18009   chmod +x "$ofile"
18010
18011
18012     cat <<_LT_EOF >> "$ofile"
18013
18014 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18015
18016 # The linker used to build libraries.
18017 LD=$lt_LD_CXX
18018
18019 # How to create reloadable object files.
18020 reload_flag=$lt_reload_flag_CXX
18021 reload_cmds=$lt_reload_cmds_CXX
18022
18023 # Commands used to build an old-style archive.
18024 old_archive_cmds=$lt_old_archive_cmds_CXX
18025
18026 # A language specific compiler.
18027 CC=$lt_compiler_CXX
18028
18029 # Is the compiler the GNU compiler?
18030 with_gcc=$GCC_CXX
18031
18032 # Compiler flag to turn off builtin functions.
18033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18034
18035 # Additional compiler flags for building library objects.
18036 pic_flag=$lt_lt_prog_compiler_pic_CXX
18037
18038 # How to pass a linker flag through the compiler.
18039 wl=$lt_lt_prog_compiler_wl_CXX
18040
18041 # Compiler flag to prevent dynamic linking.
18042 link_static_flag=$lt_lt_prog_compiler_static_CXX
18043
18044 # Does compiler simultaneously support -c and -o options?
18045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18046
18047 # Whether or not to add -lc for building shared libraries.
18048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18049
18050 # Whether or not to disallow shared libs when runtime libs are static.
18051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18052
18053 # Compiler flag to allow reflexive dlopens.
18054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18055
18056 # Compiler flag to generate shared objects directly from archives.
18057 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18058
18059 # Whether the compiler copes with passing no objects directly.
18060 compiler_needs_object=$lt_compiler_needs_object_CXX
18061
18062 # Create an old-style archive from a shared archive.
18063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18064
18065 # Create a temporary old-style archive to link instead of a shared archive.
18066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18067
18068 # Commands used to build a shared archive.
18069 archive_cmds=$lt_archive_cmds_CXX
18070 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18071
18072 # Commands used to build a loadable module if different from building
18073 # a shared archive.
18074 module_cmds=$lt_module_cmds_CXX
18075 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18076
18077 # Whether we are building with GNU ld or not.
18078 with_gnu_ld=$lt_with_gnu_ld_CXX
18079
18080 # Flag that allows shared libraries with undefined symbols to be built.
18081 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18082
18083 # Flag that enforces no undefined symbols.
18084 no_undefined_flag=$lt_no_undefined_flag_CXX
18085
18086 # Flag to hardcode \$libdir into a binary during linking.
18087 # This must work even if \$libdir does not exist
18088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18089
18090 # If ld is used when linking, flag to hardcode \$libdir into a binary
18091 # during linking.  This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18093
18094 # Whether we need a single "-rpath" flag with a separated argument.
18095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18096
18097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18098 # DIR into the resulting binary.
18099 hardcode_direct=$hardcode_direct_CXX
18100
18101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18102 # DIR into the resulting binary and the resulting library dependency is
18103 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18104 # library is relocated.
18105 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18106
18107 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18108 # into the resulting binary.
18109 hardcode_minus_L=$hardcode_minus_L_CXX
18110
18111 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18112 # into the resulting binary.
18113 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18114
18115 # Set to "yes" if building a shared library automatically hardcodes DIR
18116 # into the library and all subsequent libraries and executables linked
18117 # against it.
18118 hardcode_automatic=$hardcode_automatic_CXX
18119
18120 # Set to yes if linker adds runtime paths of dependent libraries
18121 # to runtime path list.
18122 inherit_rpath=$inherit_rpath_CXX
18123
18124 # Whether libtool must link a program against all its dependency libraries.
18125 link_all_deplibs=$link_all_deplibs_CXX
18126
18127 # Set to "yes" if exported symbols are required.
18128 always_export_symbols=$always_export_symbols_CXX
18129
18130 # The commands to list exported symbols.
18131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18132
18133 # Symbols that should not be listed in the preloaded symbols.
18134 exclude_expsyms=$lt_exclude_expsyms_CXX
18135
18136 # Symbols that must always be exported.
18137 include_expsyms=$lt_include_expsyms_CXX
18138
18139 # Commands necessary for linking programs (against libraries) with templates.
18140 prelink_cmds=$lt_prelink_cmds_CXX
18141
18142 # Commands necessary for finishing linking programs.
18143 postlink_cmds=$lt_postlink_cmds_CXX
18144
18145 # Specify filename containing input files.
18146 file_list_spec=$lt_file_list_spec_CXX
18147
18148 # How to hardcode a shared library path into an executable.
18149 hardcode_action=$hardcode_action_CXX
18150
18151 # The directories searched by this compiler when creating a shared library.
18152 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18153
18154 # Dependencies to place before and after the objects being linked to
18155 # create a shared library.
18156 predep_objects=$lt_predep_objects_CXX
18157 postdep_objects=$lt_postdep_objects_CXX
18158 predeps=$lt_predeps_CXX
18159 postdeps=$lt_postdeps_CXX
18160
18161 # The library search path used internally by the compiler when linking
18162 # a shared library.
18163 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18164
18165 # ### END LIBTOOL TAG CONFIG: CXX
18166 _LT_EOF
18167
18168  ;;
18169
18170   esac
18171 done # for ac_tag
18172
18173
18174 as_fn_exit 0
18175 _ACEOF
18176 ac_clean_files=$ac_clean_files_save
18177
18178 test $ac_write_fail = 0 ||
18179   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18180
18181
18182 # configure is writing to config.log, and then calls config.status.
18183 # config.status does its own redirection, appending to config.log.
18184 # Unfortunately, on DOS this fails, as config.log is still kept open
18185 # by configure, so config.status won't be able to write to it; its
18186 # output is simply discarded.  So we exec the FD to /dev/null,
18187 # effectively closing config.log, so it can be properly (re)opened and
18188 # appended to by config.status.  When coming back to configure, we
18189 # need to make the FD available again.
18190 if test "$no_create" != yes; then
18191   ac_cs_success=:
18192   ac_config_status_args=
18193   test "$silent" = yes &&
18194     ac_config_status_args="$ac_config_status_args --quiet"
18195   exec 5>/dev/null
18196   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18197   exec 5>>config.log
18198   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18199   # would make configure fail if this is the last instruction.
18200   $ac_cs_success || as_fn_exit 1
18201 fi
18202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18203   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18205 fi
18206
18207
18208 { $as_echo "$as_me:${as_lineno-$LINENO}:
18209
18210 Please type 'make' to build Bullet
18211 " >&5
18212 $as_echo "$as_me:
18213
18214 Please type 'make' to build Bullet
18215 " >&6;}