tizen 2.3.1 release
[external/protobuf.git] / gtest / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Google C++ Testing Framework 1.6.0.
4 #
5 # Report bugs to <googletestframework@googlegroups.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: googletestframework@googlegroups.com about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='Google C++ Testing Framework'
592 PACKAGE_TARNAME='gtest'
593 PACKAGE_VERSION='1.6.0'
594 PACKAGE_STRING='Google C++ Testing Framework 1.6.0'
595 PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="./LICENSE"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_PTHREADS_FALSE
640 HAVE_PTHREADS_TRUE
641 PTHREAD_CFLAGS
642 PTHREAD_LIBS
643 PTHREAD_CC
644 acx_pthread_config
645 HAVE_PYTHON_FALSE
646 HAVE_PYTHON_TRUE
647 PYTHON
648 CXXCPP
649 CPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 LIBTOOL
679 am__fastdepCXX_FALSE
680 am__fastdepCXX_TRUE
681 CXXDEPMODE
682 ac_ct_CXX
683 CXXFLAGS
684 CXX
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 AM_BACKSLASH
703 AM_DEFAULT_VERBOSITY
704 AM_DEFAULT_V
705 AM_V
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_dependency_tracking
772 enable_shared
773 enable_static
774 with_pic
775 enable_fast_install
776 with_gnu_ld
777 with_sysroot
778 enable_libtool_lock
779 with_pthreads
780 '
781       ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CXX
790 CXXFLAGS
791 CCC
792 CPP
793 CXXCPP'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848   # If the previous option needs an argument, assign it.
849   if test -n "$ac_prev"; then
850     eval $ac_prev=\$ac_option
851     ac_prev=
852     continue
853   fi
854
855   case $ac_option in
856   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857   *=)   ac_optarg= ;;
858   *)    ac_optarg=yes ;;
859   esac
860
861   # Accept the important Cygnus configure options, so we can diagnose typos.
862
863   case $ac_dashdash$ac_option in
864   --)
865     ac_dashdash=yes ;;
866
867   -bindir | --bindir | --bindi | --bind | --bin | --bi)
868     ac_prev=bindir ;;
869   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870     bindir=$ac_optarg ;;
871
872   -build | --build | --buil | --bui | --bu)
873     ac_prev=build_alias ;;
874   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875     build_alias=$ac_optarg ;;
876
877   -cache-file | --cache-file | --cache-fil | --cache-fi \
878   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879     ac_prev=cache_file ;;
880   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882     cache_file=$ac_optarg ;;
883
884   --config-cache | -C)
885     cache_file=config.cache ;;
886
887   -datadir | --datadir | --datadi | --datad)
888     ac_prev=datadir ;;
889   -datadir=* | --datadir=* | --datadi=* | --datad=*)
890     datadir=$ac_optarg ;;
891
892   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893   | --dataroo | --dataro | --datar)
894     ac_prev=datarootdir ;;
895   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897     datarootdir=$ac_optarg ;;
898
899   -disable-* | --disable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error $? "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=no ;;
914
915   -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919
920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924
925   -enable-* | --enable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error $? "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=\$ac_optarg ;;
940
941   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943   | --exec | --exe | --ex)
944     ac_prev=exec_prefix ;;
945   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947   | --exec=* | --exe=* | --ex=*)
948     exec_prefix=$ac_optarg ;;
949
950   -gas | --gas | --ga | --g)
951     # Obsolete; use --with-gas.
952     with_gas=yes ;;
953
954   -help | --help | --hel | --he | -h)
955     ac_init_help=long ;;
956   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957     ac_init_help=recursive ;;
958   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959     ac_init_help=short ;;
960
961   -host | --host | --hos | --ho)
962     ac_prev=host_alias ;;
963   -host=* | --host=* | --hos=* | --ho=*)
964     host_alias=$ac_optarg ;;
965
966   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967     ac_prev=htmldir ;;
968   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969   | --ht=*)
970     htmldir=$ac_optarg ;;
971
972   -includedir | --includedir | --includedi | --included | --include \
973   | --includ | --inclu | --incl | --inc)
974     ac_prev=includedir ;;
975   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976   | --includ=* | --inclu=* | --incl=* | --inc=*)
977     includedir=$ac_optarg ;;
978
979   -infodir | --infodir | --infodi | --infod | --info | --inf)
980     ac_prev=infodir ;;
981   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982     infodir=$ac_optarg ;;
983
984   -libdir | --libdir | --libdi | --libd)
985     ac_prev=libdir ;;
986   -libdir=* | --libdir=* | --libdi=* | --libd=*)
987     libdir=$ac_optarg ;;
988
989   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990   | --libexe | --libex | --libe)
991     ac_prev=libexecdir ;;
992   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993   | --libexe=* | --libex=* | --libe=*)
994     libexecdir=$ac_optarg ;;
995
996   -localedir | --localedir | --localedi | --localed | --locale)
997     ac_prev=localedir ;;
998   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999     localedir=$ac_optarg ;;
1000
1001   -localstatedir | --localstatedir | --localstatedi | --localstated \
1002   | --localstate | --localstat | --localsta | --localst | --locals)
1003     ac_prev=localstatedir ;;
1004   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006     localstatedir=$ac_optarg ;;
1007
1008   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009     ac_prev=mandir ;;
1010   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011     mandir=$ac_optarg ;;
1012
1013   -nfp | --nfp | --nf)
1014     # Obsolete; use --without-fp.
1015     with_fp=no ;;
1016
1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018   | --no-cr | --no-c | -n)
1019     no_create=yes ;;
1020
1021   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023     no_recursion=yes ;;
1024
1025   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027   | --oldin | --oldi | --old | --ol | --o)
1028     ac_prev=oldincludedir ;;
1029   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032     oldincludedir=$ac_optarg ;;
1033
1034   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035     ac_prev=prefix ;;
1036   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037     prefix=$ac_optarg ;;
1038
1039   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040   | --program-pre | --program-pr | --program-p)
1041     ac_prev=program_prefix ;;
1042   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044     program_prefix=$ac_optarg ;;
1045
1046   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047   | --program-suf | --program-su | --program-s)
1048     ac_prev=program_suffix ;;
1049   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051     program_suffix=$ac_optarg ;;
1052
1053   -program-transform-name | --program-transform-name \
1054   | --program-transform-nam | --program-transform-na \
1055   | --program-transform-n | --program-transform- \
1056   | --program-transform | --program-transfor \
1057   | --program-transfo | --program-transf \
1058   | --program-trans | --program-tran \
1059   | --progr-tra | --program-tr | --program-t)
1060     ac_prev=program_transform_name ;;
1061   -program-transform-name=* | --program-transform-name=* \
1062   | --program-transform-nam=* | --program-transform-na=* \
1063   | --program-transform-n=* | --program-transform-=* \
1064   | --program-transform=* | --program-transfor=* \
1065   | --program-transfo=* | --program-transf=* \
1066   | --program-trans=* | --program-tran=* \
1067   | --progr-tra=* | --program-tr=* | --program-t=*)
1068     program_transform_name=$ac_optarg ;;
1069
1070   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071     ac_prev=pdfdir ;;
1072   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073     pdfdir=$ac_optarg ;;
1074
1075   -psdir | --psdir | --psdi | --psd | --ps)
1076     ac_prev=psdir ;;
1077   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078     psdir=$ac_optarg ;;
1079
1080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081   | -silent | --silent | --silen | --sile | --sil)
1082     silent=yes ;;
1083
1084   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085     ac_prev=sbindir ;;
1086   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087   | --sbi=* | --sb=*)
1088     sbindir=$ac_optarg ;;
1089
1090   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092   | --sharedst | --shareds | --shared | --share | --shar \
1093   | --sha | --sh)
1094     ac_prev=sharedstatedir ;;
1095   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098   | --sha=* | --sh=*)
1099     sharedstatedir=$ac_optarg ;;
1100
1101   -site | --site | --sit)
1102     ac_prev=site ;;
1103   -site=* | --site=* | --sit=*)
1104     site=$ac_optarg ;;
1105
1106   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107     ac_prev=srcdir ;;
1108   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109     srcdir=$ac_optarg ;;
1110
1111   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112   | --syscon | --sysco | --sysc | --sys | --sy)
1113     ac_prev=sysconfdir ;;
1114   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116     sysconfdir=$ac_optarg ;;
1117
1118   -target | --target | --targe | --targ | --tar | --ta | --t)
1119     ac_prev=target_alias ;;
1120   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121     target_alias=$ac_optarg ;;
1122
1123   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124     verbose=yes ;;
1125
1126   -version | --version | --versio | --versi | --vers | -V)
1127     ac_init_version=: ;;
1128
1129   -with-* | --with-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error $? "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=no ;;
1160
1161   --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164
1165   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166   | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171
1172   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178
1179   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181     ;;
1182
1183   *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186     case $ac_envvar in #(
1187       '' | [0-9]* | *[!_$as_cr_alnum]* )
1188       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189     esac
1190     eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192
1193   *)
1194     # FIXME: should be removed in autoconf 3.0.
1195     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199     ;;
1200
1201   esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206   as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210   case $enable_option_checking in
1211     no) ;;
1212     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214   esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   # Remove trailing slashes.
1225   case $ac_val in
1226     */ )
1227       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228       eval $ac_var=\$ac_val;;
1229   esac
1230   # Be sure to have absolute directory names.
1231   case $ac_val in
1232     [\\/$]* | ?:[\\/]* )  continue;;
1233     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234   esac
1235   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247   if test "x$build_alias" = x; then
1248     cross_compiling=maybe
1249   elif test "x$build_alias" != "x$host_alias"; then
1250     cross_compiling=yes
1251   fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263   as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265   as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270   ac_srcdir_defaulted=yes
1271   # Try the directory containing this script, then the parent directory.
1272   ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274          X"$as_myself" : 'X\(//\)[^/]' \| \
1275          X"$as_myself" : 'X\(//\)$' \| \
1276          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)[^/].*/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\).*/{
1291             s//\1/
1292             q
1293           }
1294           s/.*/./; q'`
1295   srcdir=$ac_confdir
1296   if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298   fi
1299 else
1300   ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures Google C++ Testing Framework 1.6.0 to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking ...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR            user executables [EPREFIX/bin]
1369   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR        program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR            object code libraries [EPREFIX/lib]
1375   --includedir=DIR        C header files [PREFIX/include]
1376   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR           info documentation [DATAROOTDIR/info]
1380   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR            man documentation [DATAROOTDIR/man]
1382   --docdir=DIR            documentation root [DATAROOTDIR/doc/gtest]
1383   --htmldir=DIR           html documentation [DOCDIR]
1384   --dvidir=DIR            dvi documentation [DOCDIR]
1385   --pdfdir=DIR            pdf documentation [DOCDIR]
1386   --psdir=DIR             ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 Program names:
1392   --program-prefix=PREFIX            prepend PREFIX to installed program names
1393   --program-suffix=SUFFIX            append SUFFIX to installed program names
1394   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1395
1396 System types:
1397   --build=BUILD     configure for building on BUILD [guessed]
1398   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403   case $ac_init_help in
1404      short | recursive ) echo "Configuration of Google C++ Testing Framework 1.6.0:";;
1405    esac
1406   cat <<\_ACEOF
1407
1408 Optional Features:
1409   --disable-option-checking  ignore unrecognized --enable/--with options
1410   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1411   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1412   --enable-silent-rules   less verbose build output (undo: "make V=1")
1413   --disable-silent-rules  verbose build output (undo: "make V=0")
1414   --enable-dependency-tracking
1415                           do not reject slow dependency extractors
1416   --disable-dependency-tracking
1417                           speeds up one-time build
1418   --enable-shared[=PKGS]  build shared libraries [default=yes]
1419   --enable-static[=PKGS]  build static libraries [default=yes]
1420   --enable-fast-install[=PKGS]
1421                           optimize for fast installation [default=yes]
1422   --disable-libtool-lock  avoid locking (might break parallel builds)
1423
1424 Optional Packages:
1425   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1426   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1427   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1428                           both]
1429   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1430   --with-sysroot=DIR Search for dependent libraries within DIR
1431                         (or the compiler's sysroot if not specified).
1432   --with-pthreads         use pthreads (default is yes)
1433
1434 Some influential environment variables:
1435   CC          C compiler command
1436   CFLAGS      C compiler flags
1437   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438               nonstandard directory <lib dir>
1439   LIBS        libraries to pass to the linker, e.g. -l<library>
1440   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441               you have headers in a nonstandard directory <include dir>
1442   CXX         C++ compiler command
1443   CXXFLAGS    C++ compiler flags
1444   CPP         C preprocessor
1445   CXXCPP      C++ preprocessor
1446
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to <googletestframework@googlegroups.com>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456   # If there are subdirs, report their specific --help.
1457   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458     test -d "$ac_dir" ||
1459       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460       continue
1461     ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467   # A ".." for each directory in $ac_dir_suffix.
1468   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469   case $ac_top_builddir_sub in
1470   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472   esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480   .)  # We are building in place.
1481     ac_srcdir=.
1482     ac_top_srcdir=$ac_top_builddir_sub
1483     ac_abs_top_srcdir=$ac_pwd ;;
1484   [\\/]* | ?:[\\/]* )  # Absolute name.
1485     ac_srcdir=$srcdir$ac_dir_suffix;
1486     ac_top_srcdir=$srcdir
1487     ac_abs_top_srcdir=$srcdir ;;
1488   *) # Relative name.
1489     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490     ac_top_srcdir=$ac_top_build_prefix$srcdir
1491     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495     cd "$ac_dir" || { ac_status=$?; continue; }
1496     # Check for guested configure.
1497     if test -f "$ac_srcdir/configure.gnu"; then
1498       echo &&
1499       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500     elif test -f "$ac_srcdir/configure"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure" --help=recursive
1503     else
1504       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505     fi || ac_status=$?
1506     cd "$ac_pwd" || { ac_status=$?; break; }
1507   done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512   cat <<\_ACEOF
1513 Google C++ Testing Framework configure 1.6.0
1514 generated by GNU Autoconf 2.69
1515
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520   exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533   rm -f conftest.$ac_objext
1534   if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537   *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541   (eval "$ac_compile") 2>conftest.err
1542   ac_status=$?
1543   if test -s conftest.err; then
1544     grep -v '^ *+' conftest.err >conftest.er1
1545     cat conftest.er1 >&5
1546     mv -f conftest.er1 conftest.err
1547   fi
1548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549   test $ac_status = 0; } && {
1550          test -z "$ac_c_werror_flag" ||
1551          test ! -s conftest.err
1552        } && test -s conftest.$ac_objext; then :
1553   ac_retval=0
1554 else
1555   $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558         ac_retval=1
1559 fi
1560   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561   as_fn_set_status $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_cxx_try_compile LINENO
1566 # ----------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_cxx_try_compile ()
1569 {
1570   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571   rm -f conftest.$ac_objext
1572   if { { ac_try="$ac_compile"
1573 case "(($ac_try" in
1574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575   *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579   (eval "$ac_compile") 2>conftest.err
1580   ac_status=$?
1581   if test -s conftest.err; then
1582     grep -v '^ *+' conftest.err >conftest.er1
1583     cat conftest.er1 >&5
1584     mv -f conftest.er1 conftest.err
1585   fi
1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587   test $ac_status = 0; } && {
1588          test -z "$ac_cxx_werror_flag" ||
1589          test ! -s conftest.err
1590        } && test -s conftest.$ac_objext; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596         ac_retval=1
1597 fi
1598   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599   as_fn_set_status $ac_retval
1600
1601 } # ac_fn_cxx_try_compile
1602
1603 # ac_fn_c_try_link LINENO
1604 # -----------------------
1605 # Try to link conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_link ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   rm -f conftest.$ac_objext conftest$ac_exeext
1610   if { { ac_try="$ac_link"
1611 case "(($ac_try" in
1612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613   *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617   (eval "$ac_link") 2>conftest.err
1618   ac_status=$?
1619   if test -s conftest.err; then
1620     grep -v '^ *+' conftest.err >conftest.er1
1621     cat conftest.er1 >&5
1622     mv -f conftest.er1 conftest.err
1623   fi
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; } && {
1626          test -z "$ac_c_werror_flag" ||
1627          test ! -s conftest.err
1628        } && test -s conftest$ac_exeext && {
1629          test "$cross_compiling" = yes ||
1630          test -x conftest$ac_exeext
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   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641   # interfere with the next link command; also delete a directory that is
1642   # left behind by Apple's compiler.  We do this before executing the actions.
1643   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645   as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_link
1648
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659   $as_echo_n "(cached) " >&6
1660 else
1661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h.  */
1663 $4
1664 #include <$2>
1665 _ACEOF
1666 if ac_fn_c_try_compile "$LINENO"; then :
1667   eval "$3=yes"
1668 else
1669   eval "$3=no"
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 fi
1673 eval ac_res=\$$3
1674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678 } # ac_fn_c_check_header_compile
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689   *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694   ac_status=$?
1695   if test -s conftest.err; then
1696     grep -v '^ *+' conftest.err >conftest.er1
1697     cat conftest.er1 >&5
1698     mv -f conftest.er1 conftest.err
1699   fi
1700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701   test $ac_status = 0; } > conftest.i && {
1702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703          test ! -s conftest.err
1704        }; then :
1705   ac_retval=0
1706 else
1707   $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710     ac_retval=1
1711 fi
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_try_run LINENO
1718 # ----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720 # that executables *can* be run.
1721 ac_fn_c_try_run ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_link") 2>&5
1732   ac_status=$?
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735   { { case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_try") 2>&5
1742   ac_status=$?
1743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744   test $ac_status = 0; }; }; then :
1745   ac_retval=0
1746 else
1747   $as_echo "$as_me: program exited with status $ac_status" >&5
1748        $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751        ac_retval=$ac_status
1752 fi
1753   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755   as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_run
1758
1759 # ac_fn_c_check_func LINENO FUNC VAR
1760 # ----------------------------------
1761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1762 ac_fn_c_check_func ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768   $as_echo_n "(cached) " >&6
1769 else
1770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h.  */
1772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1774 #define $2 innocuous_$2
1775
1776 /* System header to define __stub macros and hopefully few prototypes,
1777     which can conflict with char $2 (); below.
1778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1779     <limits.h> exists even on freestanding compilers.  */
1780
1781 #ifdef __STDC__
1782 # include <limits.h>
1783 #else
1784 # include <assert.h>
1785 #endif
1786
1787 #undef $2
1788
1789 /* Override any GCC internal prototype to avoid an error.
1790    Use char because int might match the return type of a GCC
1791    builtin and then its argument prototype would still apply.  */
1792 #ifdef __cplusplus
1793 extern "C"
1794 #endif
1795 char $2 ();
1796 /* The GNU C library defines this for functions which it implements
1797     to always fail with ENOSYS.  Some functions are actually named
1798     something starting with __ and the normal name is an alias.  */
1799 #if defined __stub_$2 || defined __stub___$2
1800 choke me
1801 #endif
1802
1803 int
1804 main ()
1805 {
1806 return $2 ();
1807   ;
1808   return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_link "$LINENO"; then :
1812   eval "$3=yes"
1813 else
1814   eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext \
1817     conftest$ac_exeext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_func
1825
1826 # ac_fn_cxx_try_cpp LINENO
1827 # ------------------------
1828 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_cpp ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   if { { ac_try="$ac_cpp conftest.$ac_ext"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } > conftest.i && {
1848          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1849          test ! -s conftest.err
1850        }; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856     ac_retval=1
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_cxx_try_cpp
1862
1863 # ac_fn_cxx_try_link LINENO
1864 # -------------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_link ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext conftest$ac_exeext
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_cxx_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest$ac_exeext && {
1889          test "$cross_compiling" = yes ||
1890          test -x conftest$ac_exeext
1891        }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897         ac_retval=1
1898 fi
1899   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901   # interfere with the next link command; also delete a directory that is
1902   # left behind by Apple's compiler.  We do this before executing the actions.
1903   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905   as_fn_set_status $ac_retval
1906
1907 } # ac_fn_cxx_try_link
1908 cat >config.log <<_ACEOF
1909 This file contains any messages produced by compilers while
1910 running configure, to aid debugging if configure makes a mistake.
1911
1912 It was created by Google C++ Testing Framework $as_me 1.6.0, which was
1913 generated by GNU Autoconf 2.69.  Invocation command line was
1914
1915   $ $0 $@
1916
1917 _ACEOF
1918 exec 5>>config.log
1919 {
1920 cat <<_ASUNAME
1921 ## --------- ##
1922 ## Platform. ##
1923 ## --------- ##
1924
1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1933
1934 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1935 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1938 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1939 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1940 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1941
1942 _ASUNAME
1943
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949     $as_echo "PATH: $as_dir"
1950   done
1951 IFS=$as_save_IFS
1952
1953 } >&5
1954
1955 cat >&5 <<_ACEOF
1956
1957
1958 ## ----------- ##
1959 ## Core tests. ##
1960 ## ----------- ##
1961
1962 _ACEOF
1963
1964
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1970 ac_configure_args=
1971 ac_configure_args0=
1972 ac_configure_args1=
1973 ac_must_keep_next=false
1974 for ac_pass in 1 2
1975 do
1976   for ac_arg
1977   do
1978     case $ac_arg in
1979     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981     | -silent | --silent | --silen | --sile | --sil)
1982       continue ;;
1983     *\'*)
1984       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985     esac
1986     case $ac_pass in
1987     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988     2)
1989       as_fn_append ac_configure_args1 " '$ac_arg'"
1990       if test $ac_must_keep_next = true; then
1991         ac_must_keep_next=false # Got value, back to normal.
1992       else
1993         case $ac_arg in
1994           *=* | --config-cache | -C | -disable-* | --disable-* \
1995           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997           | -with-* | --with-* | -without-* | --without-* | --x)
1998             case "$ac_configure_args0 " in
1999               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000             esac
2001             ;;
2002           -* ) ac_must_keep_next=true ;;
2003         esac
2004       fi
2005       as_fn_append ac_configure_args " '$ac_arg'"
2006       ;;
2007     esac
2008   done
2009 done
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2012
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log.  We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019   # Save into config.log some information that might help in debugging.
2020   {
2021     echo
2022
2023     $as_echo "## ---------------- ##
2024 ## Cache variables. ##
2025 ## ---------------- ##"
2026     echo
2027     # The following way of writing the cache mishandles newlines in values,
2028 (
2029   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030     eval ac_val=\$$ac_var
2031     case $ac_val in #(
2032     *${as_nl}*)
2033       case $ac_var in #(
2034       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036       esac
2037       case $ac_var in #(
2038       _ | IFS | as_nl) ;; #(
2039       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040       *) { eval $ac_var=; unset $ac_var;} ;;
2041       esac ;;
2042     esac
2043   done
2044   (set) 2>&1 |
2045     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046     *${as_nl}ac_space=\ *)
2047       sed -n \
2048         "s/'\''/'\''\\\\'\'''\''/g;
2049           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050       ;; #(
2051     *)
2052       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2053       ;;
2054     esac |
2055     sort
2056 )
2057     echo
2058
2059     $as_echo "## ----------------- ##
2060 ## Output variables. ##
2061 ## ----------------- ##"
2062     echo
2063     for ac_var in $ac_subst_vars
2064     do
2065       eval ac_val=\$$ac_var
2066       case $ac_val in
2067       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068       esac
2069       $as_echo "$ac_var='\''$ac_val'\''"
2070     done | sort
2071     echo
2072
2073     if test -n "$ac_subst_files"; then
2074       $as_echo "## ------------------- ##
2075 ## File substitutions. ##
2076 ## ------------------- ##"
2077       echo
2078       for ac_var in $ac_subst_files
2079       do
2080         eval ac_val=\$$ac_var
2081         case $ac_val in
2082         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083         esac
2084         $as_echo "$ac_var='\''$ac_val'\''"
2085       done | sort
2086       echo
2087     fi
2088
2089     if test -s confdefs.h; then
2090       $as_echo "## ----------- ##
2091 ## confdefs.h. ##
2092 ## ----------- ##"
2093       echo
2094       cat confdefs.h
2095       echo
2096     fi
2097     test "$ac_signal" != 0 &&
2098       $as_echo "$as_me: caught signal $ac_signal"
2099     $as_echo "$as_me: exit $exit_status"
2100   } >&5
2101   rm -f core *.core core.conftest.* &&
2102     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2103     exit $exit_status
2104 ' 0
2105 for ac_signal in 1 2 13 15; do
2106   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2107 done
2108 ac_signal=0
2109
2110 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2111 rm -f -r conftest* confdefs.h
2112
2113 $as_echo "/* confdefs.h */" > confdefs.h
2114
2115 # Predefined preprocessor variables.
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "$PACKAGE_NAME"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_STRING "$PACKAGE_STRING"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_URL "$PACKAGE_URL"
2139 _ACEOF
2140
2141
2142 # Let the site file select an alternate cache file if it wants to.
2143 # Prefer an explicitly selected file to automatically selected ones.
2144 ac_site_file1=NONE
2145 ac_site_file2=NONE
2146 if test -n "$CONFIG_SITE"; then
2147   # We do not want a PATH search for config.site.
2148   case $CONFIG_SITE in #((
2149     -*)  ac_site_file1=./$CONFIG_SITE;;
2150     */*) ac_site_file1=$CONFIG_SITE;;
2151     *)   ac_site_file1=./$CONFIG_SITE;;
2152   esac
2153 elif test "x$prefix" != xNONE; then
2154   ac_site_file1=$prefix/share/config.site
2155   ac_site_file2=$prefix/etc/config.site
2156 else
2157   ac_site_file1=$ac_default_prefix/share/config.site
2158   ac_site_file2=$ac_default_prefix/etc/config.site
2159 fi
2160 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2161 do
2162   test "x$ac_site_file" = xNONE && continue
2163   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166     sed 's/^/| /' "$ac_site_file" >&5
2167     . "$ac_site_file" \
2168       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 as_fn_error $? "failed to load site script $ac_site_file
2171 See \`config.log' for more details" "$LINENO" 5; }
2172   fi
2173 done
2174
2175 if test -r "$cache_file"; then
2176   # Some versions of bash will fail to source /dev/null (special files
2177   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2178   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 $as_echo "$as_me: loading cache $cache_file" >&6;}
2181     case $cache_file in
2182       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183       *)                      . "./$cache_file";;
2184     esac
2185   fi
2186 else
2187   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 $as_echo "$as_me: creating cache $cache_file" >&6;}
2189   >$cache_file
2190 fi
2191
2192 # Check that the precious variables saved in the cache have kept the same
2193 # value.
2194 ac_cache_corrupted=false
2195 for ac_var in $ac_precious_vars; do
2196   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197   eval ac_new_set=\$ac_env_${ac_var}_set
2198   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199   eval ac_new_val=\$ac_env_${ac_var}_value
2200   case $ac_old_set,$ac_new_set in
2201     set,)
2202       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204       ac_cache_corrupted=: ;;
2205     ,set)
2206       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208       ac_cache_corrupted=: ;;
2209     ,);;
2210     *)
2211       if test "x$ac_old_val" != "x$ac_new_val"; then
2212         # differences in whitespace do not lead to failure.
2213         ac_old_val_w=`echo x $ac_old_val`
2214         ac_new_val_w=`echo x $ac_new_val`
2215         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218           ac_cache_corrupted=:
2219         else
2220           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222           eval $ac_var=\$ac_old_val
2223         fi
2224         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2225 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2226         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2227 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2228       fi;;
2229   esac
2230   # Pass precious variables to config.status.
2231   if test "$ac_new_set" = set; then
2232     case $ac_new_val in
2233     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234     *) ac_arg=$ac_var=$ac_new_val ;;
2235     esac
2236     case " $ac_configure_args " in
2237       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2238       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2239     esac
2240   fi
2241 done
2242 if $ac_cache_corrupted; then
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2248 fi
2249 ## -------------------- ##
2250 ## Main body of script. ##
2251 ## -------------------- ##
2252
2253 ac_ext=c
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2258
2259
2260
2261 # Provide various options to initialize the Autoconf and configure processes.
2262
2263
2264
2265 ac_aux_dir=
2266 for ac_dir in build-aux "$srcdir"/build-aux; do
2267   if test -f "$ac_dir/install-sh"; then
2268     ac_aux_dir=$ac_dir
2269     ac_install_sh="$ac_aux_dir/install-sh -c"
2270     break
2271   elif test -f "$ac_dir/install.sh"; then
2272     ac_aux_dir=$ac_dir
2273     ac_install_sh="$ac_aux_dir/install.sh -c"
2274     break
2275   elif test -f "$ac_dir/shtool"; then
2276     ac_aux_dir=$ac_dir
2277     ac_install_sh="$ac_aux_dir/shtool install -c"
2278     break
2279   fi
2280 done
2281 if test -z "$ac_aux_dir"; then
2282   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2283 fi
2284
2285 # These three variables are undocumented and unsupported,
2286 # and are intended to be withdrawn in a future Autoconf release.
2287 # They can cause serious problems if a builder's source tree is in a directory
2288 # whose full name contains unusual characters.
2289 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2290 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2291 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2292
2293
2294 ac_config_headers="$ac_config_headers build-aux/config.h"
2295
2296 ac_config_files="$ac_config_files Makefile"
2297
2298 ac_config_files="$ac_config_files scripts/gtest-config"
2299
2300
2301 # Initialize Automake with various options. We require at least v1.9, prevent
2302 # pedantic complaints about package files, and enable various distribution
2303 # targets.
2304 am__api_version='1.14'
2305
2306 # Find a good install program.  We prefer a C program (faster),
2307 # so one script is as good as another.  But avoid the broken or
2308 # incompatible versions:
2309 # SysV /etc/install, /usr/sbin/install
2310 # SunOS /usr/etc/install
2311 # IRIX /sbin/install
2312 # AIX /bin/install
2313 # AmigaOS /C/install, which installs bootblocks on floppy discs
2314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317 # OS/2's system install, which has a completely different semantic
2318 # ./install, which can be erroneously created by make from ./install.sh.
2319 # Reject install programs that cannot install multiple files.
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2322 if test -z "$INSTALL"; then
2323 if ${ac_cv_path_install+:} false; then :
2324   $as_echo_n "(cached) " >&6
2325 else
2326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331     # Account for people who put trailing slashes in PATH elements.
2332 case $as_dir/ in #((
2333   ./ | .// | /[cC]/* | \
2334   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2336   /usr/ucb/* ) ;;
2337   *)
2338     # OSF1 and SCO ODT 3.0 have their own names for install.
2339     # Don't use installbsd from OSF since it installs stuff as root
2340     # by default.
2341     for ac_prog in ginstall scoinst install; do
2342       for ac_exec_ext in '' $ac_executable_extensions; do
2343         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2344           if test $ac_prog = install &&
2345             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346             # AIX install.  It has an incompatible calling convention.
2347             :
2348           elif test $ac_prog = install &&
2349             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350             # program-specific install script used by HP pwplus--don't use.
2351             :
2352           else
2353             rm -rf conftest.one conftest.two conftest.dir
2354             echo one > conftest.one
2355             echo two > conftest.two
2356             mkdir conftest.dir
2357             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358               test -s conftest.one && test -s conftest.two &&
2359               test -s conftest.dir/conftest.one &&
2360               test -s conftest.dir/conftest.two
2361             then
2362               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363               break 3
2364             fi
2365           fi
2366         fi
2367       done
2368     done
2369     ;;
2370 esac
2371
2372   done
2373 IFS=$as_save_IFS
2374
2375 rm -rf conftest.one conftest.two conftest.dir
2376
2377 fi
2378   if test "${ac_cv_path_install+set}" = set; then
2379     INSTALL=$ac_cv_path_install
2380   else
2381     # As a last resort, use the slow shell script.  Don't cache a
2382     # value for INSTALL within a source directory, because that will
2383     # break other packages using the cache if that directory is
2384     # removed, or if the value is a relative name.
2385     INSTALL=$ac_install_sh
2386   fi
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389 $as_echo "$INSTALL" >&6; }
2390
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400 $as_echo_n "checking whether build environment is sane... " >&6; }
2401 # Reject unsafe characters in $srcdir or the absolute working directory
2402 # name.  Accept space and tab only in the latter.
2403 am_lf='
2404 '
2405 case `pwd` in
2406   *[\\\"\#\$\&\'\`$am_lf]*)
2407     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2408 esac
2409 case $srcdir in
2410   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2411     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2412 esac
2413
2414 # Do 'set' in a subshell so we don't clobber the current shell's
2415 # arguments.  Must try -L first in case configure is actually a
2416 # symlink; some systems play weird games with the mod time of symlinks
2417 # (eg FreeBSD returns the mod time of the symlink's containing
2418 # directory).
2419 if (
2420    am_has_slept=no
2421    for am_try in 1 2; do
2422      echo "timestamp, slept: $am_has_slept" > conftest.file
2423      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424      if test "$*" = "X"; then
2425         # -L didn't work.
2426         set X `ls -t "$srcdir/configure" conftest.file`
2427      fi
2428      if test "$*" != "X $srcdir/configure conftest.file" \
2429         && test "$*" != "X conftest.file $srcdir/configure"; then
2430
2431         # If neither matched, then we have a broken ls.  This can happen
2432         # if, for instance, CONFIG_SHELL is bash and it inherits a
2433         # broken ls alias from the environment.  This has actually
2434         # happened.  Such a system could not be considered "sane".
2435         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2436   alias in your environment" "$LINENO" 5
2437      fi
2438      if test "$2" = conftest.file || test $am_try -eq 2; then
2439        break
2440      fi
2441      # Just in case.
2442      sleep 1
2443      am_has_slept=yes
2444    done
2445    test "$2" = conftest.file
2446    )
2447 then
2448    # Ok.
2449    :
2450 else
2451    as_fn_error $? "newly created file is older than distributed files!
2452 Check your system clock" "$LINENO" 5
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455 $as_echo "yes" >&6; }
2456 # If we didn't sleep, we still need to ensure time stamps of config.status and
2457 # generated files are strictly newer.
2458 am_sleep_pid=
2459 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2460   ( sleep 1 ) &
2461   am_sleep_pid=$!
2462 fi
2463
2464 rm -f conftest.file
2465
2466 test "$program_prefix" != NONE &&
2467   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468 # Use a double $ so make ignores it.
2469 test "$program_suffix" != NONE &&
2470   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471 # Double any \ or $.
2472 # By default was `s,x,x', remove it if useless.
2473 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475
2476 # expand $ac_aux_dir to an absolute path
2477 am_aux_dir=`cd $ac_aux_dir && pwd`
2478
2479 if test x"${MISSING+set}" != xset; then
2480   case $am_aux_dir in
2481   *\ * | *\     *)
2482     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483   *)
2484     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2485   esac
2486 fi
2487 # Use eval to expand $SHELL
2488 if eval "$MISSING --is-lightweight"; then
2489   am_missing_run="$MISSING "
2490 else
2491   am_missing_run=
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2493 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2494 fi
2495
2496 if test x"${install_sh}" != xset; then
2497   case $am_aux_dir in
2498   *\ * | *\     *)
2499     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500   *)
2501     install_sh="\${SHELL} $am_aux_dir/install-sh"
2502   esac
2503 fi
2504
2505 # Installed binaries are usually stripped using 'strip' when the user
2506 # run "make install-strip".  However 'strip' might not be the right
2507 # tool to use in cross-compilation environments, therefore Automake
2508 # will honor the 'STRIP' environment variable to overrule this program.
2509 if test "$cross_compiling" != no; then
2510   if test -n "$ac_tool_prefix"; then
2511   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}strip; ac_word=$2
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if ${ac_cv_prog_STRIP+:} false; then :
2516   $as_echo_n "(cached) " >&6
2517 else
2518   if test -n "$STRIP"; then
2519   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526     for ac_exec_ext in '' $ac_executable_extensions; do
2527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533   done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 STRIP=$ac_cv_prog_STRIP
2539 if test -n "$STRIP"; then
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541 $as_echo "$STRIP" >&6; }
2542 else
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2545 fi
2546
2547
2548 fi
2549 if test -z "$ac_cv_prog_STRIP"; then
2550   ac_ct_STRIP=$STRIP
2551   # Extract the first word of "strip", so it can be a program name with args.
2552 set dummy strip; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556   $as_echo_n "(cached) " >&6
2557 else
2558   if test -n "$ac_ct_STRIP"; then
2559   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564   IFS=$as_save_IFS
2565   test -z "$as_dir" && as_dir=.
2566     for ac_exec_ext in '' $ac_executable_extensions; do
2567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568     ac_cv_prog_ac_ct_STRIP="strip"
2569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570     break 2
2571   fi
2572 done
2573   done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579 if test -n "$ac_ct_STRIP"; then
2580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581 $as_echo "$ac_ct_STRIP" >&6; }
2582 else
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587   if test "x$ac_ct_STRIP" = x; then
2588     STRIP=":"
2589   else
2590     case $cross_compiling:$ac_tool_warned in
2591 yes:)
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594 ac_tool_warned=yes ;;
2595 esac
2596     STRIP=$ac_ct_STRIP
2597   fi
2598 else
2599   STRIP="$ac_cv_prog_STRIP"
2600 fi
2601
2602 fi
2603 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607 if test -z "$MKDIR_P"; then
2608   if ${ac_cv_path_mkdir+:} false; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616     for ac_prog in mkdir gmkdir; do
2617          for ac_exec_ext in '' $ac_executable_extensions; do
2618            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2619            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620              'mkdir (GNU coreutils) '* | \
2621              'mkdir (coreutils) '* | \
2622              'mkdir (fileutils) '4.1*)
2623                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2624                break 3;;
2625            esac
2626          done
2627        done
2628   done
2629 IFS=$as_save_IFS
2630
2631 fi
2632
2633   test -d ./--version && rmdir ./--version
2634   if test "${ac_cv_path_mkdir+set}" = set; then
2635     MKDIR_P="$ac_cv_path_mkdir -p"
2636   else
2637     # As a last resort, use the slow shell script.  Don't cache a
2638     # value for MKDIR_P within a source directory, because that will
2639     # break other packages using the cache if that directory is
2640     # removed, or if the value is a relative name.
2641     MKDIR_P="$ac_install_sh -d"
2642   fi
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645 $as_echo "$MKDIR_P" >&6; }
2646
2647 for ac_prog in gawk mawk nawk awk
2648 do
2649   # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_AWK+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$AWK"; then
2657   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664     for ac_exec_ext in '' $ac_executable_extensions; do
2665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666     ac_cv_prog_AWK="$ac_prog"
2667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671   done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 AWK=$ac_cv_prog_AWK
2677 if test -n "$AWK"; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2680 else
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686   test -n "$AWK" && break
2687 done
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691 set x ${MAKE-make}
2692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694   $as_echo_n "(cached) " >&6
2695 else
2696   cat >conftest.make <<\_ACEOF
2697 SHELL = /bin/sh
2698 all:
2699         @echo '@@@%%%=$(MAKE)=@@@%%%'
2700 _ACEOF
2701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703   *@@@%%%=?*=@@@%%%*)
2704     eval ac_cv_prog_make_${ac_make}_set=yes;;
2705   *)
2706     eval ac_cv_prog_make_${ac_make}_set=no;;
2707 esac
2708 rm -f conftest.make
2709 fi
2710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2713   SET_MAKE=
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717   SET_MAKE="MAKE=${MAKE-make}"
2718 fi
2719
2720 rm -rf .tst 2>/dev/null
2721 mkdir .tst 2>/dev/null
2722 if test -d .tst; then
2723   am__leading_dot=.
2724 else
2725   am__leading_dot=_
2726 fi
2727 rmdir .tst 2>/dev/null
2728
2729 # Check whether --enable-silent-rules was given.
2730 if test "${enable_silent_rules+set}" = set; then :
2731   enableval=$enable_silent_rules;
2732 fi
2733
2734 case $enable_silent_rules in # (((
2735   yes) AM_DEFAULT_VERBOSITY=0;;
2736    no) AM_DEFAULT_VERBOSITY=1;;
2737     *) AM_DEFAULT_VERBOSITY=1;;
2738 esac
2739 am_make=${MAKE-make}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2741 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2742 if ${am_cv_make_support_nested_variables+:} false; then :
2743   $as_echo_n "(cached) " >&6
2744 else
2745   if $as_echo 'TRUE=$(BAR$(V))
2746 BAR0=false
2747 BAR1=true
2748 V=1
2749 am__doit:
2750         @$(TRUE)
2751 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2752   am_cv_make_support_nested_variables=yes
2753 else
2754   am_cv_make_support_nested_variables=no
2755 fi
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2758 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2759 if test $am_cv_make_support_nested_variables = yes; then
2760     AM_V='$(V)'
2761   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2762 else
2763   AM_V=$AM_DEFAULT_VERBOSITY
2764   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2765 fi
2766 AM_BACKSLASH='\'
2767
2768 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2769   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2770   # is not polluted with repeated "-I."
2771   am__isrc=' -I$(srcdir)'
2772   # test to see if srcdir already configured
2773   if test -f $srcdir/config.status; then
2774     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2775   fi
2776 fi
2777
2778 # test whether we have cygpath
2779 if test -z "$CYGPATH_W"; then
2780   if (cygpath --version) >/dev/null 2>/dev/null; then
2781     CYGPATH_W='cygpath -w'
2782   else
2783     CYGPATH_W=echo
2784   fi
2785 fi
2786
2787
2788 # Define the identity of the package.
2789  PACKAGE='gtest'
2790  VERSION='1.6.0'
2791
2792
2793 cat >>confdefs.h <<_ACEOF
2794 #define PACKAGE "$PACKAGE"
2795 _ACEOF
2796
2797
2798 cat >>confdefs.h <<_ACEOF
2799 #define VERSION "$VERSION"
2800 _ACEOF
2801
2802 # Some tools Automake needs.
2803
2804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2805
2806
2807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2808
2809
2810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2811
2812
2813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2814
2815
2816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2817
2818 # For better backward compatibility.  To be removed once Automake 1.9.x
2819 # dies out for good.  For more background, see:
2820 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2821 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2822 mkdir_p='$(MKDIR_P)'
2823
2824 # We need awk for the "check" target.  The system "awk" is bad on
2825 # some platforms.
2826 # Always define AMTAR for backward compatibility.  Yes, it's still used
2827 # in the wild :-(  We should find a proper way to deprecate it ...
2828 AMTAR='$${TAR-tar}'
2829
2830
2831 # We'll loop over all known methods to create a tar archive until one works.
2832 _am_tools='gnutar  pax cpio none'
2833
2834 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2835
2836
2837
2838
2839
2840
2841 # POSIX will say in a future version that running "rm -f" with no argument
2842 # is OK; and we want to be able to make that assumption in our Makefile
2843 # recipes.  So use an aggressive probe to check that the usage we want is
2844 # actually supported "in the wild" to an acceptable degree.
2845 # See automake bug#10828.
2846 # To make any issue more visible, cause the running configure to be aborted
2847 # by default if the 'rm' program in use doesn't match our expectations; the
2848 # user can still override this though.
2849 if rm -f && rm -fr && rm -rf; then : OK; else
2850   cat >&2 <<'END'
2851 Oops!
2852
2853 Your 'rm' program seems unable to run without file operands specified
2854 on the command line, even when the '-f' option is present.  This is contrary
2855 to the behaviour of most rm programs out there, and not conforming with
2856 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2857
2858 Please tell bug-automake@gnu.org about your system, including the value
2859 of your $PATH and any error possibly output before this message.  This
2860 can help us improve future automake versions.
2861
2862 END
2863   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2864     echo 'Configuration will proceed anyway, since you have set the' >&2
2865     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2866     echo >&2
2867   else
2868     cat >&2 <<'END'
2869 Aborting the configuration process, to ensure you take notice of the issue.
2870
2871 You can download and install GNU coreutils to get an 'rm' implementation
2872 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2873
2874 If you want to complete the configuration process using your problematic
2875 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2876 to "yes", and re-run configure.
2877
2878 END
2879     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2880   fi
2881 fi
2882
2883 # Check for programs used in building Google Test.
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 if test -n "$ac_tool_prefix"; then
2890   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895   $as_echo_n "(cached) " >&6
2896 else
2897   if test -n "$CC"; then
2898   ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905     for ac_exec_ext in '' $ac_executable_extensions; do
2906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912   done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2921 else
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929   ac_ct_CC=$CC
2930   # Extract the first word of "gcc", so it can be a program name with args.
2931 set dummy gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   if test -n "$ac_ct_CC"; then
2938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945     for ac_exec_ext in '' $ac_executable_extensions; do
2946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_ac_ct_CC="gcc"
2948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952   done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966   if test "x$ac_ct_CC" = x; then
2967     CC=""
2968   else
2969     case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975     CC=$ac_ct_CC
2976   fi
2977 else
2978   CC="$ac_cv_prog_CC"
2979 fi
2980
2981 if test -z "$CC"; then
2982           if test -n "$ac_tool_prefix"; then
2983     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988   $as_echo_n "(cached) " >&6
2989 else
2990   if test -n "$CC"; then
2991   ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998     for ac_exec_ext in '' $ac_executable_extensions; do
2999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000     ac_cv_prog_CC="${ac_tool_prefix}cc"
3001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005   done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020   fi
3021 fi
3022 if test -z "$CC"; then
3023   # Extract the first word of "cc", so it can be a program name with args.
3024 set dummy cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028   $as_echo_n "(cached) " >&6
3029 else
3030   if test -n "$CC"; then
3031   ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033   ac_prog_rejected=no
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039     for ac_exec_ext in '' $ac_executable_extensions; do
3040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042        ac_prog_rejected=yes
3043        continue
3044      fi
3045     ac_cv_prog_CC="cc"
3046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050   done
3051 IFS=$as_save_IFS
3052
3053 if test $ac_prog_rejected = yes; then
3054   # We found a bogon in the path, so make sure we never use it.
3055   set dummy $ac_cv_prog_CC
3056   shift
3057   if test $# != 0; then
3058     # We chose a different compiler from the bogus one.
3059     # However, it has the same basename, so the bogon will be chosen
3060     # first if we set CC to just the basename; use the full file name.
3061     shift
3062     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063   fi
3064 fi
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if test -z "$CC"; then
3079   if test -n "$ac_tool_prefix"; then
3080   for ac_prog in cl.exe
3081   do
3082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087   $as_echo_n "(cached) " >&6
3088 else
3089   if test -n "$CC"; then
3090   ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097     for ac_exec_ext in '' $ac_executable_extensions; do
3098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104   done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119     test -n "$CC" && break
3120   done
3121 fi
3122 if test -z "$CC"; then
3123   ac_ct_CC=$CC
3124   for ac_prog in cl.exe
3125 do
3126   # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 set dummy $ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test -n "$ac_ct_CC"; then
3134   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141     for ac_exec_ext in '' $ac_executable_extensions; do
3142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143     ac_cv_prog_ac_ct_CC="$ac_prog"
3144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148   done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163   test -n "$ac_ct_CC" && break
3164 done
3165
3166   if test "x$ac_ct_CC" = x; then
3167     CC=""
3168   else
3169     case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175     CC=$ac_ct_CC
3176   fi
3177 fi
3178
3179 fi
3180
3181
3182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details" "$LINENO" 5; }
3186
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3189 set X $ac_compile
3190 ac_compiler=$2
3191 for ac_option in --version -v -V -qversion; do
3192   { { ac_try="$ac_compiler $ac_option >&5"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3200   ac_status=$?
3201   if test -s conftest.err; then
3202     sed '10a\
3203 ... rest of stderr output deleted ...
3204          10q' conftest.err >conftest.er1
3205     cat conftest.er1 >&5
3206   fi
3207   rm -f conftest.er1 conftest.err
3208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209   test $ac_status = 0; }
3210 done
3211
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3225 # Try to create an executable without -o first, disregard a.out.
3226 # It will help us diagnose broken compilers, and finding out an intuition
3227 # of exeext.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229 $as_echo_n "checking whether the C compiler works... " >&6; }
3230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231
3232 # The possible output files:
3233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234
3235 ac_rmfiles=
3236 for ac_file in $ac_files
3237 do
3238   case $ac_file in
3239     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241   esac
3242 done
3243 rm -f $ac_rmfiles
3244
3245 if { { ac_try="$ac_link_default"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252   (eval "$ac_link_default") 2>&5
3253   ac_status=$?
3254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255   test $ac_status = 0; }; then :
3256   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3260 # Autoconf.
3261 for ac_file in $ac_files ''
3262 do
3263   test -f "$ac_file" || continue
3264   case $ac_file in
3265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266         ;;
3267     [ab].out )
3268         # We found the default executable, but exeext='' is most
3269         # certainly right.
3270         break;;
3271     *.* )
3272         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3273         then :; else
3274            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275         fi
3276         # We set ac_cv_exeext here because the later test for it is not
3277         # safe: cross compilers may not add the suffix if given an `-o'
3278         # argument, so we may need to know it at that point already.
3279         # Even if this section looks crufty: it has the advantage of
3280         # actually working.
3281         break;;
3282     * )
3283         break;;
3284   esac
3285 done
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288 else
3289   ac_file=''
3290 fi
3291 if test -z "$ac_file"; then :
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See \`config.log' for more details" "$LINENO" 5; }
3301 else
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308 $as_echo "$ac_file" >&6; }
3309 ac_exeext=$ac_cv_exeext
3310
3311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { 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; }; then :
3326   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3329 # `rm'.
3330 for ac_file in conftest.exe conftest conftest.*; do
3331   test -f "$ac_file" || continue
3332   case $ac_file in
3333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335           break;;
3336     * ) break;;
3337   esac
3338 done
3339 else
3340   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 fi
3345 rm -f conftest conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3348
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3351 ac_exeext=$EXEEXT
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h.  */
3354 #include <stdio.h>
3355 int
3356 main ()
3357 {
3358 FILE *f = fopen ("conftest.out", "w");
3359  return ferror (f) || fclose (f) != 0;
3360
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 ac_clean_files="$ac_clean_files conftest.out"
3366 # Check that the compiler produces executables we can run.  If not, either
3367 # the compiler is broken, or we cross compile.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369 $as_echo_n "checking whether we are cross compiling... " >&6; }
3370 if test "$cross_compiling" != yes; then
3371   { { ac_try="$ac_link"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378   (eval "$ac_link") 2>&5
3379   ac_status=$?
3380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381   test $ac_status = 0; }
3382   if { ac_try='./conftest$ac_cv_exeext'
3383   { { case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389   (eval "$ac_try") 2>&5
3390   ac_status=$?
3391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392   test $ac_status = 0; }; }; then
3393     cross_compiling=no
3394   else
3395     if test "$cross_compiling" = maybe; then
3396         cross_compiling=yes
3397     else
3398         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details" "$LINENO" 5; }
3403     fi
3404   fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407 $as_echo "$cross_compiling" >&6; }
3408
3409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412 $as_echo_n "checking for suffix of object files... " >&6; }
3413 if ${ac_cv_objext+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.o conftest.obj
3428 if { { ac_try="$ac_compile"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435   (eval "$ac_compile") 2>&5
3436   ac_status=$?
3437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438   test $ac_status = 0; }; then :
3439   for ac_file in conftest.o conftest.obj conftest.*; do
3440   test -f "$ac_file" || continue;
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444        break;;
3445   esac
3446 done
3447 else
3448   $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 $as_echo "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3461 ac_objext=$OBJEXT
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464 if ${ac_cv_c_compiler_gnu+:} false; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473 #ifndef __GNUC__
3474        choke me
3475 #endif
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482   ac_compiler_gnu=yes
3483 else
3484   ac_compiler_gnu=no
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3493   GCC=yes
3494 else
3495   GCC=
3496 fi
3497 ac_test_CFLAGS=${CFLAGS+set}
3498 ac_save_CFLAGS=$CFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3501 if ${ac_cv_prog_cc_g+:} false; then :
3502   $as_echo_n "(cached) " >&6
3503 else
3504   ac_save_c_werror_flag=$ac_c_werror_flag
3505    ac_c_werror_flag=yes
3506    ac_cv_prog_cc_g=no
3507    CFLAGS="-g"
3508    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510
3511 int
3512 main ()
3513 {
3514
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520   ac_cv_prog_cc_g=yes
3521 else
3522   CFLAGS=""
3523       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535
3536 else
3537   ac_c_werror_flag=$ac_save_c_werror_flag
3538          CFLAGS="-g"
3539          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_g=yes
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558    ac_c_werror_flag=$ac_save_c_werror_flag
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561 $as_echo "$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563   CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565   if test "$GCC" = yes; then
3566     CFLAGS="-g -O2"
3567   else
3568     CFLAGS="-g"
3569   fi
3570 else
3571   if test "$GCC" = yes; then
3572     CFLAGS="-O2"
3573   else
3574     CFLAGS=
3575   fi
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579 if ${ac_cv_prog_cc_c89+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   ac_cv_prog_cc_c89=no
3583 ac_save_CC=$CC
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586 #include <stdarg.h>
3587 #include <stdio.h>
3588 struct stat;
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3593      char **p;
3594      int i;
3595 {
3596   return p[i];
3597 }
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3599 {
3600   char *s;
3601   va_list v;
3602   va_start (v,p);
3603   s = g (p, va_arg (v,int));
3604   va_end (v);
3605   return s;
3606 }
3607
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3609    function prototypes and stuff, but not '\xHH' hex character constants.
3610    These don't provoke an error unfortunately, instead are silently treated
3611    as 'x'.  The following induces an error, until -std is added to get
3612    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3613    array size at least.  It's necessary to write '\x00'==0 to get something
3614    that's true only with -std.  */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618    inside strings and character constants.  */
3619 #define FOO(x) 'x'
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 int argc;
3627 char **argv;
3628 int
3629 main ()
3630 {
3631 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638 do
3639   CC="$ac_save_CC $ac_arg"
3640   if ac_fn_c_try_compile "$LINENO"; then :
3641   ac_cv_prog_cc_c89=$ac_arg
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext
3644   test "x$ac_cv_prog_cc_c89" != "xno" && break
3645 done
3646 rm -f conftest.$ac_ext
3647 CC=$ac_save_CC
3648
3649 fi
3650 # AC_CACHE_VAL
3651 case "x$ac_cv_prog_cc_c89" in
3652   x)
3653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3655   xno)
3656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3658   *)
3659     CC="$CC $ac_cv_prog_cc_c89"
3660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662 esac
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3664
3665 fi
3666
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673 ac_ext=c
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3679 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3680 if ${am_cv_prog_cc_c_o+:} false; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h.  */
3685
3686 int
3687 main ()
3688 {
3689
3690   ;
3691   return 0;
3692 }
3693 _ACEOF
3694   # Make sure it works both with $CC and with simple cc.
3695   # Following AC_PROG_CC_C_O, we do the test twice because some
3696   # compilers refuse to overwrite an existing .o file with -o,
3697   # though they will create one.
3698   am_cv_prog_cc_c_o=yes
3699   for am_i in 1 2; do
3700     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3701    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3702    ac_status=$?
3703    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704    (exit $ac_status); } \
3705          && test -f conftest2.$ac_objext; then
3706       : OK
3707     else
3708       am_cv_prog_cc_c_o=no
3709       break
3710     fi
3711   done
3712   rm -f core conftest*
3713   unset am_i
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3716 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3717 if test "$am_cv_prog_cc_c_o" != yes; then
3718    # Losing compiler, so override with the script.
3719    # FIXME: It is wrong to rewrite CC.
3720    # But if we don't then we get into trouble of one sort or another.
3721    # A longer-term fix would be to have automake use am__CC in this case,
3722    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3723    CC="$am_aux_dir/compile $CC"
3724 fi
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730
3731 DEPDIR="${am__leading_dot}deps"
3732
3733 ac_config_commands="$ac_config_commands depfiles"
3734
3735
3736 am_make=${MAKE-make}
3737 cat > confinc << 'END'
3738 am__doit:
3739         @echo this is the am__doit target
3740 .PHONY: am__doit
3741 END
3742 # If we don't find an include directive, just comment out the code.
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3744 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3745 am__include="#"
3746 am__quote=
3747 _am_result=none
3748 # First try GNU make style include.
3749 echo "include confinc" > confmf
3750 # Ignore all kinds of additional output from 'make'.
3751 case `$am_make -s -f confmf 2> /dev/null` in #(
3752 *the\ am__doit\ target*)
3753   am__include=include
3754   am__quote=
3755   _am_result=GNU
3756   ;;
3757 esac
3758 # Now try BSD make style include.
3759 if test "$am__include" = "#"; then
3760    echo '.include "confinc"' > confmf
3761    case `$am_make -s -f confmf 2> /dev/null` in #(
3762    *the\ am__doit\ target*)
3763      am__include=.include
3764      am__quote="\""
3765      _am_result=BSD
3766      ;;
3767    esac
3768 fi
3769
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3772 $as_echo "$_am_result" >&6; }
3773 rm -f confinc confmf
3774
3775 # Check whether --enable-dependency-tracking was given.
3776 if test "${enable_dependency_tracking+set}" = set; then :
3777   enableval=$enable_dependency_tracking;
3778 fi
3779
3780 if test "x$enable_dependency_tracking" != xno; then
3781   am_depcomp="$ac_aux_dir/depcomp"
3782   AMDEPBACKSLASH='\'
3783   am__nodep='_no'
3784 fi
3785  if test "x$enable_dependency_tracking" != xno; then
3786   AMDEP_TRUE=
3787   AMDEP_FALSE='#'
3788 else
3789   AMDEP_TRUE='#'
3790   AMDEP_FALSE=
3791 fi
3792
3793
3794
3795 depcc="$CC"   am_compiler_list=
3796
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
3799 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3800   $as_echo_n "(cached) " >&6
3801 else
3802   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3803   # We make a subdir and do the tests there.  Otherwise we can end up
3804   # making bogus files that we don't know about and never remove.  For
3805   # instance it was reported that on HP-UX the gcc test will end up
3806   # making a dummy file named 'D' -- because '-MD' means "put the output
3807   # in D".
3808   rm -rf conftest.dir
3809   mkdir conftest.dir
3810   # Copy depcomp to subdir because otherwise we won't find it if we're
3811   # using a relative directory.
3812   cp "$am_depcomp" conftest.dir
3813   cd conftest.dir
3814   # We will build objects and dependencies in a subdirectory because
3815   # it helps to detect inapplicable dependency modes.  For instance
3816   # both Tru64's cc and ICC support -MD to output dependencies as a
3817   # side effect of compilation, but ICC will put the dependencies in
3818   # the current directory while Tru64 will put them in the object
3819   # directory.
3820   mkdir sub
3821
3822   am_cv_CC_dependencies_compiler_type=none
3823   if test "$am_compiler_list" = ""; then
3824      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3825   fi
3826   am__universal=false
3827   case " $depcc " in #(
3828      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3829      esac
3830
3831   for depmode in $am_compiler_list; do
3832     # Setup a source with many dependencies, because some compilers
3833     # like to wrap large dependency lists on column 80 (with \), and
3834     # we should not choose a depcomp mode which is confused by this.
3835     #
3836     # We need to recreate these files for each test, as the compiler may
3837     # overwrite some of them when testing with obscure command lines.
3838     # This happens at least with the AIX C compiler.
3839     : > sub/conftest.c
3840     for i in 1 2 3 4 5 6; do
3841       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3842       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3843       # Solaris 10 /bin/sh.
3844       echo '/* dummy */' > sub/conftst$i.h
3845     done
3846     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3847
3848     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3849     # mode.  It turns out that the SunPro C++ compiler does not properly
3850     # handle '-M -o', and we need to detect this.  Also, some Intel
3851     # versions had trouble with output in subdirs.
3852     am__obj=sub/conftest.${OBJEXT-o}
3853     am__minus_obj="-o $am__obj"
3854     case $depmode in
3855     gcc)
3856       # This depmode causes a compiler race in universal mode.
3857       test "$am__universal" = false || continue
3858       ;;
3859     nosideeffect)
3860       # After this tag, mechanisms are not by side-effect, so they'll
3861       # only be used when explicitly requested.
3862       if test "x$enable_dependency_tracking" = xyes; then
3863         continue
3864       else
3865         break
3866       fi
3867       ;;
3868     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3869       # This compiler won't grok '-c -o', but also, the minuso test has
3870       # not run yet.  These depmodes are late enough in the game, and
3871       # so weak that their functioning should not be impacted.
3872       am__obj=conftest.${OBJEXT-o}
3873       am__minus_obj=
3874       ;;
3875     none) break ;;
3876     esac
3877     if depmode=$depmode \
3878        source=sub/conftest.c object=$am__obj \
3879        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3880        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3881          >/dev/null 2>conftest.err &&
3882        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3883        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3884        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3885        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3886       # icc doesn't choke on unknown options, it will just issue warnings
3887       # or remarks (even with -Werror).  So we grep stderr for any message
3888       # that says an option was ignored or not supported.
3889       # When given -MP, icc 7.0 and 7.1 complain thusly:
3890       #   icc: Command line warning: ignoring option '-M'; no argument required
3891       # The diagnosis changed in icc 8.0:
3892       #   icc: Command line remark: option '-MP' not supported
3893       if (grep 'ignoring option' conftest.err ||
3894           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3895         am_cv_CC_dependencies_compiler_type=$depmode
3896         break
3897       fi
3898     fi
3899   done
3900
3901   cd ..
3902   rm -rf conftest.dir
3903 else
3904   am_cv_CC_dependencies_compiler_type=none
3905 fi
3906
3907 fi
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3909 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3911
3912  if
3913   test "x$enable_dependency_tracking" != xno \
3914   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3915   am__fastdepCC_TRUE=
3916   am__fastdepCC_FALSE='#'
3917 else
3918   am__fastdepCC_TRUE='#'
3919   am__fastdepCC_FALSE=
3920 fi
3921
3922
3923 ac_ext=cpp
3924 ac_cpp='$CXXCPP $CPPFLAGS'
3925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3928 if test -z "$CXX"; then
3929   if test -n "$CCC"; then
3930     CXX=$CCC
3931   else
3932     if test -n "$ac_tool_prefix"; then
3933   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3934   do
3935     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CXX+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -n "$CXX"; then
3943   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957   done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CXX=$ac_cv_prog_CXX
3963 if test -n "$CXX"; then
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3965 $as_echo "$CXX" >&6; }
3966 else
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972     test -n "$CXX" && break
3973   done
3974 fi
3975 if test -z "$CXX"; then
3976   ac_ct_CXX=$CXX
3977   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3978 do
3979   # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   if test -n "$ac_ct_CXX"; then
3987   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994     for ac_exec_ext in '' $ac_executable_extensions; do
3995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996     ac_cv_prog_ac_ct_CXX="$ac_prog"
3997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001   done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4007 if test -n "$ac_ct_CXX"; then
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4009 $as_echo "$ac_ct_CXX" >&6; }
4010 else
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016   test -n "$ac_ct_CXX" && break
4017 done
4018
4019   if test "x$ac_ct_CXX" = x; then
4020     CXX="g++"
4021   else
4022     case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028     CXX=$ac_ct_CXX
4029   fi
4030 fi
4031
4032   fi
4033 fi
4034 # Provide some information about the compiler.
4035 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4036 set X $ac_compile
4037 ac_compiler=$2
4038 for ac_option in --version -v -V -qversion; do
4039   { { ac_try="$ac_compiler $ac_option >&5"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4047   ac_status=$?
4048   if test -s conftest.err; then
4049     sed '10a\
4050 ... rest of stderr output deleted ...
4051          10q' conftest.err >conftest.er1
4052     cat conftest.er1 >&5
4053   fi
4054   rm -f conftest.er1 conftest.err
4055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056   test $ac_status = 0; }
4057 done
4058
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4060 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4061 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h.  */
4066
4067 int
4068 main ()
4069 {
4070 #ifndef __GNUC__
4071        choke me
4072 #endif
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 if ac_fn_cxx_try_compile "$LINENO"; then :
4079   ac_compiler_gnu=yes
4080 else
4081   ac_compiler_gnu=no
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4085
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4088 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4089 if test $ac_compiler_gnu = yes; then
4090   GXX=yes
4091 else
4092   GXX=
4093 fi
4094 ac_test_CXXFLAGS=${CXXFLAGS+set}
4095 ac_save_CXXFLAGS=$CXXFLAGS
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4097 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4098 if ${ac_cv_prog_cxx_g+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4102    ac_cxx_werror_flag=yes
4103    ac_cv_prog_cxx_g=no
4104    CXXFLAGS="-g"
4105    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h.  */
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_cxx_try_compile "$LINENO"; then :
4117   ac_cv_prog_cxx_g=yes
4118 else
4119   CXXFLAGS=""
4120       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h.  */
4122
4123 int
4124 main ()
4125 {
4126
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_cxx_try_compile "$LINENO"; then :
4132
4133 else
4134   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4135          CXXFLAGS="-g"
4136          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_cxx_try_compile "$LINENO"; then :
4148   ac_cv_prog_cxx_g=yes
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4158 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4159 if test "$ac_test_CXXFLAGS" = set; then
4160   CXXFLAGS=$ac_save_CXXFLAGS
4161 elif test $ac_cv_prog_cxx_g = yes; then
4162   if test "$GXX" = yes; then
4163     CXXFLAGS="-g -O2"
4164   else
4165     CXXFLAGS="-g"
4166   fi
4167 else
4168   if test "$GXX" = yes; then
4169     CXXFLAGS="-O2"
4170   else
4171     CXXFLAGS=
4172   fi
4173 fi
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179
4180 depcc="$CXX"  am_compiler_list=
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188   # We make a subdir and do the tests there.  Otherwise we can end up
4189   # making bogus files that we don't know about and never remove.  For
4190   # instance it was reported that on HP-UX the gcc test will end up
4191   # making a dummy file named 'D' -- because '-MD' means "put the output
4192   # in D".
4193   rm -rf conftest.dir
4194   mkdir conftest.dir
4195   # Copy depcomp to subdir because otherwise we won't find it if we're
4196   # using a relative directory.
4197   cp "$am_depcomp" conftest.dir
4198   cd conftest.dir
4199   # We will build objects and dependencies in a subdirectory because
4200   # it helps to detect inapplicable dependency modes.  For instance
4201   # both Tru64's cc and ICC support -MD to output dependencies as a
4202   # side effect of compilation, but ICC will put the dependencies in
4203   # the current directory while Tru64 will put them in the object
4204   # directory.
4205   mkdir sub
4206
4207   am_cv_CXX_dependencies_compiler_type=none
4208   if test "$am_compiler_list" = ""; then
4209      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4210   fi
4211   am__universal=false
4212   case " $depcc " in #(
4213      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4214      esac
4215
4216   for depmode in $am_compiler_list; do
4217     # Setup a source with many dependencies, because some compilers
4218     # like to wrap large dependency lists on column 80 (with \), and
4219     # we should not choose a depcomp mode which is confused by this.
4220     #
4221     # We need to recreate these files for each test, as the compiler may
4222     # overwrite some of them when testing with obscure command lines.
4223     # This happens at least with the AIX C compiler.
4224     : > sub/conftest.c
4225     for i in 1 2 3 4 5 6; do
4226       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4228       # Solaris 10 /bin/sh.
4229       echo '/* dummy */' > sub/conftst$i.h
4230     done
4231     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232
4233     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4234     # mode.  It turns out that the SunPro C++ compiler does not properly
4235     # handle '-M -o', and we need to detect this.  Also, some Intel
4236     # versions had trouble with output in subdirs.
4237     am__obj=sub/conftest.${OBJEXT-o}
4238     am__minus_obj="-o $am__obj"
4239     case $depmode in
4240     gcc)
4241       # This depmode causes a compiler race in universal mode.
4242       test "$am__universal" = false || continue
4243       ;;
4244     nosideeffect)
4245       # After this tag, mechanisms are not by side-effect, so they'll
4246       # only be used when explicitly requested.
4247       if test "x$enable_dependency_tracking" = xyes; then
4248         continue
4249       else
4250         break
4251       fi
4252       ;;
4253     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254       # This compiler won't grok '-c -o', but also, the minuso test has
4255       # not run yet.  These depmodes are late enough in the game, and
4256       # so weak that their functioning should not be impacted.
4257       am__obj=conftest.${OBJEXT-o}
4258       am__minus_obj=
4259       ;;
4260     none) break ;;
4261     esac
4262     if depmode=$depmode \
4263        source=sub/conftest.c object=$am__obj \
4264        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266          >/dev/null 2>conftest.err &&
4267        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271       # icc doesn't choke on unknown options, it will just issue warnings
4272       # or remarks (even with -Werror).  So we grep stderr for any message
4273       # that says an option was ignored or not supported.
4274       # When given -MP, icc 7.0 and 7.1 complain thusly:
4275       #   icc: Command line warning: ignoring option '-M'; no argument required
4276       # The diagnosis changed in icc 8.0:
4277       #   icc: Command line remark: option '-MP' not supported
4278       if (grep 'ignoring option' conftest.err ||
4279           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280         am_cv_CXX_dependencies_compiler_type=$depmode
4281         break
4282       fi
4283     fi
4284   done
4285
4286   cd ..
4287   rm -rf conftest.dir
4288 else
4289   am_cv_CXX_dependencies_compiler_type=none
4290 fi
4291
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4294 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4295 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4296
4297  if
4298   test "x$enable_dependency_tracking" != xno \
4299   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4300   am__fastdepCXX_TRUE=
4301   am__fastdepCXX_FALSE='#'
4302 else
4303   am__fastdepCXX_TRUE='#'
4304   am__fastdepCXX_FALSE=
4305 fi
4306
4307
4308 ac_ext=cpp
4309 ac_cpp='$CXXCPP $CPPFLAGS'
4310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4313
4314 case `pwd` in
4315   *\ * | *\     *)
4316     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4318 esac
4319
4320
4321
4322 macro_version='2.4.2'
4323 macro_revision='1.3337'
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337 ltmain="$ac_aux_dir/ltmain.sh"
4338
4339 # Make sure we can run config.sub.
4340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4341   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4344 $as_echo_n "checking build system type... " >&6; }
4345 if ${ac_cv_build+:} false; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   ac_build_alias=$build_alias
4349 test "x$ac_build_alias" = x &&
4350   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4351 test "x$ac_build_alias" = x &&
4352   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4354   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4358 $as_echo "$ac_cv_build" >&6; }
4359 case $ac_cv_build in
4360 *-*-*) ;;
4361 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4362 esac
4363 build=$ac_cv_build
4364 ac_save_IFS=$IFS; IFS='-'
4365 set x $ac_cv_build
4366 shift
4367 build_cpu=$1
4368 build_vendor=$2
4369 shift; shift
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4372 build_os=$*
4373 IFS=$ac_save_IFS
4374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4378 $as_echo_n "checking host system type... " >&6; }
4379 if ${ac_cv_host+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   if test "x$host_alias" = x; then
4383   ac_cv_host=$ac_cv_build
4384 else
4385   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4386     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4387 fi
4388
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4391 $as_echo "$ac_cv_host" >&6; }
4392 case $ac_cv_host in
4393 *-*-*) ;;
4394 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4395 esac
4396 host=$ac_cv_host
4397 ac_save_IFS=$IFS; IFS='-'
4398 set x $ac_cv_host
4399 shift
4400 host_cpu=$1
4401 host_vendor=$2
4402 shift; shift
4403 # Remember, the first character of IFS is used to create $*,
4404 # except with old shells:
4405 host_os=$*
4406 IFS=$ac_save_IFS
4407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4408
4409
4410 # Backslashify metacharacters that are still active within
4411 # double-quoted strings.
4412 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4413
4414 # Same as above, but do not quote variable references.
4415 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4416
4417 # Sed substitution to delay expansion of an escaped shell variable in a
4418 # double_quote_subst'ed string.
4419 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4420
4421 # Sed substitution to delay expansion of an escaped single quote.
4422 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4423
4424 # Sed substitution to avoid accidental globbing in evaled expressions
4425 no_glob_subst='s/\*/\\\*/g'
4426
4427 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4428 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4429 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4432 $as_echo_n "checking how to print strings... " >&6; }
4433 # Test print first, because it will be a builtin if present.
4434 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4435    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4436   ECHO='print -r --'
4437 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4438   ECHO='printf %s\n'
4439 else
4440   # Use this function as a fallback that always works.
4441   func_fallback_echo ()
4442   {
4443     eval 'cat <<_LTECHO_EOF
4444 $1
4445 _LTECHO_EOF'
4446   }
4447   ECHO='func_fallback_echo'
4448 fi
4449
4450 # func_echo_all arg...
4451 # Invoke $ECHO with all args, space-separated.
4452 func_echo_all ()
4453 {
4454     $ECHO ""
4455 }
4456
4457 case "$ECHO" in
4458   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4459 $as_echo "printf" >&6; } ;;
4460   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4461 $as_echo "print -r" >&6; } ;;
4462   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4463 $as_echo "cat" >&6; } ;;
4464 esac
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4480 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4481 if ${ac_cv_path_SED+:} false; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4485      for ac_i in 1 2 3 4 5 6 7; do
4486        ac_script="$ac_script$as_nl$ac_script"
4487      done
4488      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4489      { ac_script=; unset ac_script;}
4490      if test -z "$SED"; then
4491   ac_path_SED_found=false
4492   # Loop through the user's path and test for each of PROGNAME-LIST
4493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498     for ac_prog in sed gsed; do
4499     for ac_exec_ext in '' $ac_executable_extensions; do
4500       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4501       as_fn_executable_p "$ac_path_SED" || continue
4502 # Check for GNU ac_path_SED and select it if it is found.
4503   # Check for GNU $ac_path_SED
4504 case `"$ac_path_SED" --version 2>&1` in
4505 *GNU*)
4506   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4507 *)
4508   ac_count=0
4509   $as_echo_n 0123456789 >"conftest.in"
4510   while :
4511   do
4512     cat "conftest.in" "conftest.in" >"conftest.tmp"
4513     mv "conftest.tmp" "conftest.in"
4514     cp "conftest.in" "conftest.nl"
4515     $as_echo '' >> "conftest.nl"
4516     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518     as_fn_arith $ac_count + 1 && ac_count=$as_val
4519     if test $ac_count -gt ${ac_path_SED_max-0}; then
4520       # Best one so far, save it but keep looking for a better one
4521       ac_cv_path_SED="$ac_path_SED"
4522       ac_path_SED_max=$ac_count
4523     fi
4524     # 10*(2^10) chars as input seems more than enough
4525     test $ac_count -gt 10 && break
4526   done
4527   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4528 esac
4529
4530       $ac_path_SED_found && break 3
4531     done
4532   done
4533   done
4534 IFS=$as_save_IFS
4535   if test -z "$ac_cv_path_SED"; then
4536     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4537   fi
4538 else
4539   ac_cv_path_SED=$SED
4540 fi
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4544 $as_echo "$ac_cv_path_SED" >&6; }
4545  SED="$ac_cv_path_SED"
4546   rm -f conftest.sed
4547
4548 test -z "$SED" && SED=sed
4549 Xsed="$SED -e 1s/^X//"
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if ${ac_cv_path_GREP+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -z "$GREP"; then
4567   ac_path_GREP_found=false
4568   # Loop through the user's path and test for each of PROGNAME-LIST
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574     for ac_prog in grep ggrep; do
4575     for ac_exec_ext in '' $ac_executable_extensions; do
4576       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577       as_fn_executable_p "$ac_path_GREP" || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579   # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4581 *GNU*)
4582   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4583 *)
4584   ac_count=0
4585   $as_echo_n 0123456789 >"conftest.in"
4586   while :
4587   do
4588     cat "conftest.in" "conftest.in" >"conftest.tmp"
4589     mv "conftest.tmp" "conftest.in"
4590     cp "conftest.in" "conftest.nl"
4591     $as_echo 'GREP' >> "conftest.nl"
4592     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594     as_fn_arith $ac_count + 1 && ac_count=$as_val
4595     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596       # Best one so far, save it but keep looking for a better one
4597       ac_cv_path_GREP="$ac_path_GREP"
4598       ac_path_GREP_max=$ac_count
4599     fi
4600     # 10*(2^10) chars as input seems more than enough
4601     test $ac_count -gt 10 && break
4602   done
4603   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4605
4606       $ac_path_GREP_found && break 3
4607     done
4608   done
4609   done
4610 IFS=$as_save_IFS
4611   if test -z "$ac_cv_path_GREP"; then
4612     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613   fi
4614 else
4615   ac_cv_path_GREP=$GREP
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621  GREP="$ac_cv_path_GREP"
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if ${ac_cv_path_EGREP+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630    then ac_cv_path_EGREP="$GREP -E"
4631    else
4632      if test -z "$EGREP"; then
4633   ac_path_EGREP_found=false
4634   # Loop through the user's path and test for each of PROGNAME-LIST
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_prog in egrep; do
4641     for ac_exec_ext in '' $ac_executable_extensions; do
4642       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643       as_fn_executable_p "$ac_path_EGREP" || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645   # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4647 *GNU*)
4648   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4649 *)
4650   ac_count=0
4651   $as_echo_n 0123456789 >"conftest.in"
4652   while :
4653   do
4654     cat "conftest.in" "conftest.in" >"conftest.tmp"
4655     mv "conftest.tmp" "conftest.in"
4656     cp "conftest.in" "conftest.nl"
4657     $as_echo 'EGREP' >> "conftest.nl"
4658     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660     as_fn_arith $ac_count + 1 && ac_count=$as_val
4661     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662       # Best one so far, save it but keep looking for a better one
4663       ac_cv_path_EGREP="$ac_path_EGREP"
4664       ac_path_EGREP_max=$ac_count
4665     fi
4666     # 10*(2^10) chars as input seems more than enough
4667     test $ac_count -gt 10 && break
4668   done
4669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 esac
4671
4672       $ac_path_EGREP_found && break 3
4673     done
4674   done
4675   done
4676 IFS=$as_save_IFS
4677   if test -z "$ac_cv_path_EGREP"; then
4678     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4679   fi
4680 else
4681   ac_cv_path_EGREP=$EGREP
4682 fi
4683
4684    fi
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688  EGREP="$ac_cv_path_EGREP"
4689
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4692 $as_echo_n "checking for fgrep... " >&6; }
4693 if ${ac_cv_path_FGREP+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4697    then ac_cv_path_FGREP="$GREP -F"
4698    else
4699      if test -z "$FGREP"; then
4700   ac_path_FGREP_found=false
4701   # Loop through the user's path and test for each of PROGNAME-LIST
4702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707     for ac_prog in fgrep; do
4708     for ac_exec_ext in '' $ac_executable_extensions; do
4709       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4710       as_fn_executable_p "$ac_path_FGREP" || continue
4711 # Check for GNU ac_path_FGREP and select it if it is found.
4712   # Check for GNU $ac_path_FGREP
4713 case `"$ac_path_FGREP" --version 2>&1` in
4714 *GNU*)
4715   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4716 *)
4717   ac_count=0
4718   $as_echo_n 0123456789 >"conftest.in"
4719   while :
4720   do
4721     cat "conftest.in" "conftest.in" >"conftest.tmp"
4722     mv "conftest.tmp" "conftest.in"
4723     cp "conftest.in" "conftest.nl"
4724     $as_echo 'FGREP' >> "conftest.nl"
4725     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727     as_fn_arith $ac_count + 1 && ac_count=$as_val
4728     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4729       # Best one so far, save it but keep looking for a better one
4730       ac_cv_path_FGREP="$ac_path_FGREP"
4731       ac_path_FGREP_max=$ac_count
4732     fi
4733     # 10*(2^10) chars as input seems more than enough
4734     test $ac_count -gt 10 && break
4735   done
4736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 esac
4738
4739       $ac_path_FGREP_found && break 3
4740     done
4741   done
4742   done
4743 IFS=$as_save_IFS
4744   if test -z "$ac_cv_path_FGREP"; then
4745     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4746   fi
4747 else
4748   ac_cv_path_FGREP=$FGREP
4749 fi
4750
4751    fi
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4754 $as_echo "$ac_cv_path_FGREP" >&6; }
4755  FGREP="$ac_cv_path_FGREP"
4756
4757
4758 test -z "$GREP" && GREP=grep
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778 # Check whether --with-gnu-ld was given.
4779 if test "${with_gnu_ld+set}" = set; then :
4780   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4781 else
4782   with_gnu_ld=no
4783 fi
4784
4785 ac_prog=ld
4786 if test "$GCC" = yes; then
4787   # Check if gcc -print-prog-name=ld gives a path.
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4789 $as_echo_n "checking for ld used by $CC... " >&6; }
4790   case $host in
4791   *-*-mingw*)
4792     # gcc leaves a trailing carriage return which upsets mingw
4793     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4794   *)
4795     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4796   esac
4797   case $ac_prog in
4798     # Accept absolute paths.
4799     [\\/]* | ?:[\\/]*)
4800       re_direlt='/[^/][^/]*/\.\./'
4801       # Canonicalize the pathname of ld
4802       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4803       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4804         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4805       done
4806       test -z "$LD" && LD="$ac_prog"
4807       ;;
4808   "")
4809     # If it fails, then pretend we aren't using GCC.
4810     ac_prog=ld
4811     ;;
4812   *)
4813     # If it is relative, then search for the first ld in PATH.
4814     with_gnu_ld=unknown
4815     ;;
4816   esac
4817 elif test "$with_gnu_ld" = yes; then
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4819 $as_echo_n "checking for GNU ld... " >&6; }
4820 else
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4822 $as_echo_n "checking for non-GNU ld... " >&6; }
4823 fi
4824 if ${lt_cv_path_LD+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   if test -z "$LD"; then
4828   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4829   for ac_dir in $PATH; do
4830     IFS="$lt_save_ifs"
4831     test -z "$ac_dir" && ac_dir=.
4832     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4833       lt_cv_path_LD="$ac_dir/$ac_prog"
4834       # Check to see if the program is GNU ld.  I'd rather use --version,
4835       # but apparently some variants of GNU ld only accept -v.
4836       # Break only if it was the GNU/non-GNU ld that we prefer.
4837       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4838       *GNU* | *'with BFD'*)
4839         test "$with_gnu_ld" != no && break
4840         ;;
4841       *)
4842         test "$with_gnu_ld" != yes && break
4843         ;;
4844       esac
4845     fi
4846   done
4847   IFS="$lt_save_ifs"
4848 else
4849   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4850 fi
4851 fi
4852
4853 LD="$lt_cv_path_LD"
4854 if test -n "$LD"; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4856 $as_echo "$LD" >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4864 if ${lt_cv_prog_gnu_ld+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4868 case `$LD -v 2>&1 </dev/null` in
4869 *GNU* | *'with BFD'*)
4870   lt_cv_prog_gnu_ld=yes
4871   ;;
4872 *)
4873   lt_cv_prog_gnu_ld=no
4874   ;;
4875 esac
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4879 with_gnu_ld=$lt_cv_prog_gnu_ld
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4891 if ${lt_cv_path_NM+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if test -n "$NM"; then
4895   # Let the user override the test.
4896   lt_cv_path_NM="$NM"
4897 else
4898   lt_nm_to_check="${ac_tool_prefix}nm"
4899   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4900     lt_nm_to_check="$lt_nm_to_check nm"
4901   fi
4902   for lt_tmp_nm in $lt_nm_to_check; do
4903     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4904     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4905       IFS="$lt_save_ifs"
4906       test -z "$ac_dir" && ac_dir=.
4907       tmp_nm="$ac_dir/$lt_tmp_nm"
4908       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4909         # Check to see if the nm accepts a BSD-compat flag.
4910         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4911         #   nm: unknown option "B" ignored
4912         # Tru64's nm complains that /dev/null is an invalid object file
4913         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4914         */dev/null* | *'Invalid file or object type'*)
4915           lt_cv_path_NM="$tmp_nm -B"
4916           break
4917           ;;
4918         *)
4919           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4920           */dev/null*)
4921             lt_cv_path_NM="$tmp_nm -p"
4922             break
4923             ;;
4924           *)
4925             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4926             continue # so that we can try to find one that supports BSD flags
4927             ;;
4928           esac
4929           ;;
4930         esac
4931       fi
4932     done
4933     IFS="$lt_save_ifs"
4934   done
4935   : ${lt_cv_path_NM=no}
4936 fi
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4939 $as_echo "$lt_cv_path_NM" >&6; }
4940 if test "$lt_cv_path_NM" != "no"; then
4941   NM="$lt_cv_path_NM"
4942 else
4943   # Didn't find any BSD compatible name lister, look for dumpbin.
4944   if test -n "$DUMPBIN"; then :
4945     # Let the user override the test.
4946   else
4947     if test -n "$ac_tool_prefix"; then
4948   for ac_prog in dumpbin "link -dump"
4949   do
4950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_DUMPBIN+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   if test -n "$DUMPBIN"; then
4958   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 DUMPBIN=$ac_cv_prog_DUMPBIN
4978 if test -n "$DUMPBIN"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4980 $as_echo "$DUMPBIN" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987     test -n "$DUMPBIN" && break
4988   done
4989 fi
4990 if test -z "$DUMPBIN"; then
4991   ac_ct_DUMPBIN=$DUMPBIN
4992   for ac_prog in dumpbin "link -dump"
4993 do
4994   # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4999   $as_echo_n "(cached) " >&6
5000 else
5001   if test -n "$ac_ct_DUMPBIN"; then
5002   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007   IFS=$as_save_IFS
5008   test -z "$as_dir" && as_dir=.
5009     for ac_exec_ext in '' $ac_executable_extensions; do
5010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013     break 2
5014   fi
5015 done
5016   done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5022 if test -n "$ac_ct_DUMPBIN"; then
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5024 $as_echo "$ac_ct_DUMPBIN" >&6; }
5025 else
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031   test -n "$ac_ct_DUMPBIN" && break
5032 done
5033
5034   if test "x$ac_ct_DUMPBIN" = x; then
5035     DUMPBIN=":"
5036   else
5037     case $cross_compiling:$ac_tool_warned in
5038 yes:)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5042 esac
5043     DUMPBIN=$ac_ct_DUMPBIN
5044   fi
5045 fi
5046
5047     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5048     *COFF*)
5049       DUMPBIN="$DUMPBIN -symbols"
5050       ;;
5051     *)
5052       DUMPBIN=:
5053       ;;
5054     esac
5055   fi
5056
5057   if test "$DUMPBIN" != ":"; then
5058     NM="$DUMPBIN"
5059   fi
5060 fi
5061 test -z "$NM" && NM=nm
5062
5063
5064
5065
5066
5067
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5069 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5070 if ${lt_cv_nm_interface+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   lt_cv_nm_interface="BSD nm"
5074   echo "int some_variable = 0;" > conftest.$ac_ext
5075   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5076   (eval "$ac_compile" 2>conftest.err)
5077   cat conftest.err >&5
5078   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5079   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5080   cat conftest.err >&5
5081   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5082   cat conftest.out >&5
5083   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5084     lt_cv_nm_interface="MS dumpbin"
5085   fi
5086   rm -f conftest*
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5089 $as_echo "$lt_cv_nm_interface" >&6; }
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5092 $as_echo_n "checking whether ln -s works... " >&6; }
5093 LN_S=$as_ln_s
5094 if test "$LN_S" = "ln -s"; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096 $as_echo "yes" >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5099 $as_echo "no, using $LN_S" >&6; }
5100 fi
5101
5102 # find the maximum length of command line arguments
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5104 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5105 if ${lt_cv_sys_max_cmd_len+:} false; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108     i=0
5109   teststring="ABCD"
5110
5111   case $build_os in
5112   msdosdjgpp*)
5113     # On DJGPP, this test can blow up pretty badly due to problems in libc
5114     # (any single argument exceeding 2000 bytes causes a buffer overrun
5115     # during glob expansion).  Even if it were fixed, the result of this
5116     # check would be larger than it should be.
5117     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5118     ;;
5119
5120   gnu*)
5121     # Under GNU Hurd, this test is not required because there is
5122     # no limit to the length of command line arguments.
5123     # Libtool will interpret -1 as no limit whatsoever
5124     lt_cv_sys_max_cmd_len=-1;
5125     ;;
5126
5127   cygwin* | mingw* | cegcc*)
5128     # On Win9x/ME, this test blows up -- it succeeds, but takes
5129     # about 5 minutes as the teststring grows exponentially.
5130     # Worse, since 9x/ME are not pre-emptively multitasking,
5131     # you end up with a "frozen" computer, even though with patience
5132     # the test eventually succeeds (with a max line length of 256k).
5133     # Instead, let's just punt: use the minimum linelength reported by
5134     # all of the supported platforms: 8192 (on NT/2K/XP).
5135     lt_cv_sys_max_cmd_len=8192;
5136     ;;
5137
5138   mint*)
5139     # On MiNT this can take a long time and run out of memory.
5140     lt_cv_sys_max_cmd_len=8192;
5141     ;;
5142
5143   amigaos*)
5144     # On AmigaOS with pdksh, this test takes hours, literally.
5145     # So we just punt and use a minimum line length of 8192.
5146     lt_cv_sys_max_cmd_len=8192;
5147     ;;
5148
5149   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5150     # This has been around since 386BSD, at least.  Likely further.
5151     if test -x /sbin/sysctl; then
5152       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5153     elif test -x /usr/sbin/sysctl; then
5154       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5155     else
5156       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5157     fi
5158     # And add a safety zone
5159     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5160     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5161     ;;
5162
5163   interix*)
5164     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5165     lt_cv_sys_max_cmd_len=196608
5166     ;;
5167
5168   os2*)
5169     # The test takes a long time on OS/2.
5170     lt_cv_sys_max_cmd_len=8192
5171     ;;
5172
5173   osf*)
5174     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5175     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5176     # nice to cause kernel panics so lets avoid the loop below.
5177     # First set a reasonable default.
5178     lt_cv_sys_max_cmd_len=16384
5179     #
5180     if test -x /sbin/sysconfig; then
5181       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5182         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5183       esac
5184     fi
5185     ;;
5186   sco3.2v5*)
5187     lt_cv_sys_max_cmd_len=102400
5188     ;;
5189   sysv5* | sco5v6* | sysv4.2uw2*)
5190     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5191     if test -n "$kargmax"; then
5192       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5193     else
5194       lt_cv_sys_max_cmd_len=32768
5195     fi
5196     ;;
5197   *)
5198     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5199     if test -n "$lt_cv_sys_max_cmd_len" && \
5200         test undefined != "$lt_cv_sys_max_cmd_len"; then
5201       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5202       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5203     else
5204       # Make teststring a little bigger before we do anything with it.
5205       # a 1K string should be a reasonable start.
5206       for i in 1 2 3 4 5 6 7 8 ; do
5207         teststring=$teststring$teststring
5208       done
5209       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5210       # If test is not a shell built-in, we'll probably end up computing a
5211       # maximum length that is only half of the actual maximum length, but
5212       # we can't tell.
5213       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5214                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5215               test $i != 17 # 1/2 MB should be enough
5216       do
5217         i=`expr $i + 1`
5218         teststring=$teststring$teststring
5219       done
5220       # Only check the string length outside the loop.
5221       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5222       teststring=
5223       # Add a significant safety factor because C++ compilers can tack on
5224       # massive amounts of additional arguments before passing them to the
5225       # linker.  It appears as though 1/2 is a usable value.
5226       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5227     fi
5228     ;;
5229   esac
5230
5231 fi
5232
5233 if test -n $lt_cv_sys_max_cmd_len ; then
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5235 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5236 else
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5238 $as_echo "none" >&6; }
5239 fi
5240 max_cmd_len=$lt_cv_sys_max_cmd_len
5241
5242
5243
5244
5245
5246
5247 : ${CP="cp -f"}
5248 : ${MV="mv -f"}
5249 : ${RM="rm -f"}
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5252 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5253 # Try some XSI features
5254 xsi_shell=no
5255 ( _lt_dummy="a/b/c"
5256   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5257       = c,a/b,b/c, \
5258     && eval 'test $(( 1 + 1 )) -eq 2 \
5259     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5260   && xsi_shell=yes
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5262 $as_echo "$xsi_shell" >&6; }
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5266 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5267 lt_shell_append=no
5268 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5269     >/dev/null 2>&1 \
5270   && lt_shell_append=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5272 $as_echo "$lt_shell_append" >&6; }
5273
5274
5275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5276   lt_unset=unset
5277 else
5278   lt_unset=false
5279 fi
5280
5281
5282
5283
5284
5285 # test EBCDIC or ASCII
5286 case `echo X|tr X '\101'` in
5287  A) # ASCII based system
5288     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5289   lt_SP2NL='tr \040 \012'
5290   lt_NL2SP='tr \015\012 \040\040'
5291   ;;
5292  *) # EBCDIC based system
5293   lt_SP2NL='tr \100 \n'
5294   lt_NL2SP='tr \r\n \100\100'
5295   ;;
5296 esac
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5307 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5308 if ${lt_cv_to_host_file_cmd+:} false; then :
5309   $as_echo_n "(cached) " >&6
5310 else
5311   case $host in
5312   *-*-mingw* )
5313     case $build in
5314       *-*-mingw* ) # actually msys
5315         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5316         ;;
5317       *-*-cygwin* )
5318         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5319         ;;
5320       * ) # otherwise, assume *nix
5321         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5322         ;;
5323     esac
5324     ;;
5325   *-*-cygwin* )
5326     case $build in
5327       *-*-mingw* ) # actually msys
5328         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5329         ;;
5330       *-*-cygwin* )
5331         lt_cv_to_host_file_cmd=func_convert_file_noop
5332         ;;
5333       * ) # otherwise, assume *nix
5334         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5335         ;;
5336     esac
5337     ;;
5338   * ) # unhandled hosts (and "normal" native builds)
5339     lt_cv_to_host_file_cmd=func_convert_file_noop
5340     ;;
5341 esac
5342
5343 fi
5344
5345 to_host_file_cmd=$lt_cv_to_host_file_cmd
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5347 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5348
5349
5350
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5354 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5355 if ${lt_cv_to_tool_file_cmd+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   #assume ordinary cross tools, or native build.
5359 lt_cv_to_tool_file_cmd=func_convert_file_noop
5360 case $host in
5361   *-*-mingw* )
5362     case $build in
5363       *-*-mingw* ) # actually msys
5364         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5365         ;;
5366     esac
5367     ;;
5368 esac
5369
5370 fi
5371
5372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5374 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5375
5376
5377
5378
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5381 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5382 if ${lt_cv_ld_reload_flag+:} false; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   lt_cv_ld_reload_flag='-r'
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5388 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5389 reload_flag=$lt_cv_ld_reload_flag
5390 case $reload_flag in
5391 "" | " "*) ;;
5392 *) reload_flag=" $reload_flag" ;;
5393 esac
5394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5395 case $host_os in
5396   cygwin* | mingw* | pw32* | cegcc*)
5397     if test "$GCC" != yes; then
5398       reload_cmds=false
5399     fi
5400     ;;
5401   darwin*)
5402     if test "$GCC" = yes; then
5403       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5404     else
5405       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5406     fi
5407     ;;
5408 esac
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 if test -n "$ac_tool_prefix"; then
5419   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_OBJDUMP+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$OBJDUMP"; then
5427   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 OBJDUMP=$ac_cv_prog_OBJDUMP
5447 if test -n "$OBJDUMP"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5449 $as_echo "$OBJDUMP" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456 fi
5457 if test -z "$ac_cv_prog_OBJDUMP"; then
5458   ac_ct_OBJDUMP=$OBJDUMP
5459   # Extract the first word of "objdump", so it can be a program name with args.
5460 set dummy objdump; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   if test -n "$ac_ct_OBJDUMP"; then
5467   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474     for ac_exec_ext in '' $ac_executable_extensions; do
5475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481   done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5487 if test -n "$ac_ct_OBJDUMP"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5489 $as_echo "$ac_ct_OBJDUMP" >&6; }
5490 else
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495   if test "x$ac_ct_OBJDUMP" = x; then
5496     OBJDUMP="false"
5497   else
5498     case $cross_compiling:$ac_tool_warned in
5499 yes:)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5503 esac
5504     OBJDUMP=$ac_ct_OBJDUMP
5505   fi
5506 else
5507   OBJDUMP="$ac_cv_prog_OBJDUMP"
5508 fi
5509
5510 test -z "$OBJDUMP" && OBJDUMP=objdump
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if ${lt_cv_deplibs_check_method+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5538
5539 case $host_os in
5540 aix[4-9]*)
5541   lt_cv_deplibs_check_method=pass_all
5542   ;;
5543
5544 beos*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 bsdi[45]*)
5549   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550   lt_cv_file_magic_cmd='/usr/bin/file -L'
5551   lt_cv_file_magic_test_file=/shlib/libc.so
5552   ;;
5553
5554 cygwin*)
5555   # func_win32_libid is a shell function defined in ltmain.sh
5556   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557   lt_cv_file_magic_cmd='func_win32_libid'
5558   ;;
5559
5560 mingw* | pw32*)
5561   # Base MSYS/MinGW do not provide the 'file' command needed by
5562   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563   # unless we find 'file', for example because we are cross-compiling.
5564   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5565   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5566     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5567     lt_cv_file_magic_cmd='func_win32_libid'
5568   else
5569     # Keep this pattern in sync with the one in func_win32_libid.
5570     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5571     lt_cv_file_magic_cmd='$OBJDUMP -f'
5572   fi
5573   ;;
5574
5575 cegcc*)
5576   # use the weaker test based on 'objdump'. See mingw*.
5577   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5578   lt_cv_file_magic_cmd='$OBJDUMP -f'
5579   ;;
5580
5581 darwin* | rhapsody*)
5582   lt_cv_deplibs_check_method=pass_all
5583   ;;
5584
5585 freebsd* | dragonfly*)
5586   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5587     case $host_cpu in
5588     i*86 )
5589       # Not sure whether the presence of OpenBSD here was a mistake.
5590       # Let's accept both of them until this is cleared up.
5591       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5592       lt_cv_file_magic_cmd=/usr/bin/file
5593       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5594       ;;
5595     esac
5596   else
5597     lt_cv_deplibs_check_method=pass_all
5598   fi
5599   ;;
5600
5601 haiku*)
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 hpux10.20* | hpux11*)
5606   lt_cv_file_magic_cmd=/usr/bin/file
5607   case $host_cpu in
5608   ia64*)
5609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5610     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5611     ;;
5612   hppa*64*)
5613     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]'
5614     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5615     ;;
5616   *)
5617     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5618     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5619     ;;
5620   esac
5621   ;;
5622
5623 interix[3-9]*)
5624   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5625   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5626   ;;
5627
5628 irix5* | irix6* | nonstopux*)
5629   case $LD in
5630   *-32|*"-32 ") libmagic=32-bit;;
5631   *-n32|*"-n32 ") libmagic=N32;;
5632   *-64|*"-64 ") libmagic=64-bit;;
5633   *) libmagic=never-match;;
5634   esac
5635   lt_cv_deplibs_check_method=pass_all
5636   ;;
5637
5638 # This must be glibc/ELF.
5639 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642
5643 netbsd* | netbsdelf*-gnu)
5644   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646   else
5647     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5648   fi
5649   ;;
5650
5651 newos6*)
5652   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5653   lt_cv_file_magic_cmd=/usr/bin/file
5654   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5655   ;;
5656
5657 *nto* | *qnx*)
5658   lt_cv_deplibs_check_method=pass_all
5659   ;;
5660
5661 openbsd*)
5662   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5664   else
5665     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5666   fi
5667   ;;
5668
5669 osf3* | osf4* | osf5*)
5670   lt_cv_deplibs_check_method=pass_all
5671   ;;
5672
5673 rdos*)
5674   lt_cv_deplibs_check_method=pass_all
5675   ;;
5676
5677 solaris*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680
5681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5682   lt_cv_deplibs_check_method=pass_all
5683   ;;
5684
5685 sysv4 | sysv4.3*)
5686   case $host_vendor in
5687   motorola)
5688     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]'
5689     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5690     ;;
5691   ncr)
5692     lt_cv_deplibs_check_method=pass_all
5693     ;;
5694   sequent)
5695     lt_cv_file_magic_cmd='/bin/file'
5696     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5697     ;;
5698   sni)
5699     lt_cv_file_magic_cmd='/bin/file'
5700     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5701     lt_cv_file_magic_test_file=/lib/libc.so
5702     ;;
5703   siemens)
5704     lt_cv_deplibs_check_method=pass_all
5705     ;;
5706   pc)
5707     lt_cv_deplibs_check_method=pass_all
5708     ;;
5709   esac
5710   ;;
5711
5712 tpf*)
5713   lt_cv_deplibs_check_method=pass_all
5714   ;;
5715 esac
5716
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5719 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5720
5721 file_magic_glob=
5722 want_nocaseglob=no
5723 if test "$build" = "$host"; then
5724   case $host_os in
5725   mingw* | pw32*)
5726     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5727       want_nocaseglob=yes
5728     else
5729       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5730     fi
5731     ;;
5732   esac
5733 fi
5734
5735 file_magic_cmd=$lt_cv_file_magic_cmd
5736 deplibs_check_method=$lt_cv_deplibs_check_method
5737 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 if test -n "$ac_tool_prefix"; then
5761   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5762 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_DLLTOOL+:} false; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   if test -n "$DLLTOOL"; then
5769   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776     for ac_exec_ext in '' $ac_executable_extensions; do
5777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783   done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 DLLTOOL=$ac_cv_prog_DLLTOOL
5789 if test -n "$DLLTOOL"; then
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5791 $as_echo "$DLLTOOL" >&6; }
5792 else
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5796
5797
5798 fi
5799 if test -z "$ac_cv_prog_DLLTOOL"; then
5800   ac_ct_DLLTOOL=$DLLTOOL
5801   # Extract the first word of "dlltool", so it can be a program name with args.
5802 set dummy dlltool; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -n "$ac_ct_DLLTOOL"; then
5809   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5829 if test -n "$ac_ct_DLLTOOL"; then
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5831 $as_echo "$ac_ct_DLLTOOL" >&6; }
5832 else
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837   if test "x$ac_ct_DLLTOOL" = x; then
5838     DLLTOOL="false"
5839   else
5840     case $cross_compiling:$ac_tool_warned in
5841 yes:)
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844 ac_tool_warned=yes ;;
5845 esac
5846     DLLTOOL=$ac_ct_DLLTOOL
5847   fi
5848 else
5849   DLLTOOL="$ac_cv_prog_DLLTOOL"
5850 fi
5851
5852 test -z "$DLLTOOL" && DLLTOOL=dlltool
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5864 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5865 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   lt_cv_sharedlib_from_linklib_cmd='unknown'
5869
5870 case $host_os in
5871 cygwin* | mingw* | pw32* | cegcc*)
5872   # two different shell functions defined in ltmain.sh
5873   # decide which to use based on capabilities of $DLLTOOL
5874   case `$DLLTOOL --help 2>&1` in
5875   *--identify-strict*)
5876     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5877     ;;
5878   *)
5879     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5880     ;;
5881   esac
5882   ;;
5883 *)
5884   # fallback: assume linklib IS sharedlib
5885   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5886   ;;
5887 esac
5888
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5891 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5892 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5893 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5894
5895
5896
5897
5898
5899
5900
5901
5902 if test -n "$ac_tool_prefix"; then
5903   for ac_prog in ar
5904   do
5905     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_AR+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   if test -n "$AR"; then
5913   ac_cv_prog_AR="$AR" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920     for ac_exec_ext in '' $ac_executable_extensions; do
5921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927   done
5928 IFS=$as_save_IFS
5929
5930 fi
5931 fi
5932 AR=$ac_cv_prog_AR
5933 if test -n "$AR"; then
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5936 else
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940
5941
5942     test -n "$AR" && break
5943   done
5944 fi
5945 if test -z "$AR"; then
5946   ac_ct_AR=$AR
5947   for ac_prog in ar
5948 do
5949   # Extract the first word of "$ac_prog", so it can be a program name with args.
5950 set dummy $ac_prog; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if test -n "$ac_ct_AR"; then
5957   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964     for ac_exec_ext in '' $ac_executable_extensions; do
5965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966     ac_cv_prog_ac_ct_AR="$ac_prog"
5967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971   done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5977 if test -n "$ac_ct_AR"; then
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5979 $as_echo "$ac_ct_AR" >&6; }
5980 else
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984
5985
5986   test -n "$ac_ct_AR" && break
5987 done
5988
5989   if test "x$ac_ct_AR" = x; then
5990     AR="false"
5991   else
5992     case $cross_compiling:$ac_tool_warned in
5993 yes:)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998     AR=$ac_ct_AR
5999   fi
6000 fi
6001
6002 : ${AR=ar}
6003 : ${AR_FLAGS=cru}
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6016 $as_echo_n "checking for archiver @FILE support... " >&6; }
6017 if ${lt_cv_ar_at_file+:} false; then :
6018   $as_echo_n "(cached) " >&6
6019 else
6020   lt_cv_ar_at_file=no
6021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h.  */
6023
6024 int
6025 main ()
6026 {
6027
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_cxx_try_compile "$LINENO"; then :
6033   echo conftest.$ac_objext > conftest.lst
6034       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6035       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6036   (eval $lt_ar_try) 2>&5
6037   ac_status=$?
6038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039   test $ac_status = 0; }
6040       if test "$ac_status" -eq 0; then
6041         # Ensure the archiver fails upon bogus file names.
6042         rm -f conftest.$ac_objext libconftest.a
6043         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6044   (eval $lt_ar_try) 2>&5
6045   ac_status=$?
6046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047   test $ac_status = 0; }
6048         if test "$ac_status" -ne 0; then
6049           lt_cv_ar_at_file=@
6050         fi
6051       fi
6052       rm -f conftest.* libconftest.a
6053
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6059 $as_echo "$lt_cv_ar_at_file" >&6; }
6060
6061 if test "x$lt_cv_ar_at_file" = xno; then
6062   archiver_list_spec=
6063 else
6064   archiver_list_spec=$lt_cv_ar_at_file
6065 fi
6066
6067
6068
6069
6070
6071
6072
6073 if test -n "$ac_tool_prefix"; then
6074   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}strip; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_STRIP+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   if test -n "$STRIP"; then
6082   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 STRIP=$ac_cv_prog_STRIP
6102 if test -n "$STRIP"; then
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104 $as_echo "$STRIP" >&6; }
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110
6111 fi
6112 if test -z "$ac_cv_prog_STRIP"; then
6113   ac_ct_STRIP=$STRIP
6114   # Extract the first word of "strip", so it can be a program name with args.
6115 set dummy strip; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6119   $as_echo_n "(cached) " >&6
6120 else
6121   if test -n "$ac_ct_STRIP"; then
6122   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129     for ac_exec_ext in '' $ac_executable_extensions; do
6130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131     ac_cv_prog_ac_ct_STRIP="strip"
6132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136   done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6142 if test -n "$ac_ct_STRIP"; then
6143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6144 $as_echo "$ac_ct_STRIP" >&6; }
6145 else
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150   if test "x$ac_ct_STRIP" = x; then
6151     STRIP=":"
6152   else
6153     case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159     STRIP=$ac_ct_STRIP
6160   fi
6161 else
6162   STRIP="$ac_cv_prog_STRIP"
6163 fi
6164
6165 test -z "$STRIP" && STRIP=:
6166
6167
6168
6169
6170
6171
6172 if test -n "$ac_tool_prefix"; then
6173   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_RANLIB+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   if test -n "$RANLIB"; then
6181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 RANLIB=$ac_cv_prog_RANLIB
6201 if test -n "$RANLIB"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6203 $as_echo "$RANLIB" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209
6210 fi
6211 if test -z "$ac_cv_prog_RANLIB"; then
6212   ac_ct_RANLIB=$RANLIB
6213   # Extract the first word of "ranlib", so it can be a program name with args.
6214 set dummy ranlib; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   if test -n "$ac_ct_RANLIB"; then
6221   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230     ac_cv_prog_ac_ct_RANLIB="ranlib"
6231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241 if test -n "$ac_ct_RANLIB"; then
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6243 $as_echo "$ac_ct_RANLIB" >&6; }
6244 else
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249   if test "x$ac_ct_RANLIB" = x; then
6250     RANLIB=":"
6251   else
6252     case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258     RANLIB=$ac_ct_RANLIB
6259   fi
6260 else
6261   RANLIB="$ac_cv_prog_RANLIB"
6262 fi
6263
6264 test -z "$RANLIB" && RANLIB=:
6265
6266
6267
6268
6269
6270
6271 # Determine commands to create old-style static archives.
6272 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6273 old_postinstall_cmds='chmod 644 $oldlib'
6274 old_postuninstall_cmds=
6275
6276 if test -n "$RANLIB"; then
6277   case $host_os in
6278   openbsd*)
6279     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6280     ;;
6281   *)
6282     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6283     ;;
6284   esac
6285   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6286 fi
6287
6288 case $host_os in
6289   darwin*)
6290     lock_old_archive_extraction=yes ;;
6291   *)
6292     lock_old_archive_extraction=no ;;
6293 esac
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 # If no C compiler was specified, use CC.
6334 LTCC=${LTCC-"$CC"}
6335
6336 # If no C compiler flags were specified, use CFLAGS.
6337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6338
6339 # Allow CC to be a program name with arguments.
6340 compiler=$CC
6341
6342
6343 # Check for command to grab the raw symbol name followed by C symbol from nm.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6345 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6346 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349
6350 # These are sane defaults that work on at least a few old systems.
6351 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6352
6353 # Character class describing NM global symbol codes.
6354 symcode='[BCDEGRST]'
6355
6356 # Regexp to match symbols that can be accessed directly from C.
6357 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6358
6359 # Define system-specific variables.
6360 case $host_os in
6361 aix*)
6362   symcode='[BCDT]'
6363   ;;
6364 cygwin* | mingw* | pw32* | cegcc*)
6365   symcode='[ABCDGISTW]'
6366   ;;
6367 hpux*)
6368   if test "$host_cpu" = ia64; then
6369     symcode='[ABCDEGRST]'
6370   fi
6371   ;;
6372 irix* | nonstopux*)
6373   symcode='[BCDEGRST]'
6374   ;;
6375 osf*)
6376   symcode='[BCDEGQRST]'
6377   ;;
6378 solaris*)
6379   symcode='[BDRT]'
6380   ;;
6381 sco3.2v5*)
6382   symcode='[DT]'
6383   ;;
6384 sysv4.2uw2*)
6385   symcode='[DT]'
6386   ;;
6387 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6388   symcode='[ABDT]'
6389   ;;
6390 sysv4)
6391   symcode='[DFNSTU]'
6392   ;;
6393 esac
6394
6395 # If we're using GNU nm, then use its standard symbol codes.
6396 case `$NM -V 2>&1` in
6397 *GNU* | *'with BFD'*)
6398   symcode='[ABCDGIRSTW]' ;;
6399 esac
6400
6401 # Transform an extracted symbol line into a proper C declaration.
6402 # Some systems (esp. on ia64) link data and code symbols differently,
6403 # so use this general approach.
6404 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6405
6406 # Transform an extracted symbol line into symbol name and symbol address
6407 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6408 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'"
6409
6410 # Handle CRLF in mingw tool chain
6411 opt_cr=
6412 case $build_os in
6413 mingw*)
6414   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6415   ;;
6416 esac
6417
6418 # Try without a prefix underscore, then with it.
6419 for ac_symprfx in "" "_"; do
6420
6421   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6422   symxfrm="\\1 $ac_symprfx\\2 \\2"
6423
6424   # Write the raw and C identifiers.
6425   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6426     # Fake it for dumpbin and say T for any non-static function
6427     # and D for any global variable.
6428     # Also find C++ and __fastcall symbols from MSVC++,
6429     # which start with @ or ?.
6430     lt_cv_sys_global_symbol_pipe="$AWK '"\
6431 "     {last_section=section; section=\$ 3};"\
6432 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6433 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6434 "     \$ 0!~/External *\|/{next};"\
6435 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6436 "     {if(hide[section]) next};"\
6437 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6438 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6439 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6440 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6441 "     ' prfx=^$ac_symprfx"
6442   else
6443     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6444   fi
6445   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6446
6447   # Check to see that the pipe works correctly.
6448   pipe_works=no
6449
6450   rm -f conftest*
6451   cat > conftest.$ac_ext <<_LT_EOF
6452 #ifdef __cplusplus
6453 extern "C" {
6454 #endif
6455 char nm_test_var;
6456 void nm_test_func(void);
6457 void nm_test_func(void){}
6458 #ifdef __cplusplus
6459 }
6460 #endif
6461 int main(){nm_test_var='a';nm_test_func();return(0);}
6462 _LT_EOF
6463
6464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465   (eval $ac_compile) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; }; then
6469     # Now try to grab the symbols.
6470     nlist=conftest.nm
6471     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6472   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6473   ac_status=$?
6474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475   test $ac_status = 0; } && test -s "$nlist"; then
6476       # Try sorting and uniquifying the output.
6477       if sort "$nlist" | uniq > "$nlist"T; then
6478         mv -f "$nlist"T "$nlist"
6479       else
6480         rm -f "$nlist"T
6481       fi
6482
6483       # Make sure that we snagged all the symbols we need.
6484       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6485         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6486           cat <<_LT_EOF > conftest.$ac_ext
6487 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6488 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6489 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6490    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6491 # define LT_DLSYM_CONST
6492 #elif defined(__osf__)
6493 /* This system does not cope well with relocations in const data.  */
6494 # define LT_DLSYM_CONST
6495 #else
6496 # define LT_DLSYM_CONST const
6497 #endif
6498
6499 #ifdef __cplusplus
6500 extern "C" {
6501 #endif
6502
6503 _LT_EOF
6504           # Now generate the symbol file.
6505           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6506
6507           cat <<_LT_EOF >> conftest.$ac_ext
6508
6509 /* The mapping between symbol names and symbols.  */
6510 LT_DLSYM_CONST struct {
6511   const char *name;
6512   void       *address;
6513 }
6514 lt__PROGRAM__LTX_preloaded_symbols[] =
6515 {
6516   { "@PROGRAM@", (void *) 0 },
6517 _LT_EOF
6518           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6519           cat <<\_LT_EOF >> conftest.$ac_ext
6520   {0, (void *) 0}
6521 };
6522
6523 /* This works around a problem in FreeBSD linker */
6524 #ifdef FREEBSD_WORKAROUND
6525 static const void *lt_preloaded_setup() {
6526   return lt__PROGRAM__LTX_preloaded_symbols;
6527 }
6528 #endif
6529
6530 #ifdef __cplusplus
6531 }
6532 #endif
6533 _LT_EOF
6534           # Now try linking the two files.
6535           mv conftest.$ac_objext conftstm.$ac_objext
6536           lt_globsym_save_LIBS=$LIBS
6537           lt_globsym_save_CFLAGS=$CFLAGS
6538           LIBS="conftstm.$ac_objext"
6539           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6540           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6541   (eval $ac_link) 2>&5
6542   ac_status=$?
6543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6545             pipe_works=yes
6546           fi
6547           LIBS=$lt_globsym_save_LIBS
6548           CFLAGS=$lt_globsym_save_CFLAGS
6549         else
6550           echo "cannot find nm_test_func in $nlist" >&5
6551         fi
6552       else
6553         echo "cannot find nm_test_var in $nlist" >&5
6554       fi
6555     else
6556       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6557     fi
6558   else
6559     echo "$progname: failed program was:" >&5
6560     cat conftest.$ac_ext >&5
6561   fi
6562   rm -rf conftest* conftst*
6563
6564   # Do not use the global_symbol_pipe unless it works.
6565   if test "$pipe_works" = yes; then
6566     break
6567   else
6568     lt_cv_sys_global_symbol_pipe=
6569   fi
6570 done
6571
6572 fi
6573
6574 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6575   lt_cv_sys_global_symbol_to_cdecl=
6576 fi
6577 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6579 $as_echo "failed" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6582 $as_echo "ok" >&6; }
6583 fi
6584
6585 # Response file support.
6586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6587   nm_file_list_spec='@'
6588 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6589   nm_file_list_spec='@'
6590 fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6619 $as_echo_n "checking for sysroot... " >&6; }
6620
6621 # Check whether --with-sysroot was given.
6622 if test "${with_sysroot+set}" = set; then :
6623   withval=$with_sysroot;
6624 else
6625   with_sysroot=no
6626 fi
6627
6628
6629 lt_sysroot=
6630 case ${with_sysroot} in #(
6631  yes)
6632    if test "$GCC" = yes; then
6633      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6634    fi
6635    ;; #(
6636  /*)
6637    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6638    ;; #(
6639  no|'')
6640    ;; #(
6641  *)
6642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6643 $as_echo "${with_sysroot}" >&6; }
6644    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6645    ;;
6646 esac
6647
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6649 $as_echo "${lt_sysroot:-no}" >&6; }
6650
6651
6652
6653
6654
6655
6656 # Check whether --enable-libtool-lock was given.
6657 if test "${enable_libtool_lock+set}" = set; then :
6658   enableval=$enable_libtool_lock;
6659 fi
6660
6661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6662
6663 # Some flags need to be propagated to the compiler or linker for good
6664 # libtool support.
6665 case $host in
6666 ia64-*-hpux*)
6667   # Find out which ABI we are using.
6668   echo 'int i;' > conftest.$ac_ext
6669   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6670   (eval $ac_compile) 2>&5
6671   ac_status=$?
6672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673   test $ac_status = 0; }; then
6674     case `/usr/bin/file conftest.$ac_objext` in
6675       *ELF-32*)
6676         HPUX_IA64_MODE="32"
6677         ;;
6678       *ELF-64*)
6679         HPUX_IA64_MODE="64"
6680         ;;
6681     esac
6682   fi
6683   rm -rf conftest*
6684   ;;
6685 *-*-irix6*)
6686   # Find out which ABI we are using.
6687   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6688   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689   (eval $ac_compile) 2>&5
6690   ac_status=$?
6691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692   test $ac_status = 0; }; then
6693     if test "$lt_cv_prog_gnu_ld" = yes; then
6694       case `/usr/bin/file conftest.$ac_objext` in
6695         *32-bit*)
6696           LD="${LD-ld} -melf32bsmip"
6697           ;;
6698         *N32*)
6699           LD="${LD-ld} -melf32bmipn32"
6700           ;;
6701         *64-bit*)
6702           LD="${LD-ld} -melf64bmip"
6703         ;;
6704       esac
6705     else
6706       case `/usr/bin/file conftest.$ac_objext` in
6707         *32-bit*)
6708           LD="${LD-ld} -32"
6709           ;;
6710         *N32*)
6711           LD="${LD-ld} -n32"
6712           ;;
6713         *64-bit*)
6714           LD="${LD-ld} -64"
6715           ;;
6716       esac
6717     fi
6718   fi
6719   rm -rf conftest*
6720   ;;
6721
6722 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6723 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6724   # Find out which ABI we are using.
6725   echo 'int i;' > conftest.$ac_ext
6726   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727   (eval $ac_compile) 2>&5
6728   ac_status=$?
6729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730   test $ac_status = 0; }; then
6731     case `/usr/bin/file conftest.o` in
6732       *32-bit*)
6733         case $host in
6734           x86_64-*kfreebsd*-gnu)
6735             LD="${LD-ld} -m elf_i386_fbsd"
6736             ;;
6737           x86_64-*linux*)
6738             case `/usr/bin/file conftest.o` in
6739               *x86-64*)
6740                 LD="${LD-ld} -m elf32_x86_64"
6741                 ;;
6742               *)
6743                 LD="${LD-ld} -m elf_i386"
6744                 ;;
6745             esac
6746             ;;
6747           powerpc64le-*)
6748             LD="${LD-ld} -m elf32lppclinux"
6749             ;;
6750           powerpc64-*)
6751             LD="${LD-ld} -m elf32ppclinux"
6752             ;;
6753           s390x-*linux*)
6754             LD="${LD-ld} -m elf_s390"
6755             ;;
6756           sparc64-*linux*)
6757             LD="${LD-ld} -m elf32_sparc"
6758             ;;
6759         esac
6760         ;;
6761       *64-bit*)
6762         case $host in
6763           x86_64-*kfreebsd*-gnu)
6764             LD="${LD-ld} -m elf_x86_64_fbsd"
6765             ;;
6766           x86_64-*linux*)
6767             LD="${LD-ld} -m elf_x86_64"
6768             ;;
6769           powerpcle-*)
6770             LD="${LD-ld} -m elf64lppc"
6771             ;;
6772           powerpc-*)
6773             LD="${LD-ld} -m elf64ppc"
6774             ;;
6775           s390*-*linux*|s390*-*tpf*)
6776             LD="${LD-ld} -m elf64_s390"
6777             ;;
6778           sparc*-*linux*)
6779             LD="${LD-ld} -m elf64_sparc"
6780             ;;
6781         esac
6782         ;;
6783     esac
6784   fi
6785   rm -rf conftest*
6786   ;;
6787
6788 *-*-sco3.2v5*)
6789   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6790   SAVE_CFLAGS="$CFLAGS"
6791   CFLAGS="$CFLAGS -belf"
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6793 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6794 if ${lt_cv_cc_needs_belf+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   ac_ext=c
6798 ac_cpp='$CPP $CPPFLAGS'
6799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802
6803      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h.  */
6805
6806 int
6807 main ()
6808 {
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 if ac_fn_c_try_link "$LINENO"; then :
6815   lt_cv_cc_needs_belf=yes
6816 else
6817   lt_cv_cc_needs_belf=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext \
6820     conftest$ac_exeext conftest.$ac_ext
6821      ac_ext=c
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826
6827 fi
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6829 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6830   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6831     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6832     CFLAGS="$SAVE_CFLAGS"
6833   fi
6834   ;;
6835 *-*solaris*)
6836   # Find out which ABI we are using.
6837   echo 'int i;' > conftest.$ac_ext
6838   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839   (eval $ac_compile) 2>&5
6840   ac_status=$?
6841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842   test $ac_status = 0; }; then
6843     case `/usr/bin/file conftest.o` in
6844     *64-bit*)
6845       case $lt_cv_prog_gnu_ld in
6846       yes*)
6847         case $host in
6848         i?86-*-solaris*)
6849           LD="${LD-ld} -m elf_x86_64"
6850           ;;
6851         sparc*-*-solaris*)
6852           LD="${LD-ld} -m elf64_sparc"
6853           ;;
6854         esac
6855         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6856         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6857           LD="${LD-ld}_sol2"
6858         fi
6859         ;;
6860       *)
6861         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6862           LD="${LD-ld} -64"
6863         fi
6864         ;;
6865       esac
6866       ;;
6867     esac
6868   fi
6869   rm -rf conftest*
6870   ;;
6871 esac
6872
6873 need_locks="$enable_libtool_lock"
6874
6875 if test -n "$ac_tool_prefix"; then
6876   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   if test -n "$MANIFEST_TOOL"; then
6884   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6904 if test -n "$MANIFEST_TOOL"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6906 $as_echo "$MANIFEST_TOOL" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912
6913 fi
6914 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6915   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6916   # Extract the first word of "mt", so it can be a program name with args.
6917 set dummy mt; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6921   $as_echo_n "(cached) " >&6
6922 else
6923   if test -n "$ac_ct_MANIFEST_TOOL"; then
6924   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931     for ac_exec_ext in '' $ac_executable_extensions; do
6932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938   done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6944 if test -n "$ac_ct_MANIFEST_TOOL"; then
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6946 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6947 else
6948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951
6952   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6953     MANIFEST_TOOL=":"
6954   else
6955     case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6962   fi
6963 else
6964   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6965 fi
6966
6967 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6969 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6970 if ${lt_cv_path_mainfest_tool+:} false; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   lt_cv_path_mainfest_tool=no
6974   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6975   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6976   cat conftest.err >&5
6977   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6978     lt_cv_path_mainfest_tool=yes
6979   fi
6980   rm -f conftest*
6981 fi
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6983 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6984 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6985   MANIFEST_TOOL=:
6986 fi
6987
6988
6989
6990
6991
6992
6993   case $host_os in
6994     rhapsody* | darwin*)
6995     if test -n "$ac_tool_prefix"; then
6996   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   if test -n "$DSYMUTIL"; then
7004   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011     for ac_exec_ext in '' $ac_executable_extensions; do
7012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018   done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7024 if test -n "$DSYMUTIL"; then
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7026 $as_echo "$DSYMUTIL" >&6; }
7027 else
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_DSYMUTIL"; then
7035   ac_ct_DSYMUTIL=$DSYMUTIL
7036   # Extract the first word of "dsymutil", so it can be a program name with args.
7037 set dummy dsymutil; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   if test -n "$ac_ct_DSYMUTIL"; then
7044   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051     for ac_exec_ext in '' $ac_executable_extensions; do
7052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058   done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7064 if test -n "$ac_ct_DSYMUTIL"; then
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7067 else
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072   if test "x$ac_ct_DSYMUTIL" = x; then
7073     DSYMUTIL=":"
7074   else
7075     case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081     DSYMUTIL=$ac_ct_DSYMUTIL
7082   fi
7083 else
7084   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7085 fi
7086
7087     if test -n "$ac_tool_prefix"; then
7088   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_NMEDIT+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   if test -n "$NMEDIT"; then
7096   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103     for ac_exec_ext in '' $ac_executable_extensions; do
7104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110   done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 NMEDIT=$ac_cv_prog_NMEDIT
7116 if test -n "$NMEDIT"; then
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7118 $as_echo "$NMEDIT" >&6; }
7119 else
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124
7125 fi
7126 if test -z "$ac_cv_prog_NMEDIT"; then
7127   ac_ct_NMEDIT=$NMEDIT
7128   # Extract the first word of "nmedit", so it can be a program name with args.
7129 set dummy nmedit; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7133   $as_echo_n "(cached) " >&6
7134 else
7135   if test -n "$ac_ct_NMEDIT"; then
7136   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143     for ac_exec_ext in '' $ac_executable_extensions; do
7144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150   done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7156 if test -n "$ac_ct_NMEDIT"; then
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7158 $as_echo "$ac_ct_NMEDIT" >&6; }
7159 else
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164   if test "x$ac_ct_NMEDIT" = x; then
7165     NMEDIT=":"
7166   else
7167     case $cross_compiling:$ac_tool_warned in
7168 yes:)
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171 ac_tool_warned=yes ;;
7172 esac
7173     NMEDIT=$ac_ct_NMEDIT
7174   fi
7175 else
7176   NMEDIT="$ac_cv_prog_NMEDIT"
7177 fi
7178
7179     if test -n "$ac_tool_prefix"; then
7180   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_LIPO+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   if test -n "$LIPO"; then
7188   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195     for ac_exec_ext in '' $ac_executable_extensions; do
7196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202   done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 LIPO=$ac_cv_prog_LIPO
7208 if test -n "$LIPO"; then
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7210 $as_echo "$LIPO" >&6; }
7211 else
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216
7217 fi
7218 if test -z "$ac_cv_prog_LIPO"; then
7219   ac_ct_LIPO=$LIPO
7220   # Extract the first word of "lipo", so it can be a program name with args.
7221 set dummy lipo; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227   if test -n "$ac_ct_LIPO"; then
7228   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235     for ac_exec_ext in '' $ac_executable_extensions; do
7236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237     ac_cv_prog_ac_ct_LIPO="lipo"
7238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242   done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7248 if test -n "$ac_ct_LIPO"; then
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7250 $as_echo "$ac_ct_LIPO" >&6; }
7251 else
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256   if test "x$ac_ct_LIPO" = x; then
7257     LIPO=":"
7258   else
7259     case $cross_compiling:$ac_tool_warned in
7260 yes:)
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7264 esac
7265     LIPO=$ac_ct_LIPO
7266   fi
7267 else
7268   LIPO="$ac_cv_prog_LIPO"
7269 fi
7270
7271     if test -n "$ac_tool_prefix"; then
7272   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7273 set dummy ${ac_tool_prefix}otool; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_OTOOL+:} false; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   if test -n "$OTOOL"; then
7280   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 OTOOL=$ac_cv_prog_OTOOL
7300 if test -n "$OTOOL"; then
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7302 $as_echo "$OTOOL" >&6; }
7303 else
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308
7309 fi
7310 if test -z "$ac_cv_prog_OTOOL"; then
7311   ac_ct_OTOOL=$OTOOL
7312   # Extract the first word of "otool", so it can be a program name with args.
7313 set dummy otool; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   if test -n "$ac_ct_OTOOL"; then
7320   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327     for ac_exec_ext in '' $ac_executable_extensions; do
7328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329     ac_cv_prog_ac_ct_OTOOL="otool"
7330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331     break 2
7332   fi
7333 done
7334   done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7340 if test -n "$ac_ct_OTOOL"; then
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7342 $as_echo "$ac_ct_OTOOL" >&6; }
7343 else
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 fi
7347
7348   if test "x$ac_ct_OTOOL" = x; then
7349     OTOOL=":"
7350   else
7351     case $cross_compiling:$ac_tool_warned in
7352 yes:)
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned=yes ;;
7356 esac
7357     OTOOL=$ac_ct_OTOOL
7358   fi
7359 else
7360   OTOOL="$ac_cv_prog_OTOOL"
7361 fi
7362
7363     if test -n "$ac_tool_prefix"; then
7364   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_OTOOL64+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$OTOOL64"; then
7372   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 OTOOL64=$ac_cv_prog_OTOOL64
7392 if test -n "$OTOOL64"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7394 $as_echo "$OTOOL64" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401 fi
7402 if test -z "$ac_cv_prog_OTOOL64"; then
7403   ac_ct_OTOOL64=$OTOOL64
7404   # Extract the first word of "otool64", so it can be a program name with args.
7405 set dummy otool64; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7409   $as_echo_n "(cached) " >&6
7410 else
7411   if test -n "$ac_ct_OTOOL64"; then
7412   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419     for ac_exec_ext in '' $ac_executable_extensions; do
7420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421     ac_cv_prog_ac_ct_OTOOL64="otool64"
7422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426   done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7432 if test -n "$ac_ct_OTOOL64"; then
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7434 $as_echo "$ac_ct_OTOOL64" >&6; }
7435 else
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440   if test "x$ac_ct_OTOOL64" = x; then
7441     OTOOL64=":"
7442   else
7443     case $cross_compiling:$ac_tool_warned in
7444 yes:)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7448 esac
7449     OTOOL64=$ac_ct_OTOOL64
7450   fi
7451 else
7452   OTOOL64="$ac_cv_prog_OTOOL64"
7453 fi
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7482 $as_echo_n "checking for -single_module linker flag... " >&6; }
7483 if ${lt_cv_apple_cc_single_mod+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   lt_cv_apple_cc_single_mod=no
7487       if test -z "${LT_MULTI_MODULE}"; then
7488         # By default we will add the -single_module flag. You can override
7489         # by either setting the environment variable LT_MULTI_MODULE
7490         # non-empty at configure time, or by adding -multi_module to the
7491         # link flags.
7492         rm -rf libconftest.dylib*
7493         echo "int foo(void){return 1;}" > conftest.c
7494         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7495 -dynamiclib -Wl,-single_module conftest.c" >&5
7496         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7497           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7498         _lt_result=$?
7499         # If there is a non-empty error log, and "single_module"
7500         # appears in it, assume the flag caused a linker warning
7501         if test -s conftest.err && $GREP single_module conftest.err; then
7502           cat conftest.err >&5
7503         # Otherwise, if the output was created with a 0 exit code from
7504         # the compiler, it worked.
7505         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7506           lt_cv_apple_cc_single_mod=yes
7507         else
7508           cat conftest.err >&5
7509         fi
7510         rm -rf libconftest.dylib*
7511         rm -f conftest.*
7512       fi
7513 fi
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7516
7517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7518 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7519 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   lt_cv_ld_exported_symbols_list=no
7523       save_LDFLAGS=$LDFLAGS
7524       echo "_main" > conftest.sym
7525       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h.  */
7528
7529 int
7530 main ()
7531 {
7532
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_link "$LINENO"; then :
7538   lt_cv_ld_exported_symbols_list=yes
7539 else
7540   lt_cv_ld_exported_symbols_list=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext \
7543     conftest$ac_exeext conftest.$ac_ext
7544         LDFLAGS="$save_LDFLAGS"
7545
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7548 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7549
7550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7551 $as_echo_n "checking for -force_load linker flag... " >&6; }
7552 if ${lt_cv_ld_force_load+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   lt_cv_ld_force_load=no
7556       cat > conftest.c << _LT_EOF
7557 int forced_loaded() { return 2;}
7558 _LT_EOF
7559       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7560       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7561       echo "$AR cru libconftest.a conftest.o" >&5
7562       $AR cru libconftest.a conftest.o 2>&5
7563       echo "$RANLIB libconftest.a" >&5
7564       $RANLIB libconftest.a 2>&5
7565       cat > conftest.c << _LT_EOF
7566 int main() { return 0;}
7567 _LT_EOF
7568       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7569       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7570       _lt_result=$?
7571       if test -s conftest.err && $GREP force_load conftest.err; then
7572         cat conftest.err >&5
7573       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7574         lt_cv_ld_force_load=yes
7575       else
7576         cat conftest.err >&5
7577       fi
7578         rm -f conftest.err libconftest.a conftest conftest.c
7579         rm -rf conftest.dSYM
7580
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7583 $as_echo "$lt_cv_ld_force_load" >&6; }
7584     case $host_os in
7585     rhapsody* | darwin1.[012])
7586       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7587     darwin1.*)
7588       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7589     darwin*) # darwin 5.x on
7590       # if running on 10.5 or later, the deployment target defaults
7591       # to the OS version, if on x86, and 10.4, the deployment
7592       # target defaults to 10.4. Don't you love it?
7593       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7594         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7595           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7596         10.[012]*)
7597           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598         10.*)
7599           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600       esac
7601     ;;
7602   esac
7603     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7604       _lt_dar_single_mod='$single_module'
7605     fi
7606     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7607       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7608     else
7609       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610     fi
7611     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7612       _lt_dsymutil='~$DSYMUTIL $lib || :'
7613     else
7614       _lt_dsymutil=
7615     fi
7616     ;;
7617   esac
7618
7619 ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7625 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7626 # On Suns, sometimes $CPP names a directory.
7627 if test -n "$CPP" && test -d "$CPP"; then
7628   CPP=
7629 fi
7630 if test -z "$CPP"; then
7631   if ${ac_cv_prog_CPP+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634       # Double quotes because CPP needs to be expanded
7635     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7636     do
7637       ac_preproc_ok=false
7638 for ac_c_preproc_warn_flag in '' yes
7639 do
7640   # Use a header file that comes with gcc, so configuring glibc
7641   # with a fresh cross-compiler works.
7642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643   # <limits.h> exists even on freestanding compilers.
7644   # On the NeXT, cc -E runs the code through the compiler's parser,
7645   # not just through cpp. "Syntax error" is here to catch this case.
7646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h.  */
7648 #ifdef __STDC__
7649 # include <limits.h>
7650 #else
7651 # include <assert.h>
7652 #endif
7653                      Syntax error
7654 _ACEOF
7655 if ac_fn_c_try_cpp "$LINENO"; then :
7656
7657 else
7658   # Broken: fails on valid input.
7659 continue
7660 fi
7661 rm -f conftest.err conftest.i conftest.$ac_ext
7662
7663   # OK, works on sane cases.  Now check whether nonexistent headers
7664   # can be detected and how.
7665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h.  */
7667 #include <ac_nonexistent.h>
7668 _ACEOF
7669 if ac_fn_c_try_cpp "$LINENO"; then :
7670   # Broken: success on invalid input.
7671 continue
7672 else
7673   # Passes both tests.
7674 ac_preproc_ok=:
7675 break
7676 fi
7677 rm -f conftest.err conftest.i conftest.$ac_ext
7678
7679 done
7680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7681 rm -f conftest.i conftest.err conftest.$ac_ext
7682 if $ac_preproc_ok; then :
7683   break
7684 fi
7685
7686     done
7687     ac_cv_prog_CPP=$CPP
7688
7689 fi
7690   CPP=$ac_cv_prog_CPP
7691 else
7692   ac_cv_prog_CPP=$CPP
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7695 $as_echo "$CPP" >&6; }
7696 ac_preproc_ok=false
7697 for ac_c_preproc_warn_flag in '' yes
7698 do
7699   # Use a header file that comes with gcc, so configuring glibc
7700   # with a fresh cross-compiler works.
7701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7702   # <limits.h> exists even on freestanding compilers.
7703   # On the NeXT, cc -E runs the code through the compiler's parser,
7704   # not just through cpp. "Syntax error" is here to catch this case.
7705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h.  */
7707 #ifdef __STDC__
7708 # include <limits.h>
7709 #else
7710 # include <assert.h>
7711 #endif
7712                      Syntax error
7713 _ACEOF
7714 if ac_fn_c_try_cpp "$LINENO"; then :
7715
7716 else
7717   # Broken: fails on valid input.
7718 continue
7719 fi
7720 rm -f conftest.err conftest.i conftest.$ac_ext
7721
7722   # OK, works on sane cases.  Now check whether nonexistent headers
7723   # can be detected and how.
7724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h.  */
7726 #include <ac_nonexistent.h>
7727 _ACEOF
7728 if ac_fn_c_try_cpp "$LINENO"; then :
7729   # Broken: success on invalid input.
7730 continue
7731 else
7732   # Passes both tests.
7733 ac_preproc_ok=:
7734 break
7735 fi
7736 rm -f conftest.err conftest.i conftest.$ac_ext
7737
7738 done
7739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7740 rm -f conftest.i conftest.err conftest.$ac_ext
7741 if $ac_preproc_ok; then :
7742
7743 else
7744   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7746 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7747 See \`config.log' for more details" "$LINENO" 5; }
7748 fi
7749
7750 ac_ext=c
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7758 $as_echo_n "checking for ANSI C header files... " >&6; }
7759 if ${ac_cv_header_stdc+:} false; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h.  */
7764 #include <stdlib.h>
7765 #include <stdarg.h>
7766 #include <string.h>
7767 #include <float.h>
7768
7769 int
7770 main ()
7771 {
7772
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778   ac_cv_header_stdc=yes
7779 else
7780   ac_cv_header_stdc=no
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783
7784 if test $ac_cv_header_stdc = yes; then
7785   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788 #include <string.h>
7789
7790 _ACEOF
7791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7792   $EGREP "memchr" >/dev/null 2>&1; then :
7793
7794 else
7795   ac_cv_header_stdc=no
7796 fi
7797 rm -f conftest*
7798
7799 fi
7800
7801 if test $ac_cv_header_stdc = yes; then
7802   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #include <stdlib.h>
7806
7807 _ACEOF
7808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7809   $EGREP "free" >/dev/null 2>&1; then :
7810
7811 else
7812   ac_cv_header_stdc=no
7813 fi
7814 rm -f conftest*
7815
7816 fi
7817
7818 if test $ac_cv_header_stdc = yes; then
7819   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7820   if test "$cross_compiling" = yes; then :
7821   :
7822 else
7823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h.  */
7825 #include <ctype.h>
7826 #include <stdlib.h>
7827 #if ((' ' & 0x0FF) == 0x020)
7828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7830 #else
7831 # define ISLOWER(c) \
7832                    (('a' <= (c) && (c) <= 'i') \
7833                      || ('j' <= (c) && (c) <= 'r') \
7834                      || ('s' <= (c) && (c) <= 'z'))
7835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7836 #endif
7837
7838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7839 int
7840 main ()
7841 {
7842   int i;
7843   for (i = 0; i < 256; i++)
7844     if (XOR (islower (i), ISLOWER (i))
7845         || toupper (i) != TOUPPER (i))
7846       return 2;
7847   return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_run "$LINENO"; then :
7851
7852 else
7853   ac_cv_header_stdc=no
7854 fi
7855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7856   conftest.$ac_objext conftest.beam conftest.$ac_ext
7857 fi
7858
7859 fi
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7862 $as_echo "$ac_cv_header_stdc" >&6; }
7863 if test $ac_cv_header_stdc = yes; then
7864
7865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7866
7867 fi
7868
7869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7871                   inttypes.h stdint.h unistd.h
7872 do :
7873   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7875 "
7876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7877   cat >>confdefs.h <<_ACEOF
7878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7879 _ACEOF
7880
7881 fi
7882
7883 done
7884
7885
7886 for ac_header in dlfcn.h
7887 do :
7888   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7889 "
7890 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7891   cat >>confdefs.h <<_ACEOF
7892 #define HAVE_DLFCN_H 1
7893 _ACEOF
7894
7895 fi
7896
7897 done
7898
7899
7900
7901 func_stripname_cnf ()
7902 {
7903   case ${2} in
7904   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7905   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7906   esac
7907 } # func_stripname_cnf
7908
7909
7910
7911
7912
7913 # Set options
7914
7915
7916
7917         enable_dlopen=no
7918
7919
7920   enable_win32_dll=no
7921
7922
7923             # Check whether --enable-shared was given.
7924 if test "${enable_shared+set}" = set; then :
7925   enableval=$enable_shared; p=${PACKAGE-default}
7926     case $enableval in
7927     yes) enable_shared=yes ;;
7928     no) enable_shared=no ;;
7929     *)
7930       enable_shared=no
7931       # Look at the argument we got.  We use all the common list separators.
7932       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7933       for pkg in $enableval; do
7934         IFS="$lt_save_ifs"
7935         if test "X$pkg" = "X$p"; then
7936           enable_shared=yes
7937         fi
7938       done
7939       IFS="$lt_save_ifs"
7940       ;;
7941     esac
7942 else
7943   enable_shared=yes
7944 fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954   # Check whether --enable-static was given.
7955 if test "${enable_static+set}" = set; then :
7956   enableval=$enable_static; p=${PACKAGE-default}
7957     case $enableval in
7958     yes) enable_static=yes ;;
7959     no) enable_static=no ;;
7960     *)
7961      enable_static=no
7962       # Look at the argument we got.  We use all the common list separators.
7963       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7964       for pkg in $enableval; do
7965         IFS="$lt_save_ifs"
7966         if test "X$pkg" = "X$p"; then
7967           enable_static=yes
7968         fi
7969       done
7970       IFS="$lt_save_ifs"
7971       ;;
7972     esac
7973 else
7974   enable_static=yes
7975 fi
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986 # Check whether --with-pic was given.
7987 if test "${with_pic+set}" = set; then :
7988   withval=$with_pic; lt_p=${PACKAGE-default}
7989     case $withval in
7990     yes|no) pic_mode=$withval ;;
7991     *)
7992       pic_mode=default
7993       # Look at the argument we got.  We use all the common list separators.
7994       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7995       for lt_pkg in $withval; do
7996         IFS="$lt_save_ifs"
7997         if test "X$lt_pkg" = "X$lt_p"; then
7998           pic_mode=yes
7999         fi
8000       done
8001       IFS="$lt_save_ifs"
8002       ;;
8003     esac
8004 else
8005   pic_mode=default
8006 fi
8007
8008
8009 test -z "$pic_mode" && pic_mode=default
8010
8011
8012
8013
8014
8015
8016
8017   # Check whether --enable-fast-install was given.
8018 if test "${enable_fast_install+set}" = set; then :
8019   enableval=$enable_fast_install; p=${PACKAGE-default}
8020     case $enableval in
8021     yes) enable_fast_install=yes ;;
8022     no) enable_fast_install=no ;;
8023     *)
8024       enable_fast_install=no
8025       # Look at the argument we got.  We use all the common list separators.
8026       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8027       for pkg in $enableval; do
8028         IFS="$lt_save_ifs"
8029         if test "X$pkg" = "X$p"; then
8030           enable_fast_install=yes
8031         fi
8032       done
8033       IFS="$lt_save_ifs"
8034       ;;
8035     esac
8036 else
8037   enable_fast_install=yes
8038 fi
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 # This can be used to rebuild libtool when needed
8051 LIBTOOL_DEPS="$ltmain"
8052
8053 # Always use our own libtool.
8054 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 test -z "$LN_S" && LN_S="ln -s"
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 if test -n "${ZSH_VERSION+set}" ; then
8101    setopt NO_GLOB_SUBST
8102 fi
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8105 $as_echo_n "checking for objdir... " >&6; }
8106 if ${lt_cv_objdir+:} false; then :
8107   $as_echo_n "(cached) " >&6
8108 else
8109   rm -f .libs 2>/dev/null
8110 mkdir .libs 2>/dev/null
8111 if test -d .libs; then
8112   lt_cv_objdir=.libs
8113 else
8114   # MS-DOS does not allow filenames that begin with a dot.
8115   lt_cv_objdir=_libs
8116 fi
8117 rmdir .libs 2>/dev/null
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8120 $as_echo "$lt_cv_objdir" >&6; }
8121 objdir=$lt_cv_objdir
8122
8123
8124
8125
8126
8127 cat >>confdefs.h <<_ACEOF
8128 #define LT_OBJDIR "$lt_cv_objdir/"
8129 _ACEOF
8130
8131
8132
8133
8134 case $host_os in
8135 aix3*)
8136   # AIX sometimes has problems with the GCC collect2 program.  For some
8137   # reason, if we set the COLLECT_NAMES environment variable, the problems
8138   # vanish in a puff of smoke.
8139   if test "X${COLLECT_NAMES+set}" != Xset; then
8140     COLLECT_NAMES=
8141     export COLLECT_NAMES
8142   fi
8143   ;;
8144 esac
8145
8146 # Global variables:
8147 ofile=libtool
8148 can_build_shared=yes
8149
8150 # All known linkers require a `.a' archive for static linking (except MSVC,
8151 # which needs '.lib').
8152 libext=a
8153
8154 with_gnu_ld="$lt_cv_prog_gnu_ld"
8155
8156 old_CC="$CC"
8157 old_CFLAGS="$CFLAGS"
8158
8159 # Set sane defaults for various variables
8160 test -z "$CC" && CC=cc
8161 test -z "$LTCC" && LTCC=$CC
8162 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8163 test -z "$LD" && LD=ld
8164 test -z "$ac_objext" && ac_objext=o
8165
8166 for cc_temp in $compiler""; do
8167   case $cc_temp in
8168     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8169     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8170     \-*) ;;
8171     *) break;;
8172   esac
8173 done
8174 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8175
8176
8177 # Only perform the check for file, if the check method requires it
8178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8179 case $deplibs_check_method in
8180 file_magic*)
8181   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8183 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   case $MAGIC_CMD in
8188 [\\/*] |  ?:[\\/]*)
8189   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8190   ;;
8191 *)
8192   lt_save_MAGIC_CMD="$MAGIC_CMD"
8193   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8194   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8195   for ac_dir in $ac_dummy; do
8196     IFS="$lt_save_ifs"
8197     test -z "$ac_dir" && ac_dir=.
8198     if test -f $ac_dir/${ac_tool_prefix}file; then
8199       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8200       if test -n "$file_magic_test_file"; then
8201         case $deplibs_check_method in
8202         "file_magic "*)
8203           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8204           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8205           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8206             $EGREP "$file_magic_regex" > /dev/null; then
8207             :
8208           else
8209             cat <<_LT_EOF 1>&2
8210
8211 *** Warning: the command libtool uses to detect shared libraries,
8212 *** $file_magic_cmd, produces output that libtool cannot recognize.
8213 *** The result is that libtool may fail to recognize shared libraries
8214 *** as such.  This will affect the creation of libtool libraries that
8215 *** depend on shared libraries, but programs linked with such libtool
8216 *** libraries will work regardless of this problem.  Nevertheless, you
8217 *** may want to report the problem to your system manager and/or to
8218 *** bug-libtool@gnu.org
8219
8220 _LT_EOF
8221           fi ;;
8222         esac
8223       fi
8224       break
8225     fi
8226   done
8227   IFS="$lt_save_ifs"
8228   MAGIC_CMD="$lt_save_MAGIC_CMD"
8229   ;;
8230 esac
8231 fi
8232
8233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8234 if test -n "$MAGIC_CMD"; then
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8236 $as_echo "$MAGIC_CMD" >&6; }
8237 else
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242
8243
8244
8245
8246 if test -z "$lt_cv_path_MAGIC_CMD"; then
8247   if test -n "$ac_tool_prefix"; then
8248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8249 $as_echo_n "checking for file... " >&6; }
8250 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8251   $as_echo_n "(cached) " >&6
8252 else
8253   case $MAGIC_CMD in
8254 [\\/*] |  ?:[\\/]*)
8255   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8256   ;;
8257 *)
8258   lt_save_MAGIC_CMD="$MAGIC_CMD"
8259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261   for ac_dir in $ac_dummy; do
8262     IFS="$lt_save_ifs"
8263     test -z "$ac_dir" && ac_dir=.
8264     if test -f $ac_dir/file; then
8265       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8266       if test -n "$file_magic_test_file"; then
8267         case $deplibs_check_method in
8268         "file_magic "*)
8269           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272             $EGREP "$file_magic_regex" > /dev/null; then
8273             :
8274           else
8275             cat <<_LT_EOF 1>&2
8276
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such.  This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem.  Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8285
8286 _LT_EOF
8287           fi ;;
8288         esac
8289       fi
8290       break
8291     fi
8292   done
8293   IFS="$lt_save_ifs"
8294   MAGIC_CMD="$lt_save_MAGIC_CMD"
8295   ;;
8296 esac
8297 fi
8298
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8302 $as_echo "$MAGIC_CMD" >&6; }
8303 else
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307
8308
8309   else
8310     MAGIC_CMD=:
8311   fi
8312 fi
8313
8314   fi
8315   ;;
8316 esac
8317
8318 # Use C for the default configuration in the libtool script
8319
8320 lt_save_CC="$CC"
8321 ac_ext=c
8322 ac_cpp='$CPP $CPPFLAGS'
8323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8326
8327
8328 # Source file extension for C test sources.
8329 ac_ext=c
8330
8331 # Object file extension for compiled C test sources.
8332 objext=o
8333 objext=$objext
8334
8335 # Code to be used in simple compile tests
8336 lt_simple_compile_test_code="int some_variable = 0;"
8337
8338 # Code to be used in simple link tests
8339 lt_simple_link_test_code='int main(){return(0);}'
8340
8341
8342
8343
8344
8345
8346
8347 # If no C compiler was specified, use CC.
8348 LTCC=${LTCC-"$CC"}
8349
8350 # If no C compiler flags were specified, use CFLAGS.
8351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8352
8353 # Allow CC to be a program name with arguments.
8354 compiler=$CC
8355
8356 # Save the default compiler, since it gets overwritten when the other
8357 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8358 compiler_DEFAULT=$CC
8359
8360 # save warnings/boilerplate of simple test code
8361 ac_outfile=conftest.$ac_objext
8362 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8364 _lt_compiler_boilerplate=`cat conftest.err`
8365 $RM conftest*
8366
8367 ac_outfile=conftest.$ac_objext
8368 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8370 _lt_linker_boilerplate=`cat conftest.err`
8371 $RM -r conftest*
8372
8373
8374 ## CAVEAT EMPTOR:
8375 ## There is no encapsulation within the following macros, do not change
8376 ## the running order or otherwise move them around unless you know exactly
8377 ## what you are doing...
8378 if test -n "$compiler"; then
8379
8380 lt_prog_compiler_no_builtin_flag=
8381
8382 if test "$GCC" = yes; then
8383   case $cc_basename in
8384   nvcc*)
8385     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8386   *)
8387     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8388   esac
8389
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8391 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8392 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8393   $as_echo_n "(cached) " >&6
8394 else
8395   lt_cv_prog_compiler_rtti_exceptions=no
8396    ac_outfile=conftest.$ac_objext
8397    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8398    lt_compiler_flag="-fno-rtti -fno-exceptions"
8399    # Insert the option either (1) after the last *FLAGS variable, or
8400    # (2) before a word containing "conftest.", or (3) at the end.
8401    # Note that $ac_compile itself does not contain backslashes and begins
8402    # with a dollar sign (not a hyphen), so the echo should work correctly.
8403    # The option is referenced via a variable to avoid confusing sed.
8404    lt_compile=`echo "$ac_compile" | $SED \
8405    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8406    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8407    -e 's:$: $lt_compiler_flag:'`
8408    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8409    (eval "$lt_compile" 2>conftest.err)
8410    ac_status=$?
8411    cat conftest.err >&5
8412    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413    if (exit $ac_status) && test -s "$ac_outfile"; then
8414      # The compiler can only warn and ignore the option if not recognized
8415      # So say no if there are warnings other than the usual output.
8416      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8417      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8418      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8419        lt_cv_prog_compiler_rtti_exceptions=yes
8420      fi
8421    fi
8422    $RM conftest*
8423
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8426 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8427
8428 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8429     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8430 else
8431     :
8432 fi
8433
8434 fi
8435
8436
8437
8438
8439
8440
8441   lt_prog_compiler_wl=
8442 lt_prog_compiler_pic=
8443 lt_prog_compiler_static=
8444
8445
8446   if test "$GCC" = yes; then
8447     lt_prog_compiler_wl='-Wl,'
8448     lt_prog_compiler_static='-static'
8449
8450     case $host_os in
8451       aix*)
8452       # All AIX code is PIC.
8453       if test "$host_cpu" = ia64; then
8454         # AIX 5 now supports IA64 processor
8455         lt_prog_compiler_static='-Bstatic'
8456       fi
8457       ;;
8458
8459     amigaos*)
8460       case $host_cpu in
8461       powerpc)
8462             # see comment about AmigaOS4 .so support
8463             lt_prog_compiler_pic='-fPIC'
8464         ;;
8465       m68k)
8466             # FIXME: we need at least 68020 code to build shared libraries, but
8467             # adding the `-m68020' flag to GCC prevents building anything better,
8468             # like `-m68040'.
8469             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8470         ;;
8471       esac
8472       ;;
8473
8474     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8475       # PIC is the default for these OSes.
8476       ;;
8477
8478     mingw* | cygwin* | pw32* | os2* | cegcc*)
8479       # This hack is so that the source file can tell whether it is being
8480       # built for inclusion in a dll (and should export symbols for example).
8481       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8482       # (--disable-auto-import) libraries
8483       lt_prog_compiler_pic='-DDLL_EXPORT'
8484       ;;
8485
8486     darwin* | rhapsody*)
8487       # PIC is the default on this platform
8488       # Common symbols not allowed in MH_DYLIB files
8489       lt_prog_compiler_pic='-fno-common'
8490       ;;
8491
8492     haiku*)
8493       # PIC is the default for Haiku.
8494       # The "-static" flag exists, but is broken.
8495       lt_prog_compiler_static=
8496       ;;
8497
8498     hpux*)
8499       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8500       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8501       # sets the default TLS model and affects inlining.
8502       case $host_cpu in
8503       hppa*64*)
8504         # +Z the default
8505         ;;
8506       *)
8507         lt_prog_compiler_pic='-fPIC'
8508         ;;
8509       esac
8510       ;;
8511
8512     interix[3-9]*)
8513       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8514       # Instead, we relocate shared libraries at runtime.
8515       ;;
8516
8517     msdosdjgpp*)
8518       # Just because we use GCC doesn't mean we suddenly get shared libraries
8519       # on systems that don't support them.
8520       lt_prog_compiler_can_build_shared=no
8521       enable_shared=no
8522       ;;
8523
8524     *nto* | *qnx*)
8525       # QNX uses GNU C++, but need to define -shared option too, otherwise
8526       # it will coredump.
8527       lt_prog_compiler_pic='-fPIC -shared'
8528       ;;
8529
8530     sysv4*MP*)
8531       if test -d /usr/nec; then
8532         lt_prog_compiler_pic=-Kconform_pic
8533       fi
8534       ;;
8535
8536     *)
8537       lt_prog_compiler_pic='-fPIC'
8538       ;;
8539     esac
8540
8541     case $cc_basename in
8542     nvcc*) # Cuda Compiler Driver 2.2
8543       lt_prog_compiler_wl='-Xlinker '
8544       if test -n "$lt_prog_compiler_pic"; then
8545         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8546       fi
8547       ;;
8548     esac
8549   else
8550     # PORTME Check for flag to pass linker flags through the system compiler.
8551     case $host_os in
8552     aix*)
8553       lt_prog_compiler_wl='-Wl,'
8554       if test "$host_cpu" = ia64; then
8555         # AIX 5 now supports IA64 processor
8556         lt_prog_compiler_static='-Bstatic'
8557       else
8558         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8559       fi
8560       ;;
8561
8562     mingw* | cygwin* | pw32* | os2* | cegcc*)
8563       # This hack is so that the source file can tell whether it is being
8564       # built for inclusion in a dll (and should export symbols for example).
8565       lt_prog_compiler_pic='-DDLL_EXPORT'
8566       ;;
8567
8568     hpux9* | hpux10* | hpux11*)
8569       lt_prog_compiler_wl='-Wl,'
8570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8571       # not for PA HP-UX.
8572       case $host_cpu in
8573       hppa*64*|ia64*)
8574         # +Z the default
8575         ;;
8576       *)
8577         lt_prog_compiler_pic='+Z'
8578         ;;
8579       esac
8580       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8581       lt_prog_compiler_static='${wl}-a ${wl}archive'
8582       ;;
8583
8584     irix5* | irix6* | nonstopux*)
8585       lt_prog_compiler_wl='-Wl,'
8586       # PIC (with -KPIC) is the default.
8587       lt_prog_compiler_static='-non_shared'
8588       ;;
8589
8590     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8591       case $cc_basename in
8592       # old Intel for x86_64 which still supported -KPIC.
8593       ecc*)
8594         lt_prog_compiler_wl='-Wl,'
8595         lt_prog_compiler_pic='-KPIC'
8596         lt_prog_compiler_static='-static'
8597         ;;
8598       # icc used to be incompatible with GCC.
8599       # ICC 10 doesn't accept -KPIC any more.
8600       icc* | ifort*)
8601         lt_prog_compiler_wl='-Wl,'
8602         lt_prog_compiler_pic='-fPIC'
8603         lt_prog_compiler_static='-static'
8604         ;;
8605       # Lahey Fortran 8.1.
8606       lf95*)
8607         lt_prog_compiler_wl='-Wl,'
8608         lt_prog_compiler_pic='--shared'
8609         lt_prog_compiler_static='--static'
8610         ;;
8611       nagfor*)
8612         # NAG Fortran compiler
8613         lt_prog_compiler_wl='-Wl,-Wl,,'
8614         lt_prog_compiler_pic='-PIC'
8615         lt_prog_compiler_static='-Bstatic'
8616         ;;
8617       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8618         # Portland Group compilers (*not* the Pentium gcc compiler,
8619         # which looks to be a dead project)
8620         lt_prog_compiler_wl='-Wl,'
8621         lt_prog_compiler_pic='-fpic'
8622         lt_prog_compiler_static='-Bstatic'
8623         ;;
8624       ccc*)
8625         lt_prog_compiler_wl='-Wl,'
8626         # All Alpha code is PIC.
8627         lt_prog_compiler_static='-non_shared'
8628         ;;
8629       xl* | bgxl* | bgf* | mpixl*)
8630         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8631         lt_prog_compiler_wl='-Wl,'
8632         lt_prog_compiler_pic='-qpic'
8633         lt_prog_compiler_static='-qstaticlink'
8634         ;;
8635       *)
8636         case `$CC -V 2>&1 | sed 5q` in
8637         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8638           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8639           lt_prog_compiler_pic='-KPIC'
8640           lt_prog_compiler_static='-Bstatic'
8641           lt_prog_compiler_wl=''
8642           ;;
8643         *Sun\ F* | *Sun*Fortran*)
8644           lt_prog_compiler_pic='-KPIC'
8645           lt_prog_compiler_static='-Bstatic'
8646           lt_prog_compiler_wl='-Qoption ld '
8647           ;;
8648         *Sun\ C*)
8649           # Sun C 5.9
8650           lt_prog_compiler_pic='-KPIC'
8651           lt_prog_compiler_static='-Bstatic'
8652           lt_prog_compiler_wl='-Wl,'
8653           ;;
8654         *Intel*\ [CF]*Compiler*)
8655           lt_prog_compiler_wl='-Wl,'
8656           lt_prog_compiler_pic='-fPIC'
8657           lt_prog_compiler_static='-static'
8658           ;;
8659         *Portland\ Group*)
8660           lt_prog_compiler_wl='-Wl,'
8661           lt_prog_compiler_pic='-fpic'
8662           lt_prog_compiler_static='-Bstatic'
8663           ;;
8664         esac
8665         ;;
8666       esac
8667       ;;
8668
8669     newsos6)
8670       lt_prog_compiler_pic='-KPIC'
8671       lt_prog_compiler_static='-Bstatic'
8672       ;;
8673
8674     *nto* | *qnx*)
8675       # QNX uses GNU C++, but need to define -shared option too, otherwise
8676       # it will coredump.
8677       lt_prog_compiler_pic='-fPIC -shared'
8678       ;;
8679
8680     osf3* | osf4* | osf5*)
8681       lt_prog_compiler_wl='-Wl,'
8682       # All OSF/1 code is PIC.
8683       lt_prog_compiler_static='-non_shared'
8684       ;;
8685
8686     rdos*)
8687       lt_prog_compiler_static='-non_shared'
8688       ;;
8689
8690     solaris*)
8691       lt_prog_compiler_pic='-KPIC'
8692       lt_prog_compiler_static='-Bstatic'
8693       case $cc_basename in
8694       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8695         lt_prog_compiler_wl='-Qoption ld ';;
8696       *)
8697         lt_prog_compiler_wl='-Wl,';;
8698       esac
8699       ;;
8700
8701     sunos4*)
8702       lt_prog_compiler_wl='-Qoption ld '
8703       lt_prog_compiler_pic='-PIC'
8704       lt_prog_compiler_static='-Bstatic'
8705       ;;
8706
8707     sysv4 | sysv4.2uw2* | sysv4.3*)
8708       lt_prog_compiler_wl='-Wl,'
8709       lt_prog_compiler_pic='-KPIC'
8710       lt_prog_compiler_static='-Bstatic'
8711       ;;
8712
8713     sysv4*MP*)
8714       if test -d /usr/nec ;then
8715         lt_prog_compiler_pic='-Kconform_pic'
8716         lt_prog_compiler_static='-Bstatic'
8717       fi
8718       ;;
8719
8720     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8721       lt_prog_compiler_wl='-Wl,'
8722       lt_prog_compiler_pic='-KPIC'
8723       lt_prog_compiler_static='-Bstatic'
8724       ;;
8725
8726     unicos*)
8727       lt_prog_compiler_wl='-Wl,'
8728       lt_prog_compiler_can_build_shared=no
8729       ;;
8730
8731     uts4*)
8732       lt_prog_compiler_pic='-pic'
8733       lt_prog_compiler_static='-Bstatic'
8734       ;;
8735
8736     *)
8737       lt_prog_compiler_can_build_shared=no
8738       ;;
8739     esac
8740   fi
8741
8742 case $host_os in
8743   # For platforms which do not support PIC, -DPIC is meaningless:
8744   *djgpp*)
8745     lt_prog_compiler_pic=
8746     ;;
8747   *)
8748     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8749     ;;
8750 esac
8751
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8753 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8754 if ${lt_cv_prog_compiler_pic+:} false; then :
8755   $as_echo_n "(cached) " >&6
8756 else
8757   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8758 fi
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8760 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8761 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8762
8763 #
8764 # Check to make sure the PIC flag actually works.
8765 #
8766 if test -n "$lt_prog_compiler_pic"; then
8767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8769 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   lt_cv_prog_compiler_pic_works=no
8773    ac_outfile=conftest.$ac_objext
8774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8776    # Insert the option either (1) after the last *FLAGS variable, or
8777    # (2) before a word containing "conftest.", or (3) at the end.
8778    # Note that $ac_compile itself does not contain backslashes and begins
8779    # with a dollar sign (not a hyphen), so the echo should work correctly.
8780    # The option is referenced via a variable to avoid confusing sed.
8781    lt_compile=`echo "$ac_compile" | $SED \
8782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784    -e 's:$: $lt_compiler_flag:'`
8785    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786    (eval "$lt_compile" 2>conftest.err)
8787    ac_status=$?
8788    cat conftest.err >&5
8789    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790    if (exit $ac_status) && test -s "$ac_outfile"; then
8791      # The compiler can only warn and ignore the option if not recognized
8792      # So say no if there are warnings other than the usual output.
8793      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8794      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8795      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8796        lt_cv_prog_compiler_pic_works=yes
8797      fi
8798    fi
8799    $RM conftest*
8800
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8803 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8804
8805 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8806     case $lt_prog_compiler_pic in
8807      "" | " "*) ;;
8808      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8809      esac
8810 else
8811     lt_prog_compiler_pic=
8812      lt_prog_compiler_can_build_shared=no
8813 fi
8814
8815 fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827 #
8828 # Check to make sure the static flag actually works.
8829 #
8830 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8832 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8833 if ${lt_cv_prog_compiler_static_works+:} false; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   lt_cv_prog_compiler_static_works=no
8837    save_LDFLAGS="$LDFLAGS"
8838    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8839    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8840    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8841      # The linker can only warn and ignore the option if not recognized
8842      # So say no if there are warnings
8843      if test -s conftest.err; then
8844        # Append any errors to the config.log.
8845        cat conftest.err 1>&5
8846        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8847        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8848        if diff conftest.exp conftest.er2 >/dev/null; then
8849          lt_cv_prog_compiler_static_works=yes
8850        fi
8851      else
8852        lt_cv_prog_compiler_static_works=yes
8853      fi
8854    fi
8855    $RM -r conftest*
8856    LDFLAGS="$save_LDFLAGS"
8857
8858 fi
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8860 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8861
8862 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8863     :
8864 else
8865     lt_prog_compiler_static=
8866 fi
8867
8868
8869
8870
8871
8872
8873
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8875 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8876 if ${lt_cv_prog_compiler_c_o+:} false; then :
8877   $as_echo_n "(cached) " >&6
8878 else
8879   lt_cv_prog_compiler_c_o=no
8880    $RM -r conftest 2>/dev/null
8881    mkdir conftest
8882    cd conftest
8883    mkdir out
8884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8885
8886    lt_compiler_flag="-o out/conftest2.$ac_objext"
8887    # Insert the option either (1) after the last *FLAGS variable, or
8888    # (2) before a word containing "conftest.", or (3) at the end.
8889    # Note that $ac_compile itself does not contain backslashes and begins
8890    # with a dollar sign (not a hyphen), so the echo should work correctly.
8891    lt_compile=`echo "$ac_compile" | $SED \
8892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8894    -e 's:$: $lt_compiler_flag:'`
8895    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8896    (eval "$lt_compile" 2>out/conftest.err)
8897    ac_status=$?
8898    cat out/conftest.err >&5
8899    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8901    then
8902      # The compiler can only warn and ignore the option if not recognized
8903      # So say no if there are warnings
8904      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8905      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8906      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8907        lt_cv_prog_compiler_c_o=yes
8908      fi
8909    fi
8910    chmod u+w . 2>&5
8911    $RM conftest*
8912    # SGI C++ compiler will create directory out/ii_files/ for
8913    # template instantiation
8914    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8915    $RM out/* && rmdir out
8916    cd ..
8917    $RM -r conftest
8918    $RM conftest*
8919
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8922 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8923
8924
8925
8926
8927
8928
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8930 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8931 if ${lt_cv_prog_compiler_c_o+:} false; then :
8932   $as_echo_n "(cached) " >&6
8933 else
8934   lt_cv_prog_compiler_c_o=no
8935    $RM -r conftest 2>/dev/null
8936    mkdir conftest
8937    cd conftest
8938    mkdir out
8939    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940
8941    lt_compiler_flag="-o out/conftest2.$ac_objext"
8942    # Insert the option either (1) after the last *FLAGS variable, or
8943    # (2) before a word containing "conftest.", or (3) at the end.
8944    # Note that $ac_compile itself does not contain backslashes and begins
8945    # with a dollar sign (not a hyphen), so the echo should work correctly.
8946    lt_compile=`echo "$ac_compile" | $SED \
8947    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8948    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8949    -e 's:$: $lt_compiler_flag:'`
8950    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8951    (eval "$lt_compile" 2>out/conftest.err)
8952    ac_status=$?
8953    cat out/conftest.err >&5
8954    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8956    then
8957      # The compiler can only warn and ignore the option if not recognized
8958      # So say no if there are warnings
8959      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8960      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8961      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8962        lt_cv_prog_compiler_c_o=yes
8963      fi
8964    fi
8965    chmod u+w . 2>&5
8966    $RM conftest*
8967    # SGI C++ compiler will create directory out/ii_files/ for
8968    # template instantiation
8969    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8970    $RM out/* && rmdir out
8971    cd ..
8972    $RM -r conftest
8973    $RM conftest*
8974
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8977 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8978
8979
8980
8981
8982 hard_links="nottested"
8983 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8984   # do not overwrite the value of need_locks provided by the user
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8986 $as_echo_n "checking if we can lock with hard links... " >&6; }
8987   hard_links=yes
8988   $RM conftest*
8989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8990   touch conftest.a
8991   ln conftest.a conftest.b 2>&5 || hard_links=no
8992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8994 $as_echo "$hard_links" >&6; }
8995   if test "$hard_links" = no; then
8996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8997 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8998     need_locks=warn
8999   fi
9000 else
9001   need_locks=no
9002 fi
9003
9004
9005
9006
9007
9008
9009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9011
9012   runpath_var=
9013   allow_undefined_flag=
9014   always_export_symbols=no
9015   archive_cmds=
9016   archive_expsym_cmds=
9017   compiler_needs_object=no
9018   enable_shared_with_static_runtimes=no
9019   export_dynamic_flag_spec=
9020   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9021   hardcode_automatic=no
9022   hardcode_direct=no
9023   hardcode_direct_absolute=no
9024   hardcode_libdir_flag_spec=
9025   hardcode_libdir_separator=
9026   hardcode_minus_L=no
9027   hardcode_shlibpath_var=unsupported
9028   inherit_rpath=no
9029   link_all_deplibs=unknown
9030   module_cmds=
9031   module_expsym_cmds=
9032   old_archive_from_new_cmds=
9033   old_archive_from_expsyms_cmds=
9034   thread_safe_flag_spec=
9035   whole_archive_flag_spec=
9036   # include_expsyms should be a list of space-separated symbols to be *always*
9037   # included in the symbol list
9038   include_expsyms=
9039   # exclude_expsyms can be an extended regexp of symbols to exclude
9040   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9041   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9042   # as well as any symbol that contains `d'.
9043   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9044   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9045   # platforms (ab)use it in PIC code, but their linkers get confused if
9046   # the symbol is explicitly referenced.  Since portable code cannot
9047   # rely on this symbol name, it's probably fine to never include it in
9048   # preloaded symbol tables.
9049   # Exclude shared library initialization/finalization symbols.
9050   extract_expsyms_cmds=
9051
9052   case $host_os in
9053   cygwin* | mingw* | pw32* | cegcc*)
9054     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9055     # When not using gcc, we currently assume that we are using
9056     # Microsoft Visual C++.
9057     if test "$GCC" != yes; then
9058       with_gnu_ld=no
9059     fi
9060     ;;
9061   interix*)
9062     # we just hope/assume this is gcc and not c89 (= MSVC++)
9063     with_gnu_ld=yes
9064     ;;
9065   openbsd*)
9066     with_gnu_ld=no
9067     ;;
9068   linux* | k*bsd*-gnu | gnu*)
9069     link_all_deplibs=no
9070     ;;
9071   esac
9072
9073   ld_shlibs=yes
9074
9075   # On some targets, GNU ld is compatible enough with the native linker
9076   # that we're better off using the native interface for both.
9077   lt_use_gnu_ld_interface=no
9078   if test "$with_gnu_ld" = yes; then
9079     case $host_os in
9080       aix*)
9081         # The AIX port of GNU ld has always aspired to compatibility
9082         # with the native linker.  However, as the warning in the GNU ld
9083         # block says, versions before 2.19.5* couldn't really create working
9084         # shared libraries, regardless of the interface used.
9085         case `$LD -v 2>&1` in
9086           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9087           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9088           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9089           *)
9090             lt_use_gnu_ld_interface=yes
9091             ;;
9092         esac
9093         ;;
9094       *)
9095         lt_use_gnu_ld_interface=yes
9096         ;;
9097     esac
9098   fi
9099
9100   if test "$lt_use_gnu_ld_interface" = yes; then
9101     # If archive_cmds runs LD, not CC, wlarc should be empty
9102     wlarc='${wl}'
9103
9104     # Set some defaults for GNU ld with shared library support. These
9105     # are reset later if shared libraries are not supported. Putting them
9106     # here allows them to be overridden if necessary.
9107     runpath_var=LD_RUN_PATH
9108     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9109     export_dynamic_flag_spec='${wl}--export-dynamic'
9110     # ancient GNU ld didn't support --whole-archive et. al.
9111     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9112       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9113     else
9114       whole_archive_flag_spec=
9115     fi
9116     supports_anon_versioning=no
9117     case `$LD -v 2>&1` in
9118       *GNU\ gold*) supports_anon_versioning=yes ;;
9119       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9120       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9121       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9122       *\ 2.11.*) ;; # other 2.11 versions
9123       *) supports_anon_versioning=yes ;;
9124     esac
9125
9126     # See if GNU ld supports shared libraries.
9127     case $host_os in
9128     aix[3-9]*)
9129       # On AIX/PPC, the GNU linker is very broken
9130       if test "$host_cpu" != ia64; then
9131         ld_shlibs=no
9132         cat <<_LT_EOF 1>&2
9133
9134 *** Warning: the GNU linker, at least up to release 2.19, is reported
9135 *** to be unable to reliably create shared libraries on AIX.
9136 *** Therefore, libtool is disabling shared libraries support.  If you
9137 *** really care for shared libraries, you may want to install binutils
9138 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9139 *** You will then need to restart the configuration process.
9140
9141 _LT_EOF
9142       fi
9143       ;;
9144
9145     amigaos*)
9146       case $host_cpu in
9147       powerpc)
9148             # see comment about AmigaOS4 .so support
9149             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150             archive_expsym_cmds=''
9151         ;;
9152       m68k)
9153             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)'
9154             hardcode_libdir_flag_spec='-L$libdir'
9155             hardcode_minus_L=yes
9156         ;;
9157       esac
9158       ;;
9159
9160     beos*)
9161       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9162         allow_undefined_flag=unsupported
9163         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9164         # support --undefined.  This deserves some investigation.  FIXME
9165         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166       else
9167         ld_shlibs=no
9168       fi
9169       ;;
9170
9171     cygwin* | mingw* | pw32* | cegcc*)
9172       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9173       # as there is no search path for DLLs.
9174       hardcode_libdir_flag_spec='-L$libdir'
9175       export_dynamic_flag_spec='${wl}--export-all-symbols'
9176       allow_undefined_flag=unsupported
9177       always_export_symbols=no
9178       enable_shared_with_static_runtimes=yes
9179       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'
9180       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9181
9182       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9183         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9184         # If the export-symbols file already is a .def file (1st line
9185         # is EXPORTS), use it as is; otherwise, prepend...
9186         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9187           cp $export_symbols $output_objdir/$soname.def;
9188         else
9189           echo EXPORTS > $output_objdir/$soname.def;
9190           cat $export_symbols >> $output_objdir/$soname.def;
9191         fi~
9192         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9193       else
9194         ld_shlibs=no
9195       fi
9196       ;;
9197
9198     haiku*)
9199       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200       link_all_deplibs=yes
9201       ;;
9202
9203     interix[3-9]*)
9204       hardcode_direct=no
9205       hardcode_shlibpath_var=no
9206       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207       export_dynamic_flag_spec='${wl}-E'
9208       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9209       # Instead, shared libraries are loaded at an image base (0x10000000 by
9210       # default) and relocated if they conflict, which is a slow very memory
9211       # consuming and fragmenting process.  To avoid this, we pick a random,
9212       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9213       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9214       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9215       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'
9216       ;;
9217
9218     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9219       tmp_diet=no
9220       if test "$host_os" = linux-dietlibc; then
9221         case $cc_basename in
9222           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9223         esac
9224       fi
9225       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9226          && test "$tmp_diet" = no
9227       then
9228         tmp_addflag=' $pic_flag'
9229         tmp_sharedflag='-shared'
9230         case $cc_basename,$host_cpu in
9231         pgcc*)                          # Portland Group C compiler
9232           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'
9233           tmp_addflag=' $pic_flag'
9234           ;;
9235         pgf77* | pgf90* | pgf95* | pgfortran*)
9236                                         # Portland Group f77 and f90 compilers
9237           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'
9238           tmp_addflag=' $pic_flag -Mnomain' ;;
9239         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9240           tmp_addflag=' -i_dynamic' ;;
9241         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9242           tmp_addflag=' -i_dynamic -nofor_main' ;;
9243         ifc* | ifort*)                  # Intel Fortran compiler
9244           tmp_addflag=' -nofor_main' ;;
9245         lf95*)                          # Lahey Fortran 8.1
9246           whole_archive_flag_spec=
9247           tmp_sharedflag='--shared' ;;
9248         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9249           tmp_sharedflag='-qmkshrobj'
9250           tmp_addflag= ;;
9251         nvcc*)  # Cuda Compiler Driver 2.2
9252           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'
9253           compiler_needs_object=yes
9254           ;;
9255         esac
9256         case `$CC -V 2>&1 | sed 5q` in
9257         *Sun\ C*)                       # Sun C 5.9
9258           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'
9259           compiler_needs_object=yes
9260           tmp_sharedflag='-G' ;;
9261         *Sun\ F*)                       # Sun Fortran 8.3
9262           tmp_sharedflag='-G' ;;
9263         esac
9264         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265
9266         if test "x$supports_anon_versioning" = xyes; then
9267           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9268             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9269             echo "local: *; };" >> $output_objdir/$libname.ver~
9270             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9271         fi
9272
9273         case $cc_basename in
9274         xlf* | bgf* | bgxlf* | mpixlf*)
9275           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9276           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9277           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9279           if test "x$supports_anon_versioning" = xyes; then
9280             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9281               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9282               echo "local: *; };" >> $output_objdir/$libname.ver~
9283               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9284           fi
9285           ;;
9286         esac
9287       else
9288         ld_shlibs=no
9289       fi
9290       ;;
9291
9292     netbsd* | netbsdelf*-gnu)
9293       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9295         wlarc=
9296       else
9297         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9299       fi
9300       ;;
9301
9302     solaris*)
9303       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9304         ld_shlibs=no
9305         cat <<_LT_EOF 1>&2
9306
9307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9308 *** create shared libraries on Solaris systems.  Therefore, libtool
9309 *** is disabling shared libraries support.  We urge you to upgrade GNU
9310 *** binutils to release 2.9.1 or newer.  Another option is to modify
9311 *** your PATH or compiler configuration so that the native linker is
9312 *** used, and then restart.
9313
9314 _LT_EOF
9315       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9318       else
9319         ld_shlibs=no
9320       fi
9321       ;;
9322
9323     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9324       case `$LD -v 2>&1` in
9325         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9326         ld_shlibs=no
9327         cat <<_LT_EOF 1>&2
9328
9329 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9330 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9331 *** is disabling shared libraries support.  We urge you to upgrade GNU
9332 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9333 *** your PATH or compiler configuration so that the native linker is
9334 *** used, and then restart.
9335
9336 _LT_EOF
9337         ;;
9338         *)
9339           # For security reasons, it is highly recommended that you always
9340           # use absolute paths for naming shared libraries, and exclude the
9341           # DT_RUNPATH tag from executables and libraries.  But doing so
9342           # requires that you compile everything twice, which is a pain.
9343           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9344             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9347           else
9348             ld_shlibs=no
9349           fi
9350         ;;
9351       esac
9352       ;;
9353
9354     sunos4*)
9355       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9356       wlarc=
9357       hardcode_direct=yes
9358       hardcode_shlibpath_var=no
9359       ;;
9360
9361     *)
9362       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365       else
9366         ld_shlibs=no
9367       fi
9368       ;;
9369     esac
9370
9371     if test "$ld_shlibs" = no; then
9372       runpath_var=
9373       hardcode_libdir_flag_spec=
9374       export_dynamic_flag_spec=
9375       whole_archive_flag_spec=
9376     fi
9377   else
9378     # PORTME fill in a description of your system's linker (not GNU ld)
9379     case $host_os in
9380     aix3*)
9381       allow_undefined_flag=unsupported
9382       always_export_symbols=yes
9383       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'
9384       # Note: this linker hardcodes the directories in LIBPATH if there
9385       # are no directories specified by -L.
9386       hardcode_minus_L=yes
9387       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9388         # Neither direct hardcoding nor static linking is supported with a
9389         # broken collect2.
9390         hardcode_direct=unsupported
9391       fi
9392       ;;
9393
9394     aix[4-9]*)
9395       if test "$host_cpu" = ia64; then
9396         # On IA64, the linker does run time linking by default, so we don't
9397         # have to do anything special.
9398         aix_use_runtimelinking=no
9399         exp_sym_flag='-Bexport'
9400         no_entry_flag=""
9401       else
9402         # If we're using GNU nm, then we don't want the "-C" option.
9403         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9404         # Also, AIX nm treats weak defined symbols like other global
9405         # defined symbols, whereas GNU nm marks them as "W".
9406         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9407           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'
9408         else
9409           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'
9410         fi
9411         aix_use_runtimelinking=no
9412
9413         # Test if we are trying to use run time linking or normal
9414         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9415         # need to do runtime linking.
9416         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9417           for ld_flag in $LDFLAGS; do
9418           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9419             aix_use_runtimelinking=yes
9420             break
9421           fi
9422           done
9423           ;;
9424         esac
9425
9426         exp_sym_flag='-bexport'
9427         no_entry_flag='-bnoentry'
9428       fi
9429
9430       # When large executables or shared objects are built, AIX ld can
9431       # have problems creating the table of contents.  If linking a library
9432       # or program results in "error TOC overflow" add -mminimal-toc to
9433       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9434       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9435
9436       archive_cmds=''
9437       hardcode_direct=yes
9438       hardcode_direct_absolute=yes
9439       hardcode_libdir_separator=':'
9440       link_all_deplibs=yes
9441       file_list_spec='${wl}-f,'
9442
9443       if test "$GCC" = yes; then
9444         case $host_os in aix4.[012]|aix4.[012].*)
9445         # We only want to do this on AIX 4.2 and lower, the check
9446         # below for broken collect2 doesn't work under 4.3+
9447           collect2name=`${CC} -print-prog-name=collect2`
9448           if test -f "$collect2name" &&
9449            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9450           then
9451           # We have reworked collect2
9452           :
9453           else
9454           # We have old collect2
9455           hardcode_direct=unsupported
9456           # It fails to find uninstalled libraries when the uninstalled
9457           # path is not listed in the libpath.  Setting hardcode_minus_L
9458           # to unsupported forces relinking
9459           hardcode_minus_L=yes
9460           hardcode_libdir_flag_spec='-L$libdir'
9461           hardcode_libdir_separator=
9462           fi
9463           ;;
9464         esac
9465         shared_flag='-shared'
9466         if test "$aix_use_runtimelinking" = yes; then
9467           shared_flag="$shared_flag "'${wl}-G'
9468         fi
9469         link_all_deplibs=no
9470       else
9471         # not using gcc
9472         if test "$host_cpu" = ia64; then
9473         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9474         # chokes on -Wl,-G. The following line is correct:
9475           shared_flag='-G'
9476         else
9477           if test "$aix_use_runtimelinking" = yes; then
9478             shared_flag='${wl}-G'
9479           else
9480             shared_flag='${wl}-bM:SRE'
9481           fi
9482         fi
9483       fi
9484
9485       export_dynamic_flag_spec='${wl}-bexpall'
9486       # It seems that -bexpall does not export symbols beginning with
9487       # underscore (_), so it is better to generate a list of symbols to export.
9488       always_export_symbols=yes
9489       if test "$aix_use_runtimelinking" = yes; then
9490         # Warning - without using the other runtime loading flags (-brtl),
9491         # -berok will link without error, but may produce a broken library.
9492         allow_undefined_flag='-berok'
9493         # Determine the default libpath from the value encoded in an
9494         # empty executable.
9495         if test "${lt_cv_aix_libpath+set}" = set; then
9496   aix_libpath=$lt_cv_aix_libpath
9497 else
9498   if ${lt_cv_aix_libpath_+:} false; then :
9499   $as_echo_n "(cached) " >&6
9500 else
9501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h.  */
9503
9504 int
9505 main ()
9506 {
9507
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"; then :
9513
9514   lt_aix_libpath_sed='
9515       /Import File Strings/,/^$/ {
9516           /^0/ {
9517               s/^0  *\([^ ]*\) *$/\1/
9518               p
9519           }
9520       }'
9521   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522   # Check for a 64-bit object if we didn't find anything.
9523   if test -z "$lt_cv_aix_libpath_"; then
9524     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9525   fi
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext \
9528     conftest$ac_exeext conftest.$ac_ext
9529   if test -z "$lt_cv_aix_libpath_"; then
9530     lt_cv_aix_libpath_="/usr/lib:/lib"
9531   fi
9532
9533 fi
9534
9535   aix_libpath=$lt_cv_aix_libpath_
9536 fi
9537
9538         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9539         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"
9540       else
9541         if test "$host_cpu" = ia64; then
9542           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9543           allow_undefined_flag="-z nodefs"
9544           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"
9545         else
9546          # Determine the default libpath from the value encoded in an
9547          # empty executable.
9548          if test "${lt_cv_aix_libpath+set}" = set; then
9549   aix_libpath=$lt_cv_aix_libpath
9550 else
9551   if ${lt_cv_aix_libpath_+:} false; then :
9552   $as_echo_n "(cached) " >&6
9553 else
9554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h.  */
9556
9557 int
9558 main ()
9559 {
9560
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_c_try_link "$LINENO"; then :
9566
9567   lt_aix_libpath_sed='
9568       /Import File Strings/,/^$/ {
9569           /^0/ {
9570               s/^0  *\([^ ]*\) *$/\1/
9571               p
9572           }
9573       }'
9574   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9575   # Check for a 64-bit object if we didn't find anything.
9576   if test -z "$lt_cv_aix_libpath_"; then
9577     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578   fi
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext \
9581     conftest$ac_exeext conftest.$ac_ext
9582   if test -z "$lt_cv_aix_libpath_"; then
9583     lt_cv_aix_libpath_="/usr/lib:/lib"
9584   fi
9585
9586 fi
9587
9588   aix_libpath=$lt_cv_aix_libpath_
9589 fi
9590
9591          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9592           # Warning - without using the other run time loading flags,
9593           # -berok will link without error, but may produce a broken library.
9594           no_undefined_flag=' ${wl}-bernotok'
9595           allow_undefined_flag=' ${wl}-berok'
9596           if test "$with_gnu_ld" = yes; then
9597             # We only use this code for GNU lds that support --whole-archive.
9598             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9599           else
9600             # Exported symbols can be pulled into shared objects from archives
9601             whole_archive_flag_spec='$convenience'
9602           fi
9603           archive_cmds_need_lc=yes
9604           # This is similar to how AIX traditionally builds its shared libraries.
9605           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'
9606         fi
9607       fi
9608       ;;
9609
9610     amigaos*)
9611       case $host_cpu in
9612       powerpc)
9613             # see comment about AmigaOS4 .so support
9614             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615             archive_expsym_cmds=''
9616         ;;
9617       m68k)
9618             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)'
9619             hardcode_libdir_flag_spec='-L$libdir'
9620             hardcode_minus_L=yes
9621         ;;
9622       esac
9623       ;;
9624
9625     bsdi[45]*)
9626       export_dynamic_flag_spec=-rdynamic
9627       ;;
9628
9629     cygwin* | mingw* | pw32* | cegcc*)
9630       # When not using gcc, we currently assume that we are using
9631       # Microsoft Visual C++.
9632       # hardcode_libdir_flag_spec is actually meaningless, as there is
9633       # no search path for DLLs.
9634       case $cc_basename in
9635       cl*)
9636         # Native MSVC
9637         hardcode_libdir_flag_spec=' '
9638         allow_undefined_flag=unsupported
9639         always_export_symbols=yes
9640         file_list_spec='@'
9641         # Tell ltmain to make .lib files, not .a files.
9642         libext=lib
9643         # Tell ltmain to make .dll files, not .so files.
9644         shrext_cmds=".dll"
9645         # FIXME: Setting linknames here is a bad hack.
9646         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9647         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9648             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9649           else
9650             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9651           fi~
9652           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9653           linknames='
9654         # The linker will not automatically build a static lib if we build a DLL.
9655         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9656         enable_shared_with_static_runtimes=yes
9657         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9658         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9659         # Don't use ranlib
9660         old_postinstall_cmds='chmod 644 $oldlib'
9661         postlink_cmds='lt_outputfile="@OUTPUT@"~
9662           lt_tool_outputfile="@TOOL_OUTPUT@"~
9663           case $lt_outputfile in
9664             *.exe|*.EXE) ;;
9665             *)
9666               lt_outputfile="$lt_outputfile.exe"
9667               lt_tool_outputfile="$lt_tool_outputfile.exe"
9668               ;;
9669           esac~
9670           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9671             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9672             $RM "$lt_outputfile.manifest";
9673           fi'
9674         ;;
9675       *)
9676         # Assume MSVC wrapper
9677         hardcode_libdir_flag_spec=' '
9678         allow_undefined_flag=unsupported
9679         # Tell ltmain to make .lib files, not .a files.
9680         libext=lib
9681         # Tell ltmain to make .dll files, not .so files.
9682         shrext_cmds=".dll"
9683         # FIXME: Setting linknames here is a bad hack.
9684         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9685         # The linker will automatically build a .lib file if we build a DLL.
9686         old_archive_from_new_cmds='true'
9687         # FIXME: Should let the user specify the lib program.
9688         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9689         enable_shared_with_static_runtimes=yes
9690         ;;
9691       esac
9692       ;;
9693
9694     darwin* | rhapsody*)
9695
9696
9697   archive_cmds_need_lc=no
9698   hardcode_direct=no
9699   hardcode_automatic=yes
9700   hardcode_shlibpath_var=unsupported
9701   if test "$lt_cv_ld_force_load" = "yes"; then
9702     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\"`'
9703
9704   else
9705     whole_archive_flag_spec=''
9706   fi
9707   link_all_deplibs=yes
9708   allow_undefined_flag="$_lt_dar_allow_undefined"
9709   case $cc_basename in
9710      ifort*) _lt_dar_can_shared=yes ;;
9711      *) _lt_dar_can_shared=$GCC ;;
9712   esac
9713   if test "$_lt_dar_can_shared" = "yes"; then
9714     output_verbose_link_cmd=func_echo_all
9715     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9716     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9717     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}"
9718     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}"
9719
9720   else
9721   ld_shlibs=no
9722   fi
9723
9724       ;;
9725
9726     dgux*)
9727       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728       hardcode_libdir_flag_spec='-L$libdir'
9729       hardcode_shlibpath_var=no
9730       ;;
9731
9732     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9733     # support.  Future versions do this automatically, but an explicit c++rt0.o
9734     # does not break anything, and helps significantly (at the cost of a little
9735     # extra space).
9736     freebsd2.2*)
9737       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9738       hardcode_libdir_flag_spec='-R$libdir'
9739       hardcode_direct=yes
9740       hardcode_shlibpath_var=no
9741       ;;
9742
9743     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9744     freebsd2.*)
9745       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9746       hardcode_direct=yes
9747       hardcode_minus_L=yes
9748       hardcode_shlibpath_var=no
9749       ;;
9750
9751     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9752     freebsd* | dragonfly*)
9753       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9754       hardcode_libdir_flag_spec='-R$libdir'
9755       hardcode_direct=yes
9756       hardcode_shlibpath_var=no
9757       ;;
9758
9759     hpux9*)
9760       if test "$GCC" = yes; then
9761         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'
9762       else
9763         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'
9764       fi
9765       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9766       hardcode_libdir_separator=:
9767       hardcode_direct=yes
9768
9769       # hardcode_minus_L: Not really in the search PATH,
9770       # but as the default location of the library.
9771       hardcode_minus_L=yes
9772       export_dynamic_flag_spec='${wl}-E'
9773       ;;
9774
9775     hpux10*)
9776       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9777         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9778       else
9779         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9780       fi
9781       if test "$with_gnu_ld" = no; then
9782         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9783         hardcode_libdir_separator=:
9784         hardcode_direct=yes
9785         hardcode_direct_absolute=yes
9786         export_dynamic_flag_spec='${wl}-E'
9787         # hardcode_minus_L: Not really in the search PATH,
9788         # but as the default location of the library.
9789         hardcode_minus_L=yes
9790       fi
9791       ;;
9792
9793     hpux11*)
9794       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9795         case $host_cpu in
9796         hppa*64*)
9797           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798           ;;
9799         ia64*)
9800           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9801           ;;
9802         *)
9803           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804           ;;
9805         esac
9806       else
9807         case $host_cpu in
9808         hppa*64*)
9809           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9810           ;;
9811         ia64*)
9812           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9813           ;;
9814         *)
9815
9816           # Older versions of the 11.00 compiler do not understand -b yet
9817           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9819 $as_echo_n "checking if $CC understands -b... " >&6; }
9820 if ${lt_cv_prog_compiler__b+:} false; then :
9821   $as_echo_n "(cached) " >&6
9822 else
9823   lt_cv_prog_compiler__b=no
9824    save_LDFLAGS="$LDFLAGS"
9825    LDFLAGS="$LDFLAGS -b"
9826    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9827    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9828      # The linker can only warn and ignore the option if not recognized
9829      # So say no if there are warnings
9830      if test -s conftest.err; then
9831        # Append any errors to the config.log.
9832        cat conftest.err 1>&5
9833        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9834        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9835        if diff conftest.exp conftest.er2 >/dev/null; then
9836          lt_cv_prog_compiler__b=yes
9837        fi
9838      else
9839        lt_cv_prog_compiler__b=yes
9840      fi
9841    fi
9842    $RM -r conftest*
9843    LDFLAGS="$save_LDFLAGS"
9844
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9847 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9848
9849 if test x"$lt_cv_prog_compiler__b" = xyes; then
9850     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851 else
9852     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9853 fi
9854
9855           ;;
9856         esac
9857       fi
9858       if test "$with_gnu_ld" = no; then
9859         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860         hardcode_libdir_separator=:
9861
9862         case $host_cpu in
9863         hppa*64*|ia64*)
9864           hardcode_direct=no
9865           hardcode_shlibpath_var=no
9866           ;;
9867         *)
9868           hardcode_direct=yes
9869           hardcode_direct_absolute=yes
9870           export_dynamic_flag_spec='${wl}-E'
9871
9872           # hardcode_minus_L: Not really in the search PATH,
9873           # but as the default location of the library.
9874           hardcode_minus_L=yes
9875           ;;
9876         esac
9877       fi
9878       ;;
9879
9880     irix5* | irix6* | nonstopux*)
9881       if test "$GCC" = yes; then
9882         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'
9883         # Try to use the -exported_symbol ld option, if it does not
9884         # work, assume that -exports_file does not work either and
9885         # implicitly export all symbols.
9886         # This should be the same for all languages, so no per-tag cache variable.
9887         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9888 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9889 if ${lt_cv_irix_exported_symbol+:} false; then :
9890   $as_echo_n "(cached) " >&6
9891 else
9892   save_LDFLAGS="$LDFLAGS"
9893            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9894            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h.  */
9896 int foo (void) { return 0; }
9897 _ACEOF
9898 if ac_fn_c_try_link "$LINENO"; then :
9899   lt_cv_irix_exported_symbol=yes
9900 else
9901   lt_cv_irix_exported_symbol=no
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext \
9904     conftest$ac_exeext conftest.$ac_ext
9905            LDFLAGS="$save_LDFLAGS"
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9908 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9909         if test "$lt_cv_irix_exported_symbol" = yes; then
9910           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'
9911         fi
9912       else
9913         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'
9914         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'
9915       fi
9916       archive_cmds_need_lc='no'
9917       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918       hardcode_libdir_separator=:
9919       inherit_rpath=yes
9920       link_all_deplibs=yes
9921       ;;
9922
9923     netbsd* | netbsdelf*-gnu)
9924       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9925         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9926       else
9927         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9928       fi
9929       hardcode_libdir_flag_spec='-R$libdir'
9930       hardcode_direct=yes
9931       hardcode_shlibpath_var=no
9932       ;;
9933
9934     newsos6)
9935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936       hardcode_direct=yes
9937       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938       hardcode_libdir_separator=:
9939       hardcode_shlibpath_var=no
9940       ;;
9941
9942     *nto* | *qnx*)
9943       ;;
9944
9945     openbsd*)
9946       if test -f /usr/libexec/ld.so; then
9947         hardcode_direct=yes
9948         hardcode_shlibpath_var=no
9949         hardcode_direct_absolute=yes
9950         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9951           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9952           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9953           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9954           export_dynamic_flag_spec='${wl}-E'
9955         else
9956           case $host_os in
9957            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9958              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9959              hardcode_libdir_flag_spec='-R$libdir'
9960              ;;
9961            *)
9962              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964              ;;
9965           esac
9966         fi
9967       else
9968         ld_shlibs=no
9969       fi
9970       ;;
9971
9972     os2*)
9973       hardcode_libdir_flag_spec='-L$libdir'
9974       hardcode_minus_L=yes
9975       allow_undefined_flag=unsupported
9976       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'
9977       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9978       ;;
9979
9980     osf3*)
9981       if test "$GCC" = yes; then
9982         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9983         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'
9984       else
9985         allow_undefined_flag=' -expect_unresolved \*'
9986         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'
9987       fi
9988       archive_cmds_need_lc='no'
9989       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990       hardcode_libdir_separator=:
9991       ;;
9992
9993     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9994       if test "$GCC" = yes; then
9995         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9996         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'
9997         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9998       else
9999         allow_undefined_flag=' -expect_unresolved \*'
10000         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'
10001         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~
10002         $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'
10003
10004         # Both c and cxx compiler support -rpath directly
10005         hardcode_libdir_flag_spec='-rpath $libdir'
10006       fi
10007       archive_cmds_need_lc='no'
10008       hardcode_libdir_separator=:
10009       ;;
10010
10011     solaris*)
10012       no_undefined_flag=' -z defs'
10013       if test "$GCC" = yes; then
10014         wlarc='${wl}'
10015         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10017           $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'
10018       else
10019         case `$CC -V 2>&1` in
10020         *"Compilers 5.0"*)
10021           wlarc=''
10022           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10024           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10025           ;;
10026         *)
10027           wlarc='${wl}'
10028           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10029           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10030           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10031           ;;
10032         esac
10033       fi
10034       hardcode_libdir_flag_spec='-R$libdir'
10035       hardcode_shlibpath_var=no
10036       case $host_os in
10037       solaris2.[0-5] | solaris2.[0-5].*) ;;
10038       *)
10039         # The compiler driver will combine and reorder linker options,
10040         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10041         # but is careful enough not to reorder.
10042         # Supported since Solaris 2.6 (maybe 2.5.1?)
10043         if test "$GCC" = yes; then
10044           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10045         else
10046           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10047         fi
10048         ;;
10049       esac
10050       link_all_deplibs=yes
10051       ;;
10052
10053     sunos4*)
10054       if test "x$host_vendor" = xsequent; then
10055         # Use $CC to link under sequent, because it throws in some extra .o
10056         # files that make .init and .fini sections work.
10057         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10058       else
10059         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10060       fi
10061       hardcode_libdir_flag_spec='-L$libdir'
10062       hardcode_direct=yes
10063       hardcode_minus_L=yes
10064       hardcode_shlibpath_var=no
10065       ;;
10066
10067     sysv4)
10068       case $host_vendor in
10069         sni)
10070           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071           hardcode_direct=yes # is this really true???
10072         ;;
10073         siemens)
10074           ## LD is ld it makes a PLAMLIB
10075           ## CC just makes a GrossModule.
10076           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10077           reload_cmds='$CC -r -o $output$reload_objs'
10078           hardcode_direct=no
10079         ;;
10080         motorola)
10081           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10083         ;;
10084       esac
10085       runpath_var='LD_RUN_PATH'
10086       hardcode_shlibpath_var=no
10087       ;;
10088
10089     sysv4.3*)
10090       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091       hardcode_shlibpath_var=no
10092       export_dynamic_flag_spec='-Bexport'
10093       ;;
10094
10095     sysv4*MP*)
10096       if test -d /usr/nec; then
10097         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098         hardcode_shlibpath_var=no
10099         runpath_var=LD_RUN_PATH
10100         hardcode_runpath_var=yes
10101         ld_shlibs=yes
10102       fi
10103       ;;
10104
10105     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10106       no_undefined_flag='${wl}-z,text'
10107       archive_cmds_need_lc=no
10108       hardcode_shlibpath_var=no
10109       runpath_var='LD_RUN_PATH'
10110
10111       if test "$GCC" = yes; then
10112         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114       else
10115         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117       fi
10118       ;;
10119
10120     sysv5* | sco3.2v5* | sco5v6*)
10121       # Note: We can NOT use -z defs as we might desire, because we do not
10122       # link with -lc, and that would cause any symbols used from libc to
10123       # always be unresolved, which means just about no library would
10124       # ever link correctly.  If we're not using GNU ld we use -z text
10125       # though, which does catch some bad symbols but isn't as heavy-handed
10126       # as -z defs.
10127       no_undefined_flag='${wl}-z,text'
10128       allow_undefined_flag='${wl}-z,nodefs'
10129       archive_cmds_need_lc=no
10130       hardcode_shlibpath_var=no
10131       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10132       hardcode_libdir_separator=':'
10133       link_all_deplibs=yes
10134       export_dynamic_flag_spec='${wl}-Bexport'
10135       runpath_var='LD_RUN_PATH'
10136
10137       if test "$GCC" = yes; then
10138         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140       else
10141         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143       fi
10144       ;;
10145
10146     uts4*)
10147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148       hardcode_libdir_flag_spec='-L$libdir'
10149       hardcode_shlibpath_var=no
10150       ;;
10151
10152     *)
10153       ld_shlibs=no
10154       ;;
10155     esac
10156
10157     if test x$host_vendor = xsni; then
10158       case $host in
10159       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10160         export_dynamic_flag_spec='${wl}-Blargedynsym'
10161         ;;
10162       esac
10163     fi
10164   fi
10165
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10167 $as_echo "$ld_shlibs" >&6; }
10168 test "$ld_shlibs" = no && can_build_shared=no
10169
10170 with_gnu_ld=$with_gnu_ld
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186 #
10187 # Do we need to explicitly link libc?
10188 #
10189 case "x$archive_cmds_need_lc" in
10190 x|xyes)
10191   # Assume -lc should be added
10192   archive_cmds_need_lc=yes
10193
10194   if test "$enable_shared" = yes && test "$GCC" = yes; then
10195     case $archive_cmds in
10196     *'~'*)
10197       # FIXME: we may have to deal with multi-command sequences.
10198       ;;
10199     '$CC '*)
10200       # Test whether the compiler implicitly links with -lc since on some
10201       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10202       # to ld, don't add -lc before -lgcc.
10203       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10204 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10205 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10206   $as_echo_n "(cached) " >&6
10207 else
10208   $RM conftest*
10209         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10210
10211         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10212   (eval $ac_compile) 2>&5
10213   ac_status=$?
10214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215   test $ac_status = 0; } 2>conftest.err; then
10216           soname=conftest
10217           lib=conftest
10218           libobjs=conftest.$ac_objext
10219           deplibs=
10220           wl=$lt_prog_compiler_wl
10221           pic_flag=$lt_prog_compiler_pic
10222           compiler_flags=-v
10223           linker_flags=-v
10224           verstring=
10225           output_objdir=.
10226           libname=conftest
10227           lt_save_allow_undefined_flag=$allow_undefined_flag
10228           allow_undefined_flag=
10229           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10230   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10231   ac_status=$?
10232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10233   test $ac_status = 0; }
10234           then
10235             lt_cv_archive_cmds_need_lc=no
10236           else
10237             lt_cv_archive_cmds_need_lc=yes
10238           fi
10239           allow_undefined_flag=$lt_save_allow_undefined_flag
10240         else
10241           cat conftest.err 1>&5
10242         fi
10243         $RM conftest*
10244
10245 fi
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10247 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10248       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10249       ;;
10250     esac
10251   fi
10252   ;;
10253 esac
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10407 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10408
10409 if test "$GCC" = yes; then
10410   case $host_os in
10411     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10412     *) lt_awk_arg="/^libraries:/" ;;
10413   esac
10414   case $host_os in
10415     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10416     *) lt_sed_strip_eq="s,=/,/,g" ;;
10417   esac
10418   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10419   case $lt_search_path_spec in
10420   *\;*)
10421     # if the path contains ";" then we assume it to be the separator
10422     # otherwise default to the standard path separator (i.e. ":") - it is
10423     # assumed that no part of a normal pathname contains ";" but that should
10424     # okay in the real world where ";" in dirpaths is itself problematic.
10425     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10426     ;;
10427   *)
10428     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10429     ;;
10430   esac
10431   # Ok, now we have the path, separated by spaces, we can step through it
10432   # and add multilib dir if necessary.
10433   lt_tmp_lt_search_path_spec=
10434   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10435   for lt_sys_path in $lt_search_path_spec; do
10436     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10437       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10438     else
10439       test -d "$lt_sys_path" && \
10440         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10441     fi
10442   done
10443   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10444 BEGIN {RS=" "; FS="/|\n";} {
10445   lt_foo="";
10446   lt_count=0;
10447   for (lt_i = NF; lt_i > 0; lt_i--) {
10448     if ($lt_i != "" && $lt_i != ".") {
10449       if ($lt_i == "..") {
10450         lt_count++;
10451       } else {
10452         if (lt_count == 0) {
10453           lt_foo="/" $lt_i lt_foo;
10454         } else {
10455           lt_count--;
10456         }
10457       }
10458     }
10459   }
10460   if (lt_foo != "") { lt_freq[lt_foo]++; }
10461   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10462 }'`
10463   # AWK program above erroneously prepends '/' to C:/dos/paths
10464   # for these hosts.
10465   case $host_os in
10466     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10467       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10468   esac
10469   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10470 else
10471   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10472 fi
10473 library_names_spec=
10474 libname_spec='lib$name'
10475 soname_spec=
10476 shrext_cmds=".so"
10477 postinstall_cmds=
10478 postuninstall_cmds=
10479 finish_cmds=
10480 finish_eval=
10481 shlibpath_var=
10482 shlibpath_overrides_runpath=unknown
10483 version_type=none
10484 dynamic_linker="$host_os ld.so"
10485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10486 need_lib_prefix=unknown
10487 hardcode_into_libs=no
10488
10489 # when you set need_version to no, make sure it does not cause -set_version
10490 # flags to be left without arguments
10491 need_version=unknown
10492
10493 case $host_os in
10494 aix3*)
10495   version_type=linux # correct to gnu/linux during the next big refactor
10496   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10497   shlibpath_var=LIBPATH
10498
10499   # AIX 3 has no versioning support, so we append a major version to the name.
10500   soname_spec='${libname}${release}${shared_ext}$major'
10501   ;;
10502
10503 aix[4-9]*)
10504   version_type=linux # correct to gnu/linux during the next big refactor
10505   need_lib_prefix=no
10506   need_version=no
10507   hardcode_into_libs=yes
10508   if test "$host_cpu" = ia64; then
10509     # AIX 5 supports IA64
10510     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10511     shlibpath_var=LD_LIBRARY_PATH
10512   else
10513     # With GCC up to 2.95.x, collect2 would create an import file
10514     # for dependence libraries.  The import file would start with
10515     # the line `#! .'.  This would cause the generated library to
10516     # depend on `.', always an invalid library.  This was fixed in
10517     # development snapshots of GCC prior to 3.0.
10518     case $host_os in
10519       aix4 | aix4.[01] | aix4.[01].*)
10520       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10521            echo ' yes '
10522            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10523         :
10524       else
10525         can_build_shared=no
10526       fi
10527       ;;
10528     esac
10529     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10530     # soname into executable. Probably we can add versioning support to
10531     # collect2, so additional links can be useful in future.
10532     if test "$aix_use_runtimelinking" = yes; then
10533       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10534       # instead of lib<name>.a to let people know that these are not
10535       # typical AIX shared libraries.
10536       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537     else
10538       # We preserve .a as extension for shared libraries through AIX4.2
10539       # and later when we are not doing run time linking.
10540       library_names_spec='${libname}${release}.a $libname.a'
10541       soname_spec='${libname}${release}${shared_ext}$major'
10542     fi
10543     shlibpath_var=LIBPATH
10544   fi
10545   ;;
10546
10547 amigaos*)
10548   case $host_cpu in
10549   powerpc)
10550     # Since July 2007 AmigaOS4 officially supports .so libraries.
10551     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553     ;;
10554   m68k)
10555     library_names_spec='$libname.ixlibrary $libname.a'
10556     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10557     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'
10558     ;;
10559   esac
10560   ;;
10561
10562 beos*)
10563   library_names_spec='${libname}${shared_ext}'
10564   dynamic_linker="$host_os ld.so"
10565   shlibpath_var=LIBRARY_PATH
10566   ;;
10567
10568 bsdi[45]*)
10569   version_type=linux # correct to gnu/linux during the next big refactor
10570   need_version=no
10571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572   soname_spec='${libname}${release}${shared_ext}$major'
10573   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10574   shlibpath_var=LD_LIBRARY_PATH
10575   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10576   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10577   # the default ld.so.conf also contains /usr/contrib/lib and
10578   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10579   # libtool to hard-code these into programs
10580   ;;
10581
10582 cygwin* | mingw* | pw32* | cegcc*)
10583   version_type=windows
10584   shrext_cmds=".dll"
10585   need_version=no
10586   need_lib_prefix=no
10587
10588   case $GCC,$cc_basename in
10589   yes,*)
10590     # gcc
10591     library_names_spec='$libname.dll.a'
10592     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10593     postinstall_cmds='base_file=`basename \${file}`~
10594       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10595       dldir=$destdir/`dirname \$dlpath`~
10596       test -d \$dldir || mkdir -p \$dldir~
10597       $install_prog $dir/$dlname \$dldir/$dlname~
10598       chmod a+x \$dldir/$dlname~
10599       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10600         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10601       fi'
10602     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10603       dlpath=$dir/\$dldll~
10604        $RM \$dlpath'
10605     shlibpath_overrides_runpath=yes
10606
10607     case $host_os in
10608     cygwin*)
10609       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10610       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10611
10612       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10613       ;;
10614     mingw* | cegcc*)
10615       # MinGW DLLs use traditional 'lib' prefix
10616       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10617       ;;
10618     pw32*)
10619       # pw32 DLLs use 'pw' prefix rather than 'lib'
10620       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10621       ;;
10622     esac
10623     dynamic_linker='Win32 ld.exe'
10624     ;;
10625
10626   *,cl*)
10627     # Native MSVC
10628     libname_spec='$name'
10629     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10630     library_names_spec='${libname}.dll.lib'
10631
10632     case $build_os in
10633     mingw*)
10634       sys_lib_search_path_spec=
10635       lt_save_ifs=$IFS
10636       IFS=';'
10637       for lt_path in $LIB
10638       do
10639         IFS=$lt_save_ifs
10640         # Let DOS variable expansion print the short 8.3 style file name.
10641         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10642         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10643       done
10644       IFS=$lt_save_ifs
10645       # Convert to MSYS style.
10646       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10647       ;;
10648     cygwin*)
10649       # Convert to unix form, then to dos form, then back to unix form
10650       # but this time dos style (no spaces!) so that the unix form looks
10651       # like /cygdrive/c/PROGRA~1:/cygdr...
10652       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10653       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10654       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10655       ;;
10656     *)
10657       sys_lib_search_path_spec="$LIB"
10658       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10659         # It is most probably a Windows format PATH.
10660         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10661       else
10662         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10663       fi
10664       # FIXME: find the short name or the path components, as spaces are
10665       # common. (e.g. "Program Files" -> "PROGRA~1")
10666       ;;
10667     esac
10668
10669     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10670     postinstall_cmds='base_file=`basename \${file}`~
10671       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10672       dldir=$destdir/`dirname \$dlpath`~
10673       test -d \$dldir || mkdir -p \$dldir~
10674       $install_prog $dir/$dlname \$dldir/$dlname'
10675     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10676       dlpath=$dir/\$dldll~
10677        $RM \$dlpath'
10678     shlibpath_overrides_runpath=yes
10679     dynamic_linker='Win32 link.exe'
10680     ;;
10681
10682   *)
10683     # Assume MSVC wrapper
10684     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10685     dynamic_linker='Win32 ld.exe'
10686     ;;
10687   esac
10688   # FIXME: first we should search . and the directory the executable is in
10689   shlibpath_var=PATH
10690   ;;
10691
10692 darwin* | rhapsody*)
10693   dynamic_linker="$host_os dyld"
10694   version_type=darwin
10695   need_lib_prefix=no
10696   need_version=no
10697   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10698   soname_spec='${libname}${release}${major}$shared_ext'
10699   shlibpath_overrides_runpath=yes
10700   shlibpath_var=DYLD_LIBRARY_PATH
10701   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10702
10703   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10705   ;;
10706
10707 dgux*)
10708   version_type=linux # correct to gnu/linux during the next big refactor
10709   need_lib_prefix=no
10710   need_version=no
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10712   soname_spec='${libname}${release}${shared_ext}$major'
10713   shlibpath_var=LD_LIBRARY_PATH
10714   ;;
10715
10716 freebsd* | dragonfly*)
10717   # DragonFly does not have aout.  When/if they implement a new
10718   # versioning mechanism, adjust this.
10719   if test -x /usr/bin/objformat; then
10720     objformat=`/usr/bin/objformat`
10721   else
10722     case $host_os in
10723     freebsd[23].*) objformat=aout ;;
10724     *) objformat=elf ;;
10725     esac
10726   fi
10727   version_type=freebsd-$objformat
10728   case $version_type in
10729     freebsd-elf*)
10730       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10731       need_version=no
10732       need_lib_prefix=no
10733       ;;
10734     freebsd-*)
10735       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10736       need_version=yes
10737       ;;
10738   esac
10739   shlibpath_var=LD_LIBRARY_PATH
10740   case $host_os in
10741   freebsd2.*)
10742     shlibpath_overrides_runpath=yes
10743     ;;
10744   freebsd3.[01]* | freebsdelf3.[01]*)
10745     shlibpath_overrides_runpath=yes
10746     hardcode_into_libs=yes
10747     ;;
10748   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10749   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10750     shlibpath_overrides_runpath=no
10751     hardcode_into_libs=yes
10752     ;;
10753   *) # from 4.6 on, and DragonFly
10754     shlibpath_overrides_runpath=yes
10755     hardcode_into_libs=yes
10756     ;;
10757   esac
10758   ;;
10759
10760 haiku*)
10761   version_type=linux # correct to gnu/linux during the next big refactor
10762   need_lib_prefix=no
10763   need_version=no
10764   dynamic_linker="$host_os runtime_loader"
10765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10766   soname_spec='${libname}${release}${shared_ext}$major'
10767   shlibpath_var=LIBRARY_PATH
10768   shlibpath_overrides_runpath=yes
10769   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10770   hardcode_into_libs=yes
10771   ;;
10772
10773 hpux9* | hpux10* | hpux11*)
10774   # Give a soname corresponding to the major version so that dld.sl refuses to
10775   # link against other versions.
10776   version_type=sunos
10777   need_lib_prefix=no
10778   need_version=no
10779   case $host_cpu in
10780   ia64*)
10781     shrext_cmds='.so'
10782     hardcode_into_libs=yes
10783     dynamic_linker="$host_os dld.so"
10784     shlibpath_var=LD_LIBRARY_PATH
10785     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787     soname_spec='${libname}${release}${shared_ext}$major'
10788     if test "X$HPUX_IA64_MODE" = X32; then
10789       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10790     else
10791       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10792     fi
10793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10794     ;;
10795   hppa*64*)
10796     shrext_cmds='.sl'
10797     hardcode_into_libs=yes
10798     dynamic_linker="$host_os dld.sl"
10799     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10800     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802     soname_spec='${libname}${release}${shared_ext}$major'
10803     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10804     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10805     ;;
10806   *)
10807     shrext_cmds='.sl'
10808     dynamic_linker="$host_os dld.sl"
10809     shlibpath_var=SHLIB_PATH
10810     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812     soname_spec='${libname}${release}${shared_ext}$major'
10813     ;;
10814   esac
10815   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10816   postinstall_cmds='chmod 555 $lib'
10817   # or fails outright, so override atomically:
10818   install_override_mode=555
10819   ;;
10820
10821 interix[3-9]*)
10822   version_type=linux # correct to gnu/linux during the next big refactor
10823   need_lib_prefix=no
10824   need_version=no
10825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10826   soname_spec='${libname}${release}${shared_ext}$major'
10827   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10828   shlibpath_var=LD_LIBRARY_PATH
10829   shlibpath_overrides_runpath=no
10830   hardcode_into_libs=yes
10831   ;;
10832
10833 irix5* | irix6* | nonstopux*)
10834   case $host_os in
10835     nonstopux*) version_type=nonstopux ;;
10836     *)
10837         if test "$lt_cv_prog_gnu_ld" = yes; then
10838                 version_type=linux # correct to gnu/linux during the next big refactor
10839         else
10840                 version_type=irix
10841         fi ;;
10842   esac
10843   need_lib_prefix=no
10844   need_version=no
10845   soname_spec='${libname}${release}${shared_ext}$major'
10846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10847   case $host_os in
10848   irix5* | nonstopux*)
10849     libsuff= shlibsuff=
10850     ;;
10851   *)
10852     case $LD in # libtool.m4 will add one of these switches to LD
10853     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10854       libsuff= shlibsuff= libmagic=32-bit;;
10855     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10856       libsuff=32 shlibsuff=N32 libmagic=N32;;
10857     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10858       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10859     *) libsuff= shlibsuff= libmagic=never-match;;
10860     esac
10861     ;;
10862   esac
10863   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10864   shlibpath_overrides_runpath=no
10865   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10866   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10867   hardcode_into_libs=yes
10868   ;;
10869
10870 # No shared lib support for Linux oldld, aout, or coff.
10871 linux*oldld* | linux*aout* | linux*coff*)
10872   dynamic_linker=no
10873   ;;
10874
10875 # This must be glibc/ELF.
10876 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10877   version_type=linux # correct to gnu/linux during the next big refactor
10878   need_lib_prefix=no
10879   need_version=no
10880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881   soname_spec='${libname}${release}${shared_ext}$major'
10882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10883   shlibpath_var=LD_LIBRARY_PATH
10884   shlibpath_overrides_runpath=no
10885
10886   # Some binutils ld are patched to set DT_RUNPATH
10887   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10888   $as_echo_n "(cached) " >&6
10889 else
10890   lt_cv_shlibpath_overrides_runpath=no
10891     save_LDFLAGS=$LDFLAGS
10892     save_libdir=$libdir
10893     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10894          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h.  */
10897
10898 int
10899 main ()
10900 {
10901
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10908   lt_cv_shlibpath_overrides_runpath=yes
10909 fi
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext \
10912     conftest$ac_exeext conftest.$ac_ext
10913     LDFLAGS=$save_LDFLAGS
10914     libdir=$save_libdir
10915
10916 fi
10917
10918   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10919
10920   # This implies no fast_install, which is unacceptable.
10921   # Some rework will be needed to allow for fast_install
10922   # before this can be enabled.
10923   hardcode_into_libs=yes
10924
10925   # Append ld.so.conf contents to the search path
10926   if test -f /etc/ld.so.conf; then
10927     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' ' '`
10928     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10929   fi
10930
10931   # We used to test for /lib/ld.so.1 and disable shared libraries on
10932   # powerpc, because MkLinux only supported shared libraries with the
10933   # GNU dynamic linker.  Since this was broken with cross compilers,
10934   # most powerpc-linux boxes support dynamic linking these days and
10935   # people can always --disable-shared, the test was removed, and we
10936   # assume the GNU/Linux dynamic linker is in use.
10937   dynamic_linker='GNU/Linux ld.so'
10938   ;;
10939
10940 netbsdelf*-gnu)
10941   version_type=linux
10942   need_lib_prefix=no
10943   need_version=no
10944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10945   soname_spec='${libname}${release}${shared_ext}$major'
10946   shlibpath_var=LD_LIBRARY_PATH
10947   shlibpath_overrides_runpath=no
10948   hardcode_into_libs=yes
10949   dynamic_linker='NetBSD ld.elf_so'
10950   ;;
10951
10952 netbsd*)
10953   version_type=sunos
10954   need_lib_prefix=no
10955   need_version=no
10956   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10958     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10959     dynamic_linker='NetBSD (a.out) ld.so'
10960   else
10961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10962     soname_spec='${libname}${release}${shared_ext}$major'
10963     dynamic_linker='NetBSD ld.elf_so'
10964   fi
10965   shlibpath_var=LD_LIBRARY_PATH
10966   shlibpath_overrides_runpath=yes
10967   hardcode_into_libs=yes
10968   ;;
10969
10970 newsos6)
10971   version_type=linux # correct to gnu/linux during the next big refactor
10972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973   shlibpath_var=LD_LIBRARY_PATH
10974   shlibpath_overrides_runpath=yes
10975   ;;
10976
10977 *nto* | *qnx*)
10978   version_type=qnx
10979   need_lib_prefix=no
10980   need_version=no
10981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982   soname_spec='${libname}${release}${shared_ext}$major'
10983   shlibpath_var=LD_LIBRARY_PATH
10984   shlibpath_overrides_runpath=no
10985   hardcode_into_libs=yes
10986   dynamic_linker='ldqnx.so'
10987   ;;
10988
10989 openbsd*)
10990   version_type=sunos
10991   sys_lib_dlsearch_path_spec="/usr/lib"
10992   need_lib_prefix=no
10993   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10994   case $host_os in
10995     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10996     *)                          need_version=no  ;;
10997   esac
10998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11000   shlibpath_var=LD_LIBRARY_PATH
11001   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11002     case $host_os in
11003       openbsd2.[89] | openbsd2.[89].*)
11004         shlibpath_overrides_runpath=no
11005         ;;
11006       *)
11007         shlibpath_overrides_runpath=yes
11008         ;;
11009       esac
11010   else
11011     shlibpath_overrides_runpath=yes
11012   fi
11013   ;;
11014
11015 os2*)
11016   libname_spec='$name'
11017   shrext_cmds=".dll"
11018   need_lib_prefix=no
11019   library_names_spec='$libname${shared_ext} $libname.a'
11020   dynamic_linker='OS/2 ld.exe'
11021   shlibpath_var=LIBPATH
11022   ;;
11023
11024 osf3* | osf4* | osf5*)
11025   version_type=osf
11026   need_lib_prefix=no
11027   need_version=no
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030   shlibpath_var=LD_LIBRARY_PATH
11031   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11032   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11033   ;;
11034
11035 rdos*)
11036   dynamic_linker=no
11037   ;;
11038
11039 solaris*)
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044   soname_spec='${libname}${release}${shared_ext}$major'
11045   shlibpath_var=LD_LIBRARY_PATH
11046   shlibpath_overrides_runpath=yes
11047   hardcode_into_libs=yes
11048   # ldd complains unless libraries are executable
11049   postinstall_cmds='chmod +x $lib'
11050   ;;
11051
11052 sunos4*)
11053   version_type=sunos
11054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11055   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11056   shlibpath_var=LD_LIBRARY_PATH
11057   shlibpath_overrides_runpath=yes
11058   if test "$with_gnu_ld" = yes; then
11059     need_lib_prefix=no
11060   fi
11061   need_version=yes
11062   ;;
11063
11064 sysv4 | sysv4.3*)
11065   version_type=linux # correct to gnu/linux during the next big refactor
11066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067   soname_spec='${libname}${release}${shared_ext}$major'
11068   shlibpath_var=LD_LIBRARY_PATH
11069   case $host_vendor in
11070     sni)
11071       shlibpath_overrides_runpath=no
11072       need_lib_prefix=no
11073       runpath_var=LD_RUN_PATH
11074       ;;
11075     siemens)
11076       need_lib_prefix=no
11077       ;;
11078     motorola)
11079       need_lib_prefix=no
11080       need_version=no
11081       shlibpath_overrides_runpath=no
11082       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11083       ;;
11084   esac
11085   ;;
11086
11087 sysv4*MP*)
11088   if test -d /usr/nec ;then
11089     version_type=linux # correct to gnu/linux during the next big refactor
11090     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11091     soname_spec='$libname${shared_ext}.$major'
11092     shlibpath_var=LD_LIBRARY_PATH
11093   fi
11094   ;;
11095
11096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11097   version_type=freebsd-elf
11098   need_lib_prefix=no
11099   need_version=no
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11101   soname_spec='${libname}${release}${shared_ext}$major'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=yes
11104   hardcode_into_libs=yes
11105   if test "$with_gnu_ld" = yes; then
11106     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11107   else
11108     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11109     case $host_os in
11110       sco3.2v5*)
11111         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11112         ;;
11113     esac
11114   fi
11115   sys_lib_dlsearch_path_spec='/usr/lib'
11116   ;;
11117
11118 tpf*)
11119   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11120   version_type=linux # correct to gnu/linux during the next big refactor
11121   need_lib_prefix=no
11122   need_version=no
11123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124   shlibpath_var=LD_LIBRARY_PATH
11125   shlibpath_overrides_runpath=no
11126   hardcode_into_libs=yes
11127   ;;
11128
11129 uts4*)
11130   version_type=linux # correct to gnu/linux during the next big refactor
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132   soname_spec='${libname}${release}${shared_ext}$major'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   ;;
11135
11136 *)
11137   dynamic_linker=no
11138   ;;
11139 esac
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11141 $as_echo "$dynamic_linker" >&6; }
11142 test "$dynamic_linker" = no && can_build_shared=no
11143
11144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11145 if test "$GCC" = yes; then
11146   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11147 fi
11148
11149 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11150   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11151 fi
11152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11153   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11154 fi
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11248 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11249 hardcode_action=
11250 if test -n "$hardcode_libdir_flag_spec" ||
11251    test -n "$runpath_var" ||
11252    test "X$hardcode_automatic" = "Xyes" ; then
11253
11254   # We can hardcode non-existent directories.
11255   if test "$hardcode_direct" != no &&
11256      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11257      # have to relink, otherwise we might link with an installed library
11258      # when we should be linking with a yet-to-be-installed one
11259      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11260      test "$hardcode_minus_L" != no; then
11261     # Linking always hardcodes the temporary library directory.
11262     hardcode_action=relink
11263   else
11264     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11265     hardcode_action=immediate
11266   fi
11267 else
11268   # We cannot hardcode anything, or else we can only hardcode existing
11269   # directories.
11270   hardcode_action=unsupported
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11273 $as_echo "$hardcode_action" >&6; }
11274
11275 if test "$hardcode_action" = relink ||
11276    test "$inherit_rpath" = yes; then
11277   # Fast installation is not supported
11278   enable_fast_install=no
11279 elif test "$shlibpath_overrides_runpath" = yes ||
11280      test "$enable_shared" = no; then
11281   # Fast installation is not necessary
11282   enable_fast_install=needless
11283 fi
11284
11285
11286
11287
11288
11289
11290   if test "x$enable_dlopen" != xyes; then
11291   enable_dlopen=unknown
11292   enable_dlopen_self=unknown
11293   enable_dlopen_self_static=unknown
11294 else
11295   lt_cv_dlopen=no
11296   lt_cv_dlopen_libs=
11297
11298   case $host_os in
11299   beos*)
11300     lt_cv_dlopen="load_add_on"
11301     lt_cv_dlopen_libs=
11302     lt_cv_dlopen_self=yes
11303     ;;
11304
11305   mingw* | pw32* | cegcc*)
11306     lt_cv_dlopen="LoadLibrary"
11307     lt_cv_dlopen_libs=
11308     ;;
11309
11310   cygwin*)
11311     lt_cv_dlopen="dlopen"
11312     lt_cv_dlopen_libs=
11313     ;;
11314
11315   darwin*)
11316   # if libdl is installed we need to link against it
11317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11318 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11319 if ${ac_cv_lib_dl_dlopen+:} false; then :
11320   $as_echo_n "(cached) " >&6
11321 else
11322   ac_check_lib_save_LIBS=$LIBS
11323 LIBS="-ldl  $LIBS"
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h.  */
11326
11327 /* Override any GCC internal prototype to avoid an error.
11328    Use char because int might match the return type of a GCC
11329    builtin and then its argument prototype would still apply.  */
11330 #ifdef __cplusplus
11331 extern "C"
11332 #endif
11333 char dlopen ();
11334 int
11335 main ()
11336 {
11337 return dlopen ();
11338   ;
11339   return 0;
11340 }
11341 _ACEOF
11342 if ac_fn_c_try_link "$LINENO"; then :
11343   ac_cv_lib_dl_dlopen=yes
11344 else
11345   ac_cv_lib_dl_dlopen=no
11346 fi
11347 rm -f core conftest.err conftest.$ac_objext \
11348     conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11350 fi
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11352 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11353 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11354   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11355 else
11356
11357     lt_cv_dlopen="dyld"
11358     lt_cv_dlopen_libs=
11359     lt_cv_dlopen_self=yes
11360
11361 fi
11362
11363     ;;
11364
11365   *)
11366     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11367 if test "x$ac_cv_func_shl_load" = xyes; then :
11368   lt_cv_dlopen="shl_load"
11369 else
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11371 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11372 if ${ac_cv_lib_dld_shl_load+:} false; then :
11373   $as_echo_n "(cached) " >&6
11374 else
11375   ac_check_lib_save_LIBS=$LIBS
11376 LIBS="-ldld  $LIBS"
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h.  */
11379
11380 /* Override any GCC internal prototype to avoid an error.
11381    Use char because int might match the return type of a GCC
11382    builtin and then its argument prototype would still apply.  */
11383 #ifdef __cplusplus
11384 extern "C"
11385 #endif
11386 char shl_load ();
11387 int
11388 main ()
11389 {
11390 return shl_load ();
11391   ;
11392   return 0;
11393 }
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396   ac_cv_lib_dld_shl_load=yes
11397 else
11398   ac_cv_lib_dld_shl_load=no
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext \
11401     conftest$ac_exeext conftest.$ac_ext
11402 LIBS=$ac_check_lib_save_LIBS
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11405 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11406 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11407   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11408 else
11409   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11410 if test "x$ac_cv_func_dlopen" = xyes; then :
11411   lt_cv_dlopen="dlopen"
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11415 if ${ac_cv_lib_dl_dlopen+:} false; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-ldl  $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h.  */
11422
11423 /* Override any GCC internal prototype to avoid an error.
11424    Use char because int might match the return type of a GCC
11425    builtin and then its argument prototype would still apply.  */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char dlopen ();
11430 int
11431 main ()
11432 {
11433 return dlopen ();
11434   ;
11435   return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439   ac_cv_lib_dl_dlopen=yes
11440 else
11441   ac_cv_lib_dl_dlopen=no
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext \
11444     conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11448 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11449 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11450   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11451 else
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11453 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11454 if ${ac_cv_lib_svld_dlopen+:} false; then :
11455   $as_echo_n "(cached) " >&6
11456 else
11457   ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-lsvld  $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h.  */
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463    Use char because int might match the return type of a GCC
11464    builtin and then its argument prototype would still apply.  */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char dlopen ();
11469 int
11470 main ()
11471 {
11472 return dlopen ();
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478   ac_cv_lib_svld_dlopen=yes
11479 else
11480   ac_cv_lib_svld_dlopen=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483     conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11487 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11488 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11489   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11490 else
11491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11492 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11493 if ${ac_cv_lib_dld_dld_link+:} false; then :
11494   $as_echo_n "(cached) " >&6
11495 else
11496   ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-ldld  $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h.  */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502    Use char because int might match the return type of a GCC
11503    builtin and then its argument prototype would still apply.  */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char dld_link ();
11508 int
11509 main ()
11510 {
11511 return dld_link ();
11512   ;
11513   return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517   ac_cv_lib_dld_dld_link=yes
11518 else
11519   ac_cv_lib_dld_dld_link=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522     conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11526 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11527 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11528   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11529 fi
11530
11531
11532 fi
11533
11534
11535 fi
11536
11537
11538 fi
11539
11540
11541 fi
11542
11543
11544 fi
11545
11546     ;;
11547   esac
11548
11549   if test "x$lt_cv_dlopen" != xno; then
11550     enable_dlopen=yes
11551   else
11552     enable_dlopen=no
11553   fi
11554
11555   case $lt_cv_dlopen in
11556   dlopen)
11557     save_CPPFLAGS="$CPPFLAGS"
11558     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11559
11560     save_LDFLAGS="$LDFLAGS"
11561     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11562
11563     save_LIBS="$LIBS"
11564     LIBS="$lt_cv_dlopen_libs $LIBS"
11565
11566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11567 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11568 if ${lt_cv_dlopen_self+:} false; then :
11569   $as_echo_n "(cached) " >&6
11570 else
11571           if test "$cross_compiling" = yes; then :
11572   lt_cv_dlopen_self=cross
11573 else
11574   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11575   lt_status=$lt_dlunknown
11576   cat > conftest.$ac_ext <<_LT_EOF
11577 #line $LINENO "configure"
11578 #include "confdefs.h"
11579
11580 #if HAVE_DLFCN_H
11581 #include <dlfcn.h>
11582 #endif
11583
11584 #include <stdio.h>
11585
11586 #ifdef RTLD_GLOBAL
11587 #  define LT_DLGLOBAL           RTLD_GLOBAL
11588 #else
11589 #  ifdef DL_GLOBAL
11590 #    define LT_DLGLOBAL         DL_GLOBAL
11591 #  else
11592 #    define LT_DLGLOBAL         0
11593 #  endif
11594 #endif
11595
11596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11597    find out it does not work in some platform. */
11598 #ifndef LT_DLLAZY_OR_NOW
11599 #  ifdef RTLD_LAZY
11600 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11601 #  else
11602 #    ifdef DL_LAZY
11603 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11604 #    else
11605 #      ifdef RTLD_NOW
11606 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11607 #      else
11608 #        ifdef DL_NOW
11609 #          define LT_DLLAZY_OR_NOW      DL_NOW
11610 #        else
11611 #          define LT_DLLAZY_OR_NOW      0
11612 #        endif
11613 #      endif
11614 #    endif
11615 #  endif
11616 #endif
11617
11618 /* When -fvisbility=hidden is used, assume the code has been annotated
11619    correspondingly for the symbols needed.  */
11620 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11621 int fnord () __attribute__((visibility("default")));
11622 #endif
11623
11624 int fnord () { return 42; }
11625 int main ()
11626 {
11627   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11628   int status = $lt_dlunknown;
11629
11630   if (self)
11631     {
11632       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11633       else
11634         {
11635           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11636           else puts (dlerror ());
11637         }
11638       /* dlclose (self); */
11639     }
11640   else
11641     puts (dlerror ());
11642
11643   return status;
11644 }
11645 _LT_EOF
11646   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11647   (eval $ac_link) 2>&5
11648   ac_status=$?
11649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11651     (./conftest; exit; ) >&5 2>/dev/null
11652     lt_status=$?
11653     case x$lt_status in
11654       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11655       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11656       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11657     esac
11658   else :
11659     # compilation failed
11660     lt_cv_dlopen_self=no
11661   fi
11662 fi
11663 rm -fr conftest*
11664
11665
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11668 $as_echo "$lt_cv_dlopen_self" >&6; }
11669
11670     if test "x$lt_cv_dlopen_self" = xyes; then
11671       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11673 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11674 if ${lt_cv_dlopen_self_static+:} false; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677           if test "$cross_compiling" = yes; then :
11678   lt_cv_dlopen_self_static=cross
11679 else
11680   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11681   lt_status=$lt_dlunknown
11682   cat > conftest.$ac_ext <<_LT_EOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11685
11686 #if HAVE_DLFCN_H
11687 #include <dlfcn.h>
11688 #endif
11689
11690 #include <stdio.h>
11691
11692 #ifdef RTLD_GLOBAL
11693 #  define LT_DLGLOBAL           RTLD_GLOBAL
11694 #else
11695 #  ifdef DL_GLOBAL
11696 #    define LT_DLGLOBAL         DL_GLOBAL
11697 #  else
11698 #    define LT_DLGLOBAL         0
11699 #  endif
11700 #endif
11701
11702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11703    find out it does not work in some platform. */
11704 #ifndef LT_DLLAZY_OR_NOW
11705 #  ifdef RTLD_LAZY
11706 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11707 #  else
11708 #    ifdef DL_LAZY
11709 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11710 #    else
11711 #      ifdef RTLD_NOW
11712 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11713 #      else
11714 #        ifdef DL_NOW
11715 #          define LT_DLLAZY_OR_NOW      DL_NOW
11716 #        else
11717 #          define LT_DLLAZY_OR_NOW      0
11718 #        endif
11719 #      endif
11720 #    endif
11721 #  endif
11722 #endif
11723
11724 /* When -fvisbility=hidden is used, assume the code has been annotated
11725    correspondingly for the symbols needed.  */
11726 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11727 int fnord () __attribute__((visibility("default")));
11728 #endif
11729
11730 int fnord () { return 42; }
11731 int main ()
11732 {
11733   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11734   int status = $lt_dlunknown;
11735
11736   if (self)
11737     {
11738       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11739       else
11740         {
11741           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11742           else puts (dlerror ());
11743         }
11744       /* dlclose (self); */
11745     }
11746   else
11747     puts (dlerror ());
11748
11749   return status;
11750 }
11751 _LT_EOF
11752   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11753   (eval $ac_link) 2>&5
11754   ac_status=$?
11755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11756   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11757     (./conftest; exit; ) >&5 2>/dev/null
11758     lt_status=$?
11759     case x$lt_status in
11760       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11761       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11762       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11763     esac
11764   else :
11765     # compilation failed
11766     lt_cv_dlopen_self_static=no
11767   fi
11768 fi
11769 rm -fr conftest*
11770
11771
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11774 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11775     fi
11776
11777     CPPFLAGS="$save_CPPFLAGS"
11778     LDFLAGS="$save_LDFLAGS"
11779     LIBS="$save_LIBS"
11780     ;;
11781   esac
11782
11783   case $lt_cv_dlopen_self in
11784   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11785   *) enable_dlopen_self=unknown ;;
11786   esac
11787
11788   case $lt_cv_dlopen_self_static in
11789   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11790   *) enable_dlopen_self_static=unknown ;;
11791   esac
11792 fi
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810 striplib=
11811 old_striplib=
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11813 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11814 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11815   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11816   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11818 $as_echo "yes" >&6; }
11819 else
11820 # FIXME - insert some real tests, host_os isn't really good enough
11821   case $host_os in
11822   darwin*)
11823     if test -n "$STRIP" ; then
11824       striplib="$STRIP -x"
11825       old_striplib="$STRIP -S"
11826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827 $as_echo "yes" >&6; }
11828     else
11829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11831     fi
11832     ;;
11833   *)
11834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836     ;;
11837   esac
11838 fi
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851   # Report which library types will actually be built
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11853 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11855 $as_echo "$can_build_shared" >&6; }
11856
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11858 $as_echo_n "checking whether to build shared libraries... " >&6; }
11859   test "$can_build_shared" = "no" && enable_shared=no
11860
11861   # On AIX, shared libraries and static libraries use the same namespace, and
11862   # are all built from PIC.
11863   case $host_os in
11864   aix3*)
11865     test "$enable_shared" = yes && enable_static=no
11866     if test -n "$RANLIB"; then
11867       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11868       postinstall_cmds='$RANLIB $lib'
11869     fi
11870     ;;
11871
11872   aix[4-9]*)
11873     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11874       test "$enable_shared" = yes && enable_static=no
11875     fi
11876     ;;
11877   esac
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11879 $as_echo "$enable_shared" >&6; }
11880
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11882 $as_echo_n "checking whether to build static libraries... " >&6; }
11883   # Make sure either enable_shared or enable_static is yes.
11884   test "$enable_shared" = yes || enable_static=yes
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11886 $as_echo "$enable_static" >&6; }
11887
11888
11889
11890
11891 fi
11892 ac_ext=cpp
11893 ac_cpp='$CXXCPP $CPPFLAGS'
11894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11897
11898 CC="$lt_save_CC"
11899
11900       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11901     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11902     (test "X$CXX" != "Xg++"))) ; then
11903   ac_ext=cpp
11904 ac_cpp='$CXXCPP $CPPFLAGS'
11905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11909 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11910 if test -z "$CXXCPP"; then
11911   if ${ac_cv_prog_CXXCPP+:} false; then :
11912   $as_echo_n "(cached) " >&6
11913 else
11914       # Double quotes because CXXCPP needs to be expanded
11915     for CXXCPP in "$CXX -E" "/lib/cpp"
11916     do
11917       ac_preproc_ok=false
11918 for ac_cxx_preproc_warn_flag in '' yes
11919 do
11920   # Use a header file that comes with gcc, so configuring glibc
11921   # with a fresh cross-compiler works.
11922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923   # <limits.h> exists even on freestanding compilers.
11924   # On the NeXT, cc -E runs the code through the compiler's parser,
11925   # not just through cpp. "Syntax error" is here to catch this case.
11926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h.  */
11928 #ifdef __STDC__
11929 # include <limits.h>
11930 #else
11931 # include <assert.h>
11932 #endif
11933                      Syntax error
11934 _ACEOF
11935 if ac_fn_cxx_try_cpp "$LINENO"; then :
11936
11937 else
11938   # Broken: fails on valid input.
11939 continue
11940 fi
11941 rm -f conftest.err conftest.i conftest.$ac_ext
11942
11943   # OK, works on sane cases.  Now check whether nonexistent headers
11944   # can be detected and how.
11945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h.  */
11947 #include <ac_nonexistent.h>
11948 _ACEOF
11949 if ac_fn_cxx_try_cpp "$LINENO"; then :
11950   # Broken: success on invalid input.
11951 continue
11952 else
11953   # Passes both tests.
11954 ac_preproc_ok=:
11955 break
11956 fi
11957 rm -f conftest.err conftest.i conftest.$ac_ext
11958
11959 done
11960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11961 rm -f conftest.i conftest.err conftest.$ac_ext
11962 if $ac_preproc_ok; then :
11963   break
11964 fi
11965
11966     done
11967     ac_cv_prog_CXXCPP=$CXXCPP
11968
11969 fi
11970   CXXCPP=$ac_cv_prog_CXXCPP
11971 else
11972   ac_cv_prog_CXXCPP=$CXXCPP
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11975 $as_echo "$CXXCPP" >&6; }
11976 ac_preproc_ok=false
11977 for ac_cxx_preproc_warn_flag in '' yes
11978 do
11979   # Use a header file that comes with gcc, so configuring glibc
11980   # with a fresh cross-compiler works.
11981   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982   # <limits.h> exists even on freestanding compilers.
11983   # On the NeXT, cc -E runs the code through the compiler's parser,
11984   # not just through cpp. "Syntax error" is here to catch this case.
11985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h.  */
11987 #ifdef __STDC__
11988 # include <limits.h>
11989 #else
11990 # include <assert.h>
11991 #endif
11992                      Syntax error
11993 _ACEOF
11994 if ac_fn_cxx_try_cpp "$LINENO"; then :
11995
11996 else
11997   # Broken: fails on valid input.
11998 continue
11999 fi
12000 rm -f conftest.err conftest.i conftest.$ac_ext
12001
12002   # OK, works on sane cases.  Now check whether nonexistent headers
12003   # can be detected and how.
12004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h.  */
12006 #include <ac_nonexistent.h>
12007 _ACEOF
12008 if ac_fn_cxx_try_cpp "$LINENO"; then :
12009   # Broken: success on invalid input.
12010 continue
12011 else
12012   # Passes both tests.
12013 ac_preproc_ok=:
12014 break
12015 fi
12016 rm -f conftest.err conftest.i conftest.$ac_ext
12017
12018 done
12019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12020 rm -f conftest.i conftest.err conftest.$ac_ext
12021 if $ac_preproc_ok; then :
12022
12023 else
12024   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12026 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12027 See \`config.log' for more details" "$LINENO" 5; }
12028 fi
12029
12030 ac_ext=cpp
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12035
12036 else
12037   _lt_caught_CXX_error=yes
12038 fi
12039
12040 ac_ext=cpp
12041 ac_cpp='$CXXCPP $CPPFLAGS'
12042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12045
12046 archive_cmds_need_lc_CXX=no
12047 allow_undefined_flag_CXX=
12048 always_export_symbols_CXX=no
12049 archive_expsym_cmds_CXX=
12050 compiler_needs_object_CXX=no
12051 export_dynamic_flag_spec_CXX=
12052 hardcode_direct_CXX=no
12053 hardcode_direct_absolute_CXX=no
12054 hardcode_libdir_flag_spec_CXX=
12055 hardcode_libdir_separator_CXX=
12056 hardcode_minus_L_CXX=no
12057 hardcode_shlibpath_var_CXX=unsupported
12058 hardcode_automatic_CXX=no
12059 inherit_rpath_CXX=no
12060 module_cmds_CXX=
12061 module_expsym_cmds_CXX=
12062 link_all_deplibs_CXX=unknown
12063 old_archive_cmds_CXX=$old_archive_cmds
12064 reload_flag_CXX=$reload_flag
12065 reload_cmds_CXX=$reload_cmds
12066 no_undefined_flag_CXX=
12067 whole_archive_flag_spec_CXX=
12068 enable_shared_with_static_runtimes_CXX=no
12069
12070 # Source file extension for C++ test sources.
12071 ac_ext=cpp
12072
12073 # Object file extension for compiled C++ test sources.
12074 objext=o
12075 objext_CXX=$objext
12076
12077 # No sense in running all these tests if we already determined that
12078 # the CXX compiler isn't working.  Some variables (like enable_shared)
12079 # are currently assumed to apply to all compilers on this platform,
12080 # and will be corrupted by setting them based on a non-working compiler.
12081 if test "$_lt_caught_CXX_error" != yes; then
12082   # Code to be used in simple compile tests
12083   lt_simple_compile_test_code="int some_variable = 0;"
12084
12085   # Code to be used in simple link tests
12086   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12087
12088   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12089
12090
12091
12092
12093
12094
12095 # If no C compiler was specified, use CC.
12096 LTCC=${LTCC-"$CC"}
12097
12098 # If no C compiler flags were specified, use CFLAGS.
12099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12100
12101 # Allow CC to be a program name with arguments.
12102 compiler=$CC
12103
12104
12105   # save warnings/boilerplate of simple test code
12106   ac_outfile=conftest.$ac_objext
12107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12109 _lt_compiler_boilerplate=`cat conftest.err`
12110 $RM conftest*
12111
12112   ac_outfile=conftest.$ac_objext
12113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12115 _lt_linker_boilerplate=`cat conftest.err`
12116 $RM -r conftest*
12117
12118
12119   # Allow CC to be a program name with arguments.
12120   lt_save_CC=$CC
12121   lt_save_CFLAGS=$CFLAGS
12122   lt_save_LD=$LD
12123   lt_save_GCC=$GCC
12124   GCC=$GXX
12125   lt_save_with_gnu_ld=$with_gnu_ld
12126   lt_save_path_LD=$lt_cv_path_LD
12127   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12128     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12129   else
12130     $as_unset lt_cv_prog_gnu_ld
12131   fi
12132   if test -n "${lt_cv_path_LDCXX+set}"; then
12133     lt_cv_path_LD=$lt_cv_path_LDCXX
12134   else
12135     $as_unset lt_cv_path_LD
12136   fi
12137   test -z "${LDCXX+set}" || LD=$LDCXX
12138   CC=${CXX-"c++"}
12139   CFLAGS=$CXXFLAGS
12140   compiler=$CC
12141   compiler_CXX=$CC
12142   for cc_temp in $compiler""; do
12143   case $cc_temp in
12144     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12145     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12146     \-*) ;;
12147     *) break;;
12148   esac
12149 done
12150 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12151
12152
12153   if test -n "$compiler"; then
12154     # We don't want -fno-exception when compiling C++ code, so set the
12155     # no_builtin_flag separately
12156     if test "$GXX" = yes; then
12157       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12158     else
12159       lt_prog_compiler_no_builtin_flag_CXX=
12160     fi
12161
12162     if test "$GXX" = yes; then
12163       # Set up default GNU C++ configuration
12164
12165
12166
12167 # Check whether --with-gnu-ld was given.
12168 if test "${with_gnu_ld+set}" = set; then :
12169   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12170 else
12171   with_gnu_ld=no
12172 fi
12173
12174 ac_prog=ld
12175 if test "$GCC" = yes; then
12176   # Check if gcc -print-prog-name=ld gives a path.
12177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12178 $as_echo_n "checking for ld used by $CC... " >&6; }
12179   case $host in
12180   *-*-mingw*)
12181     # gcc leaves a trailing carriage return which upsets mingw
12182     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12183   *)
12184     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12185   esac
12186   case $ac_prog in
12187     # Accept absolute paths.
12188     [\\/]* | ?:[\\/]*)
12189       re_direlt='/[^/][^/]*/\.\./'
12190       # Canonicalize the pathname of ld
12191       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12192       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12193         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12194       done
12195       test -z "$LD" && LD="$ac_prog"
12196       ;;
12197   "")
12198     # If it fails, then pretend we aren't using GCC.
12199     ac_prog=ld
12200     ;;
12201   *)
12202     # If it is relative, then search for the first ld in PATH.
12203     with_gnu_ld=unknown
12204     ;;
12205   esac
12206 elif test "$with_gnu_ld" = yes; then
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12208 $as_echo_n "checking for GNU ld... " >&6; }
12209 else
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12211 $as_echo_n "checking for non-GNU ld... " >&6; }
12212 fi
12213 if ${lt_cv_path_LD+:} false; then :
12214   $as_echo_n "(cached) " >&6
12215 else
12216   if test -z "$LD"; then
12217   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12218   for ac_dir in $PATH; do
12219     IFS="$lt_save_ifs"
12220     test -z "$ac_dir" && ac_dir=.
12221     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12222       lt_cv_path_LD="$ac_dir/$ac_prog"
12223       # Check to see if the program is GNU ld.  I'd rather use --version,
12224       # but apparently some variants of GNU ld only accept -v.
12225       # Break only if it was the GNU/non-GNU ld that we prefer.
12226       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12227       *GNU* | *'with BFD'*)
12228         test "$with_gnu_ld" != no && break
12229         ;;
12230       *)
12231         test "$with_gnu_ld" != yes && break
12232         ;;
12233       esac
12234     fi
12235   done
12236   IFS="$lt_save_ifs"
12237 else
12238   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12239 fi
12240 fi
12241
12242 LD="$lt_cv_path_LD"
12243 if test -n "$LD"; then
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12245 $as_echo "$LD" >&6; }
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12249 fi
12250 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12252 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12253 if ${lt_cv_prog_gnu_ld+:} false; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12257 case `$LD -v 2>&1 </dev/null` in
12258 *GNU* | *'with BFD'*)
12259   lt_cv_prog_gnu_ld=yes
12260   ;;
12261 *)
12262   lt_cv_prog_gnu_ld=no
12263   ;;
12264 esac
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12267 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12268 with_gnu_ld=$lt_cv_prog_gnu_ld
12269
12270
12271
12272
12273
12274
12275
12276       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12277       # archiving commands below assume that GNU ld is being used.
12278       if test "$with_gnu_ld" = yes; then
12279         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280         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'
12281
12282         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12283         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12284
12285         # If archive_cmds runs LD, not CC, wlarc should be empty
12286         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12287         #     investigate it a little bit more. (MM)
12288         wlarc='${wl}'
12289
12290         # ancient GNU ld didn't support --whole-archive et. al.
12291         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12292           $GREP 'no-whole-archive' > /dev/null; then
12293           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12294         else
12295           whole_archive_flag_spec_CXX=
12296         fi
12297       else
12298         with_gnu_ld=no
12299         wlarc=
12300
12301         # A generic and very simple default shared library creation
12302         # command for GNU C++ for the case where it uses the native
12303         # linker, instead of GNU ld.  If possible, this setting should
12304         # overridden to take advantage of the native linker features on
12305         # the platform it is being used on.
12306         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12307       fi
12308
12309       # Commands to make compiler produce verbose output that lists
12310       # what "hidden" libraries, object files and flags are used when
12311       # linking a shared library.
12312       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12313
12314     else
12315       GXX=no
12316       with_gnu_ld=no
12317       wlarc=
12318     fi
12319
12320     # PORTME: fill in a description of your system's C++ link characteristics
12321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12322 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12323     ld_shlibs_CXX=yes
12324     case $host_os in
12325       aix3*)
12326         # FIXME: insert proper C++ library support
12327         ld_shlibs_CXX=no
12328         ;;
12329       aix[4-9]*)
12330         if test "$host_cpu" = ia64; then
12331           # On IA64, the linker does run time linking by default, so we don't
12332           # have to do anything special.
12333           aix_use_runtimelinking=no
12334           exp_sym_flag='-Bexport'
12335           no_entry_flag=""
12336         else
12337           aix_use_runtimelinking=no
12338
12339           # Test if we are trying to use run time linking or normal
12340           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12341           # need to do runtime linking.
12342           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12343             for ld_flag in $LDFLAGS; do
12344               case $ld_flag in
12345               *-brtl*)
12346                 aix_use_runtimelinking=yes
12347                 break
12348                 ;;
12349               esac
12350             done
12351             ;;
12352           esac
12353
12354           exp_sym_flag='-bexport'
12355           no_entry_flag='-bnoentry'
12356         fi
12357
12358         # When large executables or shared objects are built, AIX ld can
12359         # have problems creating the table of contents.  If linking a library
12360         # or program results in "error TOC overflow" add -mminimal-toc to
12361         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12362         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12363
12364         archive_cmds_CXX=''
12365         hardcode_direct_CXX=yes
12366         hardcode_direct_absolute_CXX=yes
12367         hardcode_libdir_separator_CXX=':'
12368         link_all_deplibs_CXX=yes
12369         file_list_spec_CXX='${wl}-f,'
12370
12371         if test "$GXX" = yes; then
12372           case $host_os in aix4.[012]|aix4.[012].*)
12373           # We only want to do this on AIX 4.2 and lower, the check
12374           # below for broken collect2 doesn't work under 4.3+
12375           collect2name=`${CC} -print-prog-name=collect2`
12376           if test -f "$collect2name" &&
12377              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12378           then
12379             # We have reworked collect2
12380             :
12381           else
12382             # We have old collect2
12383             hardcode_direct_CXX=unsupported
12384             # It fails to find uninstalled libraries when the uninstalled
12385             # path is not listed in the libpath.  Setting hardcode_minus_L
12386             # to unsupported forces relinking
12387             hardcode_minus_L_CXX=yes
12388             hardcode_libdir_flag_spec_CXX='-L$libdir'
12389             hardcode_libdir_separator_CXX=
12390           fi
12391           esac
12392           shared_flag='-shared'
12393           if test "$aix_use_runtimelinking" = yes; then
12394             shared_flag="$shared_flag "'${wl}-G'
12395           fi
12396         else
12397           # not using gcc
12398           if test "$host_cpu" = ia64; then
12399           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12400           # chokes on -Wl,-G. The following line is correct:
12401           shared_flag='-G'
12402           else
12403             if test "$aix_use_runtimelinking" = yes; then
12404               shared_flag='${wl}-G'
12405             else
12406               shared_flag='${wl}-bM:SRE'
12407             fi
12408           fi
12409         fi
12410
12411         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12412         # It seems that -bexpall does not export symbols beginning with
12413         # underscore (_), so it is better to generate a list of symbols to
12414         # export.
12415         always_export_symbols_CXX=yes
12416         if test "$aix_use_runtimelinking" = yes; then
12417           # Warning - without using the other runtime loading flags (-brtl),
12418           # -berok will link without error, but may produce a broken library.
12419           allow_undefined_flag_CXX='-berok'
12420           # Determine the default libpath from the value encoded in an empty
12421           # executable.
12422           if test "${lt_cv_aix_libpath+set}" = set; then
12423   aix_libpath=$lt_cv_aix_libpath
12424 else
12425   if ${lt_cv_aix_libpath__CXX+:} false; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h.  */
12430
12431 int
12432 main ()
12433 {
12434
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_cxx_try_link "$LINENO"; then :
12440
12441   lt_aix_libpath_sed='
12442       /Import File Strings/,/^$/ {
12443           /^0/ {
12444               s/^0  *\([^ ]*\) *$/\1/
12445               p
12446           }
12447       }'
12448   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12449   # Check for a 64-bit object if we didn't find anything.
12450   if test -z "$lt_cv_aix_libpath__CXX"; then
12451     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12452   fi
12453 fi
12454 rm -f core conftest.err conftest.$ac_objext \
12455     conftest$ac_exeext conftest.$ac_ext
12456   if test -z "$lt_cv_aix_libpath__CXX"; then
12457     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12458   fi
12459
12460 fi
12461
12462   aix_libpath=$lt_cv_aix_libpath__CXX
12463 fi
12464
12465           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12466
12467           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"
12468         else
12469           if test "$host_cpu" = ia64; then
12470             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12471             allow_undefined_flag_CXX="-z nodefs"
12472             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"
12473           else
12474             # Determine the default libpath from the value encoded in an
12475             # empty executable.
12476             if test "${lt_cv_aix_libpath+set}" = set; then
12477   aix_libpath=$lt_cv_aix_libpath
12478 else
12479   if ${lt_cv_aix_libpath__CXX+:} false; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h.  */
12484
12485 int
12486 main ()
12487 {
12488
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 if ac_fn_cxx_try_link "$LINENO"; then :
12494
12495   lt_aix_libpath_sed='
12496       /Import File Strings/,/^$/ {
12497           /^0/ {
12498               s/^0  *\([^ ]*\) *$/\1/
12499               p
12500           }
12501       }'
12502   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12503   # Check for a 64-bit object if we didn't find anything.
12504   if test -z "$lt_cv_aix_libpath__CXX"; then
12505     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12506   fi
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext \
12509     conftest$ac_exeext conftest.$ac_ext
12510   if test -z "$lt_cv_aix_libpath__CXX"; then
12511     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12512   fi
12513
12514 fi
12515
12516   aix_libpath=$lt_cv_aix_libpath__CXX
12517 fi
12518
12519             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12520             # Warning - without using the other run time loading flags,
12521             # -berok will link without error, but may produce a broken library.
12522             no_undefined_flag_CXX=' ${wl}-bernotok'
12523             allow_undefined_flag_CXX=' ${wl}-berok'
12524             if test "$with_gnu_ld" = yes; then
12525               # We only use this code for GNU lds that support --whole-archive.
12526               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12527             else
12528               # Exported symbols can be pulled into shared objects from archives
12529               whole_archive_flag_spec_CXX='$convenience'
12530             fi
12531             archive_cmds_need_lc_CXX=yes
12532             # This is similar to how AIX traditionally builds its shared
12533             # libraries.
12534             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'
12535           fi
12536         fi
12537         ;;
12538
12539       beos*)
12540         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12541           allow_undefined_flag_CXX=unsupported
12542           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12543           # support --undefined.  This deserves some investigation.  FIXME
12544           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12545         else
12546           ld_shlibs_CXX=no
12547         fi
12548         ;;
12549
12550       chorus*)
12551         case $cc_basename in
12552           *)
12553           # FIXME: insert proper C++ library support
12554           ld_shlibs_CXX=no
12555           ;;
12556         esac
12557         ;;
12558
12559       cygwin* | mingw* | pw32* | cegcc*)
12560         case $GXX,$cc_basename in
12561         ,cl* | no,cl*)
12562           # Native MSVC
12563           # hardcode_libdir_flag_spec is actually meaningless, as there is
12564           # no search path for DLLs.
12565           hardcode_libdir_flag_spec_CXX=' '
12566           allow_undefined_flag_CXX=unsupported
12567           always_export_symbols_CXX=yes
12568           file_list_spec_CXX='@'
12569           # Tell ltmain to make .lib files, not .a files.
12570           libext=lib
12571           # Tell ltmain to make .dll files, not .so files.
12572           shrext_cmds=".dll"
12573           # FIXME: Setting linknames here is a bad hack.
12574           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12575           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12576               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12577             else
12578               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12579             fi~
12580             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12581             linknames='
12582           # The linker will not automatically build a static lib if we build a DLL.
12583           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12584           enable_shared_with_static_runtimes_CXX=yes
12585           # Don't use ranlib
12586           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12587           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12588             lt_tool_outputfile="@TOOL_OUTPUT@"~
12589             case $lt_outputfile in
12590               *.exe|*.EXE) ;;
12591               *)
12592                 lt_outputfile="$lt_outputfile.exe"
12593                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12594                 ;;
12595             esac~
12596             func_to_tool_file "$lt_outputfile"~
12597             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12598               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12599               $RM "$lt_outputfile.manifest";
12600             fi'
12601           ;;
12602         *)
12603           # g++
12604           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12605           # as there is no search path for DLLs.
12606           hardcode_libdir_flag_spec_CXX='-L$libdir'
12607           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12608           allow_undefined_flag_CXX=unsupported
12609           always_export_symbols_CXX=no
12610           enable_shared_with_static_runtimes_CXX=yes
12611
12612           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12613             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'
12614             # If the export-symbols file already is a .def file (1st line
12615             # is EXPORTS), use it as is; otherwise, prepend...
12616             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12617               cp $export_symbols $output_objdir/$soname.def;
12618             else
12619               echo EXPORTS > $output_objdir/$soname.def;
12620               cat $export_symbols >> $output_objdir/$soname.def;
12621             fi~
12622             $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'
12623           else
12624             ld_shlibs_CXX=no
12625           fi
12626           ;;
12627         esac
12628         ;;
12629       darwin* | rhapsody*)
12630
12631
12632   archive_cmds_need_lc_CXX=no
12633   hardcode_direct_CXX=no
12634   hardcode_automatic_CXX=yes
12635   hardcode_shlibpath_var_CXX=unsupported
12636   if test "$lt_cv_ld_force_load" = "yes"; then
12637     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\"`'
12638
12639   else
12640     whole_archive_flag_spec_CXX=''
12641   fi
12642   link_all_deplibs_CXX=yes
12643   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12644   case $cc_basename in
12645      ifort*) _lt_dar_can_shared=yes ;;
12646      *) _lt_dar_can_shared=$GCC ;;
12647   esac
12648   if test "$_lt_dar_can_shared" = "yes"; then
12649     output_verbose_link_cmd=func_echo_all
12650     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}"
12651     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12652     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}"
12653     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}"
12654        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12655       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}"
12656       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}"
12657     fi
12658
12659   else
12660   ld_shlibs_CXX=no
12661   fi
12662
12663         ;;
12664
12665       dgux*)
12666         case $cc_basename in
12667           ec++*)
12668             # FIXME: insert proper C++ library support
12669             ld_shlibs_CXX=no
12670             ;;
12671           ghcx*)
12672             # Green Hills C++ Compiler
12673             # FIXME: insert proper C++ library support
12674             ld_shlibs_CXX=no
12675             ;;
12676           *)
12677             # FIXME: insert proper C++ library support
12678             ld_shlibs_CXX=no
12679             ;;
12680         esac
12681         ;;
12682
12683       freebsd2.*)
12684         # C++ shared libraries reported to be fairly broken before
12685         # switch to ELF
12686         ld_shlibs_CXX=no
12687         ;;
12688
12689       freebsd-elf*)
12690         archive_cmds_need_lc_CXX=no
12691         ;;
12692
12693       freebsd* | dragonfly*)
12694         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12695         # conventions
12696         ld_shlibs_CXX=yes
12697         ;;
12698
12699       haiku*)
12700         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12701         link_all_deplibs_CXX=yes
12702         ;;
12703
12704       hpux9*)
12705         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12706         hardcode_libdir_separator_CXX=:
12707         export_dynamic_flag_spec_CXX='${wl}-E'
12708         hardcode_direct_CXX=yes
12709         hardcode_minus_L_CXX=yes # Not in the search PATH,
12710                                              # but as the default
12711                                              # location of the library.
12712
12713         case $cc_basename in
12714           CC*)
12715             # FIXME: insert proper C++ library support
12716             ld_shlibs_CXX=no
12717             ;;
12718           aCC*)
12719             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'
12720             # Commands to make compiler produce verbose output that lists
12721             # what "hidden" libraries, object files and flags are used when
12722             # linking a shared library.
12723             #
12724             # There doesn't appear to be a way to prevent this compiler from
12725             # explicitly linking system object files so we need to strip them
12726             # from the output so that they don't get included in the library
12727             # dependencies.
12728             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"'
12729             ;;
12730           *)
12731             if test "$GXX" = yes; then
12732               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'
12733             else
12734               # FIXME: insert proper C++ library support
12735               ld_shlibs_CXX=no
12736             fi
12737             ;;
12738         esac
12739         ;;
12740
12741       hpux10*|hpux11*)
12742         if test $with_gnu_ld = no; then
12743           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12744           hardcode_libdir_separator_CXX=:
12745
12746           case $host_cpu in
12747             hppa*64*|ia64*)
12748               ;;
12749             *)
12750               export_dynamic_flag_spec_CXX='${wl}-E'
12751               ;;
12752           esac
12753         fi
12754         case $host_cpu in
12755           hppa*64*|ia64*)
12756             hardcode_direct_CXX=no
12757             hardcode_shlibpath_var_CXX=no
12758             ;;
12759           *)
12760             hardcode_direct_CXX=yes
12761             hardcode_direct_absolute_CXX=yes
12762             hardcode_minus_L_CXX=yes # Not in the search PATH,
12763                                                  # but as the default
12764                                                  # location of the library.
12765             ;;
12766         esac
12767
12768         case $cc_basename in
12769           CC*)
12770             # FIXME: insert proper C++ library support
12771             ld_shlibs_CXX=no
12772             ;;
12773           aCC*)
12774             case $host_cpu in
12775               hppa*64*)
12776                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12777                 ;;
12778               ia64*)
12779                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12780                 ;;
12781               *)
12782                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12783                 ;;
12784             esac
12785             # Commands to make compiler produce verbose output that lists
12786             # what "hidden" libraries, object files and flags are used when
12787             # linking a shared library.
12788             #
12789             # There doesn't appear to be a way to prevent this compiler from
12790             # explicitly linking system object files so we need to strip them
12791             # from the output so that they don't get included in the library
12792             # dependencies.
12793             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"'
12794             ;;
12795           *)
12796             if test "$GXX" = yes; then
12797               if test $with_gnu_ld = no; then
12798                 case $host_cpu in
12799                   hppa*64*)
12800                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12801                     ;;
12802                   ia64*)
12803                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804                     ;;
12805                   *)
12806                     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'
12807                     ;;
12808                 esac
12809               fi
12810             else
12811               # FIXME: insert proper C++ library support
12812               ld_shlibs_CXX=no
12813             fi
12814             ;;
12815         esac
12816         ;;
12817
12818       interix[3-9]*)
12819         hardcode_direct_CXX=no
12820         hardcode_shlibpath_var_CXX=no
12821         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12822         export_dynamic_flag_spec_CXX='${wl}-E'
12823         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12824         # Instead, shared libraries are loaded at an image base (0x10000000 by
12825         # default) and relocated if they conflict, which is a slow very memory
12826         # consuming and fragmenting process.  To avoid this, we pick a random,
12827         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12828         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12829         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'
12830         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'
12831         ;;
12832       irix5* | irix6*)
12833         case $cc_basename in
12834           CC*)
12835             # SGI C++
12836             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'
12837
12838             # Archives containing C++ object files must be created using
12839             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12840             # necessary to make sure instantiated templates are included
12841             # in the archive.
12842             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12843             ;;
12844           *)
12845             if test "$GXX" = yes; then
12846               if test "$with_gnu_ld" = no; then
12847                 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'
12848               else
12849                 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'
12850               fi
12851             fi
12852             link_all_deplibs_CXX=yes
12853             ;;
12854         esac
12855         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12856         hardcode_libdir_separator_CXX=:
12857         inherit_rpath_CXX=yes
12858         ;;
12859
12860       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12861         case $cc_basename in
12862           KCC*)
12863             # Kuck and Associates, Inc. (KAI) C++ Compiler
12864
12865             # KCC will only create a shared library if the output file
12866             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12867             # to its proper name (with version) after linking.
12868             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'
12869             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'
12870             # Commands to make compiler produce verbose output that lists
12871             # what "hidden" libraries, object files and flags are used when
12872             # linking a shared library.
12873             #
12874             # There doesn't appear to be a way to prevent this compiler from
12875             # explicitly linking system object files so we need to strip them
12876             # from the output so that they don't get included in the library
12877             # dependencies.
12878             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"'
12879
12880             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12881             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12882
12883             # Archives containing C++ object files must be created using
12884             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12885             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12886             ;;
12887           icpc* | ecpc* )
12888             # Intel C++
12889             with_gnu_ld=yes
12890             # version 8.0 and above of icpc choke on multiply defined symbols
12891             # if we add $predep_objects and $postdep_objects, however 7.1 and
12892             # earlier do not add the objects themselves.
12893             case `$CC -V 2>&1` in
12894               *"Version 7."*)
12895                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896                 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'
12897                 ;;
12898               *)  # Version 8.0 or newer
12899                 tmp_idyn=
12900                 case $host_cpu in
12901                   ia64*) tmp_idyn=' -i_dynamic';;
12902                 esac
12903                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904                 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'
12905                 ;;
12906             esac
12907             archive_cmds_need_lc_CXX=no
12908             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12909             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12910             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12911             ;;
12912           pgCC* | pgcpp*)
12913             # Portland Group C++ compiler
12914             case `$CC -V` in
12915             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12916               prelink_cmds_CXX='tpldir=Template.dir~
12917                 rm -rf $tpldir~
12918                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12919                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12920               old_archive_cmds_CXX='tpldir=Template.dir~
12921                 rm -rf $tpldir~
12922                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12923                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12924                 $RANLIB $oldlib'
12925               archive_cmds_CXX='tpldir=Template.dir~
12926                 rm -rf $tpldir~
12927                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12928                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12929               archive_expsym_cmds_CXX='tpldir=Template.dir~
12930                 rm -rf $tpldir~
12931                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12932                 $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'
12933               ;;
12934             *) # Version 6 and above use weak symbols
12935               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12936               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'
12937               ;;
12938             esac
12939
12940             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12941             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12942             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'
12943             ;;
12944           cxx*)
12945             # Compaq C++
12946             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12947             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'
12948
12949             runpath_var=LD_RUN_PATH
12950             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12951             hardcode_libdir_separator_CXX=:
12952
12953             # Commands to make compiler produce verbose output that lists
12954             # what "hidden" libraries, object files and flags are used when
12955             # linking a shared library.
12956             #
12957             # There doesn't appear to be a way to prevent this compiler from
12958             # explicitly linking system object files so we need to strip them
12959             # from the output so that they don't get included in the library
12960             # dependencies.
12961             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'
12962             ;;
12963           xl* | mpixl* | bgxl*)
12964             # IBM XL 8.0 on PPC, with GNU ld
12965             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12966             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12967             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968             if test "x$supports_anon_versioning" = xyes; then
12969               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12970                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12971                 echo "local: *; };" >> $output_objdir/$libname.ver~
12972                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12973             fi
12974             ;;
12975           *)
12976             case `$CC -V 2>&1 | sed 5q` in
12977             *Sun\ C*)
12978               # Sun C++ 5.9
12979               no_undefined_flag_CXX=' -zdefs'
12980               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12981               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'
12982               hardcode_libdir_flag_spec_CXX='-R$libdir'
12983               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'
12984               compiler_needs_object_CXX=yes
12985
12986               # Not sure whether something based on
12987               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12988               # would be better.
12989               output_verbose_link_cmd='func_echo_all'
12990
12991               # Archives containing C++ object files must be created using
12992               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12993               # necessary to make sure instantiated templates are included
12994               # in the archive.
12995               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12996               ;;
12997             esac
12998             ;;
12999         esac
13000         ;;
13001
13002       lynxos*)
13003         # FIXME: insert proper C++ library support
13004         ld_shlibs_CXX=no
13005         ;;
13006
13007       m88k*)
13008         # FIXME: insert proper C++ library support
13009         ld_shlibs_CXX=no
13010         ;;
13011
13012       mvs*)
13013         case $cc_basename in
13014           cxx*)
13015             # FIXME: insert proper C++ library support
13016             ld_shlibs_CXX=no
13017             ;;
13018           *)
13019             # FIXME: insert proper C++ library support
13020             ld_shlibs_CXX=no
13021             ;;
13022         esac
13023         ;;
13024
13025       netbsd*)
13026         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13027           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13028           wlarc=
13029           hardcode_libdir_flag_spec_CXX='-R$libdir'
13030           hardcode_direct_CXX=yes
13031           hardcode_shlibpath_var_CXX=no
13032         fi
13033         # Workaround some broken pre-1.5 toolchains
13034         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13035         ;;
13036
13037       *nto* | *qnx*)
13038         ld_shlibs_CXX=yes
13039         ;;
13040
13041       openbsd2*)
13042         # C++ shared libraries are fairly broken
13043         ld_shlibs_CXX=no
13044         ;;
13045
13046       openbsd*)
13047         if test -f /usr/libexec/ld.so; then
13048           hardcode_direct_CXX=yes
13049           hardcode_shlibpath_var_CXX=no
13050           hardcode_direct_absolute_CXX=yes
13051           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13052           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13053           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13054             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13055             export_dynamic_flag_spec_CXX='${wl}-E'
13056             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13057           fi
13058           output_verbose_link_cmd=func_echo_all
13059         else
13060           ld_shlibs_CXX=no
13061         fi
13062         ;;
13063
13064       osf3* | osf4* | osf5*)
13065         case $cc_basename in
13066           KCC*)
13067             # Kuck and Associates, Inc. (KAI) C++ Compiler
13068
13069             # KCC will only create a shared library if the output file
13070             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13071             # to its proper name (with version) after linking.
13072             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'
13073
13074             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13075             hardcode_libdir_separator_CXX=:
13076
13077             # Archives containing C++ object files must be created using
13078             # the KAI C++ compiler.
13079             case $host in
13080               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13081               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13082             esac
13083             ;;
13084           RCC*)
13085             # Rational C++ 2.4.1
13086             # FIXME: insert proper C++ library support
13087             ld_shlibs_CXX=no
13088             ;;
13089           cxx*)
13090             case $host in
13091               osf3*)
13092                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13093                 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'
13094                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13095                 ;;
13096               *)
13097                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13098                 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'
13099                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13100                   echo "-hidden">> $lib.exp~
13101                   $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~
13102                   $RM $lib.exp'
13103                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13104                 ;;
13105             esac
13106
13107             hardcode_libdir_separator_CXX=:
13108
13109             # Commands to make compiler produce verbose output that lists
13110             # what "hidden" libraries, object files and flags are used when
13111             # linking a shared library.
13112             #
13113             # There doesn't appear to be a way to prevent this compiler from
13114             # explicitly linking system object files so we need to strip them
13115             # from the output so that they don't get included in the library
13116             # dependencies.
13117             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"'
13118             ;;
13119           *)
13120             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13121               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13122               case $host in
13123                 osf3*)
13124                   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'
13125                   ;;
13126                 *)
13127                   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'
13128                   ;;
13129               esac
13130
13131               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13132               hardcode_libdir_separator_CXX=:
13133
13134               # Commands to make compiler produce verbose output that lists
13135               # what "hidden" libraries, object files and flags are used when
13136               # linking a shared library.
13137               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13138
13139             else
13140               # FIXME: insert proper C++ library support
13141               ld_shlibs_CXX=no
13142             fi
13143             ;;
13144         esac
13145         ;;
13146
13147       psos*)
13148         # FIXME: insert proper C++ library support
13149         ld_shlibs_CXX=no
13150         ;;
13151
13152       sunos4*)
13153         case $cc_basename in
13154           CC*)
13155             # Sun C++ 4.x
13156             # FIXME: insert proper C++ library support
13157             ld_shlibs_CXX=no
13158             ;;
13159           lcc*)
13160             # Lucid
13161             # FIXME: insert proper C++ library support
13162             ld_shlibs_CXX=no
13163             ;;
13164           *)
13165             # FIXME: insert proper C++ library support
13166             ld_shlibs_CXX=no
13167             ;;
13168         esac
13169         ;;
13170
13171       solaris*)
13172         case $cc_basename in
13173           CC* | sunCC*)
13174             # Sun C++ 4.2, 5.x and Centerline C++
13175             archive_cmds_need_lc_CXX=yes
13176             no_undefined_flag_CXX=' -zdefs'
13177             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13178             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13179               $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'
13180
13181             hardcode_libdir_flag_spec_CXX='-R$libdir'
13182             hardcode_shlibpath_var_CXX=no
13183             case $host_os in
13184               solaris2.[0-5] | solaris2.[0-5].*) ;;
13185               *)
13186                 # The compiler driver will combine and reorder linker options,
13187                 # but understands `-z linker_flag'.
13188                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13189                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13190                 ;;
13191             esac
13192             link_all_deplibs_CXX=yes
13193
13194             output_verbose_link_cmd='func_echo_all'
13195
13196             # Archives containing C++ object files must be created using
13197             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13198             # necessary to make sure instantiated templates are included
13199             # in the archive.
13200             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13201             ;;
13202           gcx*)
13203             # Green Hills C++ Compiler
13204             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13205
13206             # The C++ compiler must be used to create the archive.
13207             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13208             ;;
13209           *)
13210             # GNU C++ compiler with Solaris linker
13211             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13212               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13213               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13214                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13215                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13216                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13217
13218                 # Commands to make compiler produce verbose output that lists
13219                 # what "hidden" libraries, object files and flags are used when
13220                 # linking a shared library.
13221                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13222               else
13223                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13224                 # platform.
13225                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13226                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13227                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13228
13229                 # Commands to make compiler produce verbose output that lists
13230                 # what "hidden" libraries, object files and flags are used when
13231                 # linking a shared library.
13232                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13233               fi
13234
13235               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13236               case $host_os in
13237                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13238                 *)
13239                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13240                   ;;
13241               esac
13242             fi
13243             ;;
13244         esac
13245         ;;
13246
13247     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13248       no_undefined_flag_CXX='${wl}-z,text'
13249       archive_cmds_need_lc_CXX=no
13250       hardcode_shlibpath_var_CXX=no
13251       runpath_var='LD_RUN_PATH'
13252
13253       case $cc_basename in
13254         CC*)
13255           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13256           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13257           ;;
13258         *)
13259           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13260           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13261           ;;
13262       esac
13263       ;;
13264
13265       sysv5* | sco3.2v5* | sco5v6*)
13266         # Note: We can NOT use -z defs as we might desire, because we do not
13267         # link with -lc, and that would cause any symbols used from libc to
13268         # always be unresolved, which means just about no library would
13269         # ever link correctly.  If we're not using GNU ld we use -z text
13270         # though, which does catch some bad symbols but isn't as heavy-handed
13271         # as -z defs.
13272         no_undefined_flag_CXX='${wl}-z,text'
13273         allow_undefined_flag_CXX='${wl}-z,nodefs'
13274         archive_cmds_need_lc_CXX=no
13275         hardcode_shlibpath_var_CXX=no
13276         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13277         hardcode_libdir_separator_CXX=':'
13278         link_all_deplibs_CXX=yes
13279         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13280         runpath_var='LD_RUN_PATH'
13281
13282         case $cc_basename in
13283           CC*)
13284             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13285             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13286             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13287               '"$old_archive_cmds_CXX"
13288             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13289               '"$reload_cmds_CXX"
13290             ;;
13291           *)
13292             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294             ;;
13295         esac
13296       ;;
13297
13298       tandem*)
13299         case $cc_basename in
13300           NCC*)
13301             # NonStop-UX NCC 3.20
13302             # FIXME: insert proper C++ library support
13303             ld_shlibs_CXX=no
13304             ;;
13305           *)
13306             # FIXME: insert proper C++ library support
13307             ld_shlibs_CXX=no
13308             ;;
13309         esac
13310         ;;
13311
13312       vxworks*)
13313         # FIXME: insert proper C++ library support
13314         ld_shlibs_CXX=no
13315         ;;
13316
13317       *)
13318         # FIXME: insert proper C++ library support
13319         ld_shlibs_CXX=no
13320         ;;
13321     esac
13322
13323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13324 $as_echo "$ld_shlibs_CXX" >&6; }
13325     test "$ld_shlibs_CXX" = no && can_build_shared=no
13326
13327     GCC_CXX="$GXX"
13328     LD_CXX="$LD"
13329
13330     ## CAVEAT EMPTOR:
13331     ## There is no encapsulation within the following macros, do not change
13332     ## the running order or otherwise move them around unless you know exactly
13333     ## what you are doing...
13334     # Dependencies to place before and after the object being linked:
13335 predep_objects_CXX=
13336 postdep_objects_CXX=
13337 predeps_CXX=
13338 postdeps_CXX=
13339 compiler_lib_search_path_CXX=
13340
13341 cat > conftest.$ac_ext <<_LT_EOF
13342 class Foo
13343 {
13344 public:
13345   Foo (void) { a = 0; }
13346 private:
13347   int a;
13348 };
13349 _LT_EOF
13350
13351
13352 _lt_libdeps_save_CFLAGS=$CFLAGS
13353 case "$CC $CFLAGS " in #(
13354 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13355 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13356 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13357 esac
13358
13359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13360   (eval $ac_compile) 2>&5
13361   ac_status=$?
13362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363   test $ac_status = 0; }; then
13364   # Parse the compiler output and extract the necessary
13365   # objects, libraries and library flags.
13366
13367   # Sentinel used to keep track of whether or not we are before
13368   # the conftest object file.
13369   pre_test_object_deps_done=no
13370
13371   for p in `eval "$output_verbose_link_cmd"`; do
13372     case ${prev}${p} in
13373
13374     -L* | -R* | -l*)
13375        # Some compilers place space between "-{L,R}" and the path.
13376        # Remove the space.
13377        if test $p = "-L" ||
13378           test $p = "-R"; then
13379          prev=$p
13380          continue
13381        fi
13382
13383        # Expand the sysroot to ease extracting the directories later.
13384        if test -z "$prev"; then
13385          case $p in
13386          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13387          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13388          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13389          esac
13390        fi
13391        case $p in
13392        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13393        esac
13394        if test "$pre_test_object_deps_done" = no; then
13395          case ${prev} in
13396          -L | -R)
13397            # Internal compiler library paths should come after those
13398            # provided the user.  The postdeps already come after the
13399            # user supplied libs so there is no need to process them.
13400            if test -z "$compiler_lib_search_path_CXX"; then
13401              compiler_lib_search_path_CXX="${prev}${p}"
13402            else
13403              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13404            fi
13405            ;;
13406          # The "-l" case would never come before the object being
13407          # linked, so don't bother handling this case.
13408          esac
13409        else
13410          if test -z "$postdeps_CXX"; then
13411            postdeps_CXX="${prev}${p}"
13412          else
13413            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13414          fi
13415        fi
13416        prev=
13417        ;;
13418
13419     *.lto.$objext) ;; # Ignore GCC LTO objects
13420     *.$objext)
13421        # This assumes that the test object file only shows up
13422        # once in the compiler output.
13423        if test "$p" = "conftest.$objext"; then
13424          pre_test_object_deps_done=yes
13425          continue
13426        fi
13427
13428        if test "$pre_test_object_deps_done" = no; then
13429          if test -z "$predep_objects_CXX"; then
13430            predep_objects_CXX="$p"
13431          else
13432            predep_objects_CXX="$predep_objects_CXX $p"
13433          fi
13434        else
13435          if test -z "$postdep_objects_CXX"; then
13436            postdep_objects_CXX="$p"
13437          else
13438            postdep_objects_CXX="$postdep_objects_CXX $p"
13439          fi
13440        fi
13441        ;;
13442
13443     *) ;; # Ignore the rest.
13444
13445     esac
13446   done
13447
13448   # Clean up.
13449   rm -f a.out a.exe
13450 else
13451   echo "libtool.m4: error: problem compiling CXX test program"
13452 fi
13453
13454 $RM -f confest.$objext
13455 CFLAGS=$_lt_libdeps_save_CFLAGS
13456
13457 # PORTME: override above test on systems where it is broken
13458 case $host_os in
13459 interix[3-9]*)
13460   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13461   # hack all around it, let's just trust "g++" to DTRT.
13462   predep_objects_CXX=
13463   postdep_objects_CXX=
13464   postdeps_CXX=
13465   ;;
13466
13467 linux*)
13468   case `$CC -V 2>&1 | sed 5q` in
13469   *Sun\ C*)
13470     # Sun C++ 5.9
13471
13472     # The more standards-conforming stlport4 library is
13473     # incompatible with the Cstd library. Avoid specifying
13474     # it if it's in CXXFLAGS. Ignore libCrun as
13475     # -library=stlport4 depends on it.
13476     case " $CXX $CXXFLAGS " in
13477     *" -library=stlport4 "*)
13478       solaris_use_stlport4=yes
13479       ;;
13480     esac
13481
13482     if test "$solaris_use_stlport4" != yes; then
13483       postdeps_CXX='-library=Cstd -library=Crun'
13484     fi
13485     ;;
13486   esac
13487   ;;
13488
13489 solaris*)
13490   case $cc_basename in
13491   CC* | sunCC*)
13492     # The more standards-conforming stlport4 library is
13493     # incompatible with the Cstd library. Avoid specifying
13494     # it if it's in CXXFLAGS. Ignore libCrun as
13495     # -library=stlport4 depends on it.
13496     case " $CXX $CXXFLAGS " in
13497     *" -library=stlport4 "*)
13498       solaris_use_stlport4=yes
13499       ;;
13500     esac
13501
13502     # Adding this requires a known-good setup of shared libraries for
13503     # Sun compiler versions before 5.6, else PIC objects from an old
13504     # archive will be linked into the output, leading to subtle bugs.
13505     if test "$solaris_use_stlport4" != yes; then
13506       postdeps_CXX='-library=Cstd -library=Crun'
13507     fi
13508     ;;
13509   esac
13510   ;;
13511 esac
13512
13513
13514 case " $postdeps_CXX " in
13515 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13516 esac
13517  compiler_lib_search_dirs_CXX=
13518 if test -n "${compiler_lib_search_path_CXX}"; then
13519  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13520 fi
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552     lt_prog_compiler_wl_CXX=
13553 lt_prog_compiler_pic_CXX=
13554 lt_prog_compiler_static_CXX=
13555
13556
13557   # C++ specific cases for pic, static, wl, etc.
13558   if test "$GXX" = yes; then
13559     lt_prog_compiler_wl_CXX='-Wl,'
13560     lt_prog_compiler_static_CXX='-static'
13561
13562     case $host_os in
13563     aix*)
13564       # All AIX code is PIC.
13565       if test "$host_cpu" = ia64; then
13566         # AIX 5 now supports IA64 processor
13567         lt_prog_compiler_static_CXX='-Bstatic'
13568       fi
13569       ;;
13570
13571     amigaos*)
13572       case $host_cpu in
13573       powerpc)
13574             # see comment about AmigaOS4 .so support
13575             lt_prog_compiler_pic_CXX='-fPIC'
13576         ;;
13577       m68k)
13578             # FIXME: we need at least 68020 code to build shared libraries, but
13579             # adding the `-m68020' flag to GCC prevents building anything better,
13580             # like `-m68040'.
13581             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13582         ;;
13583       esac
13584       ;;
13585
13586     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13587       # PIC is the default for these OSes.
13588       ;;
13589     mingw* | cygwin* | os2* | pw32* | cegcc*)
13590       # This hack is so that the source file can tell whether it is being
13591       # built for inclusion in a dll (and should export symbols for example).
13592       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13593       # (--disable-auto-import) libraries
13594       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13595       ;;
13596     darwin* | rhapsody*)
13597       # PIC is the default on this platform
13598       # Common symbols not allowed in MH_DYLIB files
13599       lt_prog_compiler_pic_CXX='-fno-common'
13600       ;;
13601     *djgpp*)
13602       # DJGPP does not support shared libraries at all
13603       lt_prog_compiler_pic_CXX=
13604       ;;
13605     haiku*)
13606       # PIC is the default for Haiku.
13607       # The "-static" flag exists, but is broken.
13608       lt_prog_compiler_static_CXX=
13609       ;;
13610     interix[3-9]*)
13611       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13612       # Instead, we relocate shared libraries at runtime.
13613       ;;
13614     sysv4*MP*)
13615       if test -d /usr/nec; then
13616         lt_prog_compiler_pic_CXX=-Kconform_pic
13617       fi
13618       ;;
13619     hpux*)
13620       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13621       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13622       # sets the default TLS model and affects inlining.
13623       case $host_cpu in
13624       hppa*64*)
13625         ;;
13626       *)
13627         lt_prog_compiler_pic_CXX='-fPIC'
13628         ;;
13629       esac
13630       ;;
13631     *qnx* | *nto*)
13632       # QNX uses GNU C++, but need to define -shared option too, otherwise
13633       # it will coredump.
13634       lt_prog_compiler_pic_CXX='-fPIC -shared'
13635       ;;
13636     *)
13637       lt_prog_compiler_pic_CXX='-fPIC'
13638       ;;
13639     esac
13640   else
13641     case $host_os in
13642       aix[4-9]*)
13643         # All AIX code is PIC.
13644         if test "$host_cpu" = ia64; then
13645           # AIX 5 now supports IA64 processor
13646           lt_prog_compiler_static_CXX='-Bstatic'
13647         else
13648           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13649         fi
13650         ;;
13651       chorus*)
13652         case $cc_basename in
13653         cxch68*)
13654           # Green Hills C++ Compiler
13655           # _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"
13656           ;;
13657         esac
13658         ;;
13659       mingw* | cygwin* | os2* | pw32* | cegcc*)
13660         # This hack is so that the source file can tell whether it is being
13661         # built for inclusion in a dll (and should export symbols for example).
13662         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13663         ;;
13664       dgux*)
13665         case $cc_basename in
13666           ec++*)
13667             lt_prog_compiler_pic_CXX='-KPIC'
13668             ;;
13669           ghcx*)
13670             # Green Hills C++ Compiler
13671             lt_prog_compiler_pic_CXX='-pic'
13672             ;;
13673           *)
13674             ;;
13675         esac
13676         ;;
13677       freebsd* | dragonfly*)
13678         # FreeBSD uses GNU C++
13679         ;;
13680       hpux9* | hpux10* | hpux11*)
13681         case $cc_basename in
13682           CC*)
13683             lt_prog_compiler_wl_CXX='-Wl,'
13684             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13685             if test "$host_cpu" != ia64; then
13686               lt_prog_compiler_pic_CXX='+Z'
13687             fi
13688             ;;
13689           aCC*)
13690             lt_prog_compiler_wl_CXX='-Wl,'
13691             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13692             case $host_cpu in
13693             hppa*64*|ia64*)
13694               # +Z the default
13695               ;;
13696             *)
13697               lt_prog_compiler_pic_CXX='+Z'
13698               ;;
13699             esac
13700             ;;
13701           *)
13702             ;;
13703         esac
13704         ;;
13705       interix*)
13706         # This is c89, which is MS Visual C++ (no shared libs)
13707         # Anyone wants to do a port?
13708         ;;
13709       irix5* | irix6* | nonstopux*)
13710         case $cc_basename in
13711           CC*)
13712             lt_prog_compiler_wl_CXX='-Wl,'
13713             lt_prog_compiler_static_CXX='-non_shared'
13714             # CC pic flag -KPIC is the default.
13715             ;;
13716           *)
13717             ;;
13718         esac
13719         ;;
13720       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13721         case $cc_basename in
13722           KCC*)
13723             # KAI C++ Compiler
13724             lt_prog_compiler_wl_CXX='--backend -Wl,'
13725             lt_prog_compiler_pic_CXX='-fPIC'
13726             ;;
13727           ecpc* )
13728             # old Intel C++ for x86_64 which still supported -KPIC.
13729             lt_prog_compiler_wl_CXX='-Wl,'
13730             lt_prog_compiler_pic_CXX='-KPIC'
13731             lt_prog_compiler_static_CXX='-static'
13732             ;;
13733           icpc* )
13734             # Intel C++, used to be incompatible with GCC.
13735             # ICC 10 doesn't accept -KPIC any more.
13736             lt_prog_compiler_wl_CXX='-Wl,'
13737             lt_prog_compiler_pic_CXX='-fPIC'
13738             lt_prog_compiler_static_CXX='-static'
13739             ;;
13740           pgCC* | pgcpp*)
13741             # Portland Group C++ compiler
13742             lt_prog_compiler_wl_CXX='-Wl,'
13743             lt_prog_compiler_pic_CXX='-fpic'
13744             lt_prog_compiler_static_CXX='-Bstatic'
13745             ;;
13746           cxx*)
13747             # Compaq C++
13748             # Make sure the PIC flag is empty.  It appears that all Alpha
13749             # Linux and Compaq Tru64 Unix objects are PIC.
13750             lt_prog_compiler_pic_CXX=
13751             lt_prog_compiler_static_CXX='-non_shared'
13752             ;;
13753           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13754             # IBM XL 8.0, 9.0 on PPC and BlueGene
13755             lt_prog_compiler_wl_CXX='-Wl,'
13756             lt_prog_compiler_pic_CXX='-qpic'
13757             lt_prog_compiler_static_CXX='-qstaticlink'
13758             ;;
13759           *)
13760             case `$CC -V 2>&1 | sed 5q` in
13761             *Sun\ C*)
13762               # Sun C++ 5.9
13763               lt_prog_compiler_pic_CXX='-KPIC'
13764               lt_prog_compiler_static_CXX='-Bstatic'
13765               lt_prog_compiler_wl_CXX='-Qoption ld '
13766               ;;
13767             esac
13768             ;;
13769         esac
13770         ;;
13771       lynxos*)
13772         ;;
13773       m88k*)
13774         ;;
13775       mvs*)
13776         case $cc_basename in
13777           cxx*)
13778             lt_prog_compiler_pic_CXX='-W c,exportall'
13779             ;;
13780           *)
13781             ;;
13782         esac
13783         ;;
13784       netbsd* | netbsdelf*-gnu)
13785         ;;
13786       *qnx* | *nto*)
13787         # QNX uses GNU C++, but need to define -shared option too, otherwise
13788         # it will coredump.
13789         lt_prog_compiler_pic_CXX='-fPIC -shared'
13790         ;;
13791       osf3* | osf4* | osf5*)
13792         case $cc_basename in
13793           KCC*)
13794             lt_prog_compiler_wl_CXX='--backend -Wl,'
13795             ;;
13796           RCC*)
13797             # Rational C++ 2.4.1
13798             lt_prog_compiler_pic_CXX='-pic'
13799             ;;
13800           cxx*)
13801             # Digital/Compaq C++
13802             lt_prog_compiler_wl_CXX='-Wl,'
13803             # Make sure the PIC flag is empty.  It appears that all Alpha
13804             # Linux and Compaq Tru64 Unix objects are PIC.
13805             lt_prog_compiler_pic_CXX=
13806             lt_prog_compiler_static_CXX='-non_shared'
13807             ;;
13808           *)
13809             ;;
13810         esac
13811         ;;
13812       psos*)
13813         ;;
13814       solaris*)
13815         case $cc_basename in
13816           CC* | sunCC*)
13817             # Sun C++ 4.2, 5.x and Centerline C++
13818             lt_prog_compiler_pic_CXX='-KPIC'
13819             lt_prog_compiler_static_CXX='-Bstatic'
13820             lt_prog_compiler_wl_CXX='-Qoption ld '
13821             ;;
13822           gcx*)
13823             # Green Hills C++ Compiler
13824             lt_prog_compiler_pic_CXX='-PIC'
13825             ;;
13826           *)
13827             ;;
13828         esac
13829         ;;
13830       sunos4*)
13831         case $cc_basename in
13832           CC*)
13833             # Sun C++ 4.x
13834             lt_prog_compiler_pic_CXX='-pic'
13835             lt_prog_compiler_static_CXX='-Bstatic'
13836             ;;
13837           lcc*)
13838             # Lucid
13839             lt_prog_compiler_pic_CXX='-pic'
13840             ;;
13841           *)
13842             ;;
13843         esac
13844         ;;
13845       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13846         case $cc_basename in
13847           CC*)
13848             lt_prog_compiler_wl_CXX='-Wl,'
13849             lt_prog_compiler_pic_CXX='-KPIC'
13850             lt_prog_compiler_static_CXX='-Bstatic'
13851             ;;
13852         esac
13853         ;;
13854       tandem*)
13855         case $cc_basename in
13856           NCC*)
13857             # NonStop-UX NCC 3.20
13858             lt_prog_compiler_pic_CXX='-KPIC'
13859             ;;
13860           *)
13861             ;;
13862         esac
13863         ;;
13864       vxworks*)
13865         ;;
13866       *)
13867         lt_prog_compiler_can_build_shared_CXX=no
13868         ;;
13869     esac
13870   fi
13871
13872 case $host_os in
13873   # For platforms which do not support PIC, -DPIC is meaningless:
13874   *djgpp*)
13875     lt_prog_compiler_pic_CXX=
13876     ;;
13877   *)
13878     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13879     ;;
13880 esac
13881
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13884 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13885   $as_echo_n "(cached) " >&6
13886 else
13887   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13890 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13891 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13892
13893 #
13894 # Check to make sure the PIC flag actually works.
13895 #
13896 if test -n "$lt_prog_compiler_pic_CXX"; then
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13899 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13900   $as_echo_n "(cached) " >&6
13901 else
13902   lt_cv_prog_compiler_pic_works_CXX=no
13903    ac_outfile=conftest.$ac_objext
13904    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13905    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13906    # Insert the option either (1) after the last *FLAGS variable, or
13907    # (2) before a word containing "conftest.", or (3) at the end.
13908    # Note that $ac_compile itself does not contain backslashes and begins
13909    # with a dollar sign (not a hyphen), so the echo should work correctly.
13910    # The option is referenced via a variable to avoid confusing sed.
13911    lt_compile=`echo "$ac_compile" | $SED \
13912    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13914    -e 's:$: $lt_compiler_flag:'`
13915    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13916    (eval "$lt_compile" 2>conftest.err)
13917    ac_status=$?
13918    cat conftest.err >&5
13919    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920    if (exit $ac_status) && test -s "$ac_outfile"; then
13921      # The compiler can only warn and ignore the option if not recognized
13922      # So say no if there are warnings other than the usual output.
13923      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13924      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13925      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13926        lt_cv_prog_compiler_pic_works_CXX=yes
13927      fi
13928    fi
13929    $RM conftest*
13930
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13933 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13934
13935 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13936     case $lt_prog_compiler_pic_CXX in
13937      "" | " "*) ;;
13938      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13939      esac
13940 else
13941     lt_prog_compiler_pic_CXX=
13942      lt_prog_compiler_can_build_shared_CXX=no
13943 fi
13944
13945 fi
13946
13947
13948
13949
13950
13951 #
13952 # Check to make sure the static flag actually works.
13953 #
13954 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13956 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13957 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13958   $as_echo_n "(cached) " >&6
13959 else
13960   lt_cv_prog_compiler_static_works_CXX=no
13961    save_LDFLAGS="$LDFLAGS"
13962    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13963    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13964    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13965      # The linker can only warn and ignore the option if not recognized
13966      # So say no if there are warnings
13967      if test -s conftest.err; then
13968        # Append any errors to the config.log.
13969        cat conftest.err 1>&5
13970        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13971        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13972        if diff conftest.exp conftest.er2 >/dev/null; then
13973          lt_cv_prog_compiler_static_works_CXX=yes
13974        fi
13975      else
13976        lt_cv_prog_compiler_static_works_CXX=yes
13977      fi
13978    fi
13979    $RM -r conftest*
13980    LDFLAGS="$save_LDFLAGS"
13981
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13984 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13985
13986 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13987     :
13988 else
13989     lt_prog_compiler_static_CXX=
13990 fi
13991
13992
13993
13994
13995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13997 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13998   $as_echo_n "(cached) " >&6
13999 else
14000   lt_cv_prog_compiler_c_o_CXX=no
14001    $RM -r conftest 2>/dev/null
14002    mkdir conftest
14003    cd conftest
14004    mkdir out
14005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006
14007    lt_compiler_flag="-o out/conftest2.$ac_objext"
14008    # Insert the option either (1) after the last *FLAGS variable, or
14009    # (2) before a word containing "conftest.", or (3) at the end.
14010    # Note that $ac_compile itself does not contain backslashes and begins
14011    # with a dollar sign (not a hyphen), so the echo should work correctly.
14012    lt_compile=`echo "$ac_compile" | $SED \
14013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015    -e 's:$: $lt_compiler_flag:'`
14016    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14017    (eval "$lt_compile" 2>out/conftest.err)
14018    ac_status=$?
14019    cat out/conftest.err >&5
14020    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14022    then
14023      # The compiler can only warn and ignore the option if not recognized
14024      # So say no if there are warnings
14025      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14026      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14027      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14028        lt_cv_prog_compiler_c_o_CXX=yes
14029      fi
14030    fi
14031    chmod u+w . 2>&5
14032    $RM conftest*
14033    # SGI C++ compiler will create directory out/ii_files/ for
14034    # template instantiation
14035    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14036    $RM out/* && rmdir out
14037    cd ..
14038    $RM -r conftest
14039    $RM conftest*
14040
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14043 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14044
14045
14046
14047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14049 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14050   $as_echo_n "(cached) " >&6
14051 else
14052   lt_cv_prog_compiler_c_o_CXX=no
14053    $RM -r conftest 2>/dev/null
14054    mkdir conftest
14055    cd conftest
14056    mkdir out
14057    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14058
14059    lt_compiler_flag="-o out/conftest2.$ac_objext"
14060    # Insert the option either (1) after the last *FLAGS variable, or
14061    # (2) before a word containing "conftest.", or (3) at the end.
14062    # Note that $ac_compile itself does not contain backslashes and begins
14063    # with a dollar sign (not a hyphen), so the echo should work correctly.
14064    lt_compile=`echo "$ac_compile" | $SED \
14065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14067    -e 's:$: $lt_compiler_flag:'`
14068    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14069    (eval "$lt_compile" 2>out/conftest.err)
14070    ac_status=$?
14071    cat out/conftest.err >&5
14072    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14074    then
14075      # The compiler can only warn and ignore the option if not recognized
14076      # So say no if there are warnings
14077      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14078      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14079      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14080        lt_cv_prog_compiler_c_o_CXX=yes
14081      fi
14082    fi
14083    chmod u+w . 2>&5
14084    $RM conftest*
14085    # SGI C++ compiler will create directory out/ii_files/ for
14086    # template instantiation
14087    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14088    $RM out/* && rmdir out
14089    cd ..
14090    $RM -r conftest
14091    $RM conftest*
14092
14093 fi
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14095 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14096
14097
14098
14099
14100 hard_links="nottested"
14101 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14102   # do not overwrite the value of need_locks provided by the user
14103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14104 $as_echo_n "checking if we can lock with hard links... " >&6; }
14105   hard_links=yes
14106   $RM conftest*
14107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14108   touch conftest.a
14109   ln conftest.a conftest.b 2>&5 || hard_links=no
14110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14112 $as_echo "$hard_links" >&6; }
14113   if test "$hard_links" = no; then
14114     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14115 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14116     need_locks=warn
14117   fi
14118 else
14119   need_locks=no
14120 fi
14121
14122
14123
14124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14126
14127   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14128   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14129   case $host_os in
14130   aix[4-9]*)
14131     # If we're using GNU nm, then we don't want the "-C" option.
14132     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14133     # Also, AIX nm treats weak defined symbols like other global defined
14134     # symbols, whereas GNU nm marks them as "W".
14135     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14136       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'
14137     else
14138       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'
14139     fi
14140     ;;
14141   pw32*)
14142     export_symbols_cmds_CXX="$ltdll_cmds"
14143     ;;
14144   cygwin* | mingw* | cegcc*)
14145     case $cc_basename in
14146     cl*)
14147       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14148       ;;
14149     *)
14150       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'
14151       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14152       ;;
14153     esac
14154     ;;
14155   linux* | k*bsd*-gnu | gnu*)
14156     link_all_deplibs_CXX=no
14157     ;;
14158   *)
14159     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14160     ;;
14161   esac
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14164 $as_echo "$ld_shlibs_CXX" >&6; }
14165 test "$ld_shlibs_CXX" = no && can_build_shared=no
14166
14167 with_gnu_ld_CXX=$with_gnu_ld
14168
14169
14170
14171
14172
14173
14174 #
14175 # Do we need to explicitly link libc?
14176 #
14177 case "x$archive_cmds_need_lc_CXX" in
14178 x|xyes)
14179   # Assume -lc should be added
14180   archive_cmds_need_lc_CXX=yes
14181
14182   if test "$enable_shared" = yes && test "$GCC" = yes; then
14183     case $archive_cmds_CXX in
14184     *'~'*)
14185       # FIXME: we may have to deal with multi-command sequences.
14186       ;;
14187     '$CC '*)
14188       # Test whether the compiler implicitly links with -lc since on some
14189       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14190       # to ld, don't add -lc before -lgcc.
14191       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14193 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14194   $as_echo_n "(cached) " >&6
14195 else
14196   $RM conftest*
14197         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14198
14199         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14200   (eval $ac_compile) 2>&5
14201   ac_status=$?
14202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203   test $ac_status = 0; } 2>conftest.err; then
14204           soname=conftest
14205           lib=conftest
14206           libobjs=conftest.$ac_objext
14207           deplibs=
14208           wl=$lt_prog_compiler_wl_CXX
14209           pic_flag=$lt_prog_compiler_pic_CXX
14210           compiler_flags=-v
14211           linker_flags=-v
14212           verstring=
14213           output_objdir=.
14214           libname=conftest
14215           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14216           allow_undefined_flag_CXX=
14217           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14218   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14219   ac_status=$?
14220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14221   test $ac_status = 0; }
14222           then
14223             lt_cv_archive_cmds_need_lc_CXX=no
14224           else
14225             lt_cv_archive_cmds_need_lc_CXX=yes
14226           fi
14227           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14228         else
14229           cat conftest.err 1>&5
14230         fi
14231         $RM conftest*
14232
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14235 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14236       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14237       ;;
14238     esac
14239   fi
14240   ;;
14241 esac
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14305 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14306
14307 library_names_spec=
14308 libname_spec='lib$name'
14309 soname_spec=
14310 shrext_cmds=".so"
14311 postinstall_cmds=
14312 postuninstall_cmds=
14313 finish_cmds=
14314 finish_eval=
14315 shlibpath_var=
14316 shlibpath_overrides_runpath=unknown
14317 version_type=none
14318 dynamic_linker="$host_os ld.so"
14319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14320 need_lib_prefix=unknown
14321 hardcode_into_libs=no
14322
14323 # when you set need_version to no, make sure it does not cause -set_version
14324 # flags to be left without arguments
14325 need_version=unknown
14326
14327 case $host_os in
14328 aix3*)
14329   version_type=linux # correct to gnu/linux during the next big refactor
14330   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14331   shlibpath_var=LIBPATH
14332
14333   # AIX 3 has no versioning support, so we append a major version to the name.
14334   soname_spec='${libname}${release}${shared_ext}$major'
14335   ;;
14336
14337 aix[4-9]*)
14338   version_type=linux # correct to gnu/linux during the next big refactor
14339   need_lib_prefix=no
14340   need_version=no
14341   hardcode_into_libs=yes
14342   if test "$host_cpu" = ia64; then
14343     # AIX 5 supports IA64
14344     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14345     shlibpath_var=LD_LIBRARY_PATH
14346   else
14347     # With GCC up to 2.95.x, collect2 would create an import file
14348     # for dependence libraries.  The import file would start with
14349     # the line `#! .'.  This would cause the generated library to
14350     # depend on `.', always an invalid library.  This was fixed in
14351     # development snapshots of GCC prior to 3.0.
14352     case $host_os in
14353       aix4 | aix4.[01] | aix4.[01].*)
14354       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14355            echo ' yes '
14356            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14357         :
14358       else
14359         can_build_shared=no
14360       fi
14361       ;;
14362     esac
14363     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14364     # soname into executable. Probably we can add versioning support to
14365     # collect2, so additional links can be useful in future.
14366     if test "$aix_use_runtimelinking" = yes; then
14367       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14368       # instead of lib<name>.a to let people know that these are not
14369       # typical AIX shared libraries.
14370       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371     else
14372       # We preserve .a as extension for shared libraries through AIX4.2
14373       # and later when we are not doing run time linking.
14374       library_names_spec='${libname}${release}.a $libname.a'
14375       soname_spec='${libname}${release}${shared_ext}$major'
14376     fi
14377     shlibpath_var=LIBPATH
14378   fi
14379   ;;
14380
14381 amigaos*)
14382   case $host_cpu in
14383   powerpc)
14384     # Since July 2007 AmigaOS4 officially supports .so libraries.
14385     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14387     ;;
14388   m68k)
14389     library_names_spec='$libname.ixlibrary $libname.a'
14390     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14391     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'
14392     ;;
14393   esac
14394   ;;
14395
14396 beos*)
14397   library_names_spec='${libname}${shared_ext}'
14398   dynamic_linker="$host_os ld.so"
14399   shlibpath_var=LIBRARY_PATH
14400   ;;
14401
14402 bsdi[45]*)
14403   version_type=linux # correct to gnu/linux during the next big refactor
14404   need_version=no
14405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406   soname_spec='${libname}${release}${shared_ext}$major'
14407   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14408   shlibpath_var=LD_LIBRARY_PATH
14409   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14410   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14411   # the default ld.so.conf also contains /usr/contrib/lib and
14412   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14413   # libtool to hard-code these into programs
14414   ;;
14415
14416 cygwin* | mingw* | pw32* | cegcc*)
14417   version_type=windows
14418   shrext_cmds=".dll"
14419   need_version=no
14420   need_lib_prefix=no
14421
14422   case $GCC,$cc_basename in
14423   yes,*)
14424     # gcc
14425     library_names_spec='$libname.dll.a'
14426     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14427     postinstall_cmds='base_file=`basename \${file}`~
14428       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14429       dldir=$destdir/`dirname \$dlpath`~
14430       test -d \$dldir || mkdir -p \$dldir~
14431       $install_prog $dir/$dlname \$dldir/$dlname~
14432       chmod a+x \$dldir/$dlname~
14433       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14434         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14435       fi'
14436     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14437       dlpath=$dir/\$dldll~
14438        $RM \$dlpath'
14439     shlibpath_overrides_runpath=yes
14440
14441     case $host_os in
14442     cygwin*)
14443       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14444       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445
14446       ;;
14447     mingw* | cegcc*)
14448       # MinGW DLLs use traditional 'lib' prefix
14449       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14450       ;;
14451     pw32*)
14452       # pw32 DLLs use 'pw' prefix rather than 'lib'
14453       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14454       ;;
14455     esac
14456     dynamic_linker='Win32 ld.exe'
14457     ;;
14458
14459   *,cl*)
14460     # Native MSVC
14461     libname_spec='$name'
14462     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14463     library_names_spec='${libname}.dll.lib'
14464
14465     case $build_os in
14466     mingw*)
14467       sys_lib_search_path_spec=
14468       lt_save_ifs=$IFS
14469       IFS=';'
14470       for lt_path in $LIB
14471       do
14472         IFS=$lt_save_ifs
14473         # Let DOS variable expansion print the short 8.3 style file name.
14474         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14475         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14476       done
14477       IFS=$lt_save_ifs
14478       # Convert to MSYS style.
14479       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14480       ;;
14481     cygwin*)
14482       # Convert to unix form, then to dos form, then back to unix form
14483       # but this time dos style (no spaces!) so that the unix form looks
14484       # like /cygdrive/c/PROGRA~1:/cygdr...
14485       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14486       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14487       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14488       ;;
14489     *)
14490       sys_lib_search_path_spec="$LIB"
14491       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14492         # It is most probably a Windows format PATH.
14493         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14494       else
14495         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14496       fi
14497       # FIXME: find the short name or the path components, as spaces are
14498       # common. (e.g. "Program Files" -> "PROGRA~1")
14499       ;;
14500     esac
14501
14502     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14503     postinstall_cmds='base_file=`basename \${file}`~
14504       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14505       dldir=$destdir/`dirname \$dlpath`~
14506       test -d \$dldir || mkdir -p \$dldir~
14507       $install_prog $dir/$dlname \$dldir/$dlname'
14508     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14509       dlpath=$dir/\$dldll~
14510        $RM \$dlpath'
14511     shlibpath_overrides_runpath=yes
14512     dynamic_linker='Win32 link.exe'
14513     ;;
14514
14515   *)
14516     # Assume MSVC wrapper
14517     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14518     dynamic_linker='Win32 ld.exe'
14519     ;;
14520   esac
14521   # FIXME: first we should search . and the directory the executable is in
14522   shlibpath_var=PATH
14523   ;;
14524
14525 darwin* | rhapsody*)
14526   dynamic_linker="$host_os dyld"
14527   version_type=darwin
14528   need_lib_prefix=no
14529   need_version=no
14530   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14531   soname_spec='${libname}${release}${major}$shared_ext'
14532   shlibpath_overrides_runpath=yes
14533   shlibpath_var=DYLD_LIBRARY_PATH
14534   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14535
14536   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14537   ;;
14538
14539 dgux*)
14540   version_type=linux # correct to gnu/linux during the next big refactor
14541   need_lib_prefix=no
14542   need_version=no
14543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14544   soname_spec='${libname}${release}${shared_ext}$major'
14545   shlibpath_var=LD_LIBRARY_PATH
14546   ;;
14547
14548 freebsd* | dragonfly*)
14549   # DragonFly does not have aout.  When/if they implement a new
14550   # versioning mechanism, adjust this.
14551   if test -x /usr/bin/objformat; then
14552     objformat=`/usr/bin/objformat`
14553   else
14554     case $host_os in
14555     freebsd[23].*) objformat=aout ;;
14556     *) objformat=elf ;;
14557     esac
14558   fi
14559   version_type=freebsd-$objformat
14560   case $version_type in
14561     freebsd-elf*)
14562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14563       need_version=no
14564       need_lib_prefix=no
14565       ;;
14566     freebsd-*)
14567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14568       need_version=yes
14569       ;;
14570   esac
14571   shlibpath_var=LD_LIBRARY_PATH
14572   case $host_os in
14573   freebsd2.*)
14574     shlibpath_overrides_runpath=yes
14575     ;;
14576   freebsd3.[01]* | freebsdelf3.[01]*)
14577     shlibpath_overrides_runpath=yes
14578     hardcode_into_libs=yes
14579     ;;
14580   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14581   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14582     shlibpath_overrides_runpath=no
14583     hardcode_into_libs=yes
14584     ;;
14585   *) # from 4.6 on, and DragonFly
14586     shlibpath_overrides_runpath=yes
14587     hardcode_into_libs=yes
14588     ;;
14589   esac
14590   ;;
14591
14592 haiku*)
14593   version_type=linux # correct to gnu/linux during the next big refactor
14594   need_lib_prefix=no
14595   need_version=no
14596   dynamic_linker="$host_os runtime_loader"
14597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14598   soname_spec='${libname}${release}${shared_ext}$major'
14599   shlibpath_var=LIBRARY_PATH
14600   shlibpath_overrides_runpath=yes
14601   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14602   hardcode_into_libs=yes
14603   ;;
14604
14605 hpux9* | hpux10* | hpux11*)
14606   # Give a soname corresponding to the major version so that dld.sl refuses to
14607   # link against other versions.
14608   version_type=sunos
14609   need_lib_prefix=no
14610   need_version=no
14611   case $host_cpu in
14612   ia64*)
14613     shrext_cmds='.so'
14614     hardcode_into_libs=yes
14615     dynamic_linker="$host_os dld.so"
14616     shlibpath_var=LD_LIBRARY_PATH
14617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619     soname_spec='${libname}${release}${shared_ext}$major'
14620     if test "X$HPUX_IA64_MODE" = X32; then
14621       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14622     else
14623       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14624     fi
14625     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14626     ;;
14627   hppa*64*)
14628     shrext_cmds='.sl'
14629     hardcode_into_libs=yes
14630     dynamic_linker="$host_os dld.sl"
14631     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634     soname_spec='${libname}${release}${shared_ext}$major'
14635     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14637     ;;
14638   *)
14639     shrext_cmds='.sl'
14640     dynamic_linker="$host_os dld.sl"
14641     shlibpath_var=SHLIB_PATH
14642     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644     soname_spec='${libname}${release}${shared_ext}$major'
14645     ;;
14646   esac
14647   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14648   postinstall_cmds='chmod 555 $lib'
14649   # or fails outright, so override atomically:
14650   install_override_mode=555
14651   ;;
14652
14653 interix[3-9]*)
14654   version_type=linux # correct to gnu/linux during the next big refactor
14655   need_lib_prefix=no
14656   need_version=no
14657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14658   soname_spec='${libname}${release}${shared_ext}$major'
14659   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   shlibpath_overrides_runpath=no
14662   hardcode_into_libs=yes
14663   ;;
14664
14665 irix5* | irix6* | nonstopux*)
14666   case $host_os in
14667     nonstopux*) version_type=nonstopux ;;
14668     *)
14669         if test "$lt_cv_prog_gnu_ld" = yes; then
14670                 version_type=linux # correct to gnu/linux during the next big refactor
14671         else
14672                 version_type=irix
14673         fi ;;
14674   esac
14675   need_lib_prefix=no
14676   need_version=no
14677   soname_spec='${libname}${release}${shared_ext}$major'
14678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14679   case $host_os in
14680   irix5* | nonstopux*)
14681     libsuff= shlibsuff=
14682     ;;
14683   *)
14684     case $LD in # libtool.m4 will add one of these switches to LD
14685     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14686       libsuff= shlibsuff= libmagic=32-bit;;
14687     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14688       libsuff=32 shlibsuff=N32 libmagic=N32;;
14689     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14690       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14691     *) libsuff= shlibsuff= libmagic=never-match;;
14692     esac
14693     ;;
14694   esac
14695   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14696   shlibpath_overrides_runpath=no
14697   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14698   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14699   hardcode_into_libs=yes
14700   ;;
14701
14702 # No shared lib support for Linux oldld, aout, or coff.
14703 linux*oldld* | linux*aout* | linux*coff*)
14704   dynamic_linker=no
14705   ;;
14706
14707 # This must be glibc/ELF.
14708 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14709   version_type=linux # correct to gnu/linux during the next big refactor
14710   need_lib_prefix=no
14711   need_version=no
14712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713   soname_spec='${libname}${release}${shared_ext}$major'
14714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14715   shlibpath_var=LD_LIBRARY_PATH
14716   shlibpath_overrides_runpath=no
14717
14718   # Some binutils ld are patched to set DT_RUNPATH
14719   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14720   $as_echo_n "(cached) " >&6
14721 else
14722   lt_cv_shlibpath_overrides_runpath=no
14723     save_LDFLAGS=$LDFLAGS
14724     save_libdir=$libdir
14725     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14726          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h.  */
14729
14730 int
14731 main ()
14732 {
14733
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 if ac_fn_cxx_try_link "$LINENO"; then :
14739   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14740   lt_cv_shlibpath_overrides_runpath=yes
14741 fi
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext \
14744     conftest$ac_exeext conftest.$ac_ext
14745     LDFLAGS=$save_LDFLAGS
14746     libdir=$save_libdir
14747
14748 fi
14749
14750   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14751
14752   # This implies no fast_install, which is unacceptable.
14753   # Some rework will be needed to allow for fast_install
14754   # before this can be enabled.
14755   hardcode_into_libs=yes
14756
14757   # Append ld.so.conf contents to the search path
14758   if test -f /etc/ld.so.conf; then
14759     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' ' '`
14760     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14761   fi
14762
14763   # We used to test for /lib/ld.so.1 and disable shared libraries on
14764   # powerpc, because MkLinux only supported shared libraries with the
14765   # GNU dynamic linker.  Since this was broken with cross compilers,
14766   # most powerpc-linux boxes support dynamic linking these days and
14767   # people can always --disable-shared, the test was removed, and we
14768   # assume the GNU/Linux dynamic linker is in use.
14769   dynamic_linker='GNU/Linux ld.so'
14770   ;;
14771
14772 netbsdelf*-gnu)
14773   version_type=linux
14774   need_lib_prefix=no
14775   need_version=no
14776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14777   soname_spec='${libname}${release}${shared_ext}$major'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=no
14780   hardcode_into_libs=yes
14781   dynamic_linker='NetBSD ld.elf_so'
14782   ;;
14783
14784 netbsd*)
14785   version_type=sunos
14786   need_lib_prefix=no
14787   need_version=no
14788   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14790     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14791     dynamic_linker='NetBSD (a.out) ld.so'
14792   else
14793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14794     soname_spec='${libname}${release}${shared_ext}$major'
14795     dynamic_linker='NetBSD ld.elf_so'
14796   fi
14797   shlibpath_var=LD_LIBRARY_PATH
14798   shlibpath_overrides_runpath=yes
14799   hardcode_into_libs=yes
14800   ;;
14801
14802 newsos6)
14803   version_type=linux # correct to gnu/linux during the next big refactor
14804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805   shlibpath_var=LD_LIBRARY_PATH
14806   shlibpath_overrides_runpath=yes
14807   ;;
14808
14809 *nto* | *qnx*)
14810   version_type=qnx
14811   need_lib_prefix=no
14812   need_version=no
14813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814   soname_spec='${libname}${release}${shared_ext}$major'
14815   shlibpath_var=LD_LIBRARY_PATH
14816   shlibpath_overrides_runpath=no
14817   hardcode_into_libs=yes
14818   dynamic_linker='ldqnx.so'
14819   ;;
14820
14821 openbsd*)
14822   version_type=sunos
14823   sys_lib_dlsearch_path_spec="/usr/lib"
14824   need_lib_prefix=no
14825   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14826   case $host_os in
14827     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14828     *)                          need_version=no  ;;
14829   esac
14830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14831   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14832   shlibpath_var=LD_LIBRARY_PATH
14833   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14834     case $host_os in
14835       openbsd2.[89] | openbsd2.[89].*)
14836         shlibpath_overrides_runpath=no
14837         ;;
14838       *)
14839         shlibpath_overrides_runpath=yes
14840         ;;
14841       esac
14842   else
14843     shlibpath_overrides_runpath=yes
14844   fi
14845   ;;
14846
14847 os2*)
14848   libname_spec='$name'
14849   shrext_cmds=".dll"
14850   need_lib_prefix=no
14851   library_names_spec='$libname${shared_ext} $libname.a'
14852   dynamic_linker='OS/2 ld.exe'
14853   shlibpath_var=LIBPATH
14854   ;;
14855
14856 osf3* | osf4* | osf5*)
14857   version_type=osf
14858   need_lib_prefix=no
14859   need_version=no
14860   soname_spec='${libname}${release}${shared_ext}$major'
14861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862   shlibpath_var=LD_LIBRARY_PATH
14863   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14864   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14865   ;;
14866
14867 rdos*)
14868   dynamic_linker=no
14869   ;;
14870
14871 solaris*)
14872   version_type=linux # correct to gnu/linux during the next big refactor
14873   need_lib_prefix=no
14874   need_version=no
14875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876   soname_spec='${libname}${release}${shared_ext}$major'
14877   shlibpath_var=LD_LIBRARY_PATH
14878   shlibpath_overrides_runpath=yes
14879   hardcode_into_libs=yes
14880   # ldd complains unless libraries are executable
14881   postinstall_cmds='chmod +x $lib'
14882   ;;
14883
14884 sunos4*)
14885   version_type=sunos
14886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14887   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14888   shlibpath_var=LD_LIBRARY_PATH
14889   shlibpath_overrides_runpath=yes
14890   if test "$with_gnu_ld" = yes; then
14891     need_lib_prefix=no
14892   fi
14893   need_version=yes
14894   ;;
14895
14896 sysv4 | sysv4.3*)
14897   version_type=linux # correct to gnu/linux during the next big refactor
14898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899   soname_spec='${libname}${release}${shared_ext}$major'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   case $host_vendor in
14902     sni)
14903       shlibpath_overrides_runpath=no
14904       need_lib_prefix=no
14905       runpath_var=LD_RUN_PATH
14906       ;;
14907     siemens)
14908       need_lib_prefix=no
14909       ;;
14910     motorola)
14911       need_lib_prefix=no
14912       need_version=no
14913       shlibpath_overrides_runpath=no
14914       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14915       ;;
14916   esac
14917   ;;
14918
14919 sysv4*MP*)
14920   if test -d /usr/nec ;then
14921     version_type=linux # correct to gnu/linux during the next big refactor
14922     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14923     soname_spec='$libname${shared_ext}.$major'
14924     shlibpath_var=LD_LIBRARY_PATH
14925   fi
14926   ;;
14927
14928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14929   version_type=freebsd-elf
14930   need_lib_prefix=no
14931   need_version=no
14932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14933   soname_spec='${libname}${release}${shared_ext}$major'
14934   shlibpath_var=LD_LIBRARY_PATH
14935   shlibpath_overrides_runpath=yes
14936   hardcode_into_libs=yes
14937   if test "$with_gnu_ld" = yes; then
14938     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14939   else
14940     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14941     case $host_os in
14942       sco3.2v5*)
14943         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14944         ;;
14945     esac
14946   fi
14947   sys_lib_dlsearch_path_spec='/usr/lib'
14948   ;;
14949
14950 tpf*)
14951   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14952   version_type=linux # correct to gnu/linux during the next big refactor
14953   need_lib_prefix=no
14954   need_version=no
14955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   shlibpath_overrides_runpath=no
14958   hardcode_into_libs=yes
14959   ;;
14960
14961 uts4*)
14962   version_type=linux # correct to gnu/linux during the next big refactor
14963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964   soname_spec='${libname}${release}${shared_ext}$major'
14965   shlibpath_var=LD_LIBRARY_PATH
14966   ;;
14967
14968 *)
14969   dynamic_linker=no
14970   ;;
14971 esac
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14973 $as_echo "$dynamic_linker" >&6; }
14974 test "$dynamic_linker" = no && can_build_shared=no
14975
14976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14977 if test "$GCC" = yes; then
14978   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14979 fi
14980
14981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14982   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14983 fi
14984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14985   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14986 fi
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15026 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15027 hardcode_action_CXX=
15028 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15029    test -n "$runpath_var_CXX" ||
15030    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15031
15032   # We can hardcode non-existent directories.
15033   if test "$hardcode_direct_CXX" != no &&
15034      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15035      # have to relink, otherwise we might link with an installed library
15036      # when we should be linking with a yet-to-be-installed one
15037      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15038      test "$hardcode_minus_L_CXX" != no; then
15039     # Linking always hardcodes the temporary library directory.
15040     hardcode_action_CXX=relink
15041   else
15042     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15043     hardcode_action_CXX=immediate
15044   fi
15045 else
15046   # We cannot hardcode anything, or else we can only hardcode existing
15047   # directories.
15048   hardcode_action_CXX=unsupported
15049 fi
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15051 $as_echo "$hardcode_action_CXX" >&6; }
15052
15053 if test "$hardcode_action_CXX" = relink ||
15054    test "$inherit_rpath_CXX" = yes; then
15055   # Fast installation is not supported
15056   enable_fast_install=no
15057 elif test "$shlibpath_overrides_runpath" = yes ||
15058      test "$enable_shared" = no; then
15059   # Fast installation is not necessary
15060   enable_fast_install=needless
15061 fi
15062
15063
15064
15065
15066
15067
15068
15069   fi # test -n "$compiler"
15070
15071   CC=$lt_save_CC
15072   CFLAGS=$lt_save_CFLAGS
15073   LDCXX=$LD
15074   LD=$lt_save_LD
15075   GCC=$lt_save_GCC
15076   with_gnu_ld=$lt_save_with_gnu_ld
15077   lt_cv_path_LDCXX=$lt_cv_path_LD
15078   lt_cv_path_LD=$lt_save_path_LD
15079   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15080   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15081 fi # test "$_lt_caught_CXX_error" != yes
15082
15083 ac_ext=cpp
15084 ac_cpp='$CXXCPP $CPPFLAGS'
15085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103         ac_config_commands="$ac_config_commands libtool"
15104
15105
15106
15107
15108 # Only expand once:
15109
15110
15111
15112 # TODO(chandlerc@google.com): Currently we aren't running the Python tests
15113 # against the interpreter detected by AM_PATH_PYTHON, and so we condition
15114 # HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
15115 # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
15116 # hashbang.
15117 PYTHON=  # We *do not* allow the user to specify a python interpreter
15118 # Extract the first word of "python", so it can be a program name with args.
15119 set dummy python; ac_word=$2
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15121 $as_echo_n "checking for $ac_word... " >&6; }
15122 if ${ac_cv_path_PYTHON+:} false; then :
15123   $as_echo_n "(cached) " >&6
15124 else
15125   case $PYTHON in
15126   [\\/]* | ?:[\\/]*)
15127   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15128   ;;
15129   *)
15130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15131 for as_dir in $PATH
15132 do
15133   IFS=$as_save_IFS
15134   test -z "$as_dir" && as_dir=.
15135     for ac_exec_ext in '' $ac_executable_extensions; do
15136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15139     break 2
15140   fi
15141 done
15142   done
15143 IFS=$as_save_IFS
15144
15145   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
15146   ;;
15147 esac
15148 fi
15149 PYTHON=$ac_cv_path_PYTHON
15150 if test -n "$PYTHON"; then
15151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15152 $as_echo "$PYTHON" >&6; }
15153 else
15154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "no" >&6; }
15156 fi
15157
15158
15159 if test "$PYTHON" != ":"; then :
15160   prog="import sys
15161 # split strings by '.' and convert to numeric.  Append some zeros
15162 # because we need at least 4 digits for the hex conversion.
15163 # map returns an iterator in Python 3.0 and a list in 2.x
15164 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
15165 minverhex = 0
15166 # xrange is not present in Python 3.0 and range returns an iterator
15167 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15168 sys.exit(sys.hexversion < minverhex)"
15169   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15170    ($PYTHON -c "$prog") >&5 2>&5
15171    ac_status=$?
15172    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173    (exit $ac_status); }; then :
15174   :
15175 else
15176   PYTHON=":"
15177 fi
15178 fi
15179  if test "$PYTHON" != ":"; then
15180   HAVE_PYTHON_TRUE=
15181   HAVE_PYTHON_FALSE='#'
15182 else
15183   HAVE_PYTHON_TRUE='#'
15184   HAVE_PYTHON_FALSE=
15185 fi
15186
15187
15188 # Configure pthreads.
15189
15190 # Check whether --with-pthreads was given.
15191 if test "${with_pthreads+set}" = set; then :
15192   withval=$with_pthreads; with_pthreads=$withval
15193 else
15194   with_pthreads=check
15195 fi
15196
15197
15198 have_pthreads=no
15199 if test "x$with_pthreads" != "xno"; then :
15200
15201
15202
15203 ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209 acx_pthread_ok=no
15210
15211 # We used to check for pthread.h first, but this fails if pthread.h
15212 # requires special compiler flags (e.g. on True64 or Sequent).
15213 # It gets checked for in the link test anyway.
15214
15215 # First of all, check if the user has set any of the PTHREAD_LIBS,
15216 # etcetera environment variables, and if threads linking works using
15217 # them:
15218 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15219         save_CFLAGS="$CFLAGS"
15220         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15221         save_LIBS="$LIBS"
15222         LIBS="$PTHREAD_LIBS $LIBS"
15223         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15224 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15225         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h.  */
15227
15228 /* Override any GCC internal prototype to avoid an error.
15229    Use char because int might match the return type of a GCC
15230    builtin and then its argument prototype would still apply.  */
15231 #ifdef __cplusplus
15232 extern "C"
15233 #endif
15234 char pthread_join ();
15235 int
15236 main ()
15237 {
15238 return pthread_join ();
15239   ;
15240   return 0;
15241 }
15242 _ACEOF
15243 if ac_fn_c_try_link "$LINENO"; then :
15244   acx_pthread_ok=yes
15245 fi
15246 rm -f core conftest.err conftest.$ac_objext \
15247     conftest$ac_exeext conftest.$ac_ext
15248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15249 $as_echo "$acx_pthread_ok" >&6; }
15250         if test x"$acx_pthread_ok" = xno; then
15251                 PTHREAD_LIBS=""
15252                 PTHREAD_CFLAGS=""
15253         fi
15254         LIBS="$save_LIBS"
15255         CFLAGS="$save_CFLAGS"
15256 fi
15257
15258 # We must check for the threads library under a number of different
15259 # names; the ordering is very important because some systems
15260 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15261 # libraries is broken (non-POSIX).
15262
15263 # Create a list of thread flags to try.  Items starting with a "-" are
15264 # C compiler flags, and other items are library names, except for "none"
15265 # which indicates that we try without any flags at all, and "pthread-config"
15266 # which is a program returning the flags for the Pth emulation library.
15267
15268 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15269
15270 # The ordering *is* (sometimes) important.  Some notes on the
15271 # individual items follow:
15272
15273 # pthreads: AIX (must check this before -lpthread)
15274 # none: in case threads are in libc; should be tried before -Kthread and
15275 #       other compiler flags to prevent continual compiler warnings
15276 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15277 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15278 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15279 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15280 # -pthreads: Solaris/gcc
15281 # -mthreads: Mingw32/gcc, Lynx/gcc
15282 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15283 #      doesn't hurt to check since this sometimes defines pthreads too;
15284 #      also defines -D_REENTRANT)
15285 #      ... -mt is also the pthreads flag for HP/aCC
15286 # pthread: Linux, etcetera
15287 # --thread-safe: KAI C++
15288 # pthread-config: use pthread-config program (for GNU Pth library)
15289
15290 case "${host_cpu}-${host_os}" in
15291         *solaris*)
15292
15293         # On Solaris (at least, for some versions), libc contains stubbed
15294         # (non-functional) versions of the pthreads routines, so link-based
15295         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15296         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15297         # a function called by this macro, so we could check for that, but
15298         # who knows whether they'll stub that too in a future libc.)  So,
15299         # we'll just look for -pthreads and -lpthread first:
15300
15301         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15302         ;;
15303 esac
15304
15305 if test x"$acx_pthread_ok" = xno; then
15306 for flag in $acx_pthread_flags; do
15307
15308         case $flag in
15309                 none)
15310                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15311 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15312                 ;;
15313
15314                 -*)
15315                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15316 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15317                 PTHREAD_CFLAGS="$flag"
15318                 ;;
15319
15320                 pthread-config)
15321                 # Extract the first word of "pthread-config", so it can be a program name with args.
15322 set dummy pthread-config; ac_word=$2
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15324 $as_echo_n "checking for $ac_word... " >&6; }
15325 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15326   $as_echo_n "(cached) " >&6
15327 else
15328   if test -n "$acx_pthread_config"; then
15329   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15330 else
15331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15332 for as_dir in $PATH
15333 do
15334   IFS=$as_save_IFS
15335   test -z "$as_dir" && as_dir=.
15336     for ac_exec_ext in '' $ac_executable_extensions; do
15337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15338     ac_cv_prog_acx_pthread_config="yes"
15339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15340     break 2
15341   fi
15342 done
15343   done
15344 IFS=$as_save_IFS
15345
15346   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15347 fi
15348 fi
15349 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15350 if test -n "$acx_pthread_config"; then
15351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15352 $as_echo "$acx_pthread_config" >&6; }
15353 else
15354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15356 fi
15357
15358
15359                 if test x"$acx_pthread_config" = xno; then continue; fi
15360                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15361                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15362                 ;;
15363
15364                 *)
15365                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15366 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15367                 PTHREAD_LIBS="-l$flag"
15368                 ;;
15369         esac
15370
15371         save_LIBS="$LIBS"
15372         save_CFLAGS="$CFLAGS"
15373         LIBS="$PTHREAD_LIBS $LIBS"
15374         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15375
15376         # Check for various functions.  We must include pthread.h,
15377         # since some functions may be macros.  (On the Sequent, we
15378         # need a special flag -Kthread to make this header compile.)
15379         # We check for pthread_join because it is in -lpthread on IRIX
15380         # while pthread_create is in libc.  We check for pthread_attr_init
15381         # due to DEC craziness with -lpthreads.  We check for
15382         # pthread_cleanup_push because it is one of the few pthread
15383         # functions on Solaris that doesn't have a non-functional libc stub.
15384         # We try pthread_create on general principles.
15385         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h.  */
15387 #include <pthread.h>
15388 int
15389 main ()
15390 {
15391 pthread_t th; pthread_join(th, 0);
15392                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15393                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 if ac_fn_c_try_link "$LINENO"; then :
15399   acx_pthread_ok=yes
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext \
15402     conftest$ac_exeext conftest.$ac_ext
15403
15404         LIBS="$save_LIBS"
15405         CFLAGS="$save_CFLAGS"
15406
15407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15408 $as_echo "$acx_pthread_ok" >&6; }
15409         if test "x$acx_pthread_ok" = xyes; then
15410                 break;
15411         fi
15412
15413         PTHREAD_LIBS=""
15414         PTHREAD_CFLAGS=""
15415 done
15416 fi
15417
15418 # Various other checks:
15419 if test "x$acx_pthread_ok" = xyes; then
15420         save_LIBS="$LIBS"
15421         LIBS="$PTHREAD_LIBS $LIBS"
15422         save_CFLAGS="$CFLAGS"
15423         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15424
15425         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15427 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15428         attr_name=unknown
15429         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15430             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h.  */
15432 #include <pthread.h>
15433 int
15434 main ()
15435 {
15436 int attr=$attr; return attr;
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 if ac_fn_c_try_link "$LINENO"; then :
15442   attr_name=$attr; break
15443 fi
15444 rm -f core conftest.err conftest.$ac_objext \
15445     conftest$ac_exeext conftest.$ac_ext
15446         done
15447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15448 $as_echo "$attr_name" >&6; }
15449         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15450
15451 cat >>confdefs.h <<_ACEOF
15452 #define PTHREAD_CREATE_JOINABLE $attr_name
15453 _ACEOF
15454
15455         fi
15456
15457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15458 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15459         flag=no
15460         case "${host_cpu}-${host_os}" in
15461             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15462             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15463         esac
15464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15465 $as_echo "${flag}" >&6; }
15466         if test "x$flag" != xno; then
15467             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15468         fi
15469
15470         LIBS="$save_LIBS"
15471         CFLAGS="$save_CFLAGS"
15472         # More AIX lossage: must compile with xlc_r or cc_r
15473         if test x"$GCC" != xyes; then
15474           for ac_prog in xlc_r cc_r
15475 do
15476   # Extract the first word of "$ac_prog", so it can be a program name with args.
15477 set dummy $ac_prog; ac_word=$2
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479 $as_echo_n "checking for $ac_word... " >&6; }
15480 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15481   $as_echo_n "(cached) " >&6
15482 else
15483   if test -n "$PTHREAD_CC"; then
15484   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15485 else
15486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487 for as_dir in $PATH
15488 do
15489   IFS=$as_save_IFS
15490   test -z "$as_dir" && as_dir=.
15491     for ac_exec_ext in '' $ac_executable_extensions; do
15492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15493     ac_cv_prog_PTHREAD_CC="$ac_prog"
15494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15495     break 2
15496   fi
15497 done
15498   done
15499 IFS=$as_save_IFS
15500
15501 fi
15502 fi
15503 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15504 if test -n "$PTHREAD_CC"; then
15505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15506 $as_echo "$PTHREAD_CC" >&6; }
15507 else
15508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510 fi
15511
15512
15513   test -n "$PTHREAD_CC" && break
15514 done
15515 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15516
15517         else
15518           PTHREAD_CC=$CC
15519         fi
15520
15521         # The next part tries to detect GCC inconsistency with -shared on some
15522         # architectures and systems. The problem is that in certain
15523         # configurations, when -shared is specified, GCC "forgets" to
15524         # internally use various flags which are still necessary.
15525
15526         #
15527         # Prepare the flags
15528         #
15529         save_CFLAGS="$CFLAGS"
15530         save_LIBS="$LIBS"
15531         save_CC="$CC"
15532
15533         # Try with the flags determined by the earlier checks.
15534         #
15535         # -Wl,-z,defs forces link-time symbol resolution, so that the
15536         # linking checks with -shared actually have any value
15537         #
15538         # FIXME: -fPIC is required for -shared on many architectures,
15539         # so we specify it here, but the right way would probably be to
15540         # properly detect whether it is actually required.
15541         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15542         LIBS="$PTHREAD_LIBS $LIBS"
15543         CC="$PTHREAD_CC"
15544
15545         # In order not to create several levels of indentation, we test
15546         # the value of "$done" until we find the cure or run out of ideas.
15547         done="no"
15548
15549         # First, make sure the CFLAGS we added are actually accepted by our
15550         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
15551         # then we can't do this test.
15552         if test x"$done" = xno; then
15553            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15554 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15555            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h.  */
15557
15558 int
15559 main ()
15560 {
15561
15562   ;
15563   return 0;
15564 }
15565 _ACEOF
15566 if ac_fn_c_try_link "$LINENO"; then :
15567
15568 else
15569   done=yes
15570 fi
15571 rm -f core conftest.err conftest.$ac_objext \
15572     conftest$ac_exeext conftest.$ac_ext
15573
15574            if test "x$done" = xyes ; then
15575               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 $as_echo "no" >&6; }
15577            else
15578               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15579 $as_echo "yes" >&6; }
15580            fi
15581         fi
15582
15583         if test x"$done" = xno; then
15584            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15585 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15586            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h.  */
15588 #include <pthread.h>
15589 int
15590 main ()
15591 {
15592 pthread_t th; pthread_join(th, 0);
15593               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15594               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15595   ;
15596   return 0;
15597 }
15598 _ACEOF
15599 if ac_fn_c_try_link "$LINENO"; then :
15600   done=yes
15601 fi
15602 rm -f core conftest.err conftest.$ac_objext \
15603     conftest$ac_exeext conftest.$ac_ext
15604
15605            if test "x$done" = xyes; then
15606               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607 $as_echo "yes" >&6; }
15608            else
15609               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15610 $as_echo "no" >&6; }
15611            fi
15612         fi
15613
15614         #
15615         # Linux gcc on some architectures such as mips/mipsel forgets
15616         # about -lpthread
15617         #
15618         if test x"$done" = xno; then
15619            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15620 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15621            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15622            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h.  */
15624 #include <pthread.h>
15625 int
15626 main ()
15627 {
15628 pthread_t th; pthread_join(th, 0);
15629               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15630               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15631   ;
15632   return 0;
15633 }
15634 _ACEOF
15635 if ac_fn_c_try_link "$LINENO"; then :
15636   done=yes
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext \
15639     conftest$ac_exeext conftest.$ac_ext
15640
15641            if test "x$done" = xyes; then
15642               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15643 $as_echo "yes" >&6; }
15644               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15645            else
15646               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15647 $as_echo "no" >&6; }
15648            fi
15649         fi
15650         #
15651         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15652         #
15653         if test x"$done" = xno; then
15654            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15655 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15656            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15657            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h.  */
15659 #include <pthread.h>
15660 int
15661 main ()
15662 {
15663 pthread_t th; pthread_join(th, 0);
15664                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15665                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 if ac_fn_c_try_link "$LINENO"; then :
15671   done=yes
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext \
15674     conftest$ac_exeext conftest.$ac_ext
15675
15676            if test "x$done" = xyes; then
15677               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15678 $as_echo "yes" >&6; }
15679               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15680            else
15681               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15683            fi
15684         fi
15685         if test x"$done" = xno; then
15686            # OK, we have run out of ideas
15687            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15688 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15689
15690            # so it's not safe to assume that we may use pthreads
15691            acx_pthread_ok=no
15692         fi
15693
15694         CFLAGS="$save_CFLAGS"
15695         LIBS="$save_LIBS"
15696         CC="$save_CC"
15697 else
15698         PTHREAD_CC="$CC"
15699 fi
15700
15701
15702
15703
15704
15705 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15706 if test x"$acx_pthread_ok" = xyes; then
15707
15708 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15709
15710         :
15711 else
15712         acx_pthread_ok=no
15713         if test "x$with_pthreads" != "xcheck"; then :
15714   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15716 as_fn_error $? "--with-pthreads was specified, but unable to be used
15717 See \`config.log' for more details" "$LINENO" 5; }
15718 fi
15719 fi
15720 ac_ext=cpp
15721 ac_cpp='$CXXCPP $CPPFLAGS'
15722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15725
15726
15727        have_pthreads="$acx_pthread_ok"
15728 fi
15729  if test "x$have_pthreads" == "xyes"; then
15730   HAVE_PTHREADS_TRUE=
15731   HAVE_PTHREADS_FALSE='#'
15732 else
15733   HAVE_PTHREADS_TRUE='#'
15734   HAVE_PTHREADS_FALSE=
15735 fi
15736
15737
15738
15739
15740 # TODO(chandlerc@google.com) Check for the necessary system headers.
15741
15742 # TODO(chandlerc@google.com) Check the types, structures, and other compiler
15743 # and architecture characteristics.
15744
15745 # Output the generated files. No further autoconf macros may be used.
15746 cat >confcache <<\_ACEOF
15747 # This file is a shell script that caches the results of configure
15748 # tests run on this system so they can be shared between configure
15749 # scripts and configure runs, see configure's option --config-cache.
15750 # It is not useful on other systems.  If it contains results you don't
15751 # want to keep, you may remove or edit it.
15752 #
15753 # config.status only pays attention to the cache file if you give it
15754 # the --recheck option to rerun configure.
15755 #
15756 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15757 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15758 # following values.
15759
15760 _ACEOF
15761
15762 # The following way of writing the cache mishandles newlines in values,
15763 # but we know of no workaround that is simple, portable, and efficient.
15764 # So, we kill variables containing newlines.
15765 # Ultrix sh set writes to stderr and can't be redirected directly,
15766 # and sets the high bit in the cache file unless we assign to the vars.
15767 (
15768   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15769     eval ac_val=\$$ac_var
15770     case $ac_val in #(
15771     *${as_nl}*)
15772       case $ac_var in #(
15773       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15775       esac
15776       case $ac_var in #(
15777       _ | IFS | as_nl) ;; #(
15778       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15779       *) { eval $ac_var=; unset $ac_var;} ;;
15780       esac ;;
15781     esac
15782   done
15783
15784   (set) 2>&1 |
15785     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15786     *${as_nl}ac_space=\ *)
15787       # `set' does not quote correctly, so add quotes: double-quote
15788       # substitution turns \\\\ into \\, and sed turns \\ into \.
15789       sed -n \
15790         "s/'/'\\\\''/g;
15791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15792       ;; #(
15793     *)
15794       # `set' quotes correctly as required by POSIX, so do not add quotes.
15795       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15796       ;;
15797     esac |
15798     sort
15799 ) |
15800   sed '
15801      /^ac_cv_env_/b end
15802      t clear
15803      :clear
15804      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15805      t end
15806      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15807      :end' >>confcache
15808 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15809   if test -w "$cache_file"; then
15810     if test "x$cache_file" != "x/dev/null"; then
15811       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15812 $as_echo "$as_me: updating cache $cache_file" >&6;}
15813       if test ! -f "$cache_file" || test -h "$cache_file"; then
15814         cat confcache >"$cache_file"
15815       else
15816         case $cache_file in #(
15817         */* | ?:*)
15818           mv -f confcache "$cache_file"$$ &&
15819           mv -f "$cache_file"$$ "$cache_file" ;; #(
15820         *)
15821           mv -f confcache "$cache_file" ;;
15822         esac
15823       fi
15824     fi
15825   else
15826     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15827 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15828   fi
15829 fi
15830 rm -f confcache
15831
15832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15833 # Let make expand exec_prefix.
15834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15835
15836 DEFS=-DHAVE_CONFIG_H
15837
15838 ac_libobjs=
15839 ac_ltlibobjs=
15840 U=
15841 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15842   # 1. Remove the extension, and $U if already installed.
15843   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15844   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15845   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15846   #    will be set to the directory where LIBOBJS objects are built.
15847   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15848   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15849 done
15850 LIBOBJS=$ac_libobjs
15851
15852 LTLIBOBJS=$ac_ltlibobjs
15853
15854
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15856 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15857    if test -n "$am_sleep_pid"; then
15858      # Hide warnings about reused PIDs.
15859      wait $am_sleep_pid 2>/dev/null
15860    fi
15861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15862 $as_echo "done" >&6; }
15863  if test -n "$EXEEXT"; then
15864   am__EXEEXT_TRUE=
15865   am__EXEEXT_FALSE='#'
15866 else
15867   am__EXEEXT_TRUE='#'
15868   am__EXEEXT_FALSE=
15869 fi
15870
15871 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15872   as_fn_error $? "conditional \"AMDEP\" was never defined.
15873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15874 fi
15875 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15876   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15878 fi
15879 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15880   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15882 fi
15883 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15884   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
15885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15886 fi
15887 if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
15888   as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined.
15889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15890 fi
15891
15892 : "${CONFIG_STATUS=./config.status}"
15893 ac_write_fail=0
15894 ac_clean_files_save=$ac_clean_files
15895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15898 as_write_fail=0
15899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15900 #! $SHELL
15901 # Generated by $as_me.
15902 # Run this file to recreate the current configuration.
15903 # Compiler output produced by configure, useful for debugging
15904 # configure, is in config.log if it exists.
15905
15906 debug=false
15907 ac_cs_recheck=false
15908 ac_cs_silent=false
15909
15910 SHELL=\${CONFIG_SHELL-$SHELL}
15911 export SHELL
15912 _ASEOF
15913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15914 ## -------------------- ##
15915 ## M4sh Initialization. ##
15916 ## -------------------- ##
15917
15918 # Be more Bourne compatible
15919 DUALCASE=1; export DUALCASE # for MKS sh
15920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15921   emulate sh
15922   NULLCMD=:
15923   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15924   # is contrary to our usage.  Disable this feature.
15925   alias -g '${1+"$@"}'='"$@"'
15926   setopt NO_GLOB_SUBST
15927 else
15928   case `(set -o) 2>/dev/null` in #(
15929   *posix*) :
15930     set -o posix ;; #(
15931   *) :
15932      ;;
15933 esac
15934 fi
15935
15936
15937 as_nl='
15938 '
15939 export as_nl
15940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15944 # Prefer a ksh shell builtin over an external printf program on Solaris,
15945 # but without wasting forks for bash or zsh.
15946 if test -z "$BASH_VERSION$ZSH_VERSION" \
15947     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15948   as_echo='print -r --'
15949   as_echo_n='print -rn --'
15950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15951   as_echo='printf %s\n'
15952   as_echo_n='printf %s'
15953 else
15954   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15955     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15956     as_echo_n='/usr/ucb/echo -n'
15957   else
15958     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15959     as_echo_n_body='eval
15960       arg=$1;
15961       case $arg in #(
15962       *"$as_nl"*)
15963         expr "X$arg" : "X\\(.*\\)$as_nl";
15964         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15965       esac;
15966       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15967     '
15968     export as_echo_n_body
15969     as_echo_n='sh -c $as_echo_n_body as_echo'
15970   fi
15971   export as_echo_body
15972   as_echo='sh -c $as_echo_body as_echo'
15973 fi
15974
15975 # The user is always right.
15976 if test "${PATH_SEPARATOR+set}" != set; then
15977   PATH_SEPARATOR=:
15978   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15979     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15980       PATH_SEPARATOR=';'
15981   }
15982 fi
15983
15984
15985 # IFS
15986 # We need space, tab and new line, in precisely that order.  Quoting is
15987 # there to prevent editors from complaining about space-tab.
15988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15989 # splitting by setting IFS to empty value.)
15990 IFS=" ""        $as_nl"
15991
15992 # Find who we are.  Look in the path if we contain no directory separator.
15993 as_myself=
15994 case $0 in #((
15995   *[\\/]* ) as_myself=$0 ;;
15996   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15997 for as_dir in $PATH
15998 do
15999   IFS=$as_save_IFS
16000   test -z "$as_dir" && as_dir=.
16001     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16002   done
16003 IFS=$as_save_IFS
16004
16005      ;;
16006 esac
16007 # We did not find ourselves, most probably we were run as `sh COMMAND'
16008 # in which case we are not to be found in the path.
16009 if test "x$as_myself" = x; then
16010   as_myself=$0
16011 fi
16012 if test ! -f "$as_myself"; then
16013   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16014   exit 1
16015 fi
16016
16017 # Unset variables that we do not need and which cause bugs (e.g. in
16018 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16019 # suppresses any "Segmentation fault" message there.  '((' could
16020 # trigger a bug in pdksh 5.2.14.
16021 for as_var in BASH_ENV ENV MAIL MAILPATH
16022 do eval test x\${$as_var+set} = xset \
16023   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16024 done
16025 PS1='$ '
16026 PS2='> '
16027 PS4='+ '
16028
16029 # NLS nuisances.
16030 LC_ALL=C
16031 export LC_ALL
16032 LANGUAGE=C
16033 export LANGUAGE
16034
16035 # CDPATH.
16036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16037
16038
16039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16040 # ----------------------------------------
16041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16043 # script with STATUS, using 1 if that was 0.
16044 as_fn_error ()
16045 {
16046   as_status=$1; test $as_status -eq 0 && as_status=1
16047   if test "$4"; then
16048     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16049     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16050   fi
16051   $as_echo "$as_me: error: $2" >&2
16052   as_fn_exit $as_status
16053 } # as_fn_error
16054
16055
16056 # as_fn_set_status STATUS
16057 # -----------------------
16058 # Set $? to STATUS, without forking.
16059 as_fn_set_status ()
16060 {
16061   return $1
16062 } # as_fn_set_status
16063
16064 # as_fn_exit STATUS
16065 # -----------------
16066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16067 as_fn_exit ()
16068 {
16069   set +e
16070   as_fn_set_status $1
16071   exit $1
16072 } # as_fn_exit
16073
16074 # as_fn_unset VAR
16075 # ---------------
16076 # Portably unset VAR.
16077 as_fn_unset ()
16078 {
16079   { eval $1=; unset $1;}
16080 }
16081 as_unset=as_fn_unset
16082 # as_fn_append VAR VALUE
16083 # ----------------------
16084 # Append the text in VALUE to the end of the definition contained in VAR. Take
16085 # advantage of any shell optimizations that allow amortized linear growth over
16086 # repeated appends, instead of the typical quadratic growth present in naive
16087 # implementations.
16088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16089   eval 'as_fn_append ()
16090   {
16091     eval $1+=\$2
16092   }'
16093 else
16094   as_fn_append ()
16095   {
16096     eval $1=\$$1\$2
16097   }
16098 fi # as_fn_append
16099
16100 # as_fn_arith ARG...
16101 # ------------------
16102 # Perform arithmetic evaluation on the ARGs, and store the result in the
16103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16104 # must be portable across $(()) and expr.
16105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16106   eval 'as_fn_arith ()
16107   {
16108     as_val=$(( $* ))
16109   }'
16110 else
16111   as_fn_arith ()
16112   {
16113     as_val=`expr "$@" || test $? -eq 1`
16114   }
16115 fi # as_fn_arith
16116
16117
16118 if expr a : '\(a\)' >/dev/null 2>&1 &&
16119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16120   as_expr=expr
16121 else
16122   as_expr=false
16123 fi
16124
16125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16126   as_basename=basename
16127 else
16128   as_basename=false
16129 fi
16130
16131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16132   as_dirname=dirname
16133 else
16134   as_dirname=false
16135 fi
16136
16137 as_me=`$as_basename -- "$0" ||
16138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16139          X"$0" : 'X\(//\)$' \| \
16140          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16141 $as_echo X/"$0" |
16142     sed '/^.*\/\([^/][^/]*\)\/*$/{
16143             s//\1/
16144             q
16145           }
16146           /^X\/\(\/\/\)$/{
16147             s//\1/
16148             q
16149           }
16150           /^X\/\(\/\).*/{
16151             s//\1/
16152             q
16153           }
16154           s/.*/./; q'`
16155
16156 # Avoid depending upon Character Ranges.
16157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16160 as_cr_digits='0123456789'
16161 as_cr_alnum=$as_cr_Letters$as_cr_digits
16162
16163 ECHO_C= ECHO_N= ECHO_T=
16164 case `echo -n x` in #(((((
16165 -n*)
16166   case `echo 'xy\c'` in
16167   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16168   xy)  ECHO_C='\c';;
16169   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16170        ECHO_T=' ';;
16171   esac;;
16172 *)
16173   ECHO_N='-n';;
16174 esac
16175
16176 rm -f conf$$ conf$$.exe conf$$.file
16177 if test -d conf$$.dir; then
16178   rm -f conf$$.dir/conf$$.file
16179 else
16180   rm -f conf$$.dir
16181   mkdir conf$$.dir 2>/dev/null
16182 fi
16183 if (echo >conf$$.file) 2>/dev/null; then
16184   if ln -s conf$$.file conf$$ 2>/dev/null; then
16185     as_ln_s='ln -s'
16186     # ... but there are two gotchas:
16187     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16188     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16189     # In both cases, we have to default to `cp -pR'.
16190     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16191       as_ln_s='cp -pR'
16192   elif ln conf$$.file conf$$ 2>/dev/null; then
16193     as_ln_s=ln
16194   else
16195     as_ln_s='cp -pR'
16196   fi
16197 else
16198   as_ln_s='cp -pR'
16199 fi
16200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16201 rmdir conf$$.dir 2>/dev/null
16202
16203
16204 # as_fn_mkdir_p
16205 # -------------
16206 # Create "$as_dir" as a directory, including parents if necessary.
16207 as_fn_mkdir_p ()
16208 {
16209
16210   case $as_dir in #(
16211   -*) as_dir=./$as_dir;;
16212   esac
16213   test -d "$as_dir" || eval $as_mkdir_p || {
16214     as_dirs=
16215     while :; do
16216       case $as_dir in #(
16217       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16218       *) as_qdir=$as_dir;;
16219       esac
16220       as_dirs="'$as_qdir' $as_dirs"
16221       as_dir=`$as_dirname -- "$as_dir" ||
16222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16223          X"$as_dir" : 'X\(//\)[^/]' \| \
16224          X"$as_dir" : 'X\(//\)$' \| \
16225          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16226 $as_echo X"$as_dir" |
16227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16228             s//\1/
16229             q
16230           }
16231           /^X\(\/\/\)[^/].*/{
16232             s//\1/
16233             q
16234           }
16235           /^X\(\/\/\)$/{
16236             s//\1/
16237             q
16238           }
16239           /^X\(\/\).*/{
16240             s//\1/
16241             q
16242           }
16243           s/.*/./; q'`
16244       test -d "$as_dir" && break
16245     done
16246     test -z "$as_dirs" || eval "mkdir $as_dirs"
16247   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16248
16249
16250 } # as_fn_mkdir_p
16251 if mkdir -p . 2>/dev/null; then
16252   as_mkdir_p='mkdir -p "$as_dir"'
16253 else
16254   test -d ./-p && rmdir ./-p
16255   as_mkdir_p=false
16256 fi
16257
16258
16259 # as_fn_executable_p FILE
16260 # -----------------------
16261 # Test if FILE is an executable regular file.
16262 as_fn_executable_p ()
16263 {
16264   test -f "$1" && test -x "$1"
16265 } # as_fn_executable_p
16266 as_test_x='test -x'
16267 as_executable_p=as_fn_executable_p
16268
16269 # Sed expression to map a string onto a valid CPP name.
16270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16271
16272 # Sed expression to map a string onto a valid variable name.
16273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16274
16275
16276 exec 6>&1
16277 ## ----------------------------------- ##
16278 ## Main body of $CONFIG_STATUS script. ##
16279 ## ----------------------------------- ##
16280 _ASEOF
16281 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16282
16283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284 # Save the log message, to keep $0 and so on meaningful, and to
16285 # report actual input values of CONFIG_FILES etc. instead of their
16286 # values after options handling.
16287 ac_log="
16288 This file was extended by Google C++ Testing Framework $as_me 1.6.0, which was
16289 generated by GNU Autoconf 2.69.  Invocation command line was
16290
16291   CONFIG_FILES    = $CONFIG_FILES
16292   CONFIG_HEADERS  = $CONFIG_HEADERS
16293   CONFIG_LINKS    = $CONFIG_LINKS
16294   CONFIG_COMMANDS = $CONFIG_COMMANDS
16295   $ $0 $@
16296
16297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16298 "
16299
16300 _ACEOF
16301
16302 case $ac_config_files in *"
16303 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16304 esac
16305
16306 case $ac_config_headers in *"
16307 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16308 esac
16309
16310
16311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16312 # Files that config.status was made for.
16313 config_files="$ac_config_files"
16314 config_headers="$ac_config_headers"
16315 config_commands="$ac_config_commands"
16316
16317 _ACEOF
16318
16319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320 ac_cs_usage="\
16321 \`$as_me' instantiates files and other configuration actions
16322 from templates according to the current configuration.  Unless the files
16323 and actions are specified as TAGs, all are instantiated by default.
16324
16325 Usage: $0 [OPTION]... [TAG]...
16326
16327   -h, --help       print this help, then exit
16328   -V, --version    print version number and configuration settings, then exit
16329       --config     print configuration, then exit
16330   -q, --quiet, --silent
16331                    do not print progress messages
16332   -d, --debug      don't remove temporary files
16333       --recheck    update $as_me by reconfiguring in the same conditions
16334       --file=FILE[:TEMPLATE]
16335                    instantiate the configuration file FILE
16336       --header=FILE[:TEMPLATE]
16337                    instantiate the configuration header FILE
16338
16339 Configuration files:
16340 $config_files
16341
16342 Configuration headers:
16343 $config_headers
16344
16345 Configuration commands:
16346 $config_commands
16347
16348 Report bugs to <googletestframework@googlegroups.com>."
16349
16350 _ACEOF
16351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16353 ac_cs_version="\\
16354 Google C++ Testing Framework config.status 1.6.0
16355 configured by $0, generated by GNU Autoconf 2.69,
16356   with options \\"\$ac_cs_config\\"
16357
16358 Copyright (C) 2012 Free Software Foundation, Inc.
16359 This config.status script is free software; the Free Software Foundation
16360 gives unlimited permission to copy, distribute and modify it."
16361
16362 ac_pwd='$ac_pwd'
16363 srcdir='$srcdir'
16364 INSTALL='$INSTALL'
16365 MKDIR_P='$MKDIR_P'
16366 AWK='$AWK'
16367 test -n "\$AWK" || AWK=awk
16368 _ACEOF
16369
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371 # The default lists apply if the user does not specify any file.
16372 ac_need_defaults=:
16373 while test $# != 0
16374 do
16375   case $1 in
16376   --*=?*)
16377     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16378     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16379     ac_shift=:
16380     ;;
16381   --*=)
16382     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16383     ac_optarg=
16384     ac_shift=:
16385     ;;
16386   *)
16387     ac_option=$1
16388     ac_optarg=$2
16389     ac_shift=shift
16390     ;;
16391   esac
16392
16393   case $ac_option in
16394   # Handling of the options.
16395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16396     ac_cs_recheck=: ;;
16397   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16398     $as_echo "$ac_cs_version"; exit ;;
16399   --config | --confi | --conf | --con | --co | --c )
16400     $as_echo "$ac_cs_config"; exit ;;
16401   --debug | --debu | --deb | --de | --d | -d )
16402     debug=: ;;
16403   --file | --fil | --fi | --f )
16404     $ac_shift
16405     case $ac_optarg in
16406     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16407     '') as_fn_error $? "missing file argument" ;;
16408     esac
16409     as_fn_append CONFIG_FILES " '$ac_optarg'"
16410     ac_need_defaults=false;;
16411   --header | --heade | --head | --hea )
16412     $ac_shift
16413     case $ac_optarg in
16414     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16415     esac
16416     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16417     ac_need_defaults=false;;
16418   --he | --h)
16419     # Conflict between --help and --header
16420     as_fn_error $? "ambiguous option: \`$1'
16421 Try \`$0 --help' for more information.";;
16422   --help | --hel | -h )
16423     $as_echo "$ac_cs_usage"; exit ;;
16424   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16425   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16426     ac_cs_silent=: ;;
16427
16428   # This is an error.
16429   -*) as_fn_error $? "unrecognized option: \`$1'
16430 Try \`$0 --help' for more information." ;;
16431
16432   *) as_fn_append ac_config_targets " $1"
16433      ac_need_defaults=false ;;
16434
16435   esac
16436   shift
16437 done
16438
16439 ac_configure_extra_args=
16440
16441 if $ac_cs_silent; then
16442   exec 6>/dev/null
16443   ac_configure_extra_args="$ac_configure_extra_args --silent"
16444 fi
16445
16446 _ACEOF
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448 if \$ac_cs_recheck; then
16449   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16450   shift
16451   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16452   CONFIG_SHELL='$SHELL'
16453   export CONFIG_SHELL
16454   exec "\$@"
16455 fi
16456
16457 _ACEOF
16458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16459 exec 5>>config.log
16460 {
16461   echo
16462   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16463 ## Running $as_me. ##
16464 _ASBOX
16465   $as_echo "$ac_log"
16466 } >&5
16467
16468 _ACEOF
16469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16470 #
16471 # INIT-COMMANDS
16472 #
16473 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16474
16475
16476 # The HP-UX ksh and POSIX shell print the target directory to stdout
16477 # if CDPATH is set.
16478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16479
16480 sed_quote_subst='$sed_quote_subst'
16481 double_quote_subst='$double_quote_subst'
16482 delay_variable_subst='$delay_variable_subst'
16483 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16484 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16485 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16486 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16487 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16488 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16489 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16490 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16491 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16492 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16493 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16494 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16495 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16496 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16497 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16498 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16499 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16500 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16501 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16502 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16503 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16504 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16505 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16506 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16507 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16508 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16509 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16510 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16511 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16512 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16513 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16514 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16515 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16519 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16520 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16521 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16522 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16523 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16524 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16525 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16526 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16527 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16528 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16529 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16530 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16531 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16532 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16533 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16534 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16535 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16536 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16537 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16538 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16539 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"`'
16540 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16541 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16542 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16543 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16544 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16545 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16546 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16547 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16548 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16549 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16550 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16551 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16552 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16553 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16554 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16555 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16556 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16557 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16558 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16559 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16560 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16561 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16562 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16563 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16564 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16565 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16566 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16567 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16568 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16569 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16570 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16571 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16572 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16573 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16574 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16575 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16576 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16577 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16578 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16579 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16580 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16581 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16582 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16583 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16584 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16585 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16586 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16587 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16588 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16589 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16590 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16591 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16592 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16593 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16594 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16595 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16596 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16597 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16598 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16599 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16600 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16601 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16602 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16603 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16604 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16605 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16606 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16607 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16608 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16609 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16610 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16611 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16612 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16613 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16614 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16615 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16616 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16617 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16618 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16619 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16620 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16621 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16622 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16623 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16624 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16625 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16626 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16627 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16628 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16629 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16630 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16631 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16632 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16633 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16634 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16635 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16636 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16637 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16638 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16639 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16640 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16641 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16642 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16643 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16644 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16645 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16646 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16647 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16648 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16649 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16650 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16651 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16652 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16653 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16654 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16655 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16656 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16657 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16658 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16659 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16660 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16661 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16662 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16663 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16664 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16665 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16666 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16667
16668 LTCC='$LTCC'
16669 LTCFLAGS='$LTCFLAGS'
16670 compiler='$compiler_DEFAULT'
16671
16672 # A function that is used when there is no print builtin or printf.
16673 func_fallback_echo ()
16674 {
16675   eval 'cat <<_LTECHO_EOF
16676 \$1
16677 _LTECHO_EOF'
16678 }
16679
16680 # Quote evaled strings.
16681 for var in SHELL \
16682 ECHO \
16683 PATH_SEPARATOR \
16684 SED \
16685 GREP \
16686 EGREP \
16687 FGREP \
16688 LD \
16689 NM \
16690 LN_S \
16691 lt_SP2NL \
16692 lt_NL2SP \
16693 reload_flag \
16694 OBJDUMP \
16695 deplibs_check_method \
16696 file_magic_cmd \
16697 file_magic_glob \
16698 want_nocaseglob \
16699 DLLTOOL \
16700 sharedlib_from_linklib_cmd \
16701 AR \
16702 AR_FLAGS \
16703 archiver_list_spec \
16704 STRIP \
16705 RANLIB \
16706 CC \
16707 CFLAGS \
16708 compiler \
16709 lt_cv_sys_global_symbol_pipe \
16710 lt_cv_sys_global_symbol_to_cdecl \
16711 lt_cv_sys_global_symbol_to_c_name_address \
16712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16713 nm_file_list_spec \
16714 lt_prog_compiler_no_builtin_flag \
16715 lt_prog_compiler_pic \
16716 lt_prog_compiler_wl \
16717 lt_prog_compiler_static \
16718 lt_cv_prog_compiler_c_o \
16719 need_locks \
16720 MANIFEST_TOOL \
16721 DSYMUTIL \
16722 NMEDIT \
16723 LIPO \
16724 OTOOL \
16725 OTOOL64 \
16726 shrext_cmds \
16727 export_dynamic_flag_spec \
16728 whole_archive_flag_spec \
16729 compiler_needs_object \
16730 with_gnu_ld \
16731 allow_undefined_flag \
16732 no_undefined_flag \
16733 hardcode_libdir_flag_spec \
16734 hardcode_libdir_separator \
16735 exclude_expsyms \
16736 include_expsyms \
16737 file_list_spec \
16738 variables_saved_for_relink \
16739 libname_spec \
16740 library_names_spec \
16741 soname_spec \
16742 install_override_mode \
16743 finish_eval \
16744 old_striplib \
16745 striplib \
16746 compiler_lib_search_dirs \
16747 predep_objects \
16748 postdep_objects \
16749 predeps \
16750 postdeps \
16751 compiler_lib_search_path \
16752 LD_CXX \
16753 reload_flag_CXX \
16754 compiler_CXX \
16755 lt_prog_compiler_no_builtin_flag_CXX \
16756 lt_prog_compiler_pic_CXX \
16757 lt_prog_compiler_wl_CXX \
16758 lt_prog_compiler_static_CXX \
16759 lt_cv_prog_compiler_c_o_CXX \
16760 export_dynamic_flag_spec_CXX \
16761 whole_archive_flag_spec_CXX \
16762 compiler_needs_object_CXX \
16763 with_gnu_ld_CXX \
16764 allow_undefined_flag_CXX \
16765 no_undefined_flag_CXX \
16766 hardcode_libdir_flag_spec_CXX \
16767 hardcode_libdir_separator_CXX \
16768 exclude_expsyms_CXX \
16769 include_expsyms_CXX \
16770 file_list_spec_CXX \
16771 compiler_lib_search_dirs_CXX \
16772 predep_objects_CXX \
16773 postdep_objects_CXX \
16774 predeps_CXX \
16775 postdeps_CXX \
16776 compiler_lib_search_path_CXX; do
16777     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16778     *[\\\\\\\`\\"\\\$]*)
16779       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16780       ;;
16781     *)
16782       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16783       ;;
16784     esac
16785 done
16786
16787 # Double-quote double-evaled strings.
16788 for var in reload_cmds \
16789 old_postinstall_cmds \
16790 old_postuninstall_cmds \
16791 old_archive_cmds \
16792 extract_expsyms_cmds \
16793 old_archive_from_new_cmds \
16794 old_archive_from_expsyms_cmds \
16795 archive_cmds \
16796 archive_expsym_cmds \
16797 module_cmds \
16798 module_expsym_cmds \
16799 export_symbols_cmds \
16800 prelink_cmds \
16801 postlink_cmds \
16802 postinstall_cmds \
16803 postuninstall_cmds \
16804 finish_cmds \
16805 sys_lib_search_path_spec \
16806 sys_lib_dlsearch_path_spec \
16807 reload_cmds_CXX \
16808 old_archive_cmds_CXX \
16809 old_archive_from_new_cmds_CXX \
16810 old_archive_from_expsyms_cmds_CXX \
16811 archive_cmds_CXX \
16812 archive_expsym_cmds_CXX \
16813 module_cmds_CXX \
16814 module_expsym_cmds_CXX \
16815 export_symbols_cmds_CXX \
16816 prelink_cmds_CXX \
16817 postlink_cmds_CXX; do
16818     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16819     *[\\\\\\\`\\"\\\$]*)
16820       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16821       ;;
16822     *)
16823       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16824       ;;
16825     esac
16826 done
16827
16828 ac_aux_dir='$ac_aux_dir'
16829 xsi_shell='$xsi_shell'
16830 lt_shell_append='$lt_shell_append'
16831
16832 # See if we are running on zsh, and set the options which allow our
16833 # commands through without removal of \ escapes INIT.
16834 if test -n "\${ZSH_VERSION+set}" ; then
16835    setopt NO_GLOB_SUBST
16836 fi
16837
16838
16839     PACKAGE='$PACKAGE'
16840     VERSION='$VERSION'
16841     TIMESTAMP='$TIMESTAMP'
16842     RM='$RM'
16843     ofile='$ofile'
16844
16845
16846
16847
16848
16849
16850 _ACEOF
16851
16852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16853
16854 # Handling of arguments.
16855 for ac_config_target in $ac_config_targets
16856 do
16857   case $ac_config_target in
16858     "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
16859     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16860     "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
16861     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16862     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16863
16864   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16865   esac
16866 done
16867
16868
16869 # If the user did not use the arguments to specify the items to instantiate,
16870 # then the envvar interface is used.  Set only those that are not.
16871 # We use the long form for the default assignment because of an extremely
16872 # bizarre bug on SunOS 4.1.3.
16873 if $ac_need_defaults; then
16874   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16875   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16876   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16877 fi
16878
16879 # Have a temporary directory for convenience.  Make it in the build tree
16880 # simply because there is no reason against having it here, and in addition,
16881 # creating and moving files from /tmp can sometimes cause problems.
16882 # Hook for its removal unless debugging.
16883 # Note that there is a small window in which the directory will not be cleaned:
16884 # after its creation but before its name has been assigned to `$tmp'.
16885 $debug ||
16886 {
16887   tmp= ac_tmp=
16888   trap 'exit_status=$?
16889   : "${ac_tmp:=$tmp}"
16890   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16891 ' 0
16892   trap 'as_fn_exit 1' 1 2 13 15
16893 }
16894 # Create a (secure) tmp directory for tmp files.
16895
16896 {
16897   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16898   test -d "$tmp"
16899 }  ||
16900 {
16901   tmp=./conf$$-$RANDOM
16902   (umask 077 && mkdir "$tmp")
16903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16904 ac_tmp=$tmp
16905
16906 # Set up the scripts for CONFIG_FILES section.
16907 # No need to generate them if there are no CONFIG_FILES.
16908 # This happens for instance with `./config.status config.h'.
16909 if test -n "$CONFIG_FILES"; then
16910
16911
16912 ac_cr=`echo X | tr X '\015'`
16913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16914 # But we know of no other shell where ac_cr would be empty at this
16915 # point, so we can use a bashism as a fallback.
16916 if test "x$ac_cr" = x; then
16917   eval ac_cr=\$\'\\r\'
16918 fi
16919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16921   ac_cs_awk_cr='\\r'
16922 else
16923   ac_cs_awk_cr=$ac_cr
16924 fi
16925
16926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16927 _ACEOF
16928
16929
16930 {
16931   echo "cat >conf$$subs.awk <<_ACEOF" &&
16932   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16933   echo "_ACEOF"
16934 } >conf$$subs.sh ||
16935   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16937 ac_delim='%!_!# '
16938 for ac_last_try in false false false false false :; do
16939   . ./conf$$subs.sh ||
16940     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16941
16942   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16943   if test $ac_delim_n = $ac_delim_num; then
16944     break
16945   elif $ac_last_try; then
16946     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16947   else
16948     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16949   fi
16950 done
16951 rm -f conf$$subs.sh
16952
16953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16955 _ACEOF
16956 sed -n '
16957 h
16958 s/^/S["/; s/!.*/"]=/
16959 p
16960 g
16961 s/^[^!]*!//
16962 :repl
16963 t repl
16964 s/'"$ac_delim"'$//
16965 t delim
16966 :nl
16967 h
16968 s/\(.\{148\}\)..*/\1/
16969 t more1
16970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16971 p
16972 n
16973 b repl
16974 :more1
16975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16976 p
16977 g
16978 s/.\{148\}//
16979 t nl
16980 :delim
16981 h
16982 s/\(.\{148\}\)..*/\1/
16983 t more2
16984 s/["\\]/\\&/g; s/^/"/; s/$/"/
16985 p
16986 b
16987 :more2
16988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16989 p
16990 g
16991 s/.\{148\}//
16992 t delim
16993 ' <conf$$subs.awk | sed '
16994 /^[^""]/{
16995   N
16996   s/\n//
16997 }
16998 ' >>$CONFIG_STATUS || ac_write_fail=1
16999 rm -f conf$$subs.awk
17000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17001 _ACAWK
17002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17003   for (key in S) S_is_set[key] = 1
17004   FS = "\a"
17005
17006 }
17007 {
17008   line = $ 0
17009   nfields = split(line, field, "@")
17010   substed = 0
17011   len = length(field[1])
17012   for (i = 2; i < nfields; i++) {
17013     key = field[i]
17014     keylen = length(key)
17015     if (S_is_set[key]) {
17016       value = S[key]
17017       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17018       len += length(value) + length(field[++i])
17019       substed = 1
17020     } else
17021       len += 1 + keylen
17022   }
17023
17024   print line
17025 }
17026
17027 _ACAWK
17028 _ACEOF
17029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17031   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17032 else
17033   cat
17034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17035   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17036 _ACEOF
17037
17038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17040 # trailing colons and then remove the whole line if VPATH becomes empty
17041 # (actually we leave an empty line to preserve line numbers).
17042 if test "x$srcdir" = x.; then
17043   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17044 h
17045 s///
17046 s/^/:/
17047 s/[      ]*$/:/
17048 s/:\$(srcdir):/:/g
17049 s/:\${srcdir}:/:/g
17050 s/:@srcdir@:/:/g
17051 s/^:*//
17052 s/:*$//
17053 x
17054 s/\(=[   ]*\).*/\1/
17055 G
17056 s/\n//
17057 s/^[^=]*=[       ]*$//
17058 }'
17059 fi
17060
17061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17062 fi # test -n "$CONFIG_FILES"
17063
17064 # Set up the scripts for CONFIG_HEADERS section.
17065 # No need to generate them if there are no CONFIG_HEADERS.
17066 # This happens for instance with `./config.status Makefile'.
17067 if test -n "$CONFIG_HEADERS"; then
17068 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17069 BEGIN {
17070 _ACEOF
17071
17072 # Transform confdefs.h into an awk script `defines.awk', embedded as
17073 # here-document in config.status, that substitutes the proper values into
17074 # config.h.in to produce config.h.
17075
17076 # Create a delimiter string that does not exist in confdefs.h, to ease
17077 # handling of long lines.
17078 ac_delim='%!_!# '
17079 for ac_last_try in false false :; do
17080   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17081   if test -z "$ac_tt"; then
17082     break
17083   elif $ac_last_try; then
17084     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17085   else
17086     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17087   fi
17088 done
17089
17090 # For the awk script, D is an array of macro values keyed by name,
17091 # likewise P contains macro parameters if any.  Preserve backslash
17092 # newline sequences.
17093
17094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17095 sed -n '
17096 s/.\{148\}/&'"$ac_delim"'/g
17097 t rset
17098 :rset
17099 s/^[     ]*#[    ]*define[       ][      ]*/ /
17100 t def
17101 d
17102 :def
17103 s/\\$//
17104 t bsnl
17105 s/["\\]/\\&/g
17106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17107 D["\1"]=" \3"/p
17108 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17109 d
17110 :bsnl
17111 s/["\\]/\\&/g
17112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17113 D["\1"]=" \3\\\\\\n"\\/p
17114 t cont
17115 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17116 t cont
17117 d
17118 :cont
17119 n
17120 s/.\{148\}/&'"$ac_delim"'/g
17121 t clear
17122 :clear
17123 s/\\$//
17124 t bsnlc
17125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17126 d
17127 :bsnlc
17128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17129 b cont
17130 ' <confdefs.h | sed '
17131 s/'"$ac_delim"'/"\\\
17132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17133
17134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17135   for (key in D) D_is_set[key] = 1
17136   FS = "\a"
17137 }
17138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17139   line = \$ 0
17140   split(line, arg, " ")
17141   if (arg[1] == "#") {
17142     defundef = arg[2]
17143     mac1 = arg[3]
17144   } else {
17145     defundef = substr(arg[1], 2)
17146     mac1 = arg[2]
17147   }
17148   split(mac1, mac2, "(") #)
17149   macro = mac2[1]
17150   prefix = substr(line, 1, index(line, defundef) - 1)
17151   if (D_is_set[macro]) {
17152     # Preserve the white space surrounding the "#".
17153     print prefix "define", macro P[macro] D[macro]
17154     next
17155   } else {
17156     # Replace #undef with comments.  This is necessary, for example,
17157     # in the case of _POSIX_SOURCE, which is predefined and required
17158     # on some systems where configure will not decide to define it.
17159     if (defundef == "undef") {
17160       print "/*", prefix defundef, macro, "*/"
17161       next
17162     }
17163   }
17164 }
17165 { print }
17166 _ACAWK
17167 _ACEOF
17168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17170 fi # test -n "$CONFIG_HEADERS"
17171
17172
17173 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17174 shift
17175 for ac_tag
17176 do
17177   case $ac_tag in
17178   :[FHLC]) ac_mode=$ac_tag; continue;;
17179   esac
17180   case $ac_mode$ac_tag in
17181   :[FHL]*:*);;
17182   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17183   :[FH]-) ac_tag=-:-;;
17184   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17185   esac
17186   ac_save_IFS=$IFS
17187   IFS=:
17188   set x $ac_tag
17189   IFS=$ac_save_IFS
17190   shift
17191   ac_file=$1
17192   shift
17193
17194   case $ac_mode in
17195   :L) ac_source=$1;;
17196   :[FH])
17197     ac_file_inputs=
17198     for ac_f
17199     do
17200       case $ac_f in
17201       -) ac_f="$ac_tmp/stdin";;
17202       *) # Look for the file first in the build tree, then in the source tree
17203          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17204          # because $ac_f cannot contain `:'.
17205          test -f "$ac_f" ||
17206            case $ac_f in
17207            [\\/$]*) false;;
17208            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17209            esac ||
17210            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17211       esac
17212       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17213       as_fn_append ac_file_inputs " '$ac_f'"
17214     done
17215
17216     # Let's still pretend it is `configure' which instantiates (i.e., don't
17217     # use $as_me), people would be surprised to read:
17218     #    /* config.h.  Generated by config.status.  */
17219     configure_input='Generated from '`
17220           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17221         `' by configure.'
17222     if test x"$ac_file" != x-; then
17223       configure_input="$ac_file.  $configure_input"
17224       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17225 $as_echo "$as_me: creating $ac_file" >&6;}
17226     fi
17227     # Neutralize special characters interpreted by sed in replacement strings.
17228     case $configure_input in #(
17229     *\&* | *\|* | *\\* )
17230        ac_sed_conf_input=`$as_echo "$configure_input" |
17231        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17232     *) ac_sed_conf_input=$configure_input;;
17233     esac
17234
17235     case $ac_tag in
17236     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17237       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17238     esac
17239     ;;
17240   esac
17241
17242   ac_dir=`$as_dirname -- "$ac_file" ||
17243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17244          X"$ac_file" : 'X\(//\)[^/]' \| \
17245          X"$ac_file" : 'X\(//\)$' \| \
17246          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17247 $as_echo X"$ac_file" |
17248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17249             s//\1/
17250             q
17251           }
17252           /^X\(\/\/\)[^/].*/{
17253             s//\1/
17254             q
17255           }
17256           /^X\(\/\/\)$/{
17257             s//\1/
17258             q
17259           }
17260           /^X\(\/\).*/{
17261             s//\1/
17262             q
17263           }
17264           s/.*/./; q'`
17265   as_dir="$ac_dir"; as_fn_mkdir_p
17266   ac_builddir=.
17267
17268 case "$ac_dir" in
17269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17270 *)
17271   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17272   # A ".." for each directory in $ac_dir_suffix.
17273   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17274   case $ac_top_builddir_sub in
17275   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17276   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17277   esac ;;
17278 esac
17279 ac_abs_top_builddir=$ac_pwd
17280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17281 # for backward compatibility:
17282 ac_top_builddir=$ac_top_build_prefix
17283
17284 case $srcdir in
17285   .)  # We are building in place.
17286     ac_srcdir=.
17287     ac_top_srcdir=$ac_top_builddir_sub
17288     ac_abs_top_srcdir=$ac_pwd ;;
17289   [\\/]* | ?:[\\/]* )  # Absolute name.
17290     ac_srcdir=$srcdir$ac_dir_suffix;
17291     ac_top_srcdir=$srcdir
17292     ac_abs_top_srcdir=$srcdir ;;
17293   *) # Relative name.
17294     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17295     ac_top_srcdir=$ac_top_build_prefix$srcdir
17296     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17297 esac
17298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17299
17300
17301   case $ac_mode in
17302   :F)
17303   #
17304   # CONFIG_FILE
17305   #
17306
17307   case $INSTALL in
17308   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17309   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17310   esac
17311   ac_MKDIR_P=$MKDIR_P
17312   case $MKDIR_P in
17313   [\\/$]* | ?:[\\/]* ) ;;
17314   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17315   esac
17316 _ACEOF
17317
17318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17319 # If the template does not know about datarootdir, expand it.
17320 # FIXME: This hack should be removed a few years after 2.60.
17321 ac_datarootdir_hack=; ac_datarootdir_seen=
17322 ac_sed_dataroot='
17323 /datarootdir/ {
17324   p
17325   q
17326 }
17327 /@datadir@/p
17328 /@docdir@/p
17329 /@infodir@/p
17330 /@localedir@/p
17331 /@mandir@/p'
17332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17333 *datarootdir*) ac_datarootdir_seen=yes;;
17334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17335   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17337 _ACEOF
17338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17339   ac_datarootdir_hack='
17340   s&@datadir@&$datadir&g
17341   s&@docdir@&$docdir&g
17342   s&@infodir@&$infodir&g
17343   s&@localedir@&$localedir&g
17344   s&@mandir@&$mandir&g
17345   s&\\\${datarootdir}&$datarootdir&g' ;;
17346 esac
17347 _ACEOF
17348
17349 # Neutralize VPATH when `$srcdir' = `.'.
17350 # Shell code in configure.ac might set extrasub.
17351 # FIXME: do we really want to maintain this feature?
17352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17353 ac_sed_extra="$ac_vpsub
17354 $extrasub
17355 _ACEOF
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357 :t
17358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17359 s|@configure_input@|$ac_sed_conf_input|;t t
17360 s&@top_builddir@&$ac_top_builddir_sub&;t t
17361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17362 s&@srcdir@&$ac_srcdir&;t t
17363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17364 s&@top_srcdir@&$ac_top_srcdir&;t t
17365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17366 s&@builddir@&$ac_builddir&;t t
17367 s&@abs_builddir@&$ac_abs_builddir&;t t
17368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17369 s&@INSTALL@&$ac_INSTALL&;t t
17370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17371 $ac_datarootdir_hack
17372 "
17373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17374   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17375
17376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17377   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17378   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17379       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17380   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17381 which seems to be undefined.  Please make sure it is defined" >&5
17382 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17383 which seems to be undefined.  Please make sure it is defined" >&2;}
17384
17385   rm -f "$ac_tmp/stdin"
17386   case $ac_file in
17387   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17388   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17389   esac \
17390   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17391  ;;
17392   :H)
17393   #
17394   # CONFIG_HEADER
17395   #
17396   if test x"$ac_file" != x-; then
17397     {
17398       $as_echo "/* $configure_input  */" \
17399       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17400     } >"$ac_tmp/config.h" \
17401       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17402     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17403       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17405     else
17406       rm -f "$ac_file"
17407       mv "$ac_tmp/config.h" "$ac_file" \
17408         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17409     fi
17410   else
17411     $as_echo "/* $configure_input  */" \
17412       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17413       || as_fn_error $? "could not create -" "$LINENO" 5
17414   fi
17415 # Compute "$ac_file"'s index in $config_headers.
17416 _am_arg="$ac_file"
17417 _am_stamp_count=1
17418 for _am_header in $config_headers :; do
17419   case $_am_header in
17420     $_am_arg | $_am_arg:* )
17421       break ;;
17422     * )
17423       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17424   esac
17425 done
17426 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17427 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17428          X"$_am_arg" : 'X\(//\)[^/]' \| \
17429          X"$_am_arg" : 'X\(//\)$' \| \
17430          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17431 $as_echo X"$_am_arg" |
17432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17433             s//\1/
17434             q
17435           }
17436           /^X\(\/\/\)[^/].*/{
17437             s//\1/
17438             q
17439           }
17440           /^X\(\/\/\)$/{
17441             s//\1/
17442             q
17443           }
17444           /^X\(\/\).*/{
17445             s//\1/
17446             q
17447           }
17448           s/.*/./; q'`/stamp-h$_am_stamp_count
17449  ;;
17450
17451   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17452 $as_echo "$as_me: executing $ac_file commands" >&6;}
17453  ;;
17454   esac
17455
17456
17457   case $ac_file$ac_mode in
17458     "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
17459     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17460   # Older Autoconf quotes --file arguments for eval, but not when files
17461   # are listed without --file.  Let's play safe and only enable the eval
17462   # if we detect the quoting.
17463   case $CONFIG_FILES in
17464   *\'*) eval set x "$CONFIG_FILES" ;;
17465   *)   set x $CONFIG_FILES ;;
17466   esac
17467   shift
17468   for mf
17469   do
17470     # Strip MF so we end up with the name of the file.
17471     mf=`echo "$mf" | sed -e 's/:.*$//'`
17472     # Check whether this is an Automake generated Makefile or not.
17473     # We used to match only the files named 'Makefile.in', but
17474     # some people rename them; so instead we look at the file content.
17475     # Grep'ing the first line is not enough: some people post-process
17476     # each Makefile.in and add a new line on top of each file to say so.
17477     # Grep'ing the whole file is not good either: AIX grep has a line
17478     # limit of 2048, but all sed's we know have understand at least 4000.
17479     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17480       dirpart=`$as_dirname -- "$mf" ||
17481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482          X"$mf" : 'X\(//\)[^/]' \| \
17483          X"$mf" : 'X\(//\)$' \| \
17484          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17485 $as_echo X"$mf" |
17486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17487             s//\1/
17488             q
17489           }
17490           /^X\(\/\/\)[^/].*/{
17491             s//\1/
17492             q
17493           }
17494           /^X\(\/\/\)$/{
17495             s//\1/
17496             q
17497           }
17498           /^X\(\/\).*/{
17499             s//\1/
17500             q
17501           }
17502           s/.*/./; q'`
17503     else
17504       continue
17505     fi
17506     # Extract the definition of DEPDIR, am__include, and am__quote
17507     # from the Makefile without running 'make'.
17508     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17509     test -z "$DEPDIR" && continue
17510     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17511     test -z "$am__include" && continue
17512     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17513     # Find all dependency output files, they are included files with
17514     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17515     # simplest approach to changing $(DEPDIR) to its actual value in the
17516     # expansion.
17517     for file in `sed -n "
17518       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17519          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17520       # Make sure the directory exists.
17521       test -f "$dirpart/$file" && continue
17522       fdir=`$as_dirname -- "$file" ||
17523 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17524          X"$file" : 'X\(//\)[^/]' \| \
17525          X"$file" : 'X\(//\)$' \| \
17526          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17527 $as_echo X"$file" |
17528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17529             s//\1/
17530             q
17531           }
17532           /^X\(\/\/\)[^/].*/{
17533             s//\1/
17534             q
17535           }
17536           /^X\(\/\/\)$/{
17537             s//\1/
17538             q
17539           }
17540           /^X\(\/\).*/{
17541             s//\1/
17542             q
17543           }
17544           s/.*/./; q'`
17545       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17546       # echo "creating $dirpart/$file"
17547       echo '# dummy' > "$dirpart/$file"
17548     done
17549   done
17550 }
17551  ;;
17552     "libtool":C)
17553
17554     # See if we are running on zsh, and set the options which allow our
17555     # commands through without removal of \ escapes.
17556     if test -n "${ZSH_VERSION+set}" ; then
17557       setopt NO_GLOB_SUBST
17558     fi
17559
17560     cfgfile="${ofile}T"
17561     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17562     $RM "$cfgfile"
17563
17564     cat <<_LT_EOF >> "$cfgfile"
17565 #! $SHELL
17566
17567 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17568 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17570 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17571 #
17572 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17573 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17574 #                 Foundation, Inc.
17575 #   Written by Gordon Matzigkeit, 1996
17576 #
17577 #   This file is part of GNU Libtool.
17578 #
17579 # GNU Libtool is free software; you can redistribute it and/or
17580 # modify it under the terms of the GNU General Public License as
17581 # published by the Free Software Foundation; either version 2 of
17582 # the License, or (at your option) any later version.
17583 #
17584 # As a special exception to the GNU General Public License,
17585 # if you distribute this file as part of a program or library that
17586 # is built using GNU Libtool, you may include this file under the
17587 # same distribution terms that you use for the rest of that program.
17588 #
17589 # GNU Libtool is distributed in the hope that it will be useful,
17590 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17591 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17592 # GNU General Public License for more details.
17593 #
17594 # You should have received a copy of the GNU General Public License
17595 # along with GNU Libtool; see the file COPYING.  If not, a copy
17596 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17597 # obtained by writing to the Free Software Foundation, Inc.,
17598 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17599
17600
17601 # The names of the tagged configurations supported by this script.
17602 available_tags="CXX "
17603
17604 # ### BEGIN LIBTOOL CONFIG
17605
17606 # Which release of libtool.m4 was used?
17607 macro_version=$macro_version
17608 macro_revision=$macro_revision
17609
17610 # Whether or not to build shared libraries.
17611 build_libtool_libs=$enable_shared
17612
17613 # Whether or not to build static libraries.
17614 build_old_libs=$enable_static
17615
17616 # What type of objects to build.
17617 pic_mode=$pic_mode
17618
17619 # Whether or not to optimize for fast installation.
17620 fast_install=$enable_fast_install
17621
17622 # Shell to use when invoking shell scripts.
17623 SHELL=$lt_SHELL
17624
17625 # An echo program that protects backslashes.
17626 ECHO=$lt_ECHO
17627
17628 # The PATH separator for the build system.
17629 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17630
17631 # The host system.
17632 host_alias=$host_alias
17633 host=$host
17634 host_os=$host_os
17635
17636 # The build system.
17637 build_alias=$build_alias
17638 build=$build
17639 build_os=$build_os
17640
17641 # A sed program that does not truncate output.
17642 SED=$lt_SED
17643
17644 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17645 Xsed="\$SED -e 1s/^X//"
17646
17647 # A grep program that handles long lines.
17648 GREP=$lt_GREP
17649
17650 # An ERE matcher.
17651 EGREP=$lt_EGREP
17652
17653 # A literal string matcher.
17654 FGREP=$lt_FGREP
17655
17656 # A BSD- or MS-compatible name lister.
17657 NM=$lt_NM
17658
17659 # Whether we need soft or hard links.
17660 LN_S=$lt_LN_S
17661
17662 # What is the maximum length of a command?
17663 max_cmd_len=$max_cmd_len
17664
17665 # Object file suffix (normally "o").
17666 objext=$ac_objext
17667
17668 # Executable file suffix (normally "").
17669 exeext=$exeext
17670
17671 # whether the shell understands "unset".
17672 lt_unset=$lt_unset
17673
17674 # turn spaces into newlines.
17675 SP2NL=$lt_lt_SP2NL
17676
17677 # turn newlines into spaces.
17678 NL2SP=$lt_lt_NL2SP
17679
17680 # convert \$build file names to \$host format.
17681 to_host_file_cmd=$lt_cv_to_host_file_cmd
17682
17683 # convert \$build files to toolchain format.
17684 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17685
17686 # An object symbol dumper.
17687 OBJDUMP=$lt_OBJDUMP
17688
17689 # Method to check whether dependent libraries are shared objects.
17690 deplibs_check_method=$lt_deplibs_check_method
17691
17692 # Command to use when deplibs_check_method = "file_magic".
17693 file_magic_cmd=$lt_file_magic_cmd
17694
17695 # How to find potential files when deplibs_check_method = "file_magic".
17696 file_magic_glob=$lt_file_magic_glob
17697
17698 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17699 want_nocaseglob=$lt_want_nocaseglob
17700
17701 # DLL creation program.
17702 DLLTOOL=$lt_DLLTOOL
17703
17704 # Command to associate shared and link libraries.
17705 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17706
17707 # The archiver.
17708 AR=$lt_AR
17709
17710 # Flags to create an archive.
17711 AR_FLAGS=$lt_AR_FLAGS
17712
17713 # How to feed a file listing to the archiver.
17714 archiver_list_spec=$lt_archiver_list_spec
17715
17716 # A symbol stripping program.
17717 STRIP=$lt_STRIP
17718
17719 # Commands used to install an old-style archive.
17720 RANLIB=$lt_RANLIB
17721 old_postinstall_cmds=$lt_old_postinstall_cmds
17722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17723
17724 # Whether to use a lock for old archive extraction.
17725 lock_old_archive_extraction=$lock_old_archive_extraction
17726
17727 # A C compiler.
17728 LTCC=$lt_CC
17729
17730 # LTCC compiler flags.
17731 LTCFLAGS=$lt_CFLAGS
17732
17733 # Take the output of nm and produce a listing of raw symbols and C names.
17734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17735
17736 # Transform the output of nm in a proper C declaration.
17737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17738
17739 # Transform the output of nm in a C name address pair.
17740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17741
17742 # Transform the output of nm in a C name address pair when lib prefix is needed.
17743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17744
17745 # Specify filename containing input files for \$NM.
17746 nm_file_list_spec=$lt_nm_file_list_spec
17747
17748 # The root where to search for dependent libraries,and in which our libraries should be installed.
17749 lt_sysroot=$lt_sysroot
17750
17751 # The name of the directory that contains temporary libtool files.
17752 objdir=$objdir
17753
17754 # Used to examine libraries when file_magic_cmd begins with "file".
17755 MAGIC_CMD=$MAGIC_CMD
17756
17757 # Must we lock files when doing compilation?
17758 need_locks=$lt_need_locks
17759
17760 # Manifest tool.
17761 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17762
17763 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17764 DSYMUTIL=$lt_DSYMUTIL
17765
17766 # Tool to change global to local symbols on Mac OS X.
17767 NMEDIT=$lt_NMEDIT
17768
17769 # Tool to manipulate fat objects and archives on Mac OS X.
17770 LIPO=$lt_LIPO
17771
17772 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17773 OTOOL=$lt_OTOOL
17774
17775 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17776 OTOOL64=$lt_OTOOL64
17777
17778 # Old archive suffix (normally "a").
17779 libext=$libext
17780
17781 # Shared library suffix (normally ".so").
17782 shrext_cmds=$lt_shrext_cmds
17783
17784 # The commands to extract the exported symbol list from a shared archive.
17785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17786
17787 # Variables whose values should be saved in libtool wrapper scripts and
17788 # restored at link time.
17789 variables_saved_for_relink=$lt_variables_saved_for_relink
17790
17791 # Do we need the "lib" prefix for modules?
17792 need_lib_prefix=$need_lib_prefix
17793
17794 # Do we need a version for libraries?
17795 need_version=$need_version
17796
17797 # Library versioning type.
17798 version_type=$version_type
17799
17800 # Shared library runtime path variable.
17801 runpath_var=$runpath_var
17802
17803 # Shared library path variable.
17804 shlibpath_var=$shlibpath_var
17805
17806 # Is shlibpath searched before the hard-coded library search path?
17807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17808
17809 # Format of library name prefix.
17810 libname_spec=$lt_libname_spec
17811
17812 # List of archive names.  First name is the real one, the rest are links.
17813 # The last name is the one that the linker finds with -lNAME
17814 library_names_spec=$lt_library_names_spec
17815
17816 # The coded name of the library, if different from the real name.
17817 soname_spec=$lt_soname_spec
17818
17819 # Permission mode override for installation of shared libraries.
17820 install_override_mode=$lt_install_override_mode
17821
17822 # Command to use after installation of a shared archive.
17823 postinstall_cmds=$lt_postinstall_cmds
17824
17825 # Command to use after uninstallation of a shared archive.
17826 postuninstall_cmds=$lt_postuninstall_cmds
17827
17828 # Commands used to finish a libtool library installation in a directory.
17829 finish_cmds=$lt_finish_cmds
17830
17831 # As "finish_cmds", except a single script fragment to be evaled but
17832 # not shown.
17833 finish_eval=$lt_finish_eval
17834
17835 # Whether we should hardcode library paths into libraries.
17836 hardcode_into_libs=$hardcode_into_libs
17837
17838 # Compile-time system search path for libraries.
17839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17840
17841 # Run-time system search path for libraries.
17842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17843
17844 # Whether dlopen is supported.
17845 dlopen_support=$enable_dlopen
17846
17847 # Whether dlopen of programs is supported.
17848 dlopen_self=$enable_dlopen_self
17849
17850 # Whether dlopen of statically linked programs is supported.
17851 dlopen_self_static=$enable_dlopen_self_static
17852
17853 # Commands to strip libraries.
17854 old_striplib=$lt_old_striplib
17855 striplib=$lt_striplib
17856
17857
17858 # The linker used to build libraries.
17859 LD=$lt_LD
17860
17861 # How to create reloadable object files.
17862 reload_flag=$lt_reload_flag
17863 reload_cmds=$lt_reload_cmds
17864
17865 # Commands used to build an old-style archive.
17866 old_archive_cmds=$lt_old_archive_cmds
17867
17868 # A language specific compiler.
17869 CC=$lt_compiler
17870
17871 # Is the compiler the GNU compiler?
17872 with_gcc=$GCC
17873
17874 # Compiler flag to turn off builtin functions.
17875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17876
17877 # Additional compiler flags for building library objects.
17878 pic_flag=$lt_lt_prog_compiler_pic
17879
17880 # How to pass a linker flag through the compiler.
17881 wl=$lt_lt_prog_compiler_wl
17882
17883 # Compiler flag to prevent dynamic linking.
17884 link_static_flag=$lt_lt_prog_compiler_static
17885
17886 # Does compiler simultaneously support -c and -o options?
17887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17888
17889 # Whether or not to add -lc for building shared libraries.
17890 build_libtool_need_lc=$archive_cmds_need_lc
17891
17892 # Whether or not to disallow shared libs when runtime libs are static.
17893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17894
17895 # Compiler flag to allow reflexive dlopens.
17896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17897
17898 # Compiler flag to generate shared objects directly from archives.
17899 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17900
17901 # Whether the compiler copes with passing no objects directly.
17902 compiler_needs_object=$lt_compiler_needs_object
17903
17904 # Create an old-style archive from a shared archive.
17905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17906
17907 # Create a temporary old-style archive to link instead of a shared archive.
17908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17909
17910 # Commands used to build a shared archive.
17911 archive_cmds=$lt_archive_cmds
17912 archive_expsym_cmds=$lt_archive_expsym_cmds
17913
17914 # Commands used to build a loadable module if different from building
17915 # a shared archive.
17916 module_cmds=$lt_module_cmds
17917 module_expsym_cmds=$lt_module_expsym_cmds
17918
17919 # Whether we are building with GNU ld or not.
17920 with_gnu_ld=$lt_with_gnu_ld
17921
17922 # Flag that allows shared libraries with undefined symbols to be built.
17923 allow_undefined_flag=$lt_allow_undefined_flag
17924
17925 # Flag that enforces no undefined symbols.
17926 no_undefined_flag=$lt_no_undefined_flag
17927
17928 # Flag to hardcode \$libdir into a binary during linking.
17929 # This must work even if \$libdir does not exist
17930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17931
17932 # Whether we need a single "-rpath" flag with a separated argument.
17933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17934
17935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17936 # DIR into the resulting binary.
17937 hardcode_direct=$hardcode_direct
17938
17939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17940 # DIR into the resulting binary and the resulting library dependency is
17941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17942 # library is relocated.
17943 hardcode_direct_absolute=$hardcode_direct_absolute
17944
17945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17946 # into the resulting binary.
17947 hardcode_minus_L=$hardcode_minus_L
17948
17949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17950 # into the resulting binary.
17951 hardcode_shlibpath_var=$hardcode_shlibpath_var
17952
17953 # Set to "yes" if building a shared library automatically hardcodes DIR
17954 # into the library and all subsequent libraries and executables linked
17955 # against it.
17956 hardcode_automatic=$hardcode_automatic
17957
17958 # Set to yes if linker adds runtime paths of dependent libraries
17959 # to runtime path list.
17960 inherit_rpath=$inherit_rpath
17961
17962 # Whether libtool must link a program against all its dependency libraries.
17963 link_all_deplibs=$link_all_deplibs
17964
17965 # Set to "yes" if exported symbols are required.
17966 always_export_symbols=$always_export_symbols
17967
17968 # The commands to list exported symbols.
17969 export_symbols_cmds=$lt_export_symbols_cmds
17970
17971 # Symbols that should not be listed in the preloaded symbols.
17972 exclude_expsyms=$lt_exclude_expsyms
17973
17974 # Symbols that must always be exported.
17975 include_expsyms=$lt_include_expsyms
17976
17977 # Commands necessary for linking programs (against libraries) with templates.
17978 prelink_cmds=$lt_prelink_cmds
17979
17980 # Commands necessary for finishing linking programs.
17981 postlink_cmds=$lt_postlink_cmds
17982
17983 # Specify filename containing input files.
17984 file_list_spec=$lt_file_list_spec
17985
17986 # How to hardcode a shared library path into an executable.
17987 hardcode_action=$hardcode_action
17988
17989 # The directories searched by this compiler when creating a shared library.
17990 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17991
17992 # Dependencies to place before and after the objects being linked to
17993 # create a shared library.
17994 predep_objects=$lt_predep_objects
17995 postdep_objects=$lt_postdep_objects
17996 predeps=$lt_predeps
17997 postdeps=$lt_postdeps
17998
17999 # The library search path used internally by the compiler when linking
18000 # a shared library.
18001 compiler_lib_search_path=$lt_compiler_lib_search_path
18002
18003 # ### END LIBTOOL CONFIG
18004
18005 _LT_EOF
18006
18007   case $host_os in
18008   aix3*)
18009     cat <<\_LT_EOF >> "$cfgfile"
18010 # AIX sometimes has problems with the GCC collect2 program.  For some
18011 # reason, if we set the COLLECT_NAMES environment variable, the problems
18012 # vanish in a puff of smoke.
18013 if test "X${COLLECT_NAMES+set}" != Xset; then
18014   COLLECT_NAMES=
18015   export COLLECT_NAMES
18016 fi
18017 _LT_EOF
18018     ;;
18019   esac
18020
18021
18022 ltmain="$ac_aux_dir/ltmain.sh"
18023
18024
18025   # We use sed instead of cat because bash on DJGPP gets confused if
18026   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18027   # text mode, it properly converts lines to CR/LF.  This bash problem
18028   # is reportedly fixed, but why not run on old versions too?
18029   sed '$q' "$ltmain" >> "$cfgfile" \
18030      || (rm -f "$cfgfile"; exit 1)
18031
18032   if test x"$xsi_shell" = xyes; then
18033   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18034 func_dirname ()\
18035 {\
18036 \    case ${1} in\
18037 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18038 \      *  ) func_dirname_result="${3}" ;;\
18039 \    esac\
18040 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18041   && mv -f "$cfgfile.tmp" "$cfgfile" \
18042     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18043 test 0 -eq $? || _lt_function_replace_fail=:
18044
18045
18046   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18047 func_basename ()\
18048 {\
18049 \    func_basename_result="${1##*/}"\
18050 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18051   && mv -f "$cfgfile.tmp" "$cfgfile" \
18052     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18053 test 0 -eq $? || _lt_function_replace_fail=:
18054
18055
18056   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18057 func_dirname_and_basename ()\
18058 {\
18059 \    case ${1} in\
18060 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18061 \      *  ) func_dirname_result="${3}" ;;\
18062 \    esac\
18063 \    func_basename_result="${1##*/}"\
18064 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18065   && mv -f "$cfgfile.tmp" "$cfgfile" \
18066     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18067 test 0 -eq $? || _lt_function_replace_fail=:
18068
18069
18070   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18071 func_stripname ()\
18072 {\
18073 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18074 \    # positional parameters, so assign one to ordinary parameter first.\
18075 \    func_stripname_result=${3}\
18076 \    func_stripname_result=${func_stripname_result#"${1}"}\
18077 \    func_stripname_result=${func_stripname_result%"${2}"}\
18078 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18079   && mv -f "$cfgfile.tmp" "$cfgfile" \
18080     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18081 test 0 -eq $? || _lt_function_replace_fail=:
18082
18083
18084   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18085 func_split_long_opt ()\
18086 {\
18087 \    func_split_long_opt_name=${1%%=*}\
18088 \    func_split_long_opt_arg=${1#*=}\
18089 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18090   && mv -f "$cfgfile.tmp" "$cfgfile" \
18091     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18092 test 0 -eq $? || _lt_function_replace_fail=:
18093
18094
18095   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18096 func_split_short_opt ()\
18097 {\
18098 \    func_split_short_opt_arg=${1#??}\
18099 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18100 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18101   && mv -f "$cfgfile.tmp" "$cfgfile" \
18102     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18103 test 0 -eq $? || _lt_function_replace_fail=:
18104
18105
18106   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18107 func_lo2o ()\
18108 {\
18109 \    case ${1} in\
18110 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18111 \      *)    func_lo2o_result=${1} ;;\
18112 \    esac\
18113 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18114   && mv -f "$cfgfile.tmp" "$cfgfile" \
18115     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18116 test 0 -eq $? || _lt_function_replace_fail=:
18117
18118
18119   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18120 func_xform ()\
18121 {\
18122     func_xform_result=${1%.*}.lo\
18123 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18124   && mv -f "$cfgfile.tmp" "$cfgfile" \
18125     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18126 test 0 -eq $? || _lt_function_replace_fail=:
18127
18128
18129   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18130 func_arith ()\
18131 {\
18132     func_arith_result=$(( $* ))\
18133 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18134   && mv -f "$cfgfile.tmp" "$cfgfile" \
18135     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18136 test 0 -eq $? || _lt_function_replace_fail=:
18137
18138
18139   sed -e '/^func_len ()$/,/^} # func_len /c\
18140 func_len ()\
18141 {\
18142     func_len_result=${#1}\
18143 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18144   && mv -f "$cfgfile.tmp" "$cfgfile" \
18145     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18146 test 0 -eq $? || _lt_function_replace_fail=:
18147
18148 fi
18149
18150 if test x"$lt_shell_append" = xyes; then
18151   sed -e '/^func_append ()$/,/^} # func_append /c\
18152 func_append ()\
18153 {\
18154     eval "${1}+=\\${2}"\
18155 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18156   && mv -f "$cfgfile.tmp" "$cfgfile" \
18157     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18158 test 0 -eq $? || _lt_function_replace_fail=:
18159
18160
18161   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18162 func_append_quoted ()\
18163 {\
18164 \    func_quote_for_eval "${2}"\
18165 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18166 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18167   && mv -f "$cfgfile.tmp" "$cfgfile" \
18168     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18169 test 0 -eq $? || _lt_function_replace_fail=:
18170
18171
18172   # Save a `func_append' function call where possible by direct use of '+='
18173   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18174     && mv -f "$cfgfile.tmp" "$cfgfile" \
18175       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18176   test 0 -eq $? || _lt_function_replace_fail=:
18177 else
18178   # Save a `func_append' function call even when '+=' is not available
18179   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18180     && mv -f "$cfgfile.tmp" "$cfgfile" \
18181       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18182   test 0 -eq $? || _lt_function_replace_fail=:
18183 fi
18184
18185 if test x"$_lt_function_replace_fail" = x":"; then
18186   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18187 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18188 fi
18189
18190
18191    mv -f "$cfgfile" "$ofile" ||
18192     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18193   chmod +x "$ofile"
18194
18195
18196     cat <<_LT_EOF >> "$ofile"
18197
18198 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18199
18200 # The linker used to build libraries.
18201 LD=$lt_LD_CXX
18202
18203 # How to create reloadable object files.
18204 reload_flag=$lt_reload_flag_CXX
18205 reload_cmds=$lt_reload_cmds_CXX
18206
18207 # Commands used to build an old-style archive.
18208 old_archive_cmds=$lt_old_archive_cmds_CXX
18209
18210 # A language specific compiler.
18211 CC=$lt_compiler_CXX
18212
18213 # Is the compiler the GNU compiler?
18214 with_gcc=$GCC_CXX
18215
18216 # Compiler flag to turn off builtin functions.
18217 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18218
18219 # Additional compiler flags for building library objects.
18220 pic_flag=$lt_lt_prog_compiler_pic_CXX
18221
18222 # How to pass a linker flag through the compiler.
18223 wl=$lt_lt_prog_compiler_wl_CXX
18224
18225 # Compiler flag to prevent dynamic linking.
18226 link_static_flag=$lt_lt_prog_compiler_static_CXX
18227
18228 # Does compiler simultaneously support -c and -o options?
18229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18230
18231 # Whether or not to add -lc for building shared libraries.
18232 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18233
18234 # Whether or not to disallow shared libs when runtime libs are static.
18235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18236
18237 # Compiler flag to allow reflexive dlopens.
18238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18239
18240 # Compiler flag to generate shared objects directly from archives.
18241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18242
18243 # Whether the compiler copes with passing no objects directly.
18244 compiler_needs_object=$lt_compiler_needs_object_CXX
18245
18246 # Create an old-style archive from a shared archive.
18247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18248
18249 # Create a temporary old-style archive to link instead of a shared archive.
18250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18251
18252 # Commands used to build a shared archive.
18253 archive_cmds=$lt_archive_cmds_CXX
18254 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18255
18256 # Commands used to build a loadable module if different from building
18257 # a shared archive.
18258 module_cmds=$lt_module_cmds_CXX
18259 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18260
18261 # Whether we are building with GNU ld or not.
18262 with_gnu_ld=$lt_with_gnu_ld_CXX
18263
18264 # Flag that allows shared libraries with undefined symbols to be built.
18265 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18266
18267 # Flag that enforces no undefined symbols.
18268 no_undefined_flag=$lt_no_undefined_flag_CXX
18269
18270 # Flag to hardcode \$libdir into a binary during linking.
18271 # This must work even if \$libdir does not exist
18272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18273
18274 # Whether we need a single "-rpath" flag with a separated argument.
18275 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18276
18277 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18278 # DIR into the resulting binary.
18279 hardcode_direct=$hardcode_direct_CXX
18280
18281 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18282 # DIR into the resulting binary and the resulting library dependency is
18283 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18284 # library is relocated.
18285 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18286
18287 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18288 # into the resulting binary.
18289 hardcode_minus_L=$hardcode_minus_L_CXX
18290
18291 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18292 # into the resulting binary.
18293 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18294
18295 # Set to "yes" if building a shared library automatically hardcodes DIR
18296 # into the library and all subsequent libraries and executables linked
18297 # against it.
18298 hardcode_automatic=$hardcode_automatic_CXX
18299
18300 # Set to yes if linker adds runtime paths of dependent libraries
18301 # to runtime path list.
18302 inherit_rpath=$inherit_rpath_CXX
18303
18304 # Whether libtool must link a program against all its dependency libraries.
18305 link_all_deplibs=$link_all_deplibs_CXX
18306
18307 # Set to "yes" if exported symbols are required.
18308 always_export_symbols=$always_export_symbols_CXX
18309
18310 # The commands to list exported symbols.
18311 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18312
18313 # Symbols that should not be listed in the preloaded symbols.
18314 exclude_expsyms=$lt_exclude_expsyms_CXX
18315
18316 # Symbols that must always be exported.
18317 include_expsyms=$lt_include_expsyms_CXX
18318
18319 # Commands necessary for linking programs (against libraries) with templates.
18320 prelink_cmds=$lt_prelink_cmds_CXX
18321
18322 # Commands necessary for finishing linking programs.
18323 postlink_cmds=$lt_postlink_cmds_CXX
18324
18325 # Specify filename containing input files.
18326 file_list_spec=$lt_file_list_spec_CXX
18327
18328 # How to hardcode a shared library path into an executable.
18329 hardcode_action=$hardcode_action_CXX
18330
18331 # The directories searched by this compiler when creating a shared library.
18332 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18333
18334 # Dependencies to place before and after the objects being linked to
18335 # create a shared library.
18336 predep_objects=$lt_predep_objects_CXX
18337 postdep_objects=$lt_postdep_objects_CXX
18338 predeps=$lt_predeps_CXX
18339 postdeps=$lt_postdeps_CXX
18340
18341 # The library search path used internally by the compiler when linking
18342 # a shared library.
18343 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18344
18345 # ### END LIBTOOL TAG CONFIG: CXX
18346 _LT_EOF
18347
18348  ;;
18349
18350   esac
18351 done # for ac_tag
18352
18353
18354 as_fn_exit 0
18355 _ACEOF
18356 ac_clean_files=$ac_clean_files_save
18357
18358 test $ac_write_fail = 0 ||
18359   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18360
18361
18362 # configure is writing to config.log, and then calls config.status.
18363 # config.status does its own redirection, appending to config.log.
18364 # Unfortunately, on DOS this fails, as config.log is still kept open
18365 # by configure, so config.status won't be able to write to it; its
18366 # output is simply discarded.  So we exec the FD to /dev/null,
18367 # effectively closing config.log, so it can be properly (re)opened and
18368 # appended to by config.status.  When coming back to configure, we
18369 # need to make the FD available again.
18370 if test "$no_create" != yes; then
18371   ac_cs_success=:
18372   ac_config_status_args=
18373   test "$silent" = yes &&
18374     ac_config_status_args="$ac_config_status_args --quiet"
18375   exec 5>/dev/null
18376   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18377   exec 5>>config.log
18378   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18379   # would make configure fail if this is the last instruction.
18380   $ac_cs_success || as_fn_exit 1
18381 fi
18382 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18383   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18384 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18385 fi
18386