Attempt to improve mingw-w64 support
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glog 0.3.3.
4 #
5 # Report bugs to <opensource@google.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: opensource@google.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='glog'
572 PACKAGE_TARNAME='glog'
573 PACKAGE_VERSION='0.3.3'
574 PACKAGE_STRING='glog 0.3.3'
575 PACKAGE_BUGREPORT='opensource@google.com'
576 PACKAGE_URL=''
577
578 ac_unique_file="README"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 GMOCK_LIBS
620 GTEST_LIBS
621 GFLAGS_LIBS
622 MINGW_CFLAGS
623 GMOCK_CFLAGS
624 GTEST_CFLAGS
625 GFLAGS_CFLAGS
626 ac_cv_have_libgflags
627 ac_cv_have___uint16
628 ac_cv_have_u_int16_t
629 ac_cv_have_uint16_t
630 ac_cv_have_unistd_h
631 ac_cv_have_inttypes_h
632 ac_cv_have_systypes_h
633 ac_cv_have_stdint_h
634 ac_cv_have___builtin_expect
635 ac_cv___attribute___printf_4_5
636 ac_cv___attribute___noinline
637 ac_cv___attribute___noreturn
638 ac_cv_cxx_using_operator
639 ac_google_namespace
640 ac_google_end_namespace
641 ac_google_start_namespace
642 UNWIND_LIBS
643 HAVE_GMOCK_FALSE
644 HAVE_GMOCK_TRUE
645 GMOCK_CONFIG
646 GTEST_CONFIG
647 PTHREAD_CFLAGS
648 PTHREAD_LIBS
649 PTHREAD_CC
650 acx_pthread_config
651 DISABLE_RTTI_FALSE
652 DISABLE_RTTI_TRUE
653 X86_64_FALSE
654 X86_64_TRUE
655 ENABLE_FRAME_POINTERS_FALSE
656 ENABLE_FRAME_POINTERS_TRUE
657 LIBTOOL_DEPS
658 CXXCPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 EGREP
677 GREP
678 SED
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 LIBTOOL
688 GCC_FALSE
689 GCC_TRUE
690 am__fastdepCXX_FALSE
691 am__fastdepCXX_TRUE
692 CXXDEPMODE
693 ac_ct_CXX
694 CXXFLAGS
695 CXX
696 CPP
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_dependency_tracking
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 with_gnu_ld
784 with_sysroot
785 enable_libtool_lock
786 enable_frame_pointers
787 enable_rtti
788 with_gflags
789 enable_namespace
790 '
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CPP
800 CXX
801 CXXFLAGS
802 CCC
803 CXXCPP'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858   # If the previous option needs an argument, assign it.
859   if test -n "$ac_prev"; then
860     eval $ac_prev=\$ac_option
861     ac_prev=
862     continue
863   fi
864
865   case $ac_option in
866   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867   *=)   ac_optarg= ;;
868   *)    ac_optarg=yes ;;
869   esac
870
871   # Accept the important Cygnus configure options, so we can diagnose typos.
872
873   case $ac_dashdash$ac_option in
874   --)
875     ac_dashdash=yes ;;
876
877   -bindir | --bindir | --bindi | --bind | --bin | --bi)
878     ac_prev=bindir ;;
879   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880     bindir=$ac_optarg ;;
881
882   -build | --build | --buil | --bui | --bu)
883     ac_prev=build_alias ;;
884   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885     build_alias=$ac_optarg ;;
886
887   -cache-file | --cache-file | --cache-fil | --cache-fi \
888   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889     ac_prev=cache_file ;;
890   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892     cache_file=$ac_optarg ;;
893
894   --config-cache | -C)
895     cache_file=config.cache ;;
896
897   -datadir | --datadir | --datadi | --datad)
898     ac_prev=datadir ;;
899   -datadir=* | --datadir=* | --datadi=* | --datad=*)
900     datadir=$ac_optarg ;;
901
902   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903   | --dataroo | --dataro | --datar)
904     ac_prev=datarootdir ;;
905   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907     datarootdir=$ac_optarg ;;
908
909   -disable-* | --disable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=no ;;
924
925   -docdir | --docdir | --docdi | --doc | --do)
926     ac_prev=docdir ;;
927   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928     docdir=$ac_optarg ;;
929
930   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931     ac_prev=dvidir ;;
932   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933     dvidir=$ac_optarg ;;
934
935   -enable-* | --enable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid package name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval with_$ac_useropt=no ;;
1170
1171   --x)
1172     # Obsolete; use --with-x.
1173     with_x=yes ;;
1174
1175   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176   | --x-incl | --x-inc | --x-in | --x-i)
1177     ac_prev=x_includes ;;
1178   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180     x_includes=$ac_optarg ;;
1181
1182   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184     ac_prev=x_libraries ;;
1185   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187     x_libraries=$ac_optarg ;;
1188
1189   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     case $ac_envvar in #(
1197       '' | [0-9]* | *[!_$as_cr_alnum]* )
1198       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199     esac
1200     eval $ac_envvar=\$ac_optarg
1201     export $ac_envvar ;;
1202
1203   *)
1204     # FIXME: should be removed in autoconf 3.0.
1205     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209     ;;
1210
1211   esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216   as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220   case $enable_option_checking in
1221     no) ;;
1222     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224   esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229                 datadir sysconfdir sharedstatedir localstatedir includedir \
1230                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231                 libdir localedir mandir
1232 do
1233   eval ac_val=\$$ac_var
1234   # Remove trailing slashes.
1235   case $ac_val in
1236     */ )
1237       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238       eval $ac_var=\$ac_val;;
1239   esac
1240   # Be sure to have absolute directory names.
1241   case $ac_val in
1242     [\\/$]* | ?:[\\/]* )  continue;;
1243     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244   esac
1245   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257   if test "x$build_alias" = x; then
1258     cross_compiling=maybe
1259     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260     If a cross compiler is detected then cross compile mode will be used" >&2
1261   elif test "x$build_alias" != "x$host_alias"; then
1262     cross_compiling=yes
1263   fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275   as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277   as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282   ac_srcdir_defaulted=yes
1283   # Try the directory containing this script, then the parent directory.
1284   ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286          X"$as_myself" : 'X\(//\)[^/]' \| \
1287          X"$as_myself" : 'X\(//\)$' \| \
1288          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291             s//\1/
1292             q
1293           }
1294           /^X\(\/\/\)[^/].*/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)$/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\).*/{
1303             s//\1/
1304             q
1305           }
1306           s/.*/./; q'`
1307   srcdir=$ac_confdir
1308   if test ! -r "$srcdir/$ac_unique_file"; then
1309     srcdir=..
1310   fi
1311 else
1312   ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321         pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324   srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334   eval ac_env_${ac_var}_value=\$${ac_var}
1335   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343   # Omit some internal or obsolete options to make the list less imposing.
1344   # This message is too long to be a string in the A/UX 3.1 sh.
1345   cat <<_ACEOF
1346 \`configure' configures glog 0.3.3 to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356   -h, --help              display this help and exit
1357       --help=short        display options specific to this package
1358       --help=recursive    display the short help of all the included packages
1359   -V, --version           display version information and exit
1360   -q, --quiet, --silent   do not print \`checking ...' messages
1361       --cache-file=FILE   cache test results in FILE [disabled]
1362   -C, --config-cache      alias for \`--cache-file=config.cache'
1363   -n, --no-create         do not create output files
1364       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1365
1366 Installation directories:
1367   --prefix=PREFIX         install architecture-independent files in PREFIX
1368                           [$ac_default_prefix]
1369   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                           [PREFIX]
1371
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380   --bindir=DIR            user executables [EPREFIX/bin]
1381   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382   --libexecdir=DIR        program executables [EPREFIX/libexec]
1383   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386   --libdir=DIR            object code libraries [EPREFIX/lib]
1387   --includedir=DIR        C header files [PREFIX/include]
1388   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391   --infodir=DIR           info documentation [DATAROOTDIR/info]
1392   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393   --mandir=DIR            man documentation [DATAROOTDIR/man]
1394   --docdir=DIR            documentation root [DATAROOTDIR/doc/glog]
1395   --htmldir=DIR           html documentation [DOCDIR]
1396   --dvidir=DIR            dvi documentation [DOCDIR]
1397   --pdfdir=DIR            pdf documentation [DOCDIR]
1398   --psdir=DIR             ps documentation [DOCDIR]
1399 _ACEOF
1400
1401   cat <<\_ACEOF
1402
1403 Program names:
1404   --program-prefix=PREFIX            prepend PREFIX to installed program names
1405   --program-suffix=SUFFIX            append SUFFIX to installed program names
1406   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408 System types:
1409   --build=BUILD     configure for building on BUILD [guessed]
1410   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415   case $ac_init_help in
1416      short | recursive ) echo "Configuration of glog 0.3.3:";;
1417    esac
1418   cat <<\_ACEOF
1419
1420 Optional Features:
1421   --disable-option-checking  ignore unrecognized --enable/--with options
1422   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424   --disable-dependency-tracking  speeds up one-time build
1425   --enable-dependency-tracking   do not reject slow dependency extractors
1426   --enable-shared[=PKGS]  build shared libraries [default=yes]
1427   --enable-static[=PKGS]  build static libraries [default=yes]
1428   --enable-fast-install[=PKGS]
1429                           optimize for fast installation [default=yes]
1430   --disable-libtool-lock  avoid locking (might break parallel builds)
1431   --enable-frame-pointers On x86_64 systems, compile with
1432                           -fno-omit-frame-pointer (see INSTALL)
1433   --disable-rtti          Disable RTTI in glog
1434   --enable-namespace=FOO to define these Google
1435                              classes in the FOO namespace. --disable-namespace
1436                              to define them in the global namespace. Default
1437                              is to define them in namespace google.
1438
1439 Optional Packages:
1440   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1443                           both]
1444   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1445   --with-sysroot=DIR Search for dependent libraries within DIR
1446                         (or the compiler's sysroot if not specified).
1447                           --with-gflags=GFLAGS_DIR
1448
1449 Some influential environment variables:
1450   CC          C compiler command
1451   CFLAGS      C compiler flags
1452   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453               nonstandard directory <lib dir>
1454   LIBS        libraries to pass to the linker, e.g. -l<library>
1455   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456               you have headers in a nonstandard directory <include dir>
1457   CPP         C preprocessor
1458   CXX         C++ compiler command
1459   CXXFLAGS    C++ compiler flags
1460   CXXCPP      C++ preprocessor
1461
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <opensource@google.com>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471   # If there are subdirs, report their specific --help.
1472   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473     test -d "$ac_dir" ||
1474       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475       continue
1476     ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482   # A ".." for each directory in $ac_dir_suffix.
1483   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484   case $ac_top_builddir_sub in
1485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487   esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495   .)  # We are building in place.
1496     ac_srcdir=.
1497     ac_top_srcdir=$ac_top_builddir_sub
1498     ac_abs_top_srcdir=$ac_pwd ;;
1499   [\\/]* | ?:[\\/]* )  # Absolute name.
1500     ac_srcdir=$srcdir$ac_dir_suffix;
1501     ac_top_srcdir=$srcdir
1502     ac_abs_top_srcdir=$srcdir ;;
1503   *) # Relative name.
1504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505     ac_top_srcdir=$ac_top_build_prefix$srcdir
1506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510     cd "$ac_dir" || { ac_status=$?; continue; }
1511     # Check for guested configure.
1512     if test -f "$ac_srcdir/configure.gnu"; then
1513       echo &&
1514       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515     elif test -f "$ac_srcdir/configure"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure" --help=recursive
1518     else
1519       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520     fi || ac_status=$?
1521     cd "$ac_pwd" || { ac_status=$?; break; }
1522   done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527   cat <<\_ACEOF
1528 glog configure 0.3.3
1529 generated by GNU Autoconf 2.68
1530
1531 Copyright (C) 2010 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535   exit
1536 fi
1537
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1541
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1546 {
1547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548   rm -f conftest.$ac_objext
1549   if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552   *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556   (eval "$ac_compile") 2>conftest.err
1557   ac_status=$?
1558   if test -s conftest.err; then
1559     grep -v '^ *+' conftest.err >conftest.er1
1560     cat conftest.er1 >&5
1561     mv -f conftest.er1 conftest.err
1562   fi
1563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564   test $ac_status = 0; } && {
1565          test -z "$ac_c_werror_flag" ||
1566          test ! -s conftest.err
1567        } && test -s conftest.$ac_objext; then :
1568   ac_retval=0
1569 else
1570   $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573         ac_retval=1
1574 fi
1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576   as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_c_try_cpp LINENO
1581 # ----------------------
1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_cpp ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594   ac_status=$?
1595   if test -s conftest.err; then
1596     grep -v '^ *+' conftest.err >conftest.er1
1597     cat conftest.er1 >&5
1598     mv -f conftest.er1 conftest.err
1599   fi
1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } > conftest.i && {
1602          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603          test ! -s conftest.err
1604        }; then :
1605   ac_retval=0
1606 else
1607   $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610     ac_retval=1
1611 fi
1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613   as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_cpp
1616
1617 # ac_fn_cxx_try_compile LINENO
1618 # ----------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_cxx_try_compile ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   rm -f conftest.$ac_objext
1624   if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_compile") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } && {
1640          test -z "$ac_cxx_werror_flag" ||
1641          test ! -s conftest.err
1642        } && test -s conftest.$ac_objext; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648         ac_retval=1
1649 fi
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_cxx_try_compile
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   rm -f conftest.$ac_objext conftest$ac_exeext
1662   if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_link") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } && {
1678          test -z "$ac_c_werror_flag" ||
1679          test ! -s conftest.err
1680        } && test -s conftest$ac_exeext && {
1681          test "$cross_compiling" = yes ||
1682          $as_test_x conftest$ac_exeext
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689         ac_retval=1
1690 fi
1691   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693   # interfere with the next link command; also delete a directory that is
1694   # left behind by Apple's compiler.  We do this before executing the actions.
1695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697   as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_link
1700
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711   $as_echo_n "(cached) " >&6
1712 else
1713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 $4
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719   eval "$3=yes"
1720 else
1721   eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_link") 2>&5
1747   ac_status=$?
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750   { { case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_try") 2>&5
1757   ac_status=$?
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; }; }; then :
1760   ac_retval=0
1761 else
1762   $as_echo "$as_me: program exited with status $ac_status" >&5
1763        $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766        ac_retval=$ac_status
1767 fi
1768   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770   as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_run
1773
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783   $as_echo_n "(cached) " >&6
1784 else
1785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h.  */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1789 #define $2 innocuous_$2
1790
1791 /* System header to define __stub macros and hopefully few prototypes,
1792     which can conflict with char $2 (); below.
1793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794     <limits.h> exists even on freestanding compilers.  */
1795
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1801
1802 #undef $2
1803
1804 /* Override any GCC internal prototype to avoid an error.
1805    Use char because int might match the return type of a GCC
1806    builtin and then its argument prototype would still apply.  */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812     to always fail with ENOSYS.  Some functions are actually named
1813     something starting with __ and the normal name is an alias.  */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1817
1818 int
1819 main ()
1820 {
1821 return $2 ();
1822   ;
1823   return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext \
1832     conftest$ac_exeext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_func
1840
1841 # ac_fn_cxx_try_cpp LINENO
1842 # ------------------------
1843 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_cpp ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855   ac_status=$?
1856   if test -s conftest.err; then
1857     grep -v '^ *+' conftest.err >conftest.er1
1858     cat conftest.er1 >&5
1859     mv -f conftest.er1 conftest.err
1860   fi
1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862   test $ac_status = 0; } > conftest.i && {
1863          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1864          test ! -s conftest.err
1865        }; then :
1866   ac_retval=0
1867 else
1868   $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871     ac_retval=1
1872 fi
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874   as_fn_set_status $ac_retval
1875
1876 } # ac_fn_cxx_try_cpp
1877
1878 # ac_fn_cxx_try_link LINENO
1879 # -------------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_link ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   rm -f conftest.$ac_objext conftest$ac_exeext
1885   if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_link") 2>conftest.err
1893   ac_status=$?
1894   if test -s conftest.err; then
1895     grep -v '^ *+' conftest.err >conftest.er1
1896     cat conftest.er1 >&5
1897     mv -f conftest.er1 conftest.err
1898   fi
1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; } && {
1901          test -z "$ac_cxx_werror_flag" ||
1902          test ! -s conftest.err
1903        } && test -s conftest$ac_exeext && {
1904          test "$cross_compiling" = yes ||
1905          $as_test_x conftest$ac_exeext
1906        }; then :
1907   ac_retval=0
1908 else
1909   $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912         ac_retval=1
1913 fi
1914   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916   # interfere with the next link command; also delete a directory that is
1917   # left behind by Apple's compiler.  We do this before executing the actions.
1918   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920   as_fn_set_status $ac_retval
1921
1922 } # ac_fn_cxx_try_link
1923
1924 # ac_fn_cxx_try_run LINENO
1925 # ------------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1927 # that executables *can* be run.
1928 ac_fn_cxx_try_run ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934   *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938   (eval "$ac_link") 2>&5
1939   ac_status=$?
1940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1942   { { case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_try") 2>&5
1949   ac_status=$?
1950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951   test $ac_status = 0; }; }; then :
1952   ac_retval=0
1953 else
1954   $as_echo "$as_me: program exited with status $ac_status" >&5
1955        $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958        ac_retval=$ac_status
1959 fi
1960   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_cxx_try_run
1965
1966 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # ---------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_cxx_check_header_mongrel ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   if eval \${$3+:} false; then :
1975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978   $as_echo_n "(cached) " >&6
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984   # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_cxx_try_compile "$LINENO"; then :
1993   ac_header_compiler=yes
1994 else
1995   ac_header_compiler=no
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2000
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_cxx_try_cpp "$LINENO"; then :
2009   ac_header_preproc=yes
2010 else
2011   ac_header_preproc=no
2012 fi
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2016
2017 # So?  What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2019   yes:no: )
2020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024     ;;
2025   no:yes:* )
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 ( $as_echo "## ------------------------------------ ##
2037 ## Report this to opensource@google.com ##
2038 ## ------------------------------------ ##"
2039      ) | sed "s/^/$as_me: WARNING:     /" >&2
2040     ;;
2041 esac
2042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045   $as_echo_n "(cached) " >&6
2046 else
2047   eval "$3=\$ac_header_compiler"
2048 fi
2049 eval ac_res=\$$3
2050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 fi
2053   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_cxx_check_header_mongrel
2056
2057 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2058 # ----------------------------------------------
2059 # Tries to find the compile-time value of EXPR in a program that includes
2060 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2061 # computed
2062 ac_fn_cxx_compute_int ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   if test "$cross_compiling" = yes; then
2066     # Depending upon the size, compute the lo and hi bounds.
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h.  */
2069 $4
2070 int
2071 main ()
2072 {
2073 static int test_array [1 - 2 * !(($2) >= 0)];
2074 test_array [0] = 0
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_cxx_try_compile "$LINENO"; then :
2081   ac_lo=0 ac_mid=0
2082   while :; do
2083     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 $4
2086 int
2087 main ()
2088 {
2089 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 test_array [0] = 0
2091
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_cxx_try_compile "$LINENO"; then :
2097   ac_hi=$ac_mid; break
2098 else
2099   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2100                         if test $ac_lo -le $ac_mid; then
2101                           ac_lo= ac_hi=
2102                           break
2103                         fi
2104                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107   done
2108 else
2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main ()
2114 {
2115 static int test_array [1 - 2 * !(($2) < 0)];
2116 test_array [0] = 0
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_cxx_try_compile "$LINENO"; then :
2123   ac_hi=-1 ac_mid=-1
2124   while :; do
2125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 $4
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2132 test_array [0] = 0
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_cxx_try_compile "$LINENO"; then :
2139   ac_lo=$ac_mid; break
2140 else
2141   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2142                         if test $ac_mid -le $ac_hi; then
2143                           ac_lo= ac_hi=
2144                           break
2145                         fi
2146                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149   done
2150 else
2151   ac_lo= ac_hi=
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 # Binary search between lo and hi bounds.
2157 while test "x$ac_lo" != "x$ac_hi"; do
2158   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h.  */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2166 test_array [0] = 0
2167
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_cxx_try_compile "$LINENO"; then :
2173   ac_hi=$ac_mid
2174 else
2175   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 done
2179 case $ac_lo in #((
2180 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2181 '') ac_retval=1 ;;
2182 esac
2183   else
2184     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h.  */
2186 $4
2187 static long int longval () { return $2; }
2188 static unsigned long int ulongval () { return $2; }
2189 #include <stdio.h>
2190 #include <stdlib.h>
2191 int
2192 main ()
2193 {
2194
2195   FILE *f = fopen ("conftest.val", "w");
2196   if (! f)
2197     return 1;
2198   if (($2) < 0)
2199     {
2200       long int i = longval ();
2201       if (i != ($2))
2202         return 1;
2203       fprintf (f, "%ld", i);
2204     }
2205   else
2206     {
2207       unsigned long int i = ulongval ();
2208       if (i != ($2))
2209         return 1;
2210       fprintf (f, "%lu", i);
2211     }
2212   /* Do not output a trailing newline, as this causes \r\n confusion
2213      on some platforms.  */
2214   return ferror (f) || fclose (f) != 0;
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_cxx_try_run "$LINENO"; then :
2221   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2222 else
2223   ac_retval=1
2224 fi
2225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2226   conftest.$ac_objext conftest.beam conftest.$ac_ext
2227 rm -f conftest.val
2228
2229   fi
2230   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231   as_fn_set_status $ac_retval
2232
2233 } # ac_fn_cxx_compute_int
2234
2235 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2236 # ---------------------------------------------
2237 # Tests whether TYPE exists after having included INCLUDES, setting cache
2238 # variable VAR accordingly.
2239 ac_fn_cxx_check_type ()
2240 {
2241   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245   $as_echo_n "(cached) " >&6
2246 else
2247   eval "$3=no"
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $4
2251 int
2252 main ()
2253 {
2254 if (sizeof ($2))
2255          return 0;
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_cxx_try_compile "$LINENO"; then :
2261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int
2265 main ()
2266 {
2267 if (sizeof (($2)))
2268             return 0;
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_cxx_try_compile "$LINENO"; then :
2274
2275 else
2276   eval "$3=yes"
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 eval ac_res=\$$3
2283                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286
2287 } # ac_fn_cxx_check_type
2288
2289 # ac_fn_cxx_check_func LINENO FUNC VAR
2290 # ------------------------------------
2291 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2292 ac_fn_cxx_check_func ()
2293 {
2294   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298   $as_echo_n "(cached) " >&6
2299 else
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2304 #define $2 innocuous_$2
2305
2306 /* System header to define __stub macros and hopefully few prototypes,
2307     which can conflict with char $2 (); below.
2308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2309     <limits.h> exists even on freestanding compilers.  */
2310
2311 #ifdef __STDC__
2312 # include <limits.h>
2313 #else
2314 # include <assert.h>
2315 #endif
2316
2317 #undef $2
2318
2319 /* Override any GCC internal prototype to avoid an error.
2320    Use char because int might match the return type of a GCC
2321    builtin and then its argument prototype would still apply.  */
2322 #ifdef __cplusplus
2323 extern "C"
2324 #endif
2325 char $2 ();
2326 /* The GNU C library defines this for functions which it implements
2327     to always fail with ENOSYS.  Some functions are actually named
2328     something starting with __ and the normal name is an alias.  */
2329 #if defined __stub_$2 || defined __stub___$2
2330 choke me
2331 #endif
2332
2333 int
2334 main ()
2335 {
2336 return $2 ();
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_cxx_try_link "$LINENO"; then :
2342   eval "$3=yes"
2343 else
2344   eval "$3=no"
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext \
2347     conftest$ac_exeext conftest.$ac_ext
2348 fi
2349 eval ac_res=\$$3
2350                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354 } # ac_fn_cxx_check_func
2355 cat >config.log <<_ACEOF
2356 This file contains any messages produced by compilers while
2357 running configure, to aid debugging if configure makes a mistake.
2358
2359 It was created by glog $as_me 0.3.3, which was
2360 generated by GNU Autoconf 2.68.  Invocation command line was
2361
2362   $ $0 $@
2363
2364 _ACEOF
2365 exec 5>>config.log
2366 {
2367 cat <<_ASUNAME
2368 ## --------- ##
2369 ## Platform. ##
2370 ## --------- ##
2371
2372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377
2378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2380
2381 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2382 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2385 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2386 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2387 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2388
2389 _ASUNAME
2390
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396     $as_echo "PATH: $as_dir"
2397   done
2398 IFS=$as_save_IFS
2399
2400 } >&5
2401
2402 cat >&5 <<_ACEOF
2403
2404
2405 ## ----------- ##
2406 ## Core tests. ##
2407 ## ----------- ##
2408
2409 _ACEOF
2410
2411
2412 # Keep a trace of the command line.
2413 # Strip out --no-create and --no-recursion so they do not pile up.
2414 # Strip out --silent because we don't want to record it for future runs.
2415 # Also quote any args containing shell meta-characters.
2416 # Make two passes to allow for proper duplicate-argument suppression.
2417 ac_configure_args=
2418 ac_configure_args0=
2419 ac_configure_args1=
2420 ac_must_keep_next=false
2421 for ac_pass in 1 2
2422 do
2423   for ac_arg
2424   do
2425     case $ac_arg in
2426     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428     | -silent | --silent | --silen | --sile | --sil)
2429       continue ;;
2430     *\'*)
2431       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432     esac
2433     case $ac_pass in
2434     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435     2)
2436       as_fn_append ac_configure_args1 " '$ac_arg'"
2437       if test $ac_must_keep_next = true; then
2438         ac_must_keep_next=false # Got value, back to normal.
2439       else
2440         case $ac_arg in
2441           *=* | --config-cache | -C | -disable-* | --disable-* \
2442           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444           | -with-* | --with-* | -without-* | --without-* | --x)
2445             case "$ac_configure_args0 " in
2446               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447             esac
2448             ;;
2449           -* ) ac_must_keep_next=true ;;
2450         esac
2451       fi
2452       as_fn_append ac_configure_args " '$ac_arg'"
2453       ;;
2454     esac
2455   done
2456 done
2457 { ac_configure_args0=; unset ac_configure_args0;}
2458 { ac_configure_args1=; unset ac_configure_args1;}
2459
2460 # When interrupted or exit'd, cleanup temporary files, and complete
2461 # config.log.  We remove comments because anyway the quotes in there
2462 # would cause problems or look ugly.
2463 # WARNING: Use '\'' to represent an apostrophe within the trap.
2464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465 trap 'exit_status=$?
2466   # Save into config.log some information that might help in debugging.
2467   {
2468     echo
2469
2470     $as_echo "## ---------------- ##
2471 ## Cache variables. ##
2472 ## ---------------- ##"
2473     echo
2474     # The following way of writing the cache mishandles newlines in values,
2475 (
2476   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477     eval ac_val=\$$ac_var
2478     case $ac_val in #(
2479     *${as_nl}*)
2480       case $ac_var in #(
2481       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483       esac
2484       case $ac_var in #(
2485       _ | IFS | as_nl) ;; #(
2486       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487       *) { eval $ac_var=; unset $ac_var;} ;;
2488       esac ;;
2489     esac
2490   done
2491   (set) 2>&1 |
2492     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493     *${as_nl}ac_space=\ *)
2494       sed -n \
2495         "s/'\''/'\''\\\\'\'''\''/g;
2496           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497       ;; #(
2498     *)
2499       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500       ;;
2501     esac |
2502     sort
2503 )
2504     echo
2505
2506     $as_echo "## ----------------- ##
2507 ## Output variables. ##
2508 ## ----------------- ##"
2509     echo
2510     for ac_var in $ac_subst_vars
2511     do
2512       eval ac_val=\$$ac_var
2513       case $ac_val in
2514       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515       esac
2516       $as_echo "$ac_var='\''$ac_val'\''"
2517     done | sort
2518     echo
2519
2520     if test -n "$ac_subst_files"; then
2521       $as_echo "## ------------------- ##
2522 ## File substitutions. ##
2523 ## ------------------- ##"
2524       echo
2525       for ac_var in $ac_subst_files
2526       do
2527         eval ac_val=\$$ac_var
2528         case $ac_val in
2529         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530         esac
2531         $as_echo "$ac_var='\''$ac_val'\''"
2532       done | sort
2533       echo
2534     fi
2535
2536     if test -s confdefs.h; then
2537       $as_echo "## ----------- ##
2538 ## confdefs.h. ##
2539 ## ----------- ##"
2540       echo
2541       cat confdefs.h
2542       echo
2543     fi
2544     test "$ac_signal" != 0 &&
2545       $as_echo "$as_me: caught signal $ac_signal"
2546     $as_echo "$as_me: exit $exit_status"
2547   } >&5
2548   rm -f core *.core core.conftest.* &&
2549     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2550     exit $exit_status
2551 ' 0
2552 for ac_signal in 1 2 13 15; do
2553   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2554 done
2555 ac_signal=0
2556
2557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2558 rm -f -r conftest* confdefs.h
2559
2560 $as_echo "/* confdefs.h */" > confdefs.h
2561
2562 # Predefined preprocessor variables.
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_NAME "$PACKAGE_NAME"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_STRING "$PACKAGE_STRING"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_URL "$PACKAGE_URL"
2586 _ACEOF
2587
2588
2589 # Let the site file select an alternate cache file if it wants to.
2590 # Prefer an explicitly selected file to automatically selected ones.
2591 ac_site_file1=NONE
2592 ac_site_file2=NONE
2593 if test -n "$CONFIG_SITE"; then
2594   # We do not want a PATH search for config.site.
2595   case $CONFIG_SITE in #((
2596     -*)  ac_site_file1=./$CONFIG_SITE;;
2597     */*) ac_site_file1=$CONFIG_SITE;;
2598     *)   ac_site_file1=./$CONFIG_SITE;;
2599   esac
2600 elif test "x$prefix" != xNONE; then
2601   ac_site_file1=$prefix/share/config.site
2602   ac_site_file2=$prefix/etc/config.site
2603 else
2604   ac_site_file1=$ac_default_prefix/share/config.site
2605   ac_site_file2=$ac_default_prefix/etc/config.site
2606 fi
2607 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 do
2609   test "x$ac_site_file" = xNONE && continue
2610   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2611     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2612 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2613     sed 's/^/| /' "$ac_site_file" >&5
2614     . "$ac_site_file" \
2615       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 as_fn_error $? "failed to load site script $ac_site_file
2618 See \`config.log' for more details" "$LINENO" 5; }
2619   fi
2620 done
2621
2622 if test -r "$cache_file"; then
2623   # Some versions of bash will fail to source /dev/null (special files
2624   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2625   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627 $as_echo "$as_me: loading cache $cache_file" >&6;}
2628     case $cache_file in
2629       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630       *)                      . "./$cache_file";;
2631     esac
2632   fi
2633 else
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635 $as_echo "$as_me: creating cache $cache_file" >&6;}
2636   >$cache_file
2637 fi
2638
2639 # Check that the precious variables saved in the cache have kept the same
2640 # value.
2641 ac_cache_corrupted=false
2642 for ac_var in $ac_precious_vars; do
2643   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2644   eval ac_new_set=\$ac_env_${ac_var}_set
2645   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2646   eval ac_new_val=\$ac_env_${ac_var}_value
2647   case $ac_old_set,$ac_new_set in
2648     set,)
2649       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2651       ac_cache_corrupted=: ;;
2652     ,set)
2653       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2655       ac_cache_corrupted=: ;;
2656     ,);;
2657     *)
2658       if test "x$ac_old_val" != "x$ac_new_val"; then
2659         # differences in whitespace do not lead to failure.
2660         ac_old_val_w=`echo x $ac_old_val`
2661         ac_new_val_w=`echo x $ac_new_val`
2662         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2663           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2664 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2665           ac_cache_corrupted=:
2666         else
2667           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2668 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2669           eval $ac_var=\$ac_old_val
2670         fi
2671         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2672 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2673         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2674 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2675       fi;;
2676   esac
2677   # Pass precious variables to config.status.
2678   if test "$ac_new_set" = set; then
2679     case $ac_new_val in
2680     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2681     *) ac_arg=$ac_var=$ac_new_val ;;
2682     esac
2683     case " $ac_configure_args " in
2684       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2685       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2686     esac
2687   fi
2688 done
2689 if $ac_cache_corrupted; then
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2693 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2694   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2695 fi
2696 ## -------------------- ##
2697 ## Main body of script. ##
2698 ## -------------------- ##
2699
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705
2706
2707 # The argument here is just something that should be in the current directory
2708 # (for sanity checking)
2709
2710
2711 am__api_version='1.11'
2712
2713 ac_aux_dir=
2714 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2715   if test -f "$ac_dir/install-sh"; then
2716     ac_aux_dir=$ac_dir
2717     ac_install_sh="$ac_aux_dir/install-sh -c"
2718     break
2719   elif test -f "$ac_dir/install.sh"; then
2720     ac_aux_dir=$ac_dir
2721     ac_install_sh="$ac_aux_dir/install.sh -c"
2722     break
2723   elif test -f "$ac_dir/shtool"; then
2724     ac_aux_dir=$ac_dir
2725     ac_install_sh="$ac_aux_dir/shtool install -c"
2726     break
2727   fi
2728 done
2729 if test -z "$ac_aux_dir"; then
2730   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2731 fi
2732
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2740
2741
2742 # Find a good install program.  We prefer a C program (faster),
2743 # so one script is as good as another.  But avoid the broken or
2744 # incompatible versions:
2745 # SysV /etc/install, /usr/sbin/install
2746 # SunOS /usr/etc/install
2747 # IRIX /sbin/install
2748 # AIX /bin/install
2749 # AmigaOS /C/install, which installs bootblocks on floppy discs
2750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2753 # OS/2's system install, which has a completely different semantic
2754 # ./install, which can be erroneously created by make from ./install.sh.
2755 # Reject install programs that cannot install multiple files.
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2757 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2758 if test -z "$INSTALL"; then
2759 if ${ac_cv_path_install+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     # Account for people who put trailing slashes in PATH elements.
2768 case $as_dir/ in #((
2769   ./ | .// | /[cC]/* | \
2770   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2771   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2772   /usr/ucb/* ) ;;
2773   *)
2774     # OSF1 and SCO ODT 3.0 have their own names for install.
2775     # Don't use installbsd from OSF since it installs stuff as root
2776     # by default.
2777     for ac_prog in ginstall scoinst install; do
2778       for ac_exec_ext in '' $ac_executable_extensions; do
2779         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2780           if test $ac_prog = install &&
2781             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782             # AIX install.  It has an incompatible calling convention.
2783             :
2784           elif test $ac_prog = install &&
2785             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786             # program-specific install script used by HP pwplus--don't use.
2787             :
2788           else
2789             rm -rf conftest.one conftest.two conftest.dir
2790             echo one > conftest.one
2791             echo two > conftest.two
2792             mkdir conftest.dir
2793             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2794               test -s conftest.one && test -s conftest.two &&
2795               test -s conftest.dir/conftest.one &&
2796               test -s conftest.dir/conftest.two
2797             then
2798               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2799               break 3
2800             fi
2801           fi
2802         fi
2803       done
2804     done
2805     ;;
2806 esac
2807
2808   done
2809 IFS=$as_save_IFS
2810
2811 rm -rf conftest.one conftest.two conftest.dir
2812
2813 fi
2814   if test "${ac_cv_path_install+set}" = set; then
2815     INSTALL=$ac_cv_path_install
2816   else
2817     # As a last resort, use the slow shell script.  Don't cache a
2818     # value for INSTALL within a source directory, because that will
2819     # break other packages using the cache if that directory is
2820     # removed, or if the value is a relative name.
2821     INSTALL=$ac_install_sh
2822   fi
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2825 $as_echo "$INSTALL" >&6; }
2826
2827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2828 # It thinks the first close brace ends the variable substitution.
2829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2830
2831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2832
2833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2836 $as_echo_n "checking whether build environment is sane... " >&6; }
2837 # Just in case
2838 sleep 1
2839 echo timestamp > conftest.file
2840 # Reject unsafe characters in $srcdir or the absolute working directory
2841 # name.  Accept space and tab only in the latter.
2842 am_lf='
2843 '
2844 case `pwd` in
2845   *[\\\"\#\$\&\'\`$am_lf]*)
2846     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2847 esac
2848 case $srcdir in
2849   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2850     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2851 esac
2852
2853 # Do `set' in a subshell so we don't clobber the current shell's
2854 # arguments.  Must try -L first in case configure is actually a
2855 # symlink; some systems play weird games with the mod time of symlinks
2856 # (eg FreeBSD returns the mod time of the symlink's containing
2857 # directory).
2858 if (
2859    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2860    if test "$*" = "X"; then
2861       # -L didn't work.
2862       set X `ls -t "$srcdir/configure" conftest.file`
2863    fi
2864    rm -f conftest.file
2865    if test "$*" != "X $srcdir/configure conftest.file" \
2866       && test "$*" != "X conftest.file $srcdir/configure"; then
2867
2868       # If neither matched, then we have a broken ls.  This can happen
2869       # if, for instance, CONFIG_SHELL is bash and it inherits a
2870       # broken ls alias from the environment.  This has actually
2871       # happened.  Such a system could not be considered "sane".
2872       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2873 alias in your environment" "$LINENO" 5
2874    fi
2875
2876    test "$2" = conftest.file
2877    )
2878 then
2879    # Ok.
2880    :
2881 else
2882    as_fn_error $? "newly created file is older than distributed files!
2883 Check your system clock" "$LINENO" 5
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886 $as_echo "yes" >&6; }
2887 test "$program_prefix" != NONE &&
2888   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2889 # Use a double $ so make ignores it.
2890 test "$program_suffix" != NONE &&
2891   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2892 # Double any \ or $.
2893 # By default was `s,x,x', remove it if useless.
2894 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2895 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2896
2897 # expand $ac_aux_dir to an absolute path
2898 am_aux_dir=`cd $ac_aux_dir && pwd`
2899
2900 if test x"${MISSING+set}" != xset; then
2901   case $am_aux_dir in
2902   *\ * | *\     *)
2903     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2904   *)
2905     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2906   esac
2907 fi
2908 # Use eval to expand $SHELL
2909 if eval "$MISSING --run true"; then
2910   am_missing_run="$MISSING --run "
2911 else
2912   am_missing_run=
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2914 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2915 fi
2916
2917 if test x"${install_sh}" != xset; then
2918   case $am_aux_dir in
2919   *\ * | *\     *)
2920     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2921   *)
2922     install_sh="\${SHELL} $am_aux_dir/install-sh"
2923   esac
2924 fi
2925
2926 # Installed binaries are usually stripped using `strip' when the user
2927 # run `make install-strip'.  However `strip' might not be the right
2928 # tool to use in cross-compilation environments, therefore Automake
2929 # will honor the `STRIP' environment variable to overrule this program.
2930 if test "$cross_compiling" != no; then
2931   if test -n "$ac_tool_prefix"; then
2932   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}strip; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_STRIP+:} false; then :
2937   $as_echo_n "(cached) " >&6
2938 else
2939   if test -n "$STRIP"; then
2940   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954   done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 STRIP=$ac_cv_prog_STRIP
2960 if test -n "$STRIP"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2962 $as_echo "$STRIP" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$ac_cv_prog_STRIP"; then
2971   ac_ct_STRIP=$STRIP
2972   # Extract the first word of "strip", so it can be a program name with args.
2973 set dummy strip; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$ac_ct_STRIP"; then
2980   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987     for ac_exec_ext in '' $ac_executable_extensions; do
2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989     ac_cv_prog_ac_ct_STRIP="strip"
2990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994   done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3000 if test -n "$ac_ct_STRIP"; then
3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3002 $as_echo "$ac_ct_STRIP" >&6; }
3003 else
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008   if test "x$ac_ct_STRIP" = x; then
3009     STRIP=":"
3010   else
3011     case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017     STRIP=$ac_ct_STRIP
3018   fi
3019 else
3020   STRIP="$ac_cv_prog_STRIP"
3021 fi
3022
3023 fi
3024 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3027 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3028 if test -z "$MKDIR_P"; then
3029   if ${ac_cv_path_mkdir+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037     for ac_prog in mkdir gmkdir; do
3038          for ac_exec_ext in '' $ac_executable_extensions; do
3039            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3040            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3041              'mkdir (GNU coreutils) '* | \
3042              'mkdir (coreutils) '* | \
3043              'mkdir (fileutils) '4.1*)
3044                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3045                break 3;;
3046            esac
3047          done
3048        done
3049   done
3050 IFS=$as_save_IFS
3051
3052 fi
3053
3054   test -d ./--version && rmdir ./--version
3055   if test "${ac_cv_path_mkdir+set}" = set; then
3056     MKDIR_P="$ac_cv_path_mkdir -p"
3057   else
3058     # As a last resort, use the slow shell script.  Don't cache a
3059     # value for MKDIR_P within a source directory, because that will
3060     # break other packages using the cache if that directory is
3061     # removed, or if the value is a relative name.
3062     MKDIR_P="$ac_install_sh -d"
3063   fi
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3066 $as_echo "$MKDIR_P" >&6; }
3067
3068 mkdir_p="$MKDIR_P"
3069 case $mkdir_p in
3070   [\\/$]* | ?:[\\/]*) ;;
3071   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3072 esac
3073
3074 for ac_prog in gawk mawk nawk awk
3075 do
3076   # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_AWK+:} false; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   if test -n "$AWK"; then
3084   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091     for ac_exec_ext in '' $ac_executable_extensions; do
3092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093     ac_cv_prog_AWK="$ac_prog"
3094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098   done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 AWK=$ac_cv_prog_AWK
3104 if test -n "$AWK"; then
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3106 $as_echo "$AWK" >&6; }
3107 else
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113   test -n "$AWK" && break
3114 done
3115
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3117 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3118 set x ${MAKE-make}
3119 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3120 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3121   $as_echo_n "(cached) " >&6
3122 else
3123   cat >conftest.make <<\_ACEOF
3124 SHELL = /bin/sh
3125 all:
3126         @echo '@@@%%%=$(MAKE)=@@@%%%'
3127 _ACEOF
3128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3129 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3130   *@@@%%%=?*=@@@%%%*)
3131     eval ac_cv_prog_make_${ac_make}_set=yes;;
3132   *)
3133     eval ac_cv_prog_make_${ac_make}_set=no;;
3134 esac
3135 rm -f conftest.make
3136 fi
3137 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3140   SET_MAKE=
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144   SET_MAKE="MAKE=${MAKE-make}"
3145 fi
3146
3147 rm -rf .tst 2>/dev/null
3148 mkdir .tst 2>/dev/null
3149 if test -d .tst; then
3150   am__leading_dot=.
3151 else
3152   am__leading_dot=_
3153 fi
3154 rmdir .tst 2>/dev/null
3155
3156 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3157   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3158   # is not polluted with repeated "-I."
3159   am__isrc=' -I$(srcdir)'
3160   # test to see if srcdir already configured
3161   if test -f $srcdir/config.status; then
3162     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3163   fi
3164 fi
3165
3166 # test whether we have cygpath
3167 if test -z "$CYGPATH_W"; then
3168   if (cygpath --version) >/dev/null 2>/dev/null; then
3169     CYGPATH_W='cygpath -w'
3170   else
3171     CYGPATH_W=echo
3172   fi
3173 fi
3174
3175
3176 # Define the identity of the package.
3177  PACKAGE='glog'
3178  VERSION='0.3.3'
3179
3180
3181 cat >>confdefs.h <<_ACEOF
3182 #define PACKAGE "$PACKAGE"
3183 _ACEOF
3184
3185
3186 cat >>confdefs.h <<_ACEOF
3187 #define VERSION "$VERSION"
3188 _ACEOF
3189
3190 # Some tools Automake needs.
3191
3192 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3193
3194
3195 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3196
3197
3198 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3199
3200
3201 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3202
3203
3204 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3205
3206 # We need awk for the "check" target.  The system "awk" is bad on
3207 # some platforms.
3208 # Always define AMTAR for backward compatibility.  Yes, it's still used
3209 # in the wild :-(  We should find a proper way to deprecate it ...
3210 AMTAR='$${TAR-tar}'
3211
3212 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3213
3214
3215
3216
3217
3218 ac_config_headers="$ac_config_headers src/config.h"
3219
3220
3221 ac_ext=cpp
3222 ac_cpp='$CXXCPP $CPPFLAGS'
3223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3226
3227
3228 # Checks for programs.
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 if test -n "$ac_tool_prefix"; then
3235   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_CC+:} false; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   if test -n "$CC"; then
3243   ac_cv_prog_CC="$CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248   IFS=$as_save_IFS
3249   test -z "$as_dir" && as_dir=.
3250     for ac_exec_ext in '' $ac_executable_extensions; do
3251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254     break 2
3255   fi
3256 done
3257   done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272 fi
3273 if test -z "$ac_cv_prog_CC"; then
3274   ac_ct_CC=$CC
3275   # Extract the first word of "gcc", so it can be a program name with args.
3276 set dummy gcc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3280   $as_echo_n "(cached) " >&6
3281 else
3282   if test -n "$ac_ct_CC"; then
3283   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288   IFS=$as_save_IFS
3289   test -z "$as_dir" && as_dir=.
3290     for ac_exec_ext in '' $ac_executable_extensions; do
3291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292     ac_cv_prog_ac_ct_CC="gcc"
3293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294     break 2
3295   fi
3296 done
3297   done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3303 if test -n "$ac_ct_CC"; then
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3305 $as_echo "$ac_ct_CC" >&6; }
3306 else
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311   if test "x$ac_ct_CC" = x; then
3312     CC=""
3313   else
3314     case $cross_compiling:$ac_tool_warned in
3315 yes:)
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned=yes ;;
3319 esac
3320     CC=$ac_ct_CC
3321   fi
3322 else
3323   CC="$ac_cv_prog_CC"
3324 fi
3325
3326 if test -z "$CC"; then
3327           if test -n "$ac_tool_prefix"; then
3328     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}cc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if ${ac_cv_prog_CC+:} false; then :
3333   $as_echo_n "(cached) " >&6
3334 else
3335   if test -n "$CC"; then
3336   ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343     for ac_exec_ext in '' $ac_executable_extensions; do
3344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345     ac_cv_prog_CC="${ac_tool_prefix}cc"
3346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350   done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 fi
3363
3364
3365   fi
3366 fi
3367 if test -z "$CC"; then
3368   # Extract the first word of "cc", so it can be a program name with args.
3369 set dummy cc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   if test -n "$CC"; then
3376   ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378   ac_prog_rejected=no
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384     for ac_exec_ext in '' $ac_executable_extensions; do
3385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3387        ac_prog_rejected=yes
3388        continue
3389      fi
3390     ac_cv_prog_CC="cc"
3391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395   done
3396 IFS=$as_save_IFS
3397
3398 if test $ac_prog_rejected = yes; then
3399   # We found a bogon in the path, so make sure we never use it.
3400   set dummy $ac_cv_prog_CC
3401   shift
3402   if test $# != 0; then
3403     # We chose a different compiler from the bogus one.
3404     # However, it has the same basename, so the bogon will be chosen
3405     # first if we set CC to just the basename; use the full file name.
3406     shift
3407     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3408   fi
3409 fi
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422 fi
3423 if test -z "$CC"; then
3424   if test -n "$ac_tool_prefix"; then
3425   for ac_prog in cl.exe
3426   do
3427     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432   $as_echo_n "(cached) " >&6
3433 else
3434   if test -n "$CC"; then
3435   ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442     for ac_exec_ext in '' $ac_executable_extensions; do
3443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446     break 2
3447   fi
3448 done
3449   done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463
3464     test -n "$CC" && break
3465   done
3466 fi
3467 if test -z "$CC"; then
3468   ac_ct_CC=$CC
3469   for ac_prog in cl.exe
3470 do
3471   # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   if test -n "$ac_ct_CC"; then
3479   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486     for ac_exec_ext in '' $ac_executable_extensions; do
3487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488     ac_cv_prog_ac_ct_CC="$ac_prog"
3489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493   done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3502 else
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507
3508   test -n "$ac_ct_CC" && break
3509 done
3510
3511   if test "x$ac_ct_CC" = x; then
3512     CC=""
3513   else
3514     case $cross_compiling:$ac_tool_warned in
3515 yes:)
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned=yes ;;
3519 esac
3520     CC=$ac_ct_CC
3521   fi
3522 fi
3523
3524 fi
3525
3526
3527 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "no acceptable C compiler found in \$PATH
3530 See \`config.log' for more details" "$LINENO" 5; }
3531
3532 # Provide some information about the compiler.
3533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3534 set X $ac_compile
3535 ac_compiler=$2
3536 for ac_option in --version -v -V -qversion; do
3537   { { ac_try="$ac_compiler $ac_option >&5"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3545   ac_status=$?
3546   if test -s conftest.err; then
3547     sed '10a\
3548 ... rest of stderr output deleted ...
3549          10q' conftest.err >conftest.er1
3550     cat conftest.er1 >&5
3551   fi
3552   rm -f conftest.er1 conftest.err
3553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554   test $ac_status = 0; }
3555 done
3556
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h.  */
3559
3560 int
3561 main ()
3562 {
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3570 # Try to create an executable without -o first, disregard a.out.
3571 # It will help us diagnose broken compilers, and finding out an intuition
3572 # of exeext.
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574 $as_echo_n "checking whether the C compiler works... " >&6; }
3575 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3576
3577 # The possible output files:
3578 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3579
3580 ac_rmfiles=
3581 for ac_file in $ac_files
3582 do
3583   case $ac_file in
3584     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3586   esac
3587 done
3588 rm -f $ac_rmfiles
3589
3590 if { { ac_try="$ac_link_default"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597   (eval "$ac_link_default") 2>&5
3598   ac_status=$?
3599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600   test $ac_status = 0; }; then :
3601   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3602 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3603 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3604 # so that the user can short-circuit this test for compilers unknown to
3605 # Autoconf.
3606 for ac_file in $ac_files ''
3607 do
3608   test -f "$ac_file" || continue
3609   case $ac_file in
3610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3611         ;;
3612     [ab].out )
3613         # We found the default executable, but exeext='' is most
3614         # certainly right.
3615         break;;
3616     *.* )
3617         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3618         then :; else
3619            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620         fi
3621         # We set ac_cv_exeext here because the later test for it is not
3622         # safe: cross compilers may not add the suffix if given an `-o'
3623         # argument, so we may need to know it at that point already.
3624         # Even if this section looks crufty: it has the advantage of
3625         # actually working.
3626         break;;
3627     * )
3628         break;;
3629   esac
3630 done
3631 test "$ac_cv_exeext" = no && ac_cv_exeext=
3632
3633 else
3634   ac_file=''
3635 fi
3636 if test -z "$ac_file"; then :
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error 77 "C compiler cannot create executables
3645 See \`config.log' for more details" "$LINENO" 5; }
3646 else
3647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3648 $as_echo "yes" >&6; }
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3651 $as_echo_n "checking for C compiler default output file name... " >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3653 $as_echo "$ac_file" >&6; }
3654 ac_exeext=$ac_cv_exeext
3655
3656 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3657 ac_clean_files=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3659 $as_echo_n "checking for suffix of executables... " >&6; }
3660 if { { ac_try="$ac_link"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667   (eval "$ac_link") 2>&5
3668   ac_status=$?
3669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670   test $ac_status = 0; }; then :
3671   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3672 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3673 # work properly (i.e., refer to `conftest.exe'), while it won't with
3674 # `rm'.
3675 for ac_file in conftest.exe conftest conftest.*; do
3676   test -f "$ac_file" || continue
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3680           break;;
3681     * ) break;;
3682   esac
3683 done
3684 else
3685   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3688 See \`config.log' for more details" "$LINENO" 5; }
3689 fi
3690 rm -f conftest conftest$ac_cv_exeext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3692 $as_echo "$ac_cv_exeext" >&6; }
3693
3694 rm -f conftest.$ac_ext
3695 EXEEXT=$ac_cv_exeext
3696 ac_exeext=$EXEEXT
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699 #include <stdio.h>
3700 int
3701 main ()
3702 {
3703 FILE *f = fopen ("conftest.out", "w");
3704  return ferror (f) || fclose (f) != 0;
3705
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 ac_clean_files="$ac_clean_files conftest.out"
3711 # Check that the compiler produces executables we can run.  If not, either
3712 # the compiler is broken, or we cross compile.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3714 $as_echo_n "checking whether we are cross compiling... " >&6; }
3715 if test "$cross_compiling" != yes; then
3716   { { ac_try="$ac_link"
3717 case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723   (eval "$ac_link") 2>&5
3724   ac_status=$?
3725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726   test $ac_status = 0; }
3727   if { ac_try='./conftest$ac_cv_exeext'
3728   { { case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734   (eval "$ac_try") 2>&5
3735   ac_status=$?
3736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737   test $ac_status = 0; }; }; then
3738     cross_compiling=no
3739   else
3740     if test "$cross_compiling" = maybe; then
3741         cross_compiling=yes
3742     else
3743         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $? "cannot run C compiled programs.
3746 If you meant to cross compile, use \`--host'.
3747 See \`config.log' for more details" "$LINENO" 5; }
3748     fi
3749   fi
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3752 $as_echo "$cross_compiling" >&6; }
3753
3754 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3755 ac_clean_files=$ac_clean_files_save
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3757 $as_echo_n "checking for suffix of object files... " >&6; }
3758 if ${ac_cv_objext+:} false; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 rm -f conftest.o conftest.obj
3773 if { { ac_try="$ac_compile"
3774 case "(($ac_try" in
3775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776   *) ac_try_echo=$ac_try;;
3777 esac
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780   (eval "$ac_compile") 2>&5
3781   ac_status=$?
3782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783   test $ac_status = 0; }; then :
3784   for ac_file in conftest.o conftest.obj conftest.*; do
3785   test -f "$ac_file" || continue;
3786   case $ac_file in
3787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3788     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3789        break;;
3790   esac
3791 done
3792 else
3793   $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error $? "cannot compute suffix of object files: cannot compile
3799 See \`config.log' for more details" "$LINENO" 5; }
3800 fi
3801 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3804 $as_echo "$ac_cv_objext" >&6; }
3805 OBJEXT=$ac_cv_objext
3806 ac_objext=$OBJEXT
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3809 if ${ac_cv_c_compiler_gnu+:} false; then :
3810   $as_echo_n "(cached) " >&6
3811 else
3812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818 #ifndef __GNUC__
3819        choke me
3820 #endif
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827   ac_compiler_gnu=yes
3828 else
3829   ac_compiler_gnu=no
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3833
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3836 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3837 if test $ac_compiler_gnu = yes; then
3838   GCC=yes
3839 else
3840   GCC=
3841 fi
3842 ac_test_CFLAGS=${CFLAGS+set}
3843 ac_save_CFLAGS=$CFLAGS
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3845 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3846 if ${ac_cv_prog_cc_g+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   ac_save_c_werror_flag=$ac_c_werror_flag
3850    ac_c_werror_flag=yes
3851    ac_cv_prog_cc_g=no
3852    CFLAGS="-g"
3853    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h.  */
3855
3856 int
3857 main ()
3858 {
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865   ac_cv_prog_cc_g=yes
3866 else
3867   CFLAGS=""
3868       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h.  */
3870
3871 int
3872 main ()
3873 {
3874
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880
3881 else
3882   ac_c_werror_flag=$ac_save_c_werror_flag
3883          CFLAGS="-g"
3884          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896   ac_cv_prog_cc_g=yes
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903    ac_c_werror_flag=$ac_save_c_werror_flag
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3906 $as_echo "$ac_cv_prog_cc_g" >&6; }
3907 if test "$ac_test_CFLAGS" = set; then
3908   CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910   if test "$GCC" = yes; then
3911     CFLAGS="-g -O2"
3912   else
3913     CFLAGS="-g"
3914   fi
3915 else
3916   if test "$GCC" = yes; then
3917     CFLAGS="-O2"
3918   else
3919     CFLAGS=
3920   fi
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3924 if ${ac_cv_prog_cc_c89+:} false; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   ac_cv_prog_cc_c89=no
3928 ac_save_CC=$CC
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931 #include <stdarg.h>
3932 #include <stdio.h>
3933 #include <sys/types.h>
3934 #include <sys/stat.h>
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3939      char **p;
3940      int i;
3941 {
3942   return p[i];
3943 }
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3945 {
3946   char *s;
3947   va_list v;
3948   va_start (v,p);
3949   s = g (p, va_arg (v,int));
3950   va_end (v);
3951   return s;
3952 }
3953
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3955    function prototypes and stuff, but not '\xHH' hex character constants.
3956    These don't provoke an error unfortunately, instead are silently treated
3957    as 'x'.  The following induces an error, until -std is added to get
3958    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3959    array size at least.  It's necessary to write '\x00'==0 to get something
3960    that's true only with -std.  */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964    inside strings and character constants.  */
3965 #define FOO(x) 'x'
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 int argc;
3973 char **argv;
3974 int
3975 main ()
3976 {
3977 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 do
3985   CC="$ac_save_CC $ac_arg"
3986   if ac_fn_c_try_compile "$LINENO"; then :
3987   ac_cv_prog_cc_c89=$ac_arg
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext
3990   test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 done
3992 rm -f conftest.$ac_ext
3993 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3998   x)
3999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001   xno)
4002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004   *)
4005     CC="$CC $ac_cv_prog_cc_c89"
4006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010
4011 fi
4012
4013 ac_ext=cpp
4014 ac_cpp='$CXXCPP $CPPFLAGS'
4015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4018 DEPDIR="${am__leading_dot}deps"
4019
4020 ac_config_commands="$ac_config_commands depfiles"
4021
4022
4023 am_make=${MAKE-make}
4024 cat > confinc << 'END'
4025 am__doit:
4026         @echo this is the am__doit target
4027 .PHONY: am__doit
4028 END
4029 # If we don't find an include directive, just comment out the code.
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4031 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4032 am__include="#"
4033 am__quote=
4034 _am_result=none
4035 # First try GNU make style include.
4036 echo "include confinc" > confmf
4037 # Ignore all kinds of additional output from `make'.
4038 case `$am_make -s -f confmf 2> /dev/null` in #(
4039 *the\ am__doit\ target*)
4040   am__include=include
4041   am__quote=
4042   _am_result=GNU
4043   ;;
4044 esac
4045 # Now try BSD make style include.
4046 if test "$am__include" = "#"; then
4047    echo '.include "confinc"' > confmf
4048    case `$am_make -s -f confmf 2> /dev/null` in #(
4049    *the\ am__doit\ target*)
4050      am__include=.include
4051      am__quote="\""
4052      _am_result=BSD
4053      ;;
4054    esac
4055 fi
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4059 $as_echo "$_am_result" >&6; }
4060 rm -f confinc confmf
4061
4062 # Check whether --enable-dependency-tracking was given.
4063 if test "${enable_dependency_tracking+set}" = set; then :
4064   enableval=$enable_dependency_tracking;
4065 fi
4066
4067 if test "x$enable_dependency_tracking" != xno; then
4068   am_depcomp="$ac_aux_dir/depcomp"
4069   AMDEPBACKSLASH='\'
4070   am__nodep='_no'
4071 fi
4072  if test "x$enable_dependency_tracking" != xno; then
4073   AMDEP_TRUE=
4074   AMDEP_FALSE='#'
4075 else
4076   AMDEP_TRUE='#'
4077   AMDEP_FALSE=
4078 fi
4079
4080
4081
4082 depcc="$CC"   am_compiler_list=
4083
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4085 $as_echo_n "checking dependency style of $depcc... " >&6; }
4086 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4087   $as_echo_n "(cached) " >&6
4088 else
4089   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4090   # We make a subdir and do the tests there.  Otherwise we can end up
4091   # making bogus files that we don't know about and never remove.  For
4092   # instance it was reported that on HP-UX the gcc test will end up
4093   # making a dummy file named `D' -- because `-MD' means `put the output
4094   # in D'.
4095   rm -rf conftest.dir
4096   mkdir conftest.dir
4097   # Copy depcomp to subdir because otherwise we won't find it if we're
4098   # using a relative directory.
4099   cp "$am_depcomp" conftest.dir
4100   cd conftest.dir
4101   # We will build objects and dependencies in a subdirectory because
4102   # it helps to detect inapplicable dependency modes.  For instance
4103   # both Tru64's cc and ICC support -MD to output dependencies as a
4104   # side effect of compilation, but ICC will put the dependencies in
4105   # the current directory while Tru64 will put them in the object
4106   # directory.
4107   mkdir sub
4108
4109   am_cv_CC_dependencies_compiler_type=none
4110   if test "$am_compiler_list" = ""; then
4111      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4112   fi
4113   am__universal=false
4114   case " $depcc " in #(
4115      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4116      esac
4117
4118   for depmode in $am_compiler_list; do
4119     # Setup a source with many dependencies, because some compilers
4120     # like to wrap large dependency lists on column 80 (with \), and
4121     # we should not choose a depcomp mode which is confused by this.
4122     #
4123     # We need to recreate these files for each test, as the compiler may
4124     # overwrite some of them when testing with obscure command lines.
4125     # This happens at least with the AIX C compiler.
4126     : > sub/conftest.c
4127     for i in 1 2 3 4 5 6; do
4128       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4130       # Solaris 8's {/usr,}/bin/sh.
4131       touch sub/conftst$i.h
4132     done
4133     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4134
4135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136     # mode.  It turns out that the SunPro C++ compiler does not properly
4137     # handle `-M -o', and we need to detect this.  Also, some Intel
4138     # versions had trouble with output in subdirs
4139     am__obj=sub/conftest.${OBJEXT-o}
4140     am__minus_obj="-o $am__obj"
4141     case $depmode in
4142     gcc)
4143       # This depmode causes a compiler race in universal mode.
4144       test "$am__universal" = false || continue
4145       ;;
4146     nosideeffect)
4147       # after this tag, mechanisms are not by side-effect, so they'll
4148       # only be used when explicitly requested
4149       if test "x$enable_dependency_tracking" = xyes; then
4150         continue
4151       else
4152         break
4153       fi
4154       ;;
4155     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4156       # This compiler won't grok `-c -o', but also, the minuso test has
4157       # not run yet.  These depmodes are late enough in the game, and
4158       # so weak that their functioning should not be impacted.
4159       am__obj=conftest.${OBJEXT-o}
4160       am__minus_obj=
4161       ;;
4162     none) break ;;
4163     esac
4164     if depmode=$depmode \
4165        source=sub/conftest.c object=$am__obj \
4166        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4167        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4168          >/dev/null 2>conftest.err &&
4169        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4170        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4172        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173       # icc doesn't choke on unknown options, it will just issue warnings
4174       # or remarks (even with -Werror).  So we grep stderr for any message
4175       # that says an option was ignored or not supported.
4176       # When given -MP, icc 7.0 and 7.1 complain thusly:
4177       #   icc: Command line warning: ignoring option '-M'; no argument required
4178       # The diagnosis changed in icc 8.0:
4179       #   icc: Command line remark: option '-MP' not supported
4180       if (grep 'ignoring option' conftest.err ||
4181           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4182         am_cv_CC_dependencies_compiler_type=$depmode
4183         break
4184       fi
4185     fi
4186   done
4187
4188   cd ..
4189   rm -rf conftest.dir
4190 else
4191   am_cv_CC_dependencies_compiler_type=none
4192 fi
4193
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4196 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4198
4199  if
4200   test "x$enable_dependency_tracking" != xno \
4201   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4202   am__fastdepCC_TRUE=
4203   am__fastdepCC_FALSE='#'
4204 else
4205   am__fastdepCC_TRUE='#'
4206   am__fastdepCC_FALSE=
4207 fi
4208
4209
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4217 # On Suns, sometimes $CPP names a directory.
4218 if test -n "$CPP" && test -d "$CPP"; then
4219   CPP=
4220 fi
4221 if test -z "$CPP"; then
4222   if ${ac_cv_prog_CPP+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225       # Double quotes because CPP needs to be expanded
4226     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227     do
4228       ac_preproc_ok=false
4229 for ac_c_preproc_warn_flag in '' yes
4230 do
4231   # Use a header file that comes with gcc, so configuring glibc
4232   # with a fresh cross-compiler works.
4233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234   # <limits.h> exists even on freestanding compilers.
4235   # On the NeXT, cc -E runs the code through the compiler's parser,
4236   # not just through cpp. "Syntax error" is here to catch this case.
4237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h.  */
4239 #ifdef __STDC__
4240 # include <limits.h>
4241 #else
4242 # include <assert.h>
4243 #endif
4244                      Syntax error
4245 _ACEOF
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4247
4248 else
4249   # Broken: fails on valid input.
4250 continue
4251 fi
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254   # OK, works on sane cases.  Now check whether nonexistent headers
4255   # can be detected and how.
4256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258 #include <ac_nonexistent.h>
4259 _ACEOF
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261   # Broken: success on invalid input.
4262 continue
4263 else
4264   # Passes both tests.
4265 ac_preproc_ok=:
4266 break
4267 fi
4268 rm -f conftest.err conftest.i conftest.$ac_ext
4269
4270 done
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.i conftest.err conftest.$ac_ext
4273 if $ac_preproc_ok; then :
4274   break
4275 fi
4276
4277     done
4278     ac_cv_prog_CPP=$CPP
4279
4280 fi
4281   CPP=$ac_cv_prog_CPP
4282 else
4283   ac_cv_prog_CPP=$CPP
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286 $as_echo "$CPP" >&6; }
4287 ac_preproc_ok=false
4288 for ac_c_preproc_warn_flag in '' yes
4289 do
4290   # Use a header file that comes with gcc, so configuring glibc
4291   # with a fresh cross-compiler works.
4292   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293   # <limits.h> exists even on freestanding compilers.
4294   # On the NeXT, cc -E runs the code through the compiler's parser,
4295   # not just through cpp. "Syntax error" is here to catch this case.
4296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298 #ifdef __STDC__
4299 # include <limits.h>
4300 #else
4301 # include <assert.h>
4302 #endif
4303                      Syntax error
4304 _ACEOF
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4306
4307 else
4308   # Broken: fails on valid input.
4309 continue
4310 fi
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313   # OK, works on sane cases.  Now check whether nonexistent headers
4314   # can be detected and how.
4315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317 #include <ac_nonexistent.h>
4318 _ACEOF
4319 if ac_fn_c_try_cpp "$LINENO"; then :
4320   # Broken: success on invalid input.
4321 continue
4322 else
4323   # Passes both tests.
4324 ac_preproc_ok=:
4325 break
4326 fi
4327 rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329 done
4330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331 rm -f conftest.i conftest.err conftest.$ac_ext
4332 if $ac_preproc_ok; then :
4333
4334 else
4335   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details" "$LINENO" 5; }
4339 fi
4340
4341 ac_ext=cpp
4342 ac_cpp='$CXXCPP $CPPFLAGS'
4343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4346
4347 ac_ext=cpp
4348 ac_cpp='$CXXCPP $CPPFLAGS'
4349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4352 if test -z "$CXX"; then
4353   if test -n "$CCC"; then
4354     CXX=$CCC
4355   else
4356     if test -n "$ac_tool_prefix"; then
4357   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4358   do
4359     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_CXX+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   if test -n "$CXX"; then
4367   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374     for ac_exec_ext in '' $ac_executable_extensions; do
4375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381   done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 CXX=$ac_cv_prog_CXX
4387 if test -n "$CXX"; then
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4389 $as_echo "$CXX" >&6; }
4390 else
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396     test -n "$CXX" && break
4397   done
4398 fi
4399 if test -z "$CXX"; then
4400   ac_ct_CXX=$CXX
4401   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 do
4403   # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4408   $as_echo_n "(cached) " >&6
4409 else
4410   if test -n "$ac_ct_CXX"; then
4411   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418     for ac_exec_ext in '' $ac_executable_extensions; do
4419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420     ac_cv_prog_ac_ct_CXX="$ac_prog"
4421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425   done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4431 if test -n "$ac_ct_CXX"; then
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4433 $as_echo "$ac_ct_CXX" >&6; }
4434 else
4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440   test -n "$ac_ct_CXX" && break
4441 done
4442
4443   if test "x$ac_ct_CXX" = x; then
4444     CXX="g++"
4445   else
4446     case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452     CXX=$ac_ct_CXX
4453   fi
4454 fi
4455
4456   fi
4457 fi
4458 # Provide some information about the compiler.
4459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4460 set X $ac_compile
4461 ac_compiler=$2
4462 for ac_option in --version -v -V -qversion; do
4463   { { ac_try="$ac_compiler $ac_option >&5"
4464 case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471   ac_status=$?
4472   if test -s conftest.err; then
4473     sed '10a\
4474 ... rest of stderr output deleted ...
4475          10q' conftest.err >conftest.er1
4476     cat conftest.er1 >&5
4477   fi
4478   rm -f conftest.er1 conftest.err
4479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480   test $ac_status = 0; }
4481 done
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4484 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4485 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491 int
4492 main ()
4493 {
4494 #ifndef __GNUC__
4495        choke me
4496 #endif
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4503   ac_compiler_gnu=yes
4504 else
4505   ac_compiler_gnu=no
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4509
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4512 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4513 if test $ac_compiler_gnu = yes; then
4514   GXX=yes
4515 else
4516   GXX=
4517 fi
4518 ac_test_CXXFLAGS=${CXXFLAGS+set}
4519 ac_save_CXXFLAGS=$CXXFLAGS
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4521 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4522 if ${ac_cv_prog_cxx_g+:} false; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4526    ac_cxx_werror_flag=yes
4527    ac_cv_prog_cxx_g=no
4528    CXXFLAGS="-g"
4529    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531
4532 int
4533 main ()
4534 {
4535
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_cxx_try_compile "$LINENO"; then :
4541   ac_cv_prog_cxx_g=yes
4542 else
4543   CXXFLAGS=""
4544       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h.  */
4546
4547 int
4548 main ()
4549 {
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_cxx_try_compile "$LINENO"; then :
4556
4557 else
4558   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4559          CXXFLAGS="-g"
4560          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562
4563 int
4564 main ()
4565 {
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_cxx_try_compile "$LINENO"; then :
4572   ac_cv_prog_cxx_g=yes
4573 fi
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4582 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4583 if test "$ac_test_CXXFLAGS" = set; then
4584   CXXFLAGS=$ac_save_CXXFLAGS
4585 elif test $ac_cv_prog_cxx_g = yes; then
4586   if test "$GXX" = yes; then
4587     CXXFLAGS="-g -O2"
4588   else
4589     CXXFLAGS="-g"
4590   fi
4591 else
4592   if test "$GXX" = yes; then
4593     CXXFLAGS="-O2"
4594   else
4595     CXXFLAGS=
4596   fi
4597 fi
4598 ac_ext=cpp
4599 ac_cpp='$CXXCPP $CPPFLAGS'
4600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4603
4604 depcc="$CXX"  am_compiler_list=
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4607 $as_echo_n "checking dependency style of $depcc... " >&6; }
4608 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4612   # We make a subdir and do the tests there.  Otherwise we can end up
4613   # making bogus files that we don't know about and never remove.  For
4614   # instance it was reported that on HP-UX the gcc test will end up
4615   # making a dummy file named `D' -- because `-MD' means `put the output
4616   # in D'.
4617   rm -rf conftest.dir
4618   mkdir conftest.dir
4619   # Copy depcomp to subdir because otherwise we won't find it if we're
4620   # using a relative directory.
4621   cp "$am_depcomp" conftest.dir
4622   cd conftest.dir
4623   # We will build objects and dependencies in a subdirectory because
4624   # it helps to detect inapplicable dependency modes.  For instance
4625   # both Tru64's cc and ICC support -MD to output dependencies as a
4626   # side effect of compilation, but ICC will put the dependencies in
4627   # the current directory while Tru64 will put them in the object
4628   # directory.
4629   mkdir sub
4630
4631   am_cv_CXX_dependencies_compiler_type=none
4632   if test "$am_compiler_list" = ""; then
4633      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4634   fi
4635   am__universal=false
4636   case " $depcc " in #(
4637      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4638      esac
4639
4640   for depmode in $am_compiler_list; do
4641     # Setup a source with many dependencies, because some compilers
4642     # like to wrap large dependency lists on column 80 (with \), and
4643     # we should not choose a depcomp mode which is confused by this.
4644     #
4645     # We need to recreate these files for each test, as the compiler may
4646     # overwrite some of them when testing with obscure command lines.
4647     # This happens at least with the AIX C compiler.
4648     : > sub/conftest.c
4649     for i in 1 2 3 4 5 6; do
4650       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4651       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4652       # Solaris 8's {/usr,}/bin/sh.
4653       touch sub/conftst$i.h
4654     done
4655     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4656
4657     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4658     # mode.  It turns out that the SunPro C++ compiler does not properly
4659     # handle `-M -o', and we need to detect this.  Also, some Intel
4660     # versions had trouble with output in subdirs
4661     am__obj=sub/conftest.${OBJEXT-o}
4662     am__minus_obj="-o $am__obj"
4663     case $depmode in
4664     gcc)
4665       # This depmode causes a compiler race in universal mode.
4666       test "$am__universal" = false || continue
4667       ;;
4668     nosideeffect)
4669       # after this tag, mechanisms are not by side-effect, so they'll
4670       # only be used when explicitly requested
4671       if test "x$enable_dependency_tracking" = xyes; then
4672         continue
4673       else
4674         break
4675       fi
4676       ;;
4677     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4678       # This compiler won't grok `-c -o', but also, the minuso test has
4679       # not run yet.  These depmodes are late enough in the game, and
4680       # so weak that their functioning should not be impacted.
4681       am__obj=conftest.${OBJEXT-o}
4682       am__minus_obj=
4683       ;;
4684     none) break ;;
4685     esac
4686     if depmode=$depmode \
4687        source=sub/conftest.c object=$am__obj \
4688        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4689        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4690          >/dev/null 2>conftest.err &&
4691        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4692        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4693        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4694        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4695       # icc doesn't choke on unknown options, it will just issue warnings
4696       # or remarks (even with -Werror).  So we grep stderr for any message
4697       # that says an option was ignored or not supported.
4698       # When given -MP, icc 7.0 and 7.1 complain thusly:
4699       #   icc: Command line warning: ignoring option '-M'; no argument required
4700       # The diagnosis changed in icc 8.0:
4701       #   icc: Command line remark: option '-MP' not supported
4702       if (grep 'ignoring option' conftest.err ||
4703           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4704         am_cv_CXX_dependencies_compiler_type=$depmode
4705         break
4706       fi
4707     fi
4708   done
4709
4710   cd ..
4711   rm -rf conftest.dir
4712 else
4713   am_cv_CXX_dependencies_compiler_type=none
4714 fi
4715
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4718 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4719 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4720
4721  if
4722   test "x$enable_dependency_tracking" != xno \
4723   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4724   am__fastdepCXX_TRUE=
4725   am__fastdepCXX_FALSE='#'
4726 else
4727   am__fastdepCXX_TRUE='#'
4728   am__fastdepCXX_FALSE=
4729 fi
4730
4731
4732  if test "$GCC" = yes; then
4733   GCC_TRUE=
4734   GCC_FALSE='#'
4735 else
4736   GCC_TRUE='#'
4737   GCC_FALSE=
4738 fi
4739    # let the Makefile know if we're gcc
4740
4741 case `pwd` in
4742   *\ * | *\     *)
4743     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4744 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4745 esac
4746
4747
4748
4749 macro_version='2.4.2'
4750 macro_revision='1.3337'
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 ltmain="$ac_aux_dir/ltmain.sh"
4765
4766 # Make sure we can run config.sub.
4767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4768   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4771 $as_echo_n "checking build system type... " >&6; }
4772 if ${ac_cv_build+:} false; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   ac_build_alias=$build_alias
4776 test "x$ac_build_alias" = x &&
4777   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4778 test "x$ac_build_alias" = x &&
4779   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4781   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4782
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4785 $as_echo "$ac_cv_build" >&6; }
4786 case $ac_cv_build in
4787 *-*-*) ;;
4788 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4789 esac
4790 build=$ac_cv_build
4791 ac_save_IFS=$IFS; IFS='-'
4792 set x $ac_cv_build
4793 shift
4794 build_cpu=$1
4795 build_vendor=$2
4796 shift; shift
4797 # Remember, the first character of IFS is used to create $*,
4798 # except with old shells:
4799 build_os=$*
4800 IFS=$ac_save_IFS
4801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4802
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4805 $as_echo_n "checking host system type... " >&6; }
4806 if ${ac_cv_host+:} false; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   if test "x$host_alias" = x; then
4810   ac_cv_host=$ac_cv_build
4811 else
4812   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4813     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4814 fi
4815
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4818 $as_echo "$ac_cv_host" >&6; }
4819 case $ac_cv_host in
4820 *-*-*) ;;
4821 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4822 esac
4823 host=$ac_cv_host
4824 ac_save_IFS=$IFS; IFS='-'
4825 set x $ac_cv_host
4826 shift
4827 host_cpu=$1
4828 host_vendor=$2
4829 shift; shift
4830 # Remember, the first character of IFS is used to create $*,
4831 # except with old shells:
4832 host_os=$*
4833 IFS=$ac_save_IFS
4834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4835
4836
4837 # Backslashify metacharacters that are still active within
4838 # double-quoted strings.
4839 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4840
4841 # Same as above, but do not quote variable references.
4842 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4843
4844 # Sed substitution to delay expansion of an escaped shell variable in a
4845 # double_quote_subst'ed string.
4846 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4847
4848 # Sed substitution to delay expansion of an escaped single quote.
4849 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4850
4851 # Sed substitution to avoid accidental globbing in evaled expressions
4852 no_glob_subst='s/\*/\\\*/g'
4853
4854 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4856 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4859 $as_echo_n "checking how to print strings... " >&6; }
4860 # Test print first, because it will be a builtin if present.
4861 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4862    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4863   ECHO='print -r --'
4864 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4865   ECHO='printf %s\n'
4866 else
4867   # Use this function as a fallback that always works.
4868   func_fallback_echo ()
4869   {
4870     eval 'cat <<_LTECHO_EOF
4871 $1
4872 _LTECHO_EOF'
4873   }
4874   ECHO='func_fallback_echo'
4875 fi
4876
4877 # func_echo_all arg...
4878 # Invoke $ECHO with all args, space-separated.
4879 func_echo_all ()
4880 {
4881     $ECHO ""
4882 }
4883
4884 case "$ECHO" in
4885   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4886 $as_echo "printf" >&6; } ;;
4887   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4888 $as_echo "print -r" >&6; } ;;
4889   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4890 $as_echo "cat" >&6; } ;;
4891 esac
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4908 if ${ac_cv_path_SED+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4912      for ac_i in 1 2 3 4 5 6 7; do
4913        ac_script="$ac_script$as_nl$ac_script"
4914      done
4915      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4916      { ac_script=; unset ac_script;}
4917      if test -z "$SED"; then
4918   ac_path_SED_found=false
4919   # Loop through the user's path and test for each of PROGNAME-LIST
4920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_prog in sed gsed; do
4926     for ac_exec_ext in '' $ac_executable_extensions; do
4927       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4928       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4929 # Check for GNU ac_path_SED and select it if it is found.
4930   # Check for GNU $ac_path_SED
4931 case `"$ac_path_SED" --version 2>&1` in
4932 *GNU*)
4933   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4934 *)
4935   ac_count=0
4936   $as_echo_n 0123456789 >"conftest.in"
4937   while :
4938   do
4939     cat "conftest.in" "conftest.in" >"conftest.tmp"
4940     mv "conftest.tmp" "conftest.in"
4941     cp "conftest.in" "conftest.nl"
4942     $as_echo '' >> "conftest.nl"
4943     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4944     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4945     as_fn_arith $ac_count + 1 && ac_count=$as_val
4946     if test $ac_count -gt ${ac_path_SED_max-0}; then
4947       # Best one so far, save it but keep looking for a better one
4948       ac_cv_path_SED="$ac_path_SED"
4949       ac_path_SED_max=$ac_count
4950     fi
4951     # 10*(2^10) chars as input seems more than enough
4952     test $ac_count -gt 10 && break
4953   done
4954   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4955 esac
4956
4957       $ac_path_SED_found && break 3
4958     done
4959   done
4960   done
4961 IFS=$as_save_IFS
4962   if test -z "$ac_cv_path_SED"; then
4963     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4964   fi
4965 else
4966   ac_cv_path_SED=$SED
4967 fi
4968
4969 fi
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4971 $as_echo "$ac_cv_path_SED" >&6; }
4972  SED="$ac_cv_path_SED"
4973   rm -f conftest.sed
4974
4975 test -z "$SED" && SED=sed
4976 Xsed="$SED -e 1s/^X//"
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4990 if ${ac_cv_path_GREP+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   if test -z "$GREP"; then
4994   ac_path_GREP_found=false
4995   # Loop through the user's path and test for each of PROGNAME-LIST
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_prog in grep ggrep; do
5002     for ac_exec_ext in '' $ac_executable_extensions; do
5003       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5004       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5005 # Check for GNU ac_path_GREP and select it if it is found.
5006   # Check for GNU $ac_path_GREP
5007 case `"$ac_path_GREP" --version 2>&1` in
5008 *GNU*)
5009   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5010 *)
5011   ac_count=0
5012   $as_echo_n 0123456789 >"conftest.in"
5013   while :
5014   do
5015     cat "conftest.in" "conftest.in" >"conftest.tmp"
5016     mv "conftest.tmp" "conftest.in"
5017     cp "conftest.in" "conftest.nl"
5018     $as_echo 'GREP' >> "conftest.nl"
5019     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5020     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5021     as_fn_arith $ac_count + 1 && ac_count=$as_val
5022     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5023       # Best one so far, save it but keep looking for a better one
5024       ac_cv_path_GREP="$ac_path_GREP"
5025       ac_path_GREP_max=$ac_count
5026     fi
5027     # 10*(2^10) chars as input seems more than enough
5028     test $ac_count -gt 10 && break
5029   done
5030   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5031 esac
5032
5033       $ac_path_GREP_found && break 3
5034     done
5035   done
5036   done
5037 IFS=$as_save_IFS
5038   if test -z "$ac_cv_path_GREP"; then
5039     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5040   fi
5041 else
5042   ac_cv_path_GREP=$GREP
5043 fi
5044
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5047 $as_echo "$ac_cv_path_GREP" >&6; }
5048  GREP="$ac_cv_path_GREP"
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5052 $as_echo_n "checking for egrep... " >&6; }
5053 if ${ac_cv_path_EGREP+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5057    then ac_cv_path_EGREP="$GREP -E"
5058    else
5059      if test -z "$EGREP"; then
5060   ac_path_EGREP_found=false
5061   # Loop through the user's path and test for each of PROGNAME-LIST
5062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5064 do
5065   IFS=$as_save_IFS
5066   test -z "$as_dir" && as_dir=.
5067     for ac_prog in egrep; do
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5070       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5071 # Check for GNU ac_path_EGREP and select it if it is found.
5072   # Check for GNU $ac_path_EGREP
5073 case `"$ac_path_EGREP" --version 2>&1` in
5074 *GNU*)
5075   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5076 *)
5077   ac_count=0
5078   $as_echo_n 0123456789 >"conftest.in"
5079   while :
5080   do
5081     cat "conftest.in" "conftest.in" >"conftest.tmp"
5082     mv "conftest.tmp" "conftest.in"
5083     cp "conftest.in" "conftest.nl"
5084     $as_echo 'EGREP' >> "conftest.nl"
5085     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5086     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5087     as_fn_arith $ac_count + 1 && ac_count=$as_val
5088     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5089       # Best one so far, save it but keep looking for a better one
5090       ac_cv_path_EGREP="$ac_path_EGREP"
5091       ac_path_EGREP_max=$ac_count
5092     fi
5093     # 10*(2^10) chars as input seems more than enough
5094     test $ac_count -gt 10 && break
5095   done
5096   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5097 esac
5098
5099       $ac_path_EGREP_found && break 3
5100     done
5101   done
5102   done
5103 IFS=$as_save_IFS
5104   if test -z "$ac_cv_path_EGREP"; then
5105     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5106   fi
5107 else
5108   ac_cv_path_EGREP=$EGREP
5109 fi
5110
5111    fi
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5114 $as_echo "$ac_cv_path_EGREP" >&6; }
5115  EGREP="$ac_cv_path_EGREP"
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5119 $as_echo_n "checking for fgrep... " >&6; }
5120 if ${ac_cv_path_FGREP+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5124    then ac_cv_path_FGREP="$GREP -F"
5125    else
5126      if test -z "$FGREP"; then
5127   ac_path_FGREP_found=false
5128   # Loop through the user's path and test for each of PROGNAME-LIST
5129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134     for ac_prog in fgrep; do
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5137       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5138 # Check for GNU ac_path_FGREP and select it if it is found.
5139   # Check for GNU $ac_path_FGREP
5140 case `"$ac_path_FGREP" --version 2>&1` in
5141 *GNU*)
5142   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5143 *)
5144   ac_count=0
5145   $as_echo_n 0123456789 >"conftest.in"
5146   while :
5147   do
5148     cat "conftest.in" "conftest.in" >"conftest.tmp"
5149     mv "conftest.tmp" "conftest.in"
5150     cp "conftest.in" "conftest.nl"
5151     $as_echo 'FGREP' >> "conftest.nl"
5152     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5154     as_fn_arith $ac_count + 1 && ac_count=$as_val
5155     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5156       # Best one so far, save it but keep looking for a better one
5157       ac_cv_path_FGREP="$ac_path_FGREP"
5158       ac_path_FGREP_max=$ac_count
5159     fi
5160     # 10*(2^10) chars as input seems more than enough
5161     test $ac_count -gt 10 && break
5162   done
5163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164 esac
5165
5166       $ac_path_FGREP_found && break 3
5167     done
5168   done
5169   done
5170 IFS=$as_save_IFS
5171   if test -z "$ac_cv_path_FGREP"; then
5172     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173   fi
5174 else
5175   ac_cv_path_FGREP=$FGREP
5176 fi
5177
5178    fi
5179 fi
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5181 $as_echo "$ac_cv_path_FGREP" >&6; }
5182  FGREP="$ac_cv_path_FGREP"
5183
5184
5185 test -z "$GREP" && GREP=grep
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 # Check whether --with-gnu-ld was given.
5206 if test "${with_gnu_ld+set}" = set; then :
5207   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5208 else
5209   with_gnu_ld=no
5210 fi
5211
5212 ac_prog=ld
5213 if test "$GCC" = yes; then
5214   # Check if gcc -print-prog-name=ld gives a path.
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5216 $as_echo_n "checking for ld used by $CC... " >&6; }
5217   case $host in
5218   *-*-mingw*)
5219     # gcc leaves a trailing carriage return which upsets mingw
5220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5221   *)
5222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5223   esac
5224   case $ac_prog in
5225     # Accept absolute paths.
5226     [\\/]* | ?:[\\/]*)
5227       re_direlt='/[^/][^/]*/\.\./'
5228       # Canonicalize the pathname of ld
5229       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5230       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5231         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5232       done
5233       test -z "$LD" && LD="$ac_prog"
5234       ;;
5235   "")
5236     # If it fails, then pretend we aren't using GCC.
5237     ac_prog=ld
5238     ;;
5239   *)
5240     # If it is relative, then search for the first ld in PATH.
5241     with_gnu_ld=unknown
5242     ;;
5243   esac
5244 elif test "$with_gnu_ld" = yes; then
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5246 $as_echo_n "checking for GNU ld... " >&6; }
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5249 $as_echo_n "checking for non-GNU ld... " >&6; }
5250 fi
5251 if ${lt_cv_path_LD+:} false; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   if test -z "$LD"; then
5255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5256   for ac_dir in $PATH; do
5257     IFS="$lt_save_ifs"
5258     test -z "$ac_dir" && ac_dir=.
5259     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5260       lt_cv_path_LD="$ac_dir/$ac_prog"
5261       # Check to see if the program is GNU ld.  I'd rather use --version,
5262       # but apparently some variants of GNU ld only accept -v.
5263       # Break only if it was the GNU/non-GNU ld that we prefer.
5264       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5265       *GNU* | *'with BFD'*)
5266         test "$with_gnu_ld" != no && break
5267         ;;
5268       *)
5269         test "$with_gnu_ld" != yes && break
5270         ;;
5271       esac
5272     fi
5273   done
5274   IFS="$lt_save_ifs"
5275 else
5276   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5277 fi
5278 fi
5279
5280 LD="$lt_cv_path_LD"
5281 if test -n "$LD"; then
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5283 $as_echo "$LD" >&6; }
5284 else
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5291 if ${lt_cv_prog_gnu_ld+:} false; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5295 case `$LD -v 2>&1 </dev/null` in
5296 *GNU* | *'with BFD'*)
5297   lt_cv_prog_gnu_ld=yes
5298   ;;
5299 *)
5300   lt_cv_prog_gnu_ld=no
5301   ;;
5302 esac
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5306 with_gnu_ld=$lt_cv_prog_gnu_ld
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5318 if ${lt_cv_path_NM+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   if test -n "$NM"; then
5322   # Let the user override the test.
5323   lt_cv_path_NM="$NM"
5324 else
5325   lt_nm_to_check="${ac_tool_prefix}nm"
5326   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5327     lt_nm_to_check="$lt_nm_to_check nm"
5328   fi
5329   for lt_tmp_nm in $lt_nm_to_check; do
5330     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5331     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5332       IFS="$lt_save_ifs"
5333       test -z "$ac_dir" && ac_dir=.
5334       tmp_nm="$ac_dir/$lt_tmp_nm"
5335       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5336         # Check to see if the nm accepts a BSD-compat flag.
5337         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5338         #   nm: unknown option "B" ignored
5339         # Tru64's nm complains that /dev/null is an invalid object file
5340         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5341         */dev/null* | *'Invalid file or object type'*)
5342           lt_cv_path_NM="$tmp_nm -B"
5343           break
5344           ;;
5345         *)
5346           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5347           */dev/null*)
5348             lt_cv_path_NM="$tmp_nm -p"
5349             break
5350             ;;
5351           *)
5352             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5353             continue # so that we can try to find one that supports BSD flags
5354             ;;
5355           esac
5356           ;;
5357         esac
5358       fi
5359     done
5360     IFS="$lt_save_ifs"
5361   done
5362   : ${lt_cv_path_NM=no}
5363 fi
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5366 $as_echo "$lt_cv_path_NM" >&6; }
5367 if test "$lt_cv_path_NM" != "no"; then
5368   NM="$lt_cv_path_NM"
5369 else
5370   # Didn't find any BSD compatible name lister, look for dumpbin.
5371   if test -n "$DUMPBIN"; then :
5372     # Let the user override the test.
5373   else
5374     if test -n "$ac_tool_prefix"; then
5375   for ac_prog in dumpbin "link -dump"
5376   do
5377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_DUMPBIN+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   if test -n "$DUMPBIN"; then
5385   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392     for ac_exec_ext in '' $ac_executable_extensions; do
5393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399   done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 DUMPBIN=$ac_cv_prog_DUMPBIN
5405 if test -n "$DUMPBIN"; then
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5407 $as_echo "$DUMPBIN" >&6; }
5408 else
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414     test -n "$DUMPBIN" && break
5415   done
5416 fi
5417 if test -z "$DUMPBIN"; then
5418   ac_ct_DUMPBIN=$DUMPBIN
5419   for ac_prog in dumpbin "link -dump"
5420 do
5421   # Extract the first word of "$ac_prog", so it can be a program name with args.
5422 set dummy $ac_prog; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   if test -n "$ac_ct_DUMPBIN"; then
5429   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436     for ac_exec_ext in '' $ac_executable_extensions; do
5437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5438     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443   done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5449 if test -n "$ac_ct_DUMPBIN"; then
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5451 $as_echo "$ac_ct_DUMPBIN" >&6; }
5452 else
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457
5458   test -n "$ac_ct_DUMPBIN" && break
5459 done
5460
5461   if test "x$ac_ct_DUMPBIN" = x; then
5462     DUMPBIN=":"
5463   else
5464     case $cross_compiling:$ac_tool_warned in
5465 yes:)
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468 ac_tool_warned=yes ;;
5469 esac
5470     DUMPBIN=$ac_ct_DUMPBIN
5471   fi
5472 fi
5473
5474     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5475     *COFF*)
5476       DUMPBIN="$DUMPBIN -symbols"
5477       ;;
5478     *)
5479       DUMPBIN=:
5480       ;;
5481     esac
5482   fi
5483
5484   if test "$DUMPBIN" != ":"; then
5485     NM="$DUMPBIN"
5486   fi
5487 fi
5488 test -z "$NM" && NM=nm
5489
5490
5491
5492
5493
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5497 if ${lt_cv_nm_interface+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   lt_cv_nm_interface="BSD nm"
5501   echo "int some_variable = 0;" > conftest.$ac_ext
5502   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5503   (eval "$ac_compile" 2>conftest.err)
5504   cat conftest.err >&5
5505   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5506   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5507   cat conftest.err >&5
5508   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5509   cat conftest.out >&5
5510   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5511     lt_cv_nm_interface="MS dumpbin"
5512   fi
5513   rm -f conftest*
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5516 $as_echo "$lt_cv_nm_interface" >&6; }
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5519 $as_echo_n "checking whether ln -s works... " >&6; }
5520 LN_S=$as_ln_s
5521 if test "$LN_S" = "ln -s"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523 $as_echo "yes" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5526 $as_echo "no, using $LN_S" >&6; }
5527 fi
5528
5529 # find the maximum length of command line arguments
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5532 if ${lt_cv_sys_max_cmd_len+:} false; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535     i=0
5536   teststring="ABCD"
5537
5538   case $build_os in
5539   msdosdjgpp*)
5540     # On DJGPP, this test can blow up pretty badly due to problems in libc
5541     # (any single argument exceeding 2000 bytes causes a buffer overrun
5542     # during glob expansion).  Even if it were fixed, the result of this
5543     # check would be larger than it should be.
5544     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5545     ;;
5546
5547   gnu*)
5548     # Under GNU Hurd, this test is not required because there is
5549     # no limit to the length of command line arguments.
5550     # Libtool will interpret -1 as no limit whatsoever
5551     lt_cv_sys_max_cmd_len=-1;
5552     ;;
5553
5554   cygwin* | mingw* | cegcc*)
5555     # On Win9x/ME, this test blows up -- it succeeds, but takes
5556     # about 5 minutes as the teststring grows exponentially.
5557     # Worse, since 9x/ME are not pre-emptively multitasking,
5558     # you end up with a "frozen" computer, even though with patience
5559     # the test eventually succeeds (with a max line length of 256k).
5560     # Instead, let's just punt: use the minimum linelength reported by
5561     # all of the supported platforms: 8192 (on NT/2K/XP).
5562     lt_cv_sys_max_cmd_len=8192;
5563     ;;
5564
5565   mint*)
5566     # On MiNT this can take a long time and run out of memory.
5567     lt_cv_sys_max_cmd_len=8192;
5568     ;;
5569
5570   amigaos*)
5571     # On AmigaOS with pdksh, this test takes hours, literally.
5572     # So we just punt and use a minimum line length of 8192.
5573     lt_cv_sys_max_cmd_len=8192;
5574     ;;
5575
5576   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5577     # This has been around since 386BSD, at least.  Likely further.
5578     if test -x /sbin/sysctl; then
5579       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5580     elif test -x /usr/sbin/sysctl; then
5581       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5582     else
5583       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5584     fi
5585     # And add a safety zone
5586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5588     ;;
5589
5590   interix*)
5591     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5592     lt_cv_sys_max_cmd_len=196608
5593     ;;
5594
5595   os2*)
5596     # The test takes a long time on OS/2.
5597     lt_cv_sys_max_cmd_len=8192
5598     ;;
5599
5600   osf*)
5601     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5602     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5603     # nice to cause kernel panics so lets avoid the loop below.
5604     # First set a reasonable default.
5605     lt_cv_sys_max_cmd_len=16384
5606     #
5607     if test -x /sbin/sysconfig; then
5608       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5609         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5610       esac
5611     fi
5612     ;;
5613   sco3.2v5*)
5614     lt_cv_sys_max_cmd_len=102400
5615     ;;
5616   sysv5* | sco5v6* | sysv4.2uw2*)
5617     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5618     if test -n "$kargmax"; then
5619       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5620     else
5621       lt_cv_sys_max_cmd_len=32768
5622     fi
5623     ;;
5624   *)
5625     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5626     if test -n "$lt_cv_sys_max_cmd_len"; then
5627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5629     else
5630       # Make teststring a little bigger before we do anything with it.
5631       # a 1K string should be a reasonable start.
5632       for i in 1 2 3 4 5 6 7 8 ; do
5633         teststring=$teststring$teststring
5634       done
5635       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5636       # If test is not a shell built-in, we'll probably end up computing a
5637       # maximum length that is only half of the actual maximum length, but
5638       # we can't tell.
5639       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5640                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5641               test $i != 17 # 1/2 MB should be enough
5642       do
5643         i=`expr $i + 1`
5644         teststring=$teststring$teststring
5645       done
5646       # Only check the string length outside the loop.
5647       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5648       teststring=
5649       # Add a significant safety factor because C++ compilers can tack on
5650       # massive amounts of additional arguments before passing them to the
5651       # linker.  It appears as though 1/2 is a usable value.
5652       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5653     fi
5654     ;;
5655   esac
5656
5657 fi
5658
5659 if test -n $lt_cv_sys_max_cmd_len ; then
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5661 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5662 else
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5664 $as_echo "none" >&6; }
5665 fi
5666 max_cmd_len=$lt_cv_sys_max_cmd_len
5667
5668
5669
5670
5671
5672
5673 : ${CP="cp -f"}
5674 : ${MV="mv -f"}
5675 : ${RM="rm -f"}
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5678 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5679 # Try some XSI features
5680 xsi_shell=no
5681 ( _lt_dummy="a/b/c"
5682   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5683       = c,a/b,b/c, \
5684     && eval 'test $(( 1 + 1 )) -eq 2 \
5685     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5686   && xsi_shell=yes
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5688 $as_echo "$xsi_shell" >&6; }
5689
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5692 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5693 lt_shell_append=no
5694 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5695     >/dev/null 2>&1 \
5696   && lt_shell_append=yes
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5698 $as_echo "$lt_shell_append" >&6; }
5699
5700
5701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5702   lt_unset=unset
5703 else
5704   lt_unset=false
5705 fi
5706
5707
5708
5709
5710
5711 # test EBCDIC or ASCII
5712 case `echo X|tr X '\101'` in
5713  A) # ASCII based system
5714     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5715   lt_SP2NL='tr \040 \012'
5716   lt_NL2SP='tr \015\012 \040\040'
5717   ;;
5718  *) # EBCDIC based system
5719   lt_SP2NL='tr \100 \n'
5720   lt_NL2SP='tr \r\n \100\100'
5721   ;;
5722 esac
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5733 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5734 if ${lt_cv_to_host_file_cmd+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   case $host in
5738   *-*-mingw* )
5739     case $build in
5740       *-*-mingw* ) # actually msys
5741         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5742         ;;
5743       *-*-cygwin* )
5744         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5745         ;;
5746       * ) # otherwise, assume *nix
5747         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5748         ;;
5749     esac
5750     ;;
5751   *-*-cygwin* )
5752     case $build in
5753       *-*-mingw* ) # actually msys
5754         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5755         ;;
5756       *-*-cygwin* )
5757         lt_cv_to_host_file_cmd=func_convert_file_noop
5758         ;;
5759       * ) # otherwise, assume *nix
5760         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5761         ;;
5762     esac
5763     ;;
5764   * ) # unhandled hosts (and "normal" native builds)
5765     lt_cv_to_host_file_cmd=func_convert_file_noop
5766     ;;
5767 esac
5768
5769 fi
5770
5771 to_host_file_cmd=$lt_cv_to_host_file_cmd
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5773 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5774
5775
5776
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5780 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5781 if ${lt_cv_to_tool_file_cmd+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   #assume ordinary cross tools, or native build.
5785 lt_cv_to_tool_file_cmd=func_convert_file_noop
5786 case $host in
5787   *-*-mingw* )
5788     case $build in
5789       *-*-mingw* ) # actually msys
5790         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5791         ;;
5792     esac
5793     ;;
5794 esac
5795
5796 fi
5797
5798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5800 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5801
5802
5803
5804
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5807 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5808 if ${lt_cv_ld_reload_flag+:} false; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   lt_cv_ld_reload_flag='-r'
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5814 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5815 reload_flag=$lt_cv_ld_reload_flag
5816 case $reload_flag in
5817 "" | " "*) ;;
5818 *) reload_flag=" $reload_flag" ;;
5819 esac
5820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5821 case $host_os in
5822   cygwin* | mingw* | pw32* | cegcc*)
5823     if test "$GCC" != yes; then
5824       reload_cmds=false
5825     fi
5826     ;;
5827   darwin*)
5828     if test "$GCC" = yes; then
5829       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5830     else
5831       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5832     fi
5833     ;;
5834 esac
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 if test -n "$ac_tool_prefix"; then
5845   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_OBJDUMP+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$OBJDUMP"; then
5853   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 OBJDUMP=$ac_cv_prog_OBJDUMP
5873 if test -n "$OBJDUMP"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5875 $as_echo "$OBJDUMP" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 fi
5883 if test -z "$ac_cv_prog_OBJDUMP"; then
5884   ac_ct_OBJDUMP=$OBJDUMP
5885   # Extract the first word of "objdump", so it can be a program name with args.
5886 set dummy objdump; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$ac_ct_OBJDUMP"; then
5893   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5913 if test -n "$ac_ct_OBJDUMP"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5915 $as_echo "$ac_ct_OBJDUMP" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921   if test "x$ac_ct_OBJDUMP" = x; then
5922     OBJDUMP="false"
5923   else
5924     case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930     OBJDUMP=$ac_ct_OBJDUMP
5931   fi
5932 else
5933   OBJDUMP="$ac_cv_prog_OBJDUMP"
5934 fi
5935
5936 test -z "$OBJDUMP" && OBJDUMP=objdump
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5948 if ${lt_cv_deplibs_check_method+:} false; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951   lt_cv_file_magic_cmd='$MAGIC_CMD'
5952 lt_cv_file_magic_test_file=
5953 lt_cv_deplibs_check_method='unknown'
5954 # Need to set the preceding variable on all platforms that support
5955 # interlibrary dependencies.
5956 # 'none' -- dependencies not supported.
5957 # `unknown' -- same as none, but documents that we really don't know.
5958 # 'pass_all' -- all dependencies passed with no checks.
5959 # 'test_compile' -- check by making test program.
5960 # 'file_magic [[regex]]' -- check by looking for files in library path
5961 # which responds to the $file_magic_cmd with a given extended regex.
5962 # If you have `file' or equivalent on your system and you're not sure
5963 # whether `pass_all' will *always* work, you probably want this one.
5964
5965 case $host_os in
5966 aix[4-9]*)
5967   lt_cv_deplibs_check_method=pass_all
5968   ;;
5969
5970 beos*)
5971   lt_cv_deplibs_check_method=pass_all
5972   ;;
5973
5974 bsdi[45]*)
5975   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5976   lt_cv_file_magic_cmd='/usr/bin/file -L'
5977   lt_cv_file_magic_test_file=/shlib/libc.so
5978   ;;
5979
5980 cygwin*)
5981   # func_win32_libid is a shell function defined in ltmain.sh
5982   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5983   lt_cv_file_magic_cmd='func_win32_libid'
5984   ;;
5985
5986 mingw* | pw32*)
5987   # Base MSYS/MinGW do not provide the 'file' command needed by
5988   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5989   # unless we find 'file', for example because we are cross-compiling.
5990   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5991   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5992     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5993     lt_cv_file_magic_cmd='func_win32_libid'
5994   else
5995     # Keep this pattern in sync with the one in func_win32_libid.
5996     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5997     lt_cv_file_magic_cmd='$OBJDUMP -f'
5998   fi
5999   ;;
6000
6001 cegcc*)
6002   # use the weaker test based on 'objdump'. See mingw*.
6003   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6004   lt_cv_file_magic_cmd='$OBJDUMP -f'
6005   ;;
6006
6007 darwin* | rhapsody*)
6008   lt_cv_deplibs_check_method=pass_all
6009   ;;
6010
6011 freebsd* | dragonfly*)
6012   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6013     case $host_cpu in
6014     i*86 )
6015       # Not sure whether the presence of OpenBSD here was a mistake.
6016       # Let's accept both of them until this is cleared up.
6017       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6018       lt_cv_file_magic_cmd=/usr/bin/file
6019       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6020       ;;
6021     esac
6022   else
6023     lt_cv_deplibs_check_method=pass_all
6024   fi
6025   ;;
6026
6027 gnu*)
6028   lt_cv_deplibs_check_method=pass_all
6029   ;;
6030
6031 haiku*)
6032   lt_cv_deplibs_check_method=pass_all
6033   ;;
6034
6035 hpux10.20* | hpux11*)
6036   lt_cv_file_magic_cmd=/usr/bin/file
6037   case $host_cpu in
6038   ia64*)
6039     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6040     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6041     ;;
6042   hppa*64*)
6043     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]'
6044     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6045     ;;
6046   *)
6047     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6048     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6049     ;;
6050   esac
6051   ;;
6052
6053 interix[3-9]*)
6054   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6055   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6056   ;;
6057
6058 irix5* | irix6* | nonstopux*)
6059   case $LD in
6060   *-32|*"-32 ") libmagic=32-bit;;
6061   *-n32|*"-n32 ") libmagic=N32;;
6062   *-64|*"-64 ") libmagic=64-bit;;
6063   *) libmagic=never-match;;
6064   esac
6065   lt_cv_deplibs_check_method=pass_all
6066   ;;
6067
6068 # This must be glibc/ELF.
6069 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6070   lt_cv_deplibs_check_method=pass_all
6071   ;;
6072
6073 netbsd* | netbsdelf*-gnu)
6074   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6075     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6076   else
6077     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6078   fi
6079   ;;
6080
6081 newos6*)
6082   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6083   lt_cv_file_magic_cmd=/usr/bin/file
6084   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6085   ;;
6086
6087 *nto* | *qnx*)
6088   lt_cv_deplibs_check_method=pass_all
6089   ;;
6090
6091 openbsd*)
6092   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6093     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6094   else
6095     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6096   fi
6097   ;;
6098
6099 osf3* | osf4* | osf5*)
6100   lt_cv_deplibs_check_method=pass_all
6101   ;;
6102
6103 rdos*)
6104   lt_cv_deplibs_check_method=pass_all
6105   ;;
6106
6107 solaris*)
6108   lt_cv_deplibs_check_method=pass_all
6109   ;;
6110
6111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6112   lt_cv_deplibs_check_method=pass_all
6113   ;;
6114
6115 sysv4 | sysv4.3*)
6116   case $host_vendor in
6117   motorola)
6118     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]'
6119     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6120     ;;
6121   ncr)
6122     lt_cv_deplibs_check_method=pass_all
6123     ;;
6124   sequent)
6125     lt_cv_file_magic_cmd='/bin/file'
6126     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6127     ;;
6128   sni)
6129     lt_cv_file_magic_cmd='/bin/file'
6130     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6131     lt_cv_file_magic_test_file=/lib/libc.so
6132     ;;
6133   siemens)
6134     lt_cv_deplibs_check_method=pass_all
6135     ;;
6136   pc)
6137     lt_cv_deplibs_check_method=pass_all
6138     ;;
6139   esac
6140   ;;
6141
6142 tpf*)
6143   lt_cv_deplibs_check_method=pass_all
6144   ;;
6145 esac
6146
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6149 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6150
6151 file_magic_glob=
6152 want_nocaseglob=no
6153 if test "$build" = "$host"; then
6154   case $host_os in
6155   mingw* | pw32*)
6156     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6157       want_nocaseglob=yes
6158     else
6159       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6160     fi
6161     ;;
6162   esac
6163 fi
6164
6165 file_magic_cmd=$lt_cv_file_magic_cmd
6166 deplibs_check_method=$lt_cv_deplibs_check_method
6167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 if test -n "$ac_tool_prefix"; then
6191   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_DLLTOOL+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   if test -n "$DLLTOOL"; then
6199   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 DLLTOOL=$ac_cv_prog_DLLTOOL
6219 if test -n "$DLLTOOL"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6221 $as_echo "$DLLTOOL" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227
6228 fi
6229 if test -z "$ac_cv_prog_DLLTOOL"; then
6230   ac_ct_DLLTOOL=$DLLTOOL
6231   # Extract the first word of "dlltool", so it can be a program name with args.
6232 set dummy dlltool; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   if test -n "$ac_ct_DLLTOOL"; then
6239   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246     for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253   done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6259 if test -n "$ac_ct_DLLTOOL"; then
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6261 $as_echo "$ac_ct_DLLTOOL" >&6; }
6262 else
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267   if test "x$ac_ct_DLLTOOL" = x; then
6268     DLLTOOL="false"
6269   else
6270     case $cross_compiling:$ac_tool_warned in
6271 yes:)
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274 ac_tool_warned=yes ;;
6275 esac
6276     DLLTOOL=$ac_ct_DLLTOOL
6277   fi
6278 else
6279   DLLTOOL="$ac_cv_prog_DLLTOOL"
6280 fi
6281
6282 test -z "$DLLTOOL" && DLLTOOL=dlltool
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6294 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6295 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   lt_cv_sharedlib_from_linklib_cmd='unknown'
6299
6300 case $host_os in
6301 cygwin* | mingw* | pw32* | cegcc*)
6302   # two different shell functions defined in ltmain.sh
6303   # decide which to use based on capabilities of $DLLTOOL
6304   case `$DLLTOOL --help 2>&1` in
6305   *--identify-strict*)
6306     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6307     ;;
6308   *)
6309     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6310     ;;
6311   esac
6312   ;;
6313 *)
6314   # fallback: assume linklib IS sharedlib
6315   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6316   ;;
6317 esac
6318
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6321 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6322 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6323 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6324
6325
6326
6327
6328
6329
6330
6331
6332 if test -n "$ac_tool_prefix"; then
6333   for ac_prog in ar
6334   do
6335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_AR+:} false; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$AR"; then
6343   ac_cv_prog_AR="$AR" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 AR=$ac_cv_prog_AR
6363 if test -n "$AR"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6365 $as_echo "$AR" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371
6372     test -n "$AR" && break
6373   done
6374 fi
6375 if test -z "$AR"; then
6376   ac_ct_AR=$AR
6377   for ac_prog in ar
6378 do
6379   # Extract the first word of "$ac_prog", so it can be a program name with args.
6380 set dummy $ac_prog; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   if test -n "$ac_ct_AR"; then
6387   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_prog_ac_ct_AR="$ac_prog"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6407 if test -n "$ac_ct_AR"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6409 $as_echo "$ac_ct_AR" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416   test -n "$ac_ct_AR" && break
6417 done
6418
6419   if test "x$ac_ct_AR" = x; then
6420     AR="false"
6421   else
6422     case $cross_compiling:$ac_tool_warned in
6423 yes:)
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428     AR=$ac_ct_AR
6429   fi
6430 fi
6431
6432 : ${AR=ar}
6433 : ${AR_FLAGS=cru}
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6446 $as_echo_n "checking for archiver @FILE support... " >&6; }
6447 if ${lt_cv_ar_at_file+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   lt_cv_ar_at_file=no
6451    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h.  */
6453
6454 int
6455 main ()
6456 {
6457
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_cxx_try_compile "$LINENO"; then :
6463   echo conftest.$ac_objext > conftest.lst
6464       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6465       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6466   (eval $lt_ar_try) 2>&5
6467   ac_status=$?
6468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469   test $ac_status = 0; }
6470       if test "$ac_status" -eq 0; then
6471         # Ensure the archiver fails upon bogus file names.
6472         rm -f conftest.$ac_objext libconftest.a
6473         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6474   (eval $lt_ar_try) 2>&5
6475   ac_status=$?
6476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477   test $ac_status = 0; }
6478         if test "$ac_status" -ne 0; then
6479           lt_cv_ar_at_file=@
6480         fi
6481       fi
6482       rm -f conftest.* libconftest.a
6483
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6489 $as_echo "$lt_cv_ar_at_file" >&6; }
6490
6491 if test "x$lt_cv_ar_at_file" = xno; then
6492   archiver_list_spec=
6493 else
6494   archiver_list_spec=$lt_cv_ar_at_file
6495 fi
6496
6497
6498
6499
6500
6501
6502
6503 if test -n "$ac_tool_prefix"; then
6504   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}strip; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_STRIP+:} false; then :
6509   $as_echo_n "(cached) " >&6
6510 else
6511   if test -n "$STRIP"; then
6512   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517   IFS=$as_save_IFS
6518   test -z "$as_dir" && as_dir=.
6519     for ac_exec_ext in '' $ac_executable_extensions; do
6520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523     break 2
6524   fi
6525 done
6526   done
6527 IFS=$as_save_IFS
6528
6529 fi
6530 fi
6531 STRIP=$ac_cv_prog_STRIP
6532 if test -n "$STRIP"; then
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6534 $as_echo "$STRIP" >&6; }
6535 else
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539
6540
6541 fi
6542 if test -z "$ac_cv_prog_STRIP"; then
6543   ac_ct_STRIP=$STRIP
6544   # Extract the first word of "strip", so it can be a program name with args.
6545 set dummy strip; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$ac_ct_STRIP"; then
6552   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_prog_ac_ct_STRIP="strip"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6572 if test -n "$ac_ct_STRIP"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6574 $as_echo "$ac_ct_STRIP" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580   if test "x$ac_ct_STRIP" = x; then
6581     STRIP=":"
6582   else
6583     case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589     STRIP=$ac_ct_STRIP
6590   fi
6591 else
6592   STRIP="$ac_cv_prog_STRIP"
6593 fi
6594
6595 test -z "$STRIP" && STRIP=:
6596
6597
6598
6599
6600
6601
6602 if test -n "$ac_tool_prefix"; then
6603   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_RANLIB+:} false; then :
6608   $as_echo_n "(cached) " >&6
6609 else
6610   if test -n "$RANLIB"; then
6611   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616   IFS=$as_save_IFS
6617   test -z "$as_dir" && as_dir=.
6618     for ac_exec_ext in '' $ac_executable_extensions; do
6619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622     break 2
6623   fi
6624 done
6625   done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 RANLIB=$ac_cv_prog_RANLIB
6631 if test -n "$RANLIB"; then
6632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6633 $as_echo "$RANLIB" >&6; }
6634 else
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_RANLIB"; then
6642   ac_ct_RANLIB=$RANLIB
6643   # Extract the first word of "ranlib", so it can be a program name with args.
6644 set dummy ranlib; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   if test -n "$ac_ct_RANLIB"; then
6651   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658     for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_prog_ac_ct_RANLIB="ranlib"
6661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665   done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6671 if test -n "$ac_ct_RANLIB"; then
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6673 $as_echo "$ac_ct_RANLIB" >&6; }
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679   if test "x$ac_ct_RANLIB" = x; then
6680     RANLIB=":"
6681   else
6682     case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688     RANLIB=$ac_ct_RANLIB
6689   fi
6690 else
6691   RANLIB="$ac_cv_prog_RANLIB"
6692 fi
6693
6694 test -z "$RANLIB" && RANLIB=:
6695
6696
6697
6698
6699
6700
6701 # Determine commands to create old-style static archives.
6702 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6703 old_postinstall_cmds='chmod 644 $oldlib'
6704 old_postuninstall_cmds=
6705
6706 if test -n "$RANLIB"; then
6707   case $host_os in
6708   openbsd*)
6709     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6710     ;;
6711   *)
6712     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6713     ;;
6714   esac
6715   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6716 fi
6717
6718 case $host_os in
6719   darwin*)
6720     lock_old_archive_extraction=yes ;;
6721   *)
6722     lock_old_archive_extraction=no ;;
6723 esac
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763 # If no C compiler was specified, use CC.
6764 LTCC=${LTCC-"$CC"}
6765
6766 # If no C compiler flags were specified, use CFLAGS.
6767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6768
6769 # Allow CC to be a program name with arguments.
6770 compiler=$CC
6771
6772
6773 # Check for command to grab the raw symbol name followed by C symbol from nm.
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6775 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6776 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6777   $as_echo_n "(cached) " >&6
6778 else
6779
6780 # These are sane defaults that work on at least a few old systems.
6781 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6782
6783 # Character class describing NM global symbol codes.
6784 symcode='[BCDEGRST]'
6785
6786 # Regexp to match symbols that can be accessed directly from C.
6787 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6788
6789 # Define system-specific variables.
6790 case $host_os in
6791 aix*)
6792   symcode='[BCDT]'
6793   ;;
6794 cygwin* | mingw* | pw32* | cegcc*)
6795   symcode='[ABCDGISTW]'
6796   ;;
6797 hpux*)
6798   if test "$host_cpu" = ia64; then
6799     symcode='[ABCDEGRST]'
6800   fi
6801   ;;
6802 irix* | nonstopux*)
6803   symcode='[BCDEGRST]'
6804   ;;
6805 osf*)
6806   symcode='[BCDEGQRST]'
6807   ;;
6808 solaris*)
6809   symcode='[BDRT]'
6810   ;;
6811 sco3.2v5*)
6812   symcode='[DT]'
6813   ;;
6814 sysv4.2uw2*)
6815   symcode='[DT]'
6816   ;;
6817 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6818   symcode='[ABDT]'
6819   ;;
6820 sysv4)
6821   symcode='[DFNSTU]'
6822   ;;
6823 esac
6824
6825 # If we're using GNU nm, then use its standard symbol codes.
6826 case `$NM -V 2>&1` in
6827 *GNU* | *'with BFD'*)
6828   symcode='[ABCDGIRSTW]' ;;
6829 esac
6830
6831 # Transform an extracted symbol line into a proper C declaration.
6832 # Some systems (esp. on ia64) link data and code symbols differently,
6833 # so use this general approach.
6834 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6835
6836 # Transform an extracted symbol line into symbol name and symbol address
6837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6838 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'"
6839
6840 # Handle CRLF in mingw tool chain
6841 opt_cr=
6842 case $build_os in
6843 mingw*)
6844   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6845   ;;
6846 esac
6847
6848 # Try without a prefix underscore, then with it.
6849 for ac_symprfx in "" "_"; do
6850
6851   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6852   symxfrm="\\1 $ac_symprfx\\2 \\2"
6853
6854   # Write the raw and C identifiers.
6855   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6856     # Fake it for dumpbin and say T for any non-static function
6857     # and D for any global variable.
6858     # Also find C++ and __fastcall symbols from MSVC++,
6859     # which start with @ or ?.
6860     lt_cv_sys_global_symbol_pipe="$AWK '"\
6861 "     {last_section=section; section=\$ 3};"\
6862 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6863 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6864 "     \$ 0!~/External *\|/{next};"\
6865 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6866 "     {if(hide[section]) next};"\
6867 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6868 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6869 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6870 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6871 "     ' prfx=^$ac_symprfx"
6872   else
6873     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874   fi
6875   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6876
6877   # Check to see that the pipe works correctly.
6878   pipe_works=no
6879
6880   rm -f conftest*
6881   cat > conftest.$ac_ext <<_LT_EOF
6882 #ifdef __cplusplus
6883 extern "C" {
6884 #endif
6885 char nm_test_var;
6886 void nm_test_func(void);
6887 void nm_test_func(void){}
6888 #ifdef __cplusplus
6889 }
6890 #endif
6891 int main(){nm_test_var='a';nm_test_func();return(0);}
6892 _LT_EOF
6893
6894   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895   (eval $ac_compile) 2>&5
6896   ac_status=$?
6897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898   test $ac_status = 0; }; then
6899     # Now try to grab the symbols.
6900     nlist=conftest.nm
6901     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6902   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6903   ac_status=$?
6904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905   test $ac_status = 0; } && test -s "$nlist"; then
6906       # Try sorting and uniquifying the output.
6907       if sort "$nlist" | uniq > "$nlist"T; then
6908         mv -f "$nlist"T "$nlist"
6909       else
6910         rm -f "$nlist"T
6911       fi
6912
6913       # Make sure that we snagged all the symbols we need.
6914       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6915         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6916           cat <<_LT_EOF > conftest.$ac_ext
6917 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6918 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6919 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6920    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6921 # define LT_DLSYM_CONST
6922 #elif defined(__osf__)
6923 /* This system does not cope well with relocations in const data.  */
6924 # define LT_DLSYM_CONST
6925 #else
6926 # define LT_DLSYM_CONST const
6927 #endif
6928
6929 #ifdef __cplusplus
6930 extern "C" {
6931 #endif
6932
6933 _LT_EOF
6934           # Now generate the symbol file.
6935           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6936
6937           cat <<_LT_EOF >> conftest.$ac_ext
6938
6939 /* The mapping between symbol names and symbols.  */
6940 LT_DLSYM_CONST struct {
6941   const char *name;
6942   void       *address;
6943 }
6944 lt__PROGRAM__LTX_preloaded_symbols[] =
6945 {
6946   { "@PROGRAM@", (void *) 0 },
6947 _LT_EOF
6948           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6949           cat <<\_LT_EOF >> conftest.$ac_ext
6950   {0, (void *) 0}
6951 };
6952
6953 /* This works around a problem in FreeBSD linker */
6954 #ifdef FREEBSD_WORKAROUND
6955 static const void *lt_preloaded_setup() {
6956   return lt__PROGRAM__LTX_preloaded_symbols;
6957 }
6958 #endif
6959
6960 #ifdef __cplusplus
6961 }
6962 #endif
6963 _LT_EOF
6964           # Now try linking the two files.
6965           mv conftest.$ac_objext conftstm.$ac_objext
6966           lt_globsym_save_LIBS=$LIBS
6967           lt_globsym_save_CFLAGS=$CFLAGS
6968           LIBS="conftstm.$ac_objext"
6969           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6970           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6971   (eval $ac_link) 2>&5
6972   ac_status=$?
6973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6975             pipe_works=yes
6976           fi
6977           LIBS=$lt_globsym_save_LIBS
6978           CFLAGS=$lt_globsym_save_CFLAGS
6979         else
6980           echo "cannot find nm_test_func in $nlist" >&5
6981         fi
6982       else
6983         echo "cannot find nm_test_var in $nlist" >&5
6984       fi
6985     else
6986       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6987     fi
6988   else
6989     echo "$progname: failed program was:" >&5
6990     cat conftest.$ac_ext >&5
6991   fi
6992   rm -rf conftest* conftst*
6993
6994   # Do not use the global_symbol_pipe unless it works.
6995   if test "$pipe_works" = yes; then
6996     break
6997   else
6998     lt_cv_sys_global_symbol_pipe=
6999   fi
7000 done
7001
7002 fi
7003
7004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7005   lt_cv_sys_global_symbol_to_cdecl=
7006 fi
7007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7009 $as_echo "failed" >&6; }
7010 else
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7012 $as_echo "ok" >&6; }
7013 fi
7014
7015 # Response file support.
7016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7017   nm_file_list_spec='@'
7018 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7019   nm_file_list_spec='@'
7020 fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7049 $as_echo_n "checking for sysroot... " >&6; }
7050
7051 # Check whether --with-sysroot was given.
7052 if test "${with_sysroot+set}" = set; then :
7053   withval=$with_sysroot;
7054 else
7055   with_sysroot=no
7056 fi
7057
7058
7059 lt_sysroot=
7060 case ${with_sysroot} in #(
7061  yes)
7062    if test "$GCC" = yes; then
7063      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7064    fi
7065    ;; #(
7066  /*)
7067    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7068    ;; #(
7069  no|'')
7070    ;; #(
7071  *)
7072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7073 $as_echo "${with_sysroot}" >&6; }
7074    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7075    ;;
7076 esac
7077
7078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7079 $as_echo "${lt_sysroot:-no}" >&6; }
7080
7081
7082
7083
7084
7085
7086 # Check whether --enable-libtool-lock was given.
7087 if test "${enable_libtool_lock+set}" = set; then :
7088   enableval=$enable_libtool_lock;
7089 fi
7090
7091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7092
7093 # Some flags need to be propagated to the compiler or linker for good
7094 # libtool support.
7095 case $host in
7096 ia64-*-hpux*)
7097   # Find out which ABI we are using.
7098   echo 'int i;' > conftest.$ac_ext
7099   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7100   (eval $ac_compile) 2>&5
7101   ac_status=$?
7102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7103   test $ac_status = 0; }; then
7104     case `/usr/bin/file conftest.$ac_objext` in
7105       *ELF-32*)
7106         HPUX_IA64_MODE="32"
7107         ;;
7108       *ELF-64*)
7109         HPUX_IA64_MODE="64"
7110         ;;
7111     esac
7112   fi
7113   rm -rf conftest*
7114   ;;
7115 *-*-irix6*)
7116   # Find out which ABI we are using.
7117   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7118   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7119   (eval $ac_compile) 2>&5
7120   ac_status=$?
7121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122   test $ac_status = 0; }; then
7123     if test "$lt_cv_prog_gnu_ld" = yes; then
7124       case `/usr/bin/file conftest.$ac_objext` in
7125         *32-bit*)
7126           LD="${LD-ld} -melf32bsmip"
7127           ;;
7128         *N32*)
7129           LD="${LD-ld} -melf32bmipn32"
7130           ;;
7131         *64-bit*)
7132           LD="${LD-ld} -melf64bmip"
7133         ;;
7134       esac
7135     else
7136       case `/usr/bin/file conftest.$ac_objext` in
7137         *32-bit*)
7138           LD="${LD-ld} -32"
7139           ;;
7140         *N32*)
7141           LD="${LD-ld} -n32"
7142           ;;
7143         *64-bit*)
7144           LD="${LD-ld} -64"
7145           ;;
7146       esac
7147     fi
7148   fi
7149   rm -rf conftest*
7150   ;;
7151
7152 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7153 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7154   # Find out which ABI we are using.
7155   echo 'int i;' > conftest.$ac_ext
7156   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7157   (eval $ac_compile) 2>&5
7158   ac_status=$?
7159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160   test $ac_status = 0; }; then
7161     case `/usr/bin/file conftest.o` in
7162       *32-bit*)
7163         case $host in
7164           x86_64-*kfreebsd*-gnu)
7165             LD="${LD-ld} -m elf_i386_fbsd"
7166             ;;
7167           x86_64-*linux*)
7168             LD="${LD-ld} -m elf_i386"
7169             ;;
7170           ppc64-*linux*|powerpc64-*linux*)
7171             LD="${LD-ld} -m elf32ppclinux"
7172             ;;
7173           s390x-*linux*)
7174             LD="${LD-ld} -m elf_s390"
7175             ;;
7176           sparc64-*linux*)
7177             LD="${LD-ld} -m elf32_sparc"
7178             ;;
7179         esac
7180         ;;
7181       *64-bit*)
7182         case $host in
7183           x86_64-*kfreebsd*-gnu)
7184             LD="${LD-ld} -m elf_x86_64_fbsd"
7185             ;;
7186           x86_64-*linux*)
7187             LD="${LD-ld} -m elf_x86_64"
7188             ;;
7189           ppc*-*linux*|powerpc*-*linux*)
7190             LD="${LD-ld} -m elf64ppc"
7191             ;;
7192           s390*-*linux*|s390*-*tpf*)
7193             LD="${LD-ld} -m elf64_s390"
7194             ;;
7195           sparc*-*linux*)
7196             LD="${LD-ld} -m elf64_sparc"
7197             ;;
7198         esac
7199         ;;
7200     esac
7201   fi
7202   rm -rf conftest*
7203   ;;
7204
7205 *-*-sco3.2v5*)
7206   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7207   SAVE_CFLAGS="$CFLAGS"
7208   CFLAGS="$CFLAGS -belf"
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7210 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7211 if ${lt_cv_cc_needs_belf+:} false; then :
7212   $as_echo_n "(cached) " >&6
7213 else
7214   ac_ext=c
7215 ac_cpp='$CPP $CPPFLAGS'
7216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219
7220      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h.  */
7222
7223 int
7224 main ()
7225 {
7226
7227   ;
7228   return 0;
7229 }
7230 _ACEOF
7231 if ac_fn_c_try_link "$LINENO"; then :
7232   lt_cv_cc_needs_belf=yes
7233 else
7234   lt_cv_cc_needs_belf=no
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext \
7237     conftest$ac_exeext conftest.$ac_ext
7238      ac_ext=c
7239 ac_cpp='$CPP $CPPFLAGS'
7240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243
7244 fi
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7246 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7247   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7248     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7249     CFLAGS="$SAVE_CFLAGS"
7250   fi
7251   ;;
7252 *-*solaris*)
7253   # Find out which ABI we are using.
7254   echo 'int i;' > conftest.$ac_ext
7255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7256   (eval $ac_compile) 2>&5
7257   ac_status=$?
7258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259   test $ac_status = 0; }; then
7260     case `/usr/bin/file conftest.o` in
7261     *64-bit*)
7262       case $lt_cv_prog_gnu_ld in
7263       yes*)
7264         case $host in
7265         i?86-*-solaris*)
7266           LD="${LD-ld} -m elf_x86_64"
7267           ;;
7268         sparc*-*-solaris*)
7269           LD="${LD-ld} -m elf64_sparc"
7270           ;;
7271         esac
7272         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7273         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7274           LD="${LD-ld}_sol2"
7275         fi
7276         ;;
7277       *)
7278         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7279           LD="${LD-ld} -64"
7280         fi
7281         ;;
7282       esac
7283       ;;
7284     esac
7285   fi
7286   rm -rf conftest*
7287   ;;
7288 esac
7289
7290 need_locks="$enable_libtool_lock"
7291
7292 if test -n "$ac_tool_prefix"; then
7293   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}mt; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7298   $as_echo_n "(cached) " >&6
7299 else
7300   if test -n "$MANIFEST_TOOL"; then
7301   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7321 if test -n "$MANIFEST_TOOL"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7323 $as_echo "$MANIFEST_TOOL" >&6; }
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329
7330 fi
7331 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7332   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7333   # Extract the first word of "mt", so it can be a program name with args.
7334 set dummy mt; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$ac_ct_MANIFEST_TOOL"; then
7341   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7361 if test -n "$ac_ct_MANIFEST_TOOL"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7363 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7370     MANIFEST_TOOL=":"
7371   else
7372     case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7379   fi
7380 else
7381   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7382 fi
7383
7384 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7386 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7387 if ${lt_cv_path_mainfest_tool+:} false; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   lt_cv_path_mainfest_tool=no
7391   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7392   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7393   cat conftest.err >&5
7394   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7395     lt_cv_path_mainfest_tool=yes
7396   fi
7397   rm -f conftest*
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7400 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7401 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7402   MANIFEST_TOOL=:
7403 fi
7404
7405
7406
7407
7408
7409
7410   case $host_os in
7411     rhapsody* | darwin*)
7412     if test -n "$ac_tool_prefix"; then
7413   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   if test -n "$DSYMUTIL"; then
7421   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428     for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435   done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7443 $as_echo "$DSYMUTIL" >&6; }
7444 else
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449
7450 fi
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452   ac_ct_DSYMUTIL=$DSYMUTIL
7453   # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$ac_ct_DSYMUTIL"; then
7461   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7483 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489   if test "x$ac_ct_DSYMUTIL" = x; then
7490     DSYMUTIL=":"
7491   else
7492     case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498     DSYMUTIL=$ac_ct_DSYMUTIL
7499   fi
7500 else
7501   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 fi
7503
7504     if test -n "$ac_tool_prefix"; then
7505   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_NMEDIT+:} false; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   if test -n "$NMEDIT"; then
7513   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520     for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527   done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 NMEDIT=$ac_cv_prog_NMEDIT
7533 if test -n "$NMEDIT"; then
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7535 $as_echo "$NMEDIT" >&6; }
7536 else
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541
7542 fi
7543 if test -z "$ac_cv_prog_NMEDIT"; then
7544   ac_ct_NMEDIT=$NMEDIT
7545   # Extract the first word of "nmedit", so it can be a program name with args.
7546 set dummy nmedit; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$ac_ct_NMEDIT"; then
7553   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573 if test -n "$ac_ct_NMEDIT"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7575 $as_echo "$ac_ct_NMEDIT" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581   if test "x$ac_ct_NMEDIT" = x; then
7582     NMEDIT=":"
7583   else
7584     case $cross_compiling:$ac_tool_warned in
7585 yes:)
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7588 ac_tool_warned=yes ;;
7589 esac
7590     NMEDIT=$ac_ct_NMEDIT
7591   fi
7592 else
7593   NMEDIT="$ac_cv_prog_NMEDIT"
7594 fi
7595
7596     if test -n "$ac_tool_prefix"; then
7597   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7598 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_LIPO+:} false; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$LIPO"; then
7605   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 LIPO=$ac_cv_prog_LIPO
7625 if test -n "$LIPO"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7627 $as_echo "$LIPO" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633
7634 fi
7635 if test -z "$ac_cv_prog_LIPO"; then
7636   ac_ct_LIPO=$LIPO
7637   # Extract the first word of "lipo", so it can be a program name with args.
7638 set dummy lipo; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -n "$ac_ct_LIPO"; then
7645   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652     for ac_exec_ext in '' $ac_executable_extensions; do
7653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654     ac_cv_prog_ac_ct_LIPO="lipo"
7655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659   done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7665 if test -n "$ac_ct_LIPO"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7667 $as_echo "$ac_ct_LIPO" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673   if test "x$ac_ct_LIPO" = x; then
7674     LIPO=":"
7675   else
7676     case $cross_compiling:$ac_tool_warned in
7677 yes:)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7681 esac
7682     LIPO=$ac_ct_LIPO
7683   fi
7684 else
7685   LIPO="$ac_cv_prog_LIPO"
7686 fi
7687
7688     if test -n "$ac_tool_prefix"; then
7689   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7690 set dummy ${ac_tool_prefix}otool; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_prog_OTOOL+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   if test -n "$OTOOL"; then
7697   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704     for ac_exec_ext in '' $ac_executable_extensions; do
7705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711   done
7712 IFS=$as_save_IFS
7713
7714 fi
7715 fi
7716 OTOOL=$ac_cv_prog_OTOOL
7717 if test -n "$OTOOL"; then
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7719 $as_echo "$OTOOL" >&6; }
7720 else
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7723 fi
7724
7725
7726 fi
7727 if test -z "$ac_cv_prog_OTOOL"; then
7728   ac_ct_OTOOL=$OTOOL
7729   # Extract the first word of "otool", so it can be a program name with args.
7730 set dummy otool; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   if test -n "$ac_ct_OTOOL"; then
7737   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744     for ac_exec_ext in '' $ac_executable_extensions; do
7745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746     ac_cv_prog_ac_ct_OTOOL="otool"
7747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751   done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7757 if test -n "$ac_ct_OTOOL"; then
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7759 $as_echo "$ac_ct_OTOOL" >&6; }
7760 else
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764
7765   if test "x$ac_ct_OTOOL" = x; then
7766     OTOOL=":"
7767   else
7768     case $cross_compiling:$ac_tool_warned in
7769 yes:)
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772 ac_tool_warned=yes ;;
7773 esac
7774     OTOOL=$ac_ct_OTOOL
7775   fi
7776 else
7777   OTOOL="$ac_cv_prog_OTOOL"
7778 fi
7779
7780     if test -n "$ac_tool_prefix"; then
7781   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7782 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if ${ac_cv_prog_OTOOL64+:} false; then :
7786   $as_echo_n "(cached) " >&6
7787 else
7788   if test -n "$OTOOL64"; then
7789   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794   IFS=$as_save_IFS
7795   test -z "$as_dir" && as_dir=.
7796     for ac_exec_ext in '' $ac_executable_extensions; do
7797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800     break 2
7801   fi
7802 done
7803   done
7804 IFS=$as_save_IFS
7805
7806 fi
7807 fi
7808 OTOOL64=$ac_cv_prog_OTOOL64
7809 if test -n "$OTOOL64"; then
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7811 $as_echo "$OTOOL64" >&6; }
7812 else
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7815 fi
7816
7817
7818 fi
7819 if test -z "$ac_cv_prog_OTOOL64"; then
7820   ac_ct_OTOOL64=$OTOOL64
7821   # Extract the first word of "otool64", so it can be a program name with args.
7822 set dummy otool64; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7826   $as_echo_n "(cached) " >&6
7827 else
7828   if test -n "$ac_ct_OTOOL64"; then
7829   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7830 else
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834   IFS=$as_save_IFS
7835   test -z "$as_dir" && as_dir=.
7836     for ac_exec_ext in '' $ac_executable_extensions; do
7837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7838     ac_cv_prog_ac_ct_OTOOL64="otool64"
7839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840     break 2
7841   fi
7842 done
7843   done
7844 IFS=$as_save_IFS
7845
7846 fi
7847 fi
7848 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7849 if test -n "$ac_ct_OTOOL64"; then
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7851 $as_echo "$ac_ct_OTOOL64" >&6; }
7852 else
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 fi
7856
7857   if test "x$ac_ct_OTOOL64" = x; then
7858     OTOOL64=":"
7859   else
7860     case $cross_compiling:$ac_tool_warned in
7861 yes:)
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7864 ac_tool_warned=yes ;;
7865 esac
7866     OTOOL64=$ac_ct_OTOOL64
7867   fi
7868 else
7869   OTOOL64="$ac_cv_prog_OTOOL64"
7870 fi
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7899 $as_echo_n "checking for -single_module linker flag... " >&6; }
7900 if ${lt_cv_apple_cc_single_mod+:} false; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   lt_cv_apple_cc_single_mod=no
7904       if test -z "${LT_MULTI_MODULE}"; then
7905         # By default we will add the -single_module flag. You can override
7906         # by either setting the environment variable LT_MULTI_MODULE
7907         # non-empty at configure time, or by adding -multi_module to the
7908         # link flags.
7909         rm -rf libconftest.dylib*
7910         echo "int foo(void){return 1;}" > conftest.c
7911         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7912 -dynamiclib -Wl,-single_module conftest.c" >&5
7913         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7914           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7915         _lt_result=$?
7916         # If there is a non-empty error log, and "single_module"
7917         # appears in it, assume the flag caused a linker warning
7918         if test -s conftest.err && $GREP single_module conftest.err; then
7919           cat conftest.err >&5
7920         # Otherwise, if the output was created with a 0 exit code from
7921         # the compiler, it worked.
7922         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7923           lt_cv_apple_cc_single_mod=yes
7924         else
7925           cat conftest.err >&5
7926         fi
7927         rm -rf libconftest.dylib*
7928         rm -f conftest.*
7929       fi
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7932 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7933
7934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7935 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7936 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   lt_cv_ld_exported_symbols_list=no
7940       save_LDFLAGS=$LDFLAGS
7941       echo "_main" > conftest.sym
7942       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7943       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h.  */
7945
7946 int
7947 main ()
7948 {
7949
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955   lt_cv_ld_exported_symbols_list=yes
7956 else
7957   lt_cv_ld_exported_symbols_list=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext \
7960     conftest$ac_exeext conftest.$ac_ext
7961         LDFLAGS="$save_LDFLAGS"
7962
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7965 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7966
7967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7968 $as_echo_n "checking for -force_load linker flag... " >&6; }
7969 if ${lt_cv_ld_force_load+:} false; then :
7970   $as_echo_n "(cached) " >&6
7971 else
7972   lt_cv_ld_force_load=no
7973       cat > conftest.c << _LT_EOF
7974 int forced_loaded() { return 2;}
7975 _LT_EOF
7976       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7977       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7978       echo "$AR cru libconftest.a conftest.o" >&5
7979       $AR cru libconftest.a conftest.o 2>&5
7980       echo "$RANLIB libconftest.a" >&5
7981       $RANLIB libconftest.a 2>&5
7982       cat > conftest.c << _LT_EOF
7983 int main() { return 0;}
7984 _LT_EOF
7985       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7986       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7987       _lt_result=$?
7988       if test -s conftest.err && $GREP force_load conftest.err; then
7989         cat conftest.err >&5
7990       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7991         lt_cv_ld_force_load=yes
7992       else
7993         cat conftest.err >&5
7994       fi
7995         rm -f conftest.err libconftest.a conftest conftest.c
7996         rm -rf conftest.dSYM
7997
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8000 $as_echo "$lt_cv_ld_force_load" >&6; }
8001     case $host_os in
8002     rhapsody* | darwin1.[012])
8003       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8004     darwin1.*)
8005       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8006     darwin*) # darwin 5.x on
8007       # if running on 10.5 or later, the deployment target defaults
8008       # to the OS version, if on x86, and 10.4, the deployment
8009       # target defaults to 10.4. Don't you love it?
8010       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8011         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8012           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8013         10.[012]*)
8014           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015         10.*)
8016           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017       esac
8018     ;;
8019   esac
8020     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8021       _lt_dar_single_mod='$single_module'
8022     fi
8023     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8024       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8025     else
8026       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8027     fi
8028     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8029       _lt_dsymutil='~$DSYMUTIL $lib || :'
8030     else
8031       _lt_dsymutil=
8032     fi
8033     ;;
8034   esac
8035
8036
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8038 $as_echo_n "checking for ANSI C header files... " >&6; }
8039 if ${ac_cv_header_stdc+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h.  */
8044 #include <stdlib.h>
8045 #include <stdarg.h>
8046 #include <string.h>
8047 #include <float.h>
8048
8049 int
8050 main ()
8051 {
8052
8053   ;
8054   return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058   ac_cv_header_stdc=yes
8059 else
8060   ac_cv_header_stdc=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063
8064 if test $ac_cv_header_stdc = yes; then
8065   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 #include <string.h>
8069
8070 _ACEOF
8071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072   $EGREP "memchr" >/dev/null 2>&1; then :
8073
8074 else
8075   ac_cv_header_stdc=no
8076 fi
8077 rm -f conftest*
8078
8079 fi
8080
8081 if test $ac_cv_header_stdc = yes; then
8082   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h.  */
8085 #include <stdlib.h>
8086
8087 _ACEOF
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089   $EGREP "free" >/dev/null 2>&1; then :
8090
8091 else
8092   ac_cv_header_stdc=no
8093 fi
8094 rm -f conftest*
8095
8096 fi
8097
8098 if test $ac_cv_header_stdc = yes; then
8099   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8100   if test "$cross_compiling" = yes; then :
8101   :
8102 else
8103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h.  */
8105 #include <ctype.h>
8106 #include <stdlib.h>
8107 #if ((' ' & 0x0FF) == 0x020)
8108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8110 #else
8111 # define ISLOWER(c) \
8112                    (('a' <= (c) && (c) <= 'i') \
8113                      || ('j' <= (c) && (c) <= 'r') \
8114                      || ('s' <= (c) && (c) <= 'z'))
8115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8116 #endif
8117
8118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8119 int
8120 main ()
8121 {
8122   int i;
8123   for (i = 0; i < 256; i++)
8124     if (XOR (islower (i), ISLOWER (i))
8125         || toupper (i) != TOUPPER (i))
8126       return 2;
8127   return 0;
8128 }
8129 _ACEOF
8130 if ac_fn_c_try_run "$LINENO"; then :
8131
8132 else
8133   ac_cv_header_stdc=no
8134 fi
8135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8136   conftest.$ac_objext conftest.beam conftest.$ac_ext
8137 fi
8138
8139 fi
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8142 $as_echo "$ac_cv_header_stdc" >&6; }
8143 if test $ac_cv_header_stdc = yes; then
8144
8145 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8146
8147 fi
8148
8149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8150 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8151                   inttypes.h stdint.h unistd.h
8152 do :
8153   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8155 "
8156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8157   cat >>confdefs.h <<_ACEOF
8158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8159 _ACEOF
8160
8161 fi
8162
8163 done
8164
8165
8166 for ac_header in dlfcn.h
8167 do :
8168   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8169 "
8170 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8171   cat >>confdefs.h <<_ACEOF
8172 #define HAVE_DLFCN_H 1
8173 _ACEOF
8174
8175 fi
8176
8177 done
8178
8179
8180
8181 func_stripname_cnf ()
8182 {
8183   case ${2} in
8184   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8185   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8186   esac
8187 } # func_stripname_cnf
8188
8189
8190
8191
8192
8193 # Set options
8194
8195
8196
8197         enable_dlopen=no
8198
8199
8200   enable_win32_dll=no
8201
8202
8203             # Check whether --enable-shared was given.
8204 if test "${enable_shared+set}" = set; then :
8205   enableval=$enable_shared; p=${PACKAGE-default}
8206     case $enableval in
8207     yes) enable_shared=yes ;;
8208     no) enable_shared=no ;;
8209     *)
8210       enable_shared=no
8211       # Look at the argument we got.  We use all the common list separators.
8212       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213       for pkg in $enableval; do
8214         IFS="$lt_save_ifs"
8215         if test "X$pkg" = "X$p"; then
8216           enable_shared=yes
8217         fi
8218       done
8219       IFS="$lt_save_ifs"
8220       ;;
8221     esac
8222 else
8223   enable_shared=yes
8224 fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234   # Check whether --enable-static was given.
8235 if test "${enable_static+set}" = set; then :
8236   enableval=$enable_static; p=${PACKAGE-default}
8237     case $enableval in
8238     yes) enable_static=yes ;;
8239     no) enable_static=no ;;
8240     *)
8241      enable_static=no
8242       # Look at the argument we got.  We use all the common list separators.
8243       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8244       for pkg in $enableval; do
8245         IFS="$lt_save_ifs"
8246         if test "X$pkg" = "X$p"; then
8247           enable_static=yes
8248         fi
8249       done
8250       IFS="$lt_save_ifs"
8251       ;;
8252     esac
8253 else
8254   enable_static=yes
8255 fi
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 # Check whether --with-pic was given.
8267 if test "${with_pic+set}" = set; then :
8268   withval=$with_pic; lt_p=${PACKAGE-default}
8269     case $withval in
8270     yes|no) pic_mode=$withval ;;
8271     *)
8272       pic_mode=default
8273       # Look at the argument we got.  We use all the common list separators.
8274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8275       for lt_pkg in $withval; do
8276         IFS="$lt_save_ifs"
8277         if test "X$lt_pkg" = "X$lt_p"; then
8278           pic_mode=yes
8279         fi
8280       done
8281       IFS="$lt_save_ifs"
8282       ;;
8283     esac
8284 else
8285   pic_mode=default
8286 fi
8287
8288
8289 test -z "$pic_mode" && pic_mode=default
8290
8291
8292
8293
8294
8295
8296
8297   # Check whether --enable-fast-install was given.
8298 if test "${enable_fast_install+set}" = set; then :
8299   enableval=$enable_fast_install; p=${PACKAGE-default}
8300     case $enableval in
8301     yes) enable_fast_install=yes ;;
8302     no) enable_fast_install=no ;;
8303     *)
8304       enable_fast_install=no
8305       # Look at the argument we got.  We use all the common list separators.
8306       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307       for pkg in $enableval; do
8308         IFS="$lt_save_ifs"
8309         if test "X$pkg" = "X$p"; then
8310           enable_fast_install=yes
8311         fi
8312       done
8313       IFS="$lt_save_ifs"
8314       ;;
8315     esac
8316 else
8317   enable_fast_install=yes
8318 fi
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 # This can be used to rebuild libtool when needed
8331 LIBTOOL_DEPS="$ltmain"
8332
8333 # Always use our own libtool.
8334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365 test -z "$LN_S" && LN_S="ln -s"
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 if test -n "${ZSH_VERSION+set}" ; then
8381    setopt NO_GLOB_SUBST
8382 fi
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8385 $as_echo_n "checking for objdir... " >&6; }
8386 if ${lt_cv_objdir+:} false; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   rm -f .libs 2>/dev/null
8390 mkdir .libs 2>/dev/null
8391 if test -d .libs; then
8392   lt_cv_objdir=.libs
8393 else
8394   # MS-DOS does not allow filenames that begin with a dot.
8395   lt_cv_objdir=_libs
8396 fi
8397 rmdir .libs 2>/dev/null
8398 fi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8400 $as_echo "$lt_cv_objdir" >&6; }
8401 objdir=$lt_cv_objdir
8402
8403
8404
8405
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define LT_OBJDIR "$lt_cv_objdir/"
8409 _ACEOF
8410
8411
8412
8413
8414 case $host_os in
8415 aix3*)
8416   # AIX sometimes has problems with the GCC collect2 program.  For some
8417   # reason, if we set the COLLECT_NAMES environment variable, the problems
8418   # vanish in a puff of smoke.
8419   if test "X${COLLECT_NAMES+set}" != Xset; then
8420     COLLECT_NAMES=
8421     export COLLECT_NAMES
8422   fi
8423   ;;
8424 esac
8425
8426 # Global variables:
8427 ofile=libtool
8428 can_build_shared=yes
8429
8430 # All known linkers require a `.a' archive for static linking (except MSVC,
8431 # which needs '.lib').
8432 libext=a
8433
8434 with_gnu_ld="$lt_cv_prog_gnu_ld"
8435
8436 old_CC="$CC"
8437 old_CFLAGS="$CFLAGS"
8438
8439 # Set sane defaults for various variables
8440 test -z "$CC" && CC=cc
8441 test -z "$LTCC" && LTCC=$CC
8442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8443 test -z "$LD" && LD=ld
8444 test -z "$ac_objext" && ac_objext=o
8445
8446 for cc_temp in $compiler""; do
8447   case $cc_temp in
8448     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8449     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8450     \-*) ;;
8451     *) break;;
8452   esac
8453 done
8454 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8455
8456
8457 # Only perform the check for file, if the check method requires it
8458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8459 case $deplibs_check_method in
8460 file_magic*)
8461   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8463 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   case $MAGIC_CMD in
8468 [\\/*] |  ?:[\\/]*)
8469   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470   ;;
8471 *)
8472   lt_save_MAGIC_CMD="$MAGIC_CMD"
8473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475   for ac_dir in $ac_dummy; do
8476     IFS="$lt_save_ifs"
8477     test -z "$ac_dir" && ac_dir=.
8478     if test -f $ac_dir/${ac_tool_prefix}file; then
8479       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480       if test -n "$file_magic_test_file"; then
8481         case $deplibs_check_method in
8482         "file_magic "*)
8483           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486             $EGREP "$file_magic_regex" > /dev/null; then
8487             :
8488           else
8489             cat <<_LT_EOF 1>&2
8490
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such.  This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem.  Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8499
8500 _LT_EOF
8501           fi ;;
8502         esac
8503       fi
8504       break
8505     fi
8506   done
8507   IFS="$lt_save_ifs"
8508   MAGIC_CMD="$lt_save_MAGIC_CMD"
8509   ;;
8510 esac
8511 fi
8512
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523
8524
8525
8526 if test -z "$lt_cv_path_MAGIC_CMD"; then
8527   if test -n "$ac_tool_prefix"; then
8528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8529 $as_echo_n "checking for file... " >&6; }
8530 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   case $MAGIC_CMD in
8534 [\\/*] |  ?:[\\/]*)
8535   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8536   ;;
8537 *)
8538   lt_save_MAGIC_CMD="$MAGIC_CMD"
8539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8540   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8541   for ac_dir in $ac_dummy; do
8542     IFS="$lt_save_ifs"
8543     test -z "$ac_dir" && ac_dir=.
8544     if test -f $ac_dir/file; then
8545       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8546       if test -n "$file_magic_test_file"; then
8547         case $deplibs_check_method in
8548         "file_magic "*)
8549           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8550           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8551           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8552             $EGREP "$file_magic_regex" > /dev/null; then
8553             :
8554           else
8555             cat <<_LT_EOF 1>&2
8556
8557 *** Warning: the command libtool uses to detect shared libraries,
8558 *** $file_magic_cmd, produces output that libtool cannot recognize.
8559 *** The result is that libtool may fail to recognize shared libraries
8560 *** as such.  This will affect the creation of libtool libraries that
8561 *** depend on shared libraries, but programs linked with such libtool
8562 *** libraries will work regardless of this problem.  Nevertheless, you
8563 *** may want to report the problem to your system manager and/or to
8564 *** bug-libtool@gnu.org
8565
8566 _LT_EOF
8567           fi ;;
8568         esac
8569       fi
8570       break
8571     fi
8572   done
8573   IFS="$lt_save_ifs"
8574   MAGIC_CMD="$lt_save_MAGIC_CMD"
8575   ;;
8576 esac
8577 fi
8578
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if test -n "$MAGIC_CMD"; then
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8582 $as_echo "$MAGIC_CMD" >&6; }
8583 else
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589   else
8590     MAGIC_CMD=:
8591   fi
8592 fi
8593
8594   fi
8595   ;;
8596 esac
8597
8598 # Use C for the default configuration in the libtool script
8599
8600 lt_save_CC="$CC"
8601 ac_ext=c
8602 ac_cpp='$CPP $CPPFLAGS'
8603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8606
8607
8608 # Source file extension for C test sources.
8609 ac_ext=c
8610
8611 # Object file extension for compiled C test sources.
8612 objext=o
8613 objext=$objext
8614
8615 # Code to be used in simple compile tests
8616 lt_simple_compile_test_code="int some_variable = 0;"
8617
8618 # Code to be used in simple link tests
8619 lt_simple_link_test_code='int main(){return(0);}'
8620
8621
8622
8623
8624
8625
8626
8627 # If no C compiler was specified, use CC.
8628 LTCC=${LTCC-"$CC"}
8629
8630 # If no C compiler flags were specified, use CFLAGS.
8631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8632
8633 # Allow CC to be a program name with arguments.
8634 compiler=$CC
8635
8636 # Save the default compiler, since it gets overwritten when the other
8637 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8638 compiler_DEFAULT=$CC
8639
8640 # save warnings/boilerplate of simple test code
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8644 _lt_compiler_boilerplate=`cat conftest.err`
8645 $RM conftest*
8646
8647 ac_outfile=conftest.$ac_objext
8648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8650 _lt_linker_boilerplate=`cat conftest.err`
8651 $RM -r conftest*
8652
8653
8654 ## CAVEAT EMPTOR:
8655 ## There is no encapsulation within the following macros, do not change
8656 ## the running order or otherwise move them around unless you know exactly
8657 ## what you are doing...
8658 if test -n "$compiler"; then
8659
8660 lt_prog_compiler_no_builtin_flag=
8661
8662 if test "$GCC" = yes; then
8663   case $cc_basename in
8664   nvcc*)
8665     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8666   *)
8667     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8668   esac
8669
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8673   $as_echo_n "(cached) " >&6
8674 else
8675   lt_cv_prog_compiler_rtti_exceptions=no
8676    ac_outfile=conftest.$ac_objext
8677    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678    lt_compiler_flag="-fno-rtti -fno-exceptions"
8679    # Insert the option either (1) after the last *FLAGS variable, or
8680    # (2) before a word containing "conftest.", or (3) at the end.
8681    # Note that $ac_compile itself does not contain backslashes and begins
8682    # with a dollar sign (not a hyphen), so the echo should work correctly.
8683    # The option is referenced via a variable to avoid confusing sed.
8684    lt_compile=`echo "$ac_compile" | $SED \
8685    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687    -e 's:$: $lt_compiler_flag:'`
8688    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689    (eval "$lt_compile" 2>conftest.err)
8690    ac_status=$?
8691    cat conftest.err >&5
8692    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693    if (exit $ac_status) && test -s "$ac_outfile"; then
8694      # The compiler can only warn and ignore the option if not recognized
8695      # So say no if there are warnings other than the usual output.
8696      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699        lt_cv_prog_compiler_rtti_exceptions=yes
8700      fi
8701    fi
8702    $RM conftest*
8703
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8707
8708 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8710 else
8711     :
8712 fi
8713
8714 fi
8715
8716
8717
8718
8719
8720
8721   lt_prog_compiler_wl=
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_static=
8724
8725
8726   if test "$GCC" = yes; then
8727     lt_prog_compiler_wl='-Wl,'
8728     lt_prog_compiler_static='-static'
8729
8730     case $host_os in
8731       aix*)
8732       # All AIX code is PIC.
8733       if test "$host_cpu" = ia64; then
8734         # AIX 5 now supports IA64 processor
8735         lt_prog_compiler_static='-Bstatic'
8736       fi
8737       ;;
8738
8739     amigaos*)
8740       case $host_cpu in
8741       powerpc)
8742             # see comment about AmigaOS4 .so support
8743             lt_prog_compiler_pic='-fPIC'
8744         ;;
8745       m68k)
8746             # FIXME: we need at least 68020 code to build shared libraries, but
8747             # adding the `-m68020' flag to GCC prevents building anything better,
8748             # like `-m68040'.
8749             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8750         ;;
8751       esac
8752       ;;
8753
8754     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755       # PIC is the default for these OSes.
8756       ;;
8757
8758     mingw* | cygwin* | pw32* | os2* | cegcc*)
8759       # This hack is so that the source file can tell whether it is being
8760       # built for inclusion in a dll (and should export symbols for example).
8761       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762       # (--disable-auto-import) libraries
8763       lt_prog_compiler_pic='-DDLL_EXPORT'
8764       ;;
8765
8766     darwin* | rhapsody*)
8767       # PIC is the default on this platform
8768       # Common symbols not allowed in MH_DYLIB files
8769       lt_prog_compiler_pic='-fno-common'
8770       ;;
8771
8772     haiku*)
8773       # PIC is the default for Haiku.
8774       # The "-static" flag exists, but is broken.
8775       lt_prog_compiler_static=
8776       ;;
8777
8778     hpux*)
8779       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8781       # sets the default TLS model and affects inlining.
8782       case $host_cpu in
8783       hppa*64*)
8784         # +Z the default
8785         ;;
8786       *)
8787         lt_prog_compiler_pic='-fPIC'
8788         ;;
8789       esac
8790       ;;
8791
8792     interix[3-9]*)
8793       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794       # Instead, we relocate shared libraries at runtime.
8795       ;;
8796
8797     msdosdjgpp*)
8798       # Just because we use GCC doesn't mean we suddenly get shared libraries
8799       # on systems that don't support them.
8800       lt_prog_compiler_can_build_shared=no
8801       enable_shared=no
8802       ;;
8803
8804     *nto* | *qnx*)
8805       # QNX uses GNU C++, but need to define -shared option too, otherwise
8806       # it will coredump.
8807       lt_prog_compiler_pic='-fPIC -shared'
8808       ;;
8809
8810     sysv4*MP*)
8811       if test -d /usr/nec; then
8812         lt_prog_compiler_pic=-Kconform_pic
8813       fi
8814       ;;
8815
8816     *)
8817       lt_prog_compiler_pic='-fPIC'
8818       ;;
8819     esac
8820
8821     case $cc_basename in
8822     nvcc*) # Cuda Compiler Driver 2.2
8823       lt_prog_compiler_wl='-Xlinker '
8824       if test -n "$lt_prog_compiler_pic"; then
8825         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8826       fi
8827       ;;
8828     esac
8829   else
8830     # PORTME Check for flag to pass linker flags through the system compiler.
8831     case $host_os in
8832     aix*)
8833       lt_prog_compiler_wl='-Wl,'
8834       if test "$host_cpu" = ia64; then
8835         # AIX 5 now supports IA64 processor
8836         lt_prog_compiler_static='-Bstatic'
8837       else
8838         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8839       fi
8840       ;;
8841
8842     mingw* | cygwin* | pw32* | os2* | cegcc*)
8843       # This hack is so that the source file can tell whether it is being
8844       # built for inclusion in a dll (and should export symbols for example).
8845       lt_prog_compiler_pic='-DDLL_EXPORT'
8846       ;;
8847
8848     hpux9* | hpux10* | hpux11*)
8849       lt_prog_compiler_wl='-Wl,'
8850       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8851       # not for PA HP-UX.
8852       case $host_cpu in
8853       hppa*64*|ia64*)
8854         # +Z the default
8855         ;;
8856       *)
8857         lt_prog_compiler_pic='+Z'
8858         ;;
8859       esac
8860       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8861       lt_prog_compiler_static='${wl}-a ${wl}archive'
8862       ;;
8863
8864     irix5* | irix6* | nonstopux*)
8865       lt_prog_compiler_wl='-Wl,'
8866       # PIC (with -KPIC) is the default.
8867       lt_prog_compiler_static='-non_shared'
8868       ;;
8869
8870     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8871       case $cc_basename in
8872       # old Intel for x86_64 which still supported -KPIC.
8873       ecc*)
8874         lt_prog_compiler_wl='-Wl,'
8875         lt_prog_compiler_pic='-KPIC'
8876         lt_prog_compiler_static='-static'
8877         ;;
8878       # icc used to be incompatible with GCC.
8879       # ICC 10 doesn't accept -KPIC any more.
8880       icc* | ifort*)
8881         lt_prog_compiler_wl='-Wl,'
8882         lt_prog_compiler_pic='-fPIC'
8883         lt_prog_compiler_static='-static'
8884         ;;
8885       # Lahey Fortran 8.1.
8886       lf95*)
8887         lt_prog_compiler_wl='-Wl,'
8888         lt_prog_compiler_pic='--shared'
8889         lt_prog_compiler_static='--static'
8890         ;;
8891       nagfor*)
8892         # NAG Fortran compiler
8893         lt_prog_compiler_wl='-Wl,-Wl,,'
8894         lt_prog_compiler_pic='-PIC'
8895         lt_prog_compiler_static='-Bstatic'
8896         ;;
8897       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8898         # Portland Group compilers (*not* the Pentium gcc compiler,
8899         # which looks to be a dead project)
8900         lt_prog_compiler_wl='-Wl,'
8901         lt_prog_compiler_pic='-fpic'
8902         lt_prog_compiler_static='-Bstatic'
8903         ;;
8904       ccc*)
8905         lt_prog_compiler_wl='-Wl,'
8906         # All Alpha code is PIC.
8907         lt_prog_compiler_static='-non_shared'
8908         ;;
8909       xl* | bgxl* | bgf* | mpixl*)
8910         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8911         lt_prog_compiler_wl='-Wl,'
8912         lt_prog_compiler_pic='-qpic'
8913         lt_prog_compiler_static='-qstaticlink'
8914         ;;
8915       *)
8916         case `$CC -V 2>&1 | sed 5q` in
8917         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8918           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8919           lt_prog_compiler_pic='-KPIC'
8920           lt_prog_compiler_static='-Bstatic'
8921           lt_prog_compiler_wl=''
8922           ;;
8923         *Sun\ F* | *Sun*Fortran*)
8924           lt_prog_compiler_pic='-KPIC'
8925           lt_prog_compiler_static='-Bstatic'
8926           lt_prog_compiler_wl='-Qoption ld '
8927           ;;
8928         *Sun\ C*)
8929           # Sun C 5.9
8930           lt_prog_compiler_pic='-KPIC'
8931           lt_prog_compiler_static='-Bstatic'
8932           lt_prog_compiler_wl='-Wl,'
8933           ;;
8934         *Intel*\ [CF]*Compiler*)
8935           lt_prog_compiler_wl='-Wl,'
8936           lt_prog_compiler_pic='-fPIC'
8937           lt_prog_compiler_static='-static'
8938           ;;
8939         *Portland\ Group*)
8940           lt_prog_compiler_wl='-Wl,'
8941           lt_prog_compiler_pic='-fpic'
8942           lt_prog_compiler_static='-Bstatic'
8943           ;;
8944         esac
8945         ;;
8946       esac
8947       ;;
8948
8949     newsos6)
8950       lt_prog_compiler_pic='-KPIC'
8951       lt_prog_compiler_static='-Bstatic'
8952       ;;
8953
8954     *nto* | *qnx*)
8955       # QNX uses GNU C++, but need to define -shared option too, otherwise
8956       # it will coredump.
8957       lt_prog_compiler_pic='-fPIC -shared'
8958       ;;
8959
8960     osf3* | osf4* | osf5*)
8961       lt_prog_compiler_wl='-Wl,'
8962       # All OSF/1 code is PIC.
8963       lt_prog_compiler_static='-non_shared'
8964       ;;
8965
8966     rdos*)
8967       lt_prog_compiler_static='-non_shared'
8968       ;;
8969
8970     solaris*)
8971       lt_prog_compiler_pic='-KPIC'
8972       lt_prog_compiler_static='-Bstatic'
8973       case $cc_basename in
8974       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8975         lt_prog_compiler_wl='-Qoption ld ';;
8976       *)
8977         lt_prog_compiler_wl='-Wl,';;
8978       esac
8979       ;;
8980
8981     sunos4*)
8982       lt_prog_compiler_wl='-Qoption ld '
8983       lt_prog_compiler_pic='-PIC'
8984       lt_prog_compiler_static='-Bstatic'
8985       ;;
8986
8987     sysv4 | sysv4.2uw2* | sysv4.3*)
8988       lt_prog_compiler_wl='-Wl,'
8989       lt_prog_compiler_pic='-KPIC'
8990       lt_prog_compiler_static='-Bstatic'
8991       ;;
8992
8993     sysv4*MP*)
8994       if test -d /usr/nec ;then
8995         lt_prog_compiler_pic='-Kconform_pic'
8996         lt_prog_compiler_static='-Bstatic'
8997       fi
8998       ;;
8999
9000     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9001       lt_prog_compiler_wl='-Wl,'
9002       lt_prog_compiler_pic='-KPIC'
9003       lt_prog_compiler_static='-Bstatic'
9004       ;;
9005
9006     unicos*)
9007       lt_prog_compiler_wl='-Wl,'
9008       lt_prog_compiler_can_build_shared=no
9009       ;;
9010
9011     uts4*)
9012       lt_prog_compiler_pic='-pic'
9013       lt_prog_compiler_static='-Bstatic'
9014       ;;
9015
9016     *)
9017       lt_prog_compiler_can_build_shared=no
9018       ;;
9019     esac
9020   fi
9021
9022 case $host_os in
9023   # For platforms which do not support PIC, -DPIC is meaningless:
9024   *djgpp*)
9025     lt_prog_compiler_pic=
9026     ;;
9027   *)
9028     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9029     ;;
9030 esac
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034 if ${lt_cv_prog_compiler_pic+:} false; then :
9035   $as_echo_n "(cached) " >&6
9036 else
9037   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9040 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9041 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9042
9043 #
9044 # Check to make sure the PIC flag actually works.
9045 #
9046 if test -n "$lt_prog_compiler_pic"; then
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9049 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   lt_cv_prog_compiler_pic_works=no
9053    ac_outfile=conftest.$ac_objext
9054    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9056    # Insert the option either (1) after the last *FLAGS variable, or
9057    # (2) before a word containing "conftest.", or (3) at the end.
9058    # Note that $ac_compile itself does not contain backslashes and begins
9059    # with a dollar sign (not a hyphen), so the echo should work correctly.
9060    # The option is referenced via a variable to avoid confusing sed.
9061    lt_compile=`echo "$ac_compile" | $SED \
9062    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064    -e 's:$: $lt_compiler_flag:'`
9065    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066    (eval "$lt_compile" 2>conftest.err)
9067    ac_status=$?
9068    cat conftest.err >&5
9069    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070    if (exit $ac_status) && test -s "$ac_outfile"; then
9071      # The compiler can only warn and ignore the option if not recognized
9072      # So say no if there are warnings other than the usual output.
9073      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9074      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9076        lt_cv_prog_compiler_pic_works=yes
9077      fi
9078    fi
9079    $RM conftest*
9080
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9083 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9084
9085 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9086     case $lt_prog_compiler_pic in
9087      "" | " "*) ;;
9088      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9089      esac
9090 else
9091     lt_prog_compiler_pic=
9092      lt_prog_compiler_can_build_shared=no
9093 fi
9094
9095 fi
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 #
9108 # Check to make sure the static flag actually works.
9109 #
9110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113 if ${lt_cv_prog_compiler_static_works+:} false; then :
9114   $as_echo_n "(cached) " >&6
9115 else
9116   lt_cv_prog_compiler_static_works=no
9117    save_LDFLAGS="$LDFLAGS"
9118    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121      # The linker can only warn and ignore the option if not recognized
9122      # So say no if there are warnings
9123      if test -s conftest.err; then
9124        # Append any errors to the config.log.
9125        cat conftest.err 1>&5
9126        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128        if diff conftest.exp conftest.er2 >/dev/null; then
9129          lt_cv_prog_compiler_static_works=yes
9130        fi
9131      else
9132        lt_cv_prog_compiler_static_works=yes
9133      fi
9134    fi
9135    $RM -r conftest*
9136    LDFLAGS="$save_LDFLAGS"
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9141
9142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9143     :
9144 else
9145     lt_prog_compiler_static=
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156 if ${lt_cv_prog_compiler_c_o+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   lt_cv_prog_compiler_c_o=no
9160    $RM -r conftest 2>/dev/null
9161    mkdir conftest
9162    cd conftest
9163    mkdir out
9164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165
9166    lt_compiler_flag="-o out/conftest2.$ac_objext"
9167    # Insert the option either (1) after the last *FLAGS variable, or
9168    # (2) before a word containing "conftest.", or (3) at the end.
9169    # Note that $ac_compile itself does not contain backslashes and begins
9170    # with a dollar sign (not a hyphen), so the echo should work correctly.
9171    lt_compile=`echo "$ac_compile" | $SED \
9172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174    -e 's:$: $lt_compiler_flag:'`
9175    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176    (eval "$lt_compile" 2>out/conftest.err)
9177    ac_status=$?
9178    cat out/conftest.err >&5
9179    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181    then
9182      # The compiler can only warn and ignore the option if not recognized
9183      # So say no if there are warnings
9184      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187        lt_cv_prog_compiler_c_o=yes
9188      fi
9189    fi
9190    chmod u+w . 2>&5
9191    $RM conftest*
9192    # SGI C++ compiler will create directory out/ii_files/ for
9193    # template instantiation
9194    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195    $RM out/* && rmdir out
9196    cd ..
9197    $RM -r conftest
9198    $RM conftest*
9199
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9203
9204
9205
9206
9207
9208
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211 if ${lt_cv_prog_compiler_c_o+:} false; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   lt_cv_prog_compiler_c_o=no
9215    $RM -r conftest 2>/dev/null
9216    mkdir conftest
9217    cd conftest
9218    mkdir out
9219    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220
9221    lt_compiler_flag="-o out/conftest2.$ac_objext"
9222    # Insert the option either (1) after the last *FLAGS variable, or
9223    # (2) before a word containing "conftest.", or (3) at the end.
9224    # Note that $ac_compile itself does not contain backslashes and begins
9225    # with a dollar sign (not a hyphen), so the echo should work correctly.
9226    lt_compile=`echo "$ac_compile" | $SED \
9227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229    -e 's:$: $lt_compiler_flag:'`
9230    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231    (eval "$lt_compile" 2>out/conftest.err)
9232    ac_status=$?
9233    cat out/conftest.err >&5
9234    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236    then
9237      # The compiler can only warn and ignore the option if not recognized
9238      # So say no if there are warnings
9239      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242        lt_cv_prog_compiler_c_o=yes
9243      fi
9244    fi
9245    chmod u+w . 2>&5
9246    $RM conftest*
9247    # SGI C++ compiler will create directory out/ii_files/ for
9248    # template instantiation
9249    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250    $RM out/* && rmdir out
9251    cd ..
9252    $RM -r conftest
9253    $RM conftest*
9254
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9258
9259
9260
9261
9262 hard_links="nottested"
9263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264   # do not overwrite the value of need_locks provided by the user
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266 $as_echo_n "checking if we can lock with hard links... " >&6; }
9267   hard_links=yes
9268   $RM conftest*
9269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270   touch conftest.a
9271   ln conftest.a conftest.b 2>&5 || hard_links=no
9272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274 $as_echo "$hard_links" >&6; }
9275   if test "$hard_links" = no; then
9276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9278     need_locks=warn
9279   fi
9280 else
9281   need_locks=no
9282 fi
9283
9284
9285
9286
9287
9288
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9291
9292   runpath_var=
9293   allow_undefined_flag=
9294   always_export_symbols=no
9295   archive_cmds=
9296   archive_expsym_cmds=
9297   compiler_needs_object=no
9298   enable_shared_with_static_runtimes=no
9299   export_dynamic_flag_spec=
9300   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301   hardcode_automatic=no
9302   hardcode_direct=no
9303   hardcode_direct_absolute=no
9304   hardcode_libdir_flag_spec=
9305   hardcode_libdir_separator=
9306   hardcode_minus_L=no
9307   hardcode_shlibpath_var=unsupported
9308   inherit_rpath=no
9309   link_all_deplibs=unknown
9310   module_cmds=
9311   module_expsym_cmds=
9312   old_archive_from_new_cmds=
9313   old_archive_from_expsyms_cmds=
9314   thread_safe_flag_spec=
9315   whole_archive_flag_spec=
9316   # include_expsyms should be a list of space-separated symbols to be *always*
9317   # included in the symbol list
9318   include_expsyms=
9319   # exclude_expsyms can be an extended regexp of symbols to exclude
9320   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9321   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9322   # as well as any symbol that contains `d'.
9323   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9324   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9325   # platforms (ab)use it in PIC code, but their linkers get confused if
9326   # the symbol is explicitly referenced.  Since portable code cannot
9327   # rely on this symbol name, it's probably fine to never include it in
9328   # preloaded symbol tables.
9329   # Exclude shared library initialization/finalization symbols.
9330   extract_expsyms_cmds=
9331
9332   case $host_os in
9333   cygwin* | mingw* | pw32* | cegcc*)
9334     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9335     # When not using gcc, we currently assume that we are using
9336     # Microsoft Visual C++.
9337     if test "$GCC" != yes; then
9338       with_gnu_ld=no
9339     fi
9340     ;;
9341   interix*)
9342     # we just hope/assume this is gcc and not c89 (= MSVC++)
9343     with_gnu_ld=yes
9344     ;;
9345   openbsd*)
9346     with_gnu_ld=no
9347     ;;
9348   linux* | k*bsd*-gnu | gnu*)
9349     link_all_deplibs=no
9350     ;;
9351   esac
9352
9353   ld_shlibs=yes
9354
9355   # On some targets, GNU ld is compatible enough with the native linker
9356   # that we're better off using the native interface for both.
9357   lt_use_gnu_ld_interface=no
9358   if test "$with_gnu_ld" = yes; then
9359     case $host_os in
9360       aix*)
9361         # The AIX port of GNU ld has always aspired to compatibility
9362         # with the native linker.  However, as the warning in the GNU ld
9363         # block says, versions before 2.19.5* couldn't really create working
9364         # shared libraries, regardless of the interface used.
9365         case `$LD -v 2>&1` in
9366           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9369           *)
9370             lt_use_gnu_ld_interface=yes
9371             ;;
9372         esac
9373         ;;
9374       *)
9375         lt_use_gnu_ld_interface=yes
9376         ;;
9377     esac
9378   fi
9379
9380   if test "$lt_use_gnu_ld_interface" = yes; then
9381     # If archive_cmds runs LD, not CC, wlarc should be empty
9382     wlarc='${wl}'
9383
9384     # Set some defaults for GNU ld with shared library support. These
9385     # are reset later if shared libraries are not supported. Putting them
9386     # here allows them to be overridden if necessary.
9387     runpath_var=LD_RUN_PATH
9388     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389     export_dynamic_flag_spec='${wl}--export-dynamic'
9390     # ancient GNU ld didn't support --whole-archive et. al.
9391     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9393     else
9394       whole_archive_flag_spec=
9395     fi
9396     supports_anon_versioning=no
9397     case `$LD -v 2>&1` in
9398       *GNU\ gold*) supports_anon_versioning=yes ;;
9399       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402       *\ 2.11.*) ;; # other 2.11 versions
9403       *) supports_anon_versioning=yes ;;
9404     esac
9405
9406     # See if GNU ld supports shared libraries.
9407     case $host_os in
9408     aix[3-9]*)
9409       # On AIX/PPC, the GNU linker is very broken
9410       if test "$host_cpu" != ia64; then
9411         ld_shlibs=no
9412         cat <<_LT_EOF 1>&2
9413
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support.  If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9420
9421 _LT_EOF
9422       fi
9423       ;;
9424
9425     amigaos*)
9426       case $host_cpu in
9427       powerpc)
9428             # see comment about AmigaOS4 .so support
9429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430             archive_expsym_cmds=''
9431         ;;
9432       m68k)
9433             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)'
9434             hardcode_libdir_flag_spec='-L$libdir'
9435             hardcode_minus_L=yes
9436         ;;
9437       esac
9438       ;;
9439
9440     beos*)
9441       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442         allow_undefined_flag=unsupported
9443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444         # support --undefined.  This deserves some investigation.  FIXME
9445         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446       else
9447         ld_shlibs=no
9448       fi
9449       ;;
9450
9451     cygwin* | mingw* | pw32* | cegcc*)
9452       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453       # as there is no search path for DLLs.
9454       hardcode_libdir_flag_spec='-L$libdir'
9455       export_dynamic_flag_spec='${wl}--export-all-symbols'
9456       allow_undefined_flag=unsupported
9457       always_export_symbols=no
9458       enable_shared_with_static_runtimes=yes
9459       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'
9460       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9461
9462       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464         # If the export-symbols file already is a .def file (1st line
9465         # is EXPORTS), use it as is; otherwise, prepend...
9466         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9467           cp $export_symbols $output_objdir/$soname.def;
9468         else
9469           echo EXPORTS > $output_objdir/$soname.def;
9470           cat $export_symbols >> $output_objdir/$soname.def;
9471         fi~
9472         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473       else
9474         ld_shlibs=no
9475       fi
9476       ;;
9477
9478     haiku*)
9479       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480       link_all_deplibs=yes
9481       ;;
9482
9483     interix[3-9]*)
9484       hardcode_direct=no
9485       hardcode_shlibpath_var=no
9486       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487       export_dynamic_flag_spec='${wl}-E'
9488       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489       # Instead, shared libraries are loaded at an image base (0x10000000 by
9490       # default) and relocated if they conflict, which is a slow very memory
9491       # consuming and fragmenting process.  To avoid this, we pick a random,
9492       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9494       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495       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'
9496       ;;
9497
9498     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9499       tmp_diet=no
9500       if test "$host_os" = linux-dietlibc; then
9501         case $cc_basename in
9502           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9503         esac
9504       fi
9505       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506          && test "$tmp_diet" = no
9507       then
9508         tmp_addflag=' $pic_flag'
9509         tmp_sharedflag='-shared'
9510         case $cc_basename,$host_cpu in
9511         pgcc*)                          # Portland Group C compiler
9512           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'
9513           tmp_addflag=' $pic_flag'
9514           ;;
9515         pgf77* | pgf90* | pgf95* | pgfortran*)
9516                                         # Portland Group f77 and f90 compilers
9517           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'
9518           tmp_addflag=' $pic_flag -Mnomain' ;;
9519         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9520           tmp_addflag=' -i_dynamic' ;;
9521         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9522           tmp_addflag=' -i_dynamic -nofor_main' ;;
9523         ifc* | ifort*)                  # Intel Fortran compiler
9524           tmp_addflag=' -nofor_main' ;;
9525         lf95*)                          # Lahey Fortran 8.1
9526           whole_archive_flag_spec=
9527           tmp_sharedflag='--shared' ;;
9528         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529           tmp_sharedflag='-qmkshrobj'
9530           tmp_addflag= ;;
9531         nvcc*)  # Cuda Compiler Driver 2.2
9532           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'
9533           compiler_needs_object=yes
9534           ;;
9535         esac
9536         case `$CC -V 2>&1 | sed 5q` in
9537         *Sun\ C*)                       # Sun C 5.9
9538           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'
9539           compiler_needs_object=yes
9540           tmp_sharedflag='-G' ;;
9541         *Sun\ F*)                       # Sun Fortran 8.3
9542           tmp_sharedflag='-G' ;;
9543         esac
9544         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545
9546         if test "x$supports_anon_versioning" = xyes; then
9547           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549             echo "local: *; };" >> $output_objdir/$libname.ver~
9550             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551         fi
9552
9553         case $cc_basename in
9554         xlf* | bgf* | bgxlf* | mpixlf*)
9555           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9559           if test "x$supports_anon_versioning" = xyes; then
9560             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562               echo "local: *; };" >> $output_objdir/$libname.ver~
9563               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9564           fi
9565           ;;
9566         esac
9567       else
9568         ld_shlibs=no
9569       fi
9570       ;;
9571
9572     netbsd* | netbsdelf*-gnu)
9573       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9575         wlarc=
9576       else
9577         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579       fi
9580       ;;
9581
9582     solaris*)
9583       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems.  Therefore, libtool
9589 *** is disabling shared libraries support.  We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer.  Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598       else
9599         ld_shlibs=no
9600       fi
9601       ;;
9602
9603     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604       case `$LD -v 2>&1` in
9605         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9606         ld_shlibs=no
9607         cat <<_LT_EOF 1>&2
9608
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9611 *** is disabling shared libraries support.  We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9615
9616 _LT_EOF
9617         ;;
9618         *)
9619           # For security reasons, it is highly recommended that you always
9620           # use absolute paths for naming shared libraries, and exclude the
9621           # DT_RUNPATH tag from executables and libraries.  But doing so
9622           # requires that you compile everything twice, which is a pain.
9623           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627           else
9628             ld_shlibs=no
9629           fi
9630         ;;
9631       esac
9632       ;;
9633
9634     sunos4*)
9635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636       wlarc=
9637       hardcode_direct=yes
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     *)
9642       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645       else
9646         ld_shlibs=no
9647       fi
9648       ;;
9649     esac
9650
9651     if test "$ld_shlibs" = no; then
9652       runpath_var=
9653       hardcode_libdir_flag_spec=
9654       export_dynamic_flag_spec=
9655       whole_archive_flag_spec=
9656     fi
9657   else
9658     # PORTME fill in a description of your system's linker (not GNU ld)
9659     case $host_os in
9660     aix3*)
9661       allow_undefined_flag=unsupported
9662       always_export_symbols=yes
9663       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'
9664       # Note: this linker hardcodes the directories in LIBPATH if there
9665       # are no directories specified by -L.
9666       hardcode_minus_L=yes
9667       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668         # Neither direct hardcoding nor static linking is supported with a
9669         # broken collect2.
9670         hardcode_direct=unsupported
9671       fi
9672       ;;
9673
9674     aix[4-9]*)
9675       if test "$host_cpu" = ia64; then
9676         # On IA64, the linker does run time linking by default, so we don't
9677         # have to do anything special.
9678         aix_use_runtimelinking=no
9679         exp_sym_flag='-Bexport'
9680         no_entry_flag=""
9681       else
9682         # If we're using GNU nm, then we don't want the "-C" option.
9683         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684         # Also, AIX nm treats weak defined symbols like other global
9685         # defined symbols, whereas GNU nm marks them as "W".
9686         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687           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'
9688         else
9689           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'
9690         fi
9691         aix_use_runtimelinking=no
9692
9693         # Test if we are trying to use run time linking or normal
9694         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695         # need to do runtime linking.
9696         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697           for ld_flag in $LDFLAGS; do
9698           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699             aix_use_runtimelinking=yes
9700             break
9701           fi
9702           done
9703           ;;
9704         esac
9705
9706         exp_sym_flag='-bexport'
9707         no_entry_flag='-bnoentry'
9708       fi
9709
9710       # When large executables or shared objects are built, AIX ld can
9711       # have problems creating the table of contents.  If linking a library
9712       # or program results in "error TOC overflow" add -mminimal-toc to
9713       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9714       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9715
9716       archive_cmds=''
9717       hardcode_direct=yes
9718       hardcode_direct_absolute=yes
9719       hardcode_libdir_separator=':'
9720       link_all_deplibs=yes
9721       file_list_spec='${wl}-f,'
9722
9723       if test "$GCC" = yes; then
9724         case $host_os in aix4.[012]|aix4.[012].*)
9725         # We only want to do this on AIX 4.2 and lower, the check
9726         # below for broken collect2 doesn't work under 4.3+
9727           collect2name=`${CC} -print-prog-name=collect2`
9728           if test -f "$collect2name" &&
9729            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9730           then
9731           # We have reworked collect2
9732           :
9733           else
9734           # We have old collect2
9735           hardcode_direct=unsupported
9736           # It fails to find uninstalled libraries when the uninstalled
9737           # path is not listed in the libpath.  Setting hardcode_minus_L
9738           # to unsupported forces relinking
9739           hardcode_minus_L=yes
9740           hardcode_libdir_flag_spec='-L$libdir'
9741           hardcode_libdir_separator=
9742           fi
9743           ;;
9744         esac
9745         shared_flag='-shared'
9746         if test "$aix_use_runtimelinking" = yes; then
9747           shared_flag="$shared_flag "'${wl}-G'
9748         fi
9749         link_all_deplibs=no
9750       else
9751         # not using gcc
9752         if test "$host_cpu" = ia64; then
9753         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754         # chokes on -Wl,-G. The following line is correct:
9755           shared_flag='-G'
9756         else
9757           if test "$aix_use_runtimelinking" = yes; then
9758             shared_flag='${wl}-G'
9759           else
9760             shared_flag='${wl}-bM:SRE'
9761           fi
9762         fi
9763       fi
9764
9765       export_dynamic_flag_spec='${wl}-bexpall'
9766       # It seems that -bexpall does not export symbols beginning with
9767       # underscore (_), so it is better to generate a list of symbols to export.
9768       always_export_symbols=yes
9769       if test "$aix_use_runtimelinking" = yes; then
9770         # Warning - without using the other runtime loading flags (-brtl),
9771         # -berok will link without error, but may produce a broken library.
9772         allow_undefined_flag='-berok'
9773         # Determine the default libpath from the value encoded in an
9774         # empty executable.
9775         if test "${lt_cv_aix_libpath+set}" = set; then
9776   aix_libpath=$lt_cv_aix_libpath
9777 else
9778   if ${lt_cv_aix_libpath_+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h.  */
9783
9784 int
9785 main ()
9786 {
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793
9794   lt_aix_libpath_sed='
9795       /Import File Strings/,/^$/ {
9796           /^0/ {
9797               s/^0  *\([^ ]*\) *$/\1/
9798               p
9799           }
9800       }'
9801   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802   # Check for a 64-bit object if we didn't find anything.
9803   if test -z "$lt_cv_aix_libpath_"; then
9804     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805   fi
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext \
9808     conftest$ac_exeext conftest.$ac_ext
9809   if test -z "$lt_cv_aix_libpath_"; then
9810     lt_cv_aix_libpath_="/usr/lib:/lib"
9811   fi
9812
9813 fi
9814
9815   aix_libpath=$lt_cv_aix_libpath_
9816 fi
9817
9818         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9819         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"
9820       else
9821         if test "$host_cpu" = ia64; then
9822           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9823           allow_undefined_flag="-z nodefs"
9824           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"
9825         else
9826          # Determine the default libpath from the value encoded in an
9827          # empty executable.
9828          if test "${lt_cv_aix_libpath+set}" = set; then
9829   aix_libpath=$lt_cv_aix_libpath
9830 else
9831   if ${lt_cv_aix_libpath_+:} false; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h.  */
9836
9837 int
9838 main ()
9839 {
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846
9847   lt_aix_libpath_sed='
9848       /Import File Strings/,/^$/ {
9849           /^0/ {
9850               s/^0  *\([^ ]*\) *$/\1/
9851               p
9852           }
9853       }'
9854   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855   # Check for a 64-bit object if we didn't find anything.
9856   if test -z "$lt_cv_aix_libpath_"; then
9857     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858   fi
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861     conftest$ac_exeext conftest.$ac_ext
9862   if test -z "$lt_cv_aix_libpath_"; then
9863     lt_cv_aix_libpath_="/usr/lib:/lib"
9864   fi
9865
9866 fi
9867
9868   aix_libpath=$lt_cv_aix_libpath_
9869 fi
9870
9871          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9872           # Warning - without using the other run time loading flags,
9873           # -berok will link without error, but may produce a broken library.
9874           no_undefined_flag=' ${wl}-bernotok'
9875           allow_undefined_flag=' ${wl}-berok'
9876           if test "$with_gnu_ld" = yes; then
9877             # We only use this code for GNU lds that support --whole-archive.
9878             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9879           else
9880             # Exported symbols can be pulled into shared objects from archives
9881             whole_archive_flag_spec='$convenience'
9882           fi
9883           archive_cmds_need_lc=yes
9884           # This is similar to how AIX traditionally builds its shared libraries.
9885           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'
9886         fi
9887       fi
9888       ;;
9889
9890     amigaos*)
9891       case $host_cpu in
9892       powerpc)
9893             # see comment about AmigaOS4 .so support
9894             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895             archive_expsym_cmds=''
9896         ;;
9897       m68k)
9898             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)'
9899             hardcode_libdir_flag_spec='-L$libdir'
9900             hardcode_minus_L=yes
9901         ;;
9902       esac
9903       ;;
9904
9905     bsdi[45]*)
9906       export_dynamic_flag_spec=-rdynamic
9907       ;;
9908
9909     cygwin* | mingw* | pw32* | cegcc*)
9910       # When not using gcc, we currently assume that we are using
9911       # Microsoft Visual C++.
9912       # hardcode_libdir_flag_spec is actually meaningless, as there is
9913       # no search path for DLLs.
9914       case $cc_basename in
9915       cl*)
9916         # Native MSVC
9917         hardcode_libdir_flag_spec=' '
9918         allow_undefined_flag=unsupported
9919         always_export_symbols=yes
9920         file_list_spec='@'
9921         # Tell ltmain to make .lib files, not .a files.
9922         libext=lib
9923         # Tell ltmain to make .dll files, not .so files.
9924         shrext_cmds=".dll"
9925         # FIXME: Setting linknames here is a bad hack.
9926         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9927         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9928             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9929           else
9930             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9931           fi~
9932           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9933           linknames='
9934         # The linker will not automatically build a static lib if we build a DLL.
9935         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9936         enable_shared_with_static_runtimes=yes
9937         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9938         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939         # Don't use ranlib
9940         old_postinstall_cmds='chmod 644 $oldlib'
9941         postlink_cmds='lt_outputfile="@OUTPUT@"~
9942           lt_tool_outputfile="@TOOL_OUTPUT@"~
9943           case $lt_outputfile in
9944             *.exe|*.EXE) ;;
9945             *)
9946               lt_outputfile="$lt_outputfile.exe"
9947               lt_tool_outputfile="$lt_tool_outputfile.exe"
9948               ;;
9949           esac~
9950           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9951             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9952             $RM "$lt_outputfile.manifest";
9953           fi'
9954         ;;
9955       *)
9956         # Assume MSVC wrapper
9957         hardcode_libdir_flag_spec=' '
9958         allow_undefined_flag=unsupported
9959         # Tell ltmain to make .lib files, not .a files.
9960         libext=lib
9961         # Tell ltmain to make .dll files, not .so files.
9962         shrext_cmds=".dll"
9963         # FIXME: Setting linknames here is a bad hack.
9964         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9965         # The linker will automatically build a .lib file if we build a DLL.
9966         old_archive_from_new_cmds='true'
9967         # FIXME: Should let the user specify the lib program.
9968         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9969         enable_shared_with_static_runtimes=yes
9970         ;;
9971       esac
9972       ;;
9973
9974     darwin* | rhapsody*)
9975
9976
9977   archive_cmds_need_lc=no
9978   hardcode_direct=no
9979   hardcode_automatic=yes
9980   hardcode_shlibpath_var=unsupported
9981   if test "$lt_cv_ld_force_load" = "yes"; then
9982     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\"`'
9983
9984   else
9985     whole_archive_flag_spec=''
9986   fi
9987   link_all_deplibs=yes
9988   allow_undefined_flag="$_lt_dar_allow_undefined"
9989   case $cc_basename in
9990      ifort*) _lt_dar_can_shared=yes ;;
9991      *) _lt_dar_can_shared=$GCC ;;
9992   esac
9993   if test "$_lt_dar_can_shared" = "yes"; then
9994     output_verbose_link_cmd=func_echo_all
9995     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9996     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9997     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}"
9998     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}"
9999
10000   else
10001   ld_shlibs=no
10002   fi
10003
10004       ;;
10005
10006     dgux*)
10007       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008       hardcode_libdir_flag_spec='-L$libdir'
10009       hardcode_shlibpath_var=no
10010       ;;
10011
10012     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10013     # support.  Future versions do this automatically, but an explicit c++rt0.o
10014     # does not break anything, and helps significantly (at the cost of a little
10015     # extra space).
10016     freebsd2.2*)
10017       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10018       hardcode_libdir_flag_spec='-R$libdir'
10019       hardcode_direct=yes
10020       hardcode_shlibpath_var=no
10021       ;;
10022
10023     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10024     freebsd2.*)
10025       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026       hardcode_direct=yes
10027       hardcode_minus_L=yes
10028       hardcode_shlibpath_var=no
10029       ;;
10030
10031     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10032     freebsd* | dragonfly*)
10033       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10034       hardcode_libdir_flag_spec='-R$libdir'
10035       hardcode_direct=yes
10036       hardcode_shlibpath_var=no
10037       ;;
10038
10039     hpux9*)
10040       if test "$GCC" = yes; then
10041         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'
10042       else
10043         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'
10044       fi
10045       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046       hardcode_libdir_separator=:
10047       hardcode_direct=yes
10048
10049       # hardcode_minus_L: Not really in the search PATH,
10050       # but as the default location of the library.
10051       hardcode_minus_L=yes
10052       export_dynamic_flag_spec='${wl}-E'
10053       ;;
10054
10055     hpux10*)
10056       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10057         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058       else
10059         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060       fi
10061       if test "$with_gnu_ld" = no; then
10062         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063         hardcode_libdir_separator=:
10064         hardcode_direct=yes
10065         hardcode_direct_absolute=yes
10066         export_dynamic_flag_spec='${wl}-E'
10067         # hardcode_minus_L: Not really in the search PATH,
10068         # but as the default location of the library.
10069         hardcode_minus_L=yes
10070       fi
10071       ;;
10072
10073     hpux11*)
10074       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10075         case $host_cpu in
10076         hppa*64*)
10077           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078           ;;
10079         ia64*)
10080           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10081           ;;
10082         *)
10083           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084           ;;
10085         esac
10086       else
10087         case $host_cpu in
10088         hppa*64*)
10089           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090           ;;
10091         ia64*)
10092           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10093           ;;
10094         *)
10095
10096           # Older versions of the 11.00 compiler do not understand -b yet
10097           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10098           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10099 $as_echo_n "checking if $CC understands -b... " >&6; }
10100 if ${lt_cv_prog_compiler__b+:} false; then :
10101   $as_echo_n "(cached) " >&6
10102 else
10103   lt_cv_prog_compiler__b=no
10104    save_LDFLAGS="$LDFLAGS"
10105    LDFLAGS="$LDFLAGS -b"
10106    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108      # The linker can only warn and ignore the option if not recognized
10109      # So say no if there are warnings
10110      if test -s conftest.err; then
10111        # Append any errors to the config.log.
10112        cat conftest.err 1>&5
10113        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115        if diff conftest.exp conftest.er2 >/dev/null; then
10116          lt_cv_prog_compiler__b=yes
10117        fi
10118      else
10119        lt_cv_prog_compiler__b=yes
10120      fi
10121    fi
10122    $RM -r conftest*
10123    LDFLAGS="$save_LDFLAGS"
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10128
10129 if test x"$lt_cv_prog_compiler__b" = xyes; then
10130     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131 else
10132     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10133 fi
10134
10135           ;;
10136         esac
10137       fi
10138       if test "$with_gnu_ld" = no; then
10139         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140         hardcode_libdir_separator=:
10141
10142         case $host_cpu in
10143         hppa*64*|ia64*)
10144           hardcode_direct=no
10145           hardcode_shlibpath_var=no
10146           ;;
10147         *)
10148           hardcode_direct=yes
10149           hardcode_direct_absolute=yes
10150           export_dynamic_flag_spec='${wl}-E'
10151
10152           # hardcode_minus_L: Not really in the search PATH,
10153           # but as the default location of the library.
10154           hardcode_minus_L=yes
10155           ;;
10156         esac
10157       fi
10158       ;;
10159
10160     irix5* | irix6* | nonstopux*)
10161       if test "$GCC" = yes; then
10162         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'
10163         # Try to use the -exported_symbol ld option, if it does not
10164         # work, assume that -exports_file does not work either and
10165         # implicitly export all symbols.
10166         # This should be the same for all languages, so no per-tag cache variable.
10167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10168 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10169 if ${lt_cv_irix_exported_symbol+:} false; then :
10170   $as_echo_n "(cached) " >&6
10171 else
10172   save_LDFLAGS="$LDFLAGS"
10173            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10174            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h.  */
10176 int foo (void) { return 0; }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179   lt_cv_irix_exported_symbol=yes
10180 else
10181   lt_cv_irix_exported_symbol=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext \
10184     conftest$ac_exeext conftest.$ac_ext
10185            LDFLAGS="$save_LDFLAGS"
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10188 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10189         if test "$lt_cv_irix_exported_symbol" = yes; then
10190           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'
10191         fi
10192       else
10193         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'
10194         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'
10195       fi
10196       archive_cmds_need_lc='no'
10197       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198       hardcode_libdir_separator=:
10199       inherit_rpath=yes
10200       link_all_deplibs=yes
10201       ;;
10202
10203     netbsd* | netbsdelf*-gnu)
10204       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10205         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10206       else
10207         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10208       fi
10209       hardcode_libdir_flag_spec='-R$libdir'
10210       hardcode_direct=yes
10211       hardcode_shlibpath_var=no
10212       ;;
10213
10214     newsos6)
10215       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216       hardcode_direct=yes
10217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218       hardcode_libdir_separator=:
10219       hardcode_shlibpath_var=no
10220       ;;
10221
10222     *nto* | *qnx*)
10223       ;;
10224
10225     openbsd*)
10226       if test -f /usr/libexec/ld.so; then
10227         hardcode_direct=yes
10228         hardcode_shlibpath_var=no
10229         hardcode_direct_absolute=yes
10230         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234           export_dynamic_flag_spec='${wl}-E'
10235         else
10236           case $host_os in
10237            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10238              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10239              hardcode_libdir_flag_spec='-R$libdir'
10240              ;;
10241            *)
10242              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244              ;;
10245           esac
10246         fi
10247       else
10248         ld_shlibs=no
10249       fi
10250       ;;
10251
10252     os2*)
10253       hardcode_libdir_flag_spec='-L$libdir'
10254       hardcode_minus_L=yes
10255       allow_undefined_flag=unsupported
10256       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'
10257       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10258       ;;
10259
10260     osf3*)
10261       if test "$GCC" = yes; then
10262         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263         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'
10264       else
10265         allow_undefined_flag=' -expect_unresolved \*'
10266         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'
10267       fi
10268       archive_cmds_need_lc='no'
10269       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270       hardcode_libdir_separator=:
10271       ;;
10272
10273     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10274       if test "$GCC" = yes; then
10275         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276         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'
10277         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278       else
10279         allow_undefined_flag=' -expect_unresolved \*'
10280         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'
10281         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~
10282         $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'
10283
10284         # Both c and cxx compiler support -rpath directly
10285         hardcode_libdir_flag_spec='-rpath $libdir'
10286       fi
10287       archive_cmds_need_lc='no'
10288       hardcode_libdir_separator=:
10289       ;;
10290
10291     solaris*)
10292       no_undefined_flag=' -z defs'
10293       if test "$GCC" = yes; then
10294         wlarc='${wl}'
10295         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297           $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'
10298       else
10299         case `$CC -V 2>&1` in
10300         *"Compilers 5.0"*)
10301           wlarc=''
10302           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10305           ;;
10306         *)
10307           wlarc='${wl}'
10308           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10311           ;;
10312         esac
10313       fi
10314       hardcode_libdir_flag_spec='-R$libdir'
10315       hardcode_shlibpath_var=no
10316       case $host_os in
10317       solaris2.[0-5] | solaris2.[0-5].*) ;;
10318       *)
10319         # The compiler driver will combine and reorder linker options,
10320         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10321         # but is careful enough not to reorder.
10322         # Supported since Solaris 2.6 (maybe 2.5.1?)
10323         if test "$GCC" = yes; then
10324           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325         else
10326           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10327         fi
10328         ;;
10329       esac
10330       link_all_deplibs=yes
10331       ;;
10332
10333     sunos4*)
10334       if test "x$host_vendor" = xsequent; then
10335         # Use $CC to link under sequent, because it throws in some extra .o
10336         # files that make .init and .fini sections work.
10337         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338       else
10339         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340       fi
10341       hardcode_libdir_flag_spec='-L$libdir'
10342       hardcode_direct=yes
10343       hardcode_minus_L=yes
10344       hardcode_shlibpath_var=no
10345       ;;
10346
10347     sysv4)
10348       case $host_vendor in
10349         sni)
10350           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351           hardcode_direct=yes # is this really true???
10352         ;;
10353         siemens)
10354           ## LD is ld it makes a PLAMLIB
10355           ## CC just makes a GrossModule.
10356           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357           reload_cmds='$CC -r -o $output$reload_objs'
10358           hardcode_direct=no
10359         ;;
10360         motorola)
10361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10363         ;;
10364       esac
10365       runpath_var='LD_RUN_PATH'
10366       hardcode_shlibpath_var=no
10367       ;;
10368
10369     sysv4.3*)
10370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371       hardcode_shlibpath_var=no
10372       export_dynamic_flag_spec='-Bexport'
10373       ;;
10374
10375     sysv4*MP*)
10376       if test -d /usr/nec; then
10377         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378         hardcode_shlibpath_var=no
10379         runpath_var=LD_RUN_PATH
10380         hardcode_runpath_var=yes
10381         ld_shlibs=yes
10382       fi
10383       ;;
10384
10385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386       no_undefined_flag='${wl}-z,text'
10387       archive_cmds_need_lc=no
10388       hardcode_shlibpath_var=no
10389       runpath_var='LD_RUN_PATH'
10390
10391       if test "$GCC" = yes; then
10392         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394       else
10395         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397       fi
10398       ;;
10399
10400     sysv5* | sco3.2v5* | sco5v6*)
10401       # Note: We can NOT use -z defs as we might desire, because we do not
10402       # link with -lc, and that would cause any symbols used from libc to
10403       # always be unresolved, which means just about no library would
10404       # ever link correctly.  If we're not using GNU ld we use -z text
10405       # though, which does catch some bad symbols but isn't as heavy-handed
10406       # as -z defs.
10407       no_undefined_flag='${wl}-z,text'
10408       allow_undefined_flag='${wl}-z,nodefs'
10409       archive_cmds_need_lc=no
10410       hardcode_shlibpath_var=no
10411       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10412       hardcode_libdir_separator=':'
10413       link_all_deplibs=yes
10414       export_dynamic_flag_spec='${wl}-Bexport'
10415       runpath_var='LD_RUN_PATH'
10416
10417       if test "$GCC" = yes; then
10418         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420       else
10421         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423       fi
10424       ;;
10425
10426     uts4*)
10427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428       hardcode_libdir_flag_spec='-L$libdir'
10429       hardcode_shlibpath_var=no
10430       ;;
10431
10432     *)
10433       ld_shlibs=no
10434       ;;
10435     esac
10436
10437     if test x$host_vendor = xsni; then
10438       case $host in
10439       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440         export_dynamic_flag_spec='${wl}-Blargedynsym'
10441         ;;
10442       esac
10443     fi
10444   fi
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test "$ld_shlibs" = no && can_build_shared=no
10449
10450 with_gnu_ld=$with_gnu_ld
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466 #
10467 # Do we need to explicitly link libc?
10468 #
10469 case "x$archive_cmds_need_lc" in
10470 x|xyes)
10471   # Assume -lc should be added
10472   archive_cmds_need_lc=yes
10473
10474   if test "$enable_shared" = yes && test "$GCC" = yes; then
10475     case $archive_cmds in
10476     *'~'*)
10477       # FIXME: we may have to deal with multi-command sequences.
10478       ;;
10479     '$CC '*)
10480       # Test whether the compiler implicitly links with -lc since on some
10481       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482       # to ld, don't add -lc before -lgcc.
10483       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   $RM conftest*
10489         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492   (eval $ac_compile) 2>&5
10493   ac_status=$?
10494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495   test $ac_status = 0; } 2>conftest.err; then
10496           soname=conftest
10497           lib=conftest
10498           libobjs=conftest.$ac_objext
10499           deplibs=
10500           wl=$lt_prog_compiler_wl
10501           pic_flag=$lt_prog_compiler_pic
10502           compiler_flags=-v
10503           linker_flags=-v
10504           verstring=
10505           output_objdir=.
10506           libname=conftest
10507           lt_save_allow_undefined_flag=$allow_undefined_flag
10508           allow_undefined_flag=
10509           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10511   ac_status=$?
10512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513   test $ac_status = 0; }
10514           then
10515             lt_cv_archive_cmds_need_lc=no
10516           else
10517             lt_cv_archive_cmds_need_lc=yes
10518           fi
10519           allow_undefined_flag=$lt_save_allow_undefined_flag
10520         else
10521           cat conftest.err 1>&5
10522         fi
10523         $RM conftest*
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10529       ;;
10530     esac
10531   fi
10532   ;;
10533 esac
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688
10689 if test "$GCC" = yes; then
10690   case $host_os in
10691     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10692     *) lt_awk_arg="/^libraries:/" ;;
10693   esac
10694   case $host_os in
10695     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10696     *) lt_sed_strip_eq="s,=/,/,g" ;;
10697   esac
10698   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699   case $lt_search_path_spec in
10700   *\;*)
10701     # if the path contains ";" then we assume it to be the separator
10702     # otherwise default to the standard path separator (i.e. ":") - it is
10703     # assumed that no part of a normal pathname contains ";" but that should
10704     # okay in the real world where ";" in dirpaths is itself problematic.
10705     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10706     ;;
10707   *)
10708     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10709     ;;
10710   esac
10711   # Ok, now we have the path, separated by spaces, we can step through it
10712   # and add multilib dir if necessary.
10713   lt_tmp_lt_search_path_spec=
10714   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715   for lt_sys_path in $lt_search_path_spec; do
10716     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10717       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10718     else
10719       test -d "$lt_sys_path" && \
10720         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10721     fi
10722   done
10723   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10724 BEGIN {RS=" "; FS="/|\n";} {
10725   lt_foo="";
10726   lt_count=0;
10727   for (lt_i = NF; lt_i > 0; lt_i--) {
10728     if ($lt_i != "" && $lt_i != ".") {
10729       if ($lt_i == "..") {
10730         lt_count++;
10731       } else {
10732         if (lt_count == 0) {
10733           lt_foo="/" $lt_i lt_foo;
10734         } else {
10735           lt_count--;
10736         }
10737       }
10738     }
10739   }
10740   if (lt_foo != "") { lt_freq[lt_foo]++; }
10741   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10742 }'`
10743   # AWK program above erroneously prepends '/' to C:/dos/paths
10744   # for these hosts.
10745   case $host_os in
10746     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10747       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10748   esac
10749   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10750 else
10751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10752 fi
10753 library_names_spec=
10754 libname_spec='lib$name'
10755 soname_spec=
10756 shrext_cmds=".so"
10757 postinstall_cmds=
10758 postuninstall_cmds=
10759 finish_cmds=
10760 finish_eval=
10761 shlibpath_var=
10762 shlibpath_overrides_runpath=unknown
10763 version_type=none
10764 dynamic_linker="$host_os ld.so"
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10766 need_lib_prefix=unknown
10767 hardcode_into_libs=no
10768
10769 # when you set need_version to no, make sure it does not cause -set_version
10770 # flags to be left without arguments
10771 need_version=unknown
10772
10773 case $host_os in
10774 aix3*)
10775   version_type=linux # correct to gnu/linux during the next big refactor
10776   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10777   shlibpath_var=LIBPATH
10778
10779   # AIX 3 has no versioning support, so we append a major version to the name.
10780   soname_spec='${libname}${release}${shared_ext}$major'
10781   ;;
10782
10783 aix[4-9]*)
10784   version_type=linux # correct to gnu/linux during the next big refactor
10785   need_lib_prefix=no
10786   need_version=no
10787   hardcode_into_libs=yes
10788   if test "$host_cpu" = ia64; then
10789     # AIX 5 supports IA64
10790     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10791     shlibpath_var=LD_LIBRARY_PATH
10792   else
10793     # With GCC up to 2.95.x, collect2 would create an import file
10794     # for dependence libraries.  The import file would start with
10795     # the line `#! .'.  This would cause the generated library to
10796     # depend on `.', always an invalid library.  This was fixed in
10797     # development snapshots of GCC prior to 3.0.
10798     case $host_os in
10799       aix4 | aix4.[01] | aix4.[01].*)
10800       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10801            echo ' yes '
10802            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10803         :
10804       else
10805         can_build_shared=no
10806       fi
10807       ;;
10808     esac
10809     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10810     # soname into executable. Probably we can add versioning support to
10811     # collect2, so additional links can be useful in future.
10812     if test "$aix_use_runtimelinking" = yes; then
10813       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10814       # instead of lib<name>.a to let people know that these are not
10815       # typical AIX shared libraries.
10816       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817     else
10818       # We preserve .a as extension for shared libraries through AIX4.2
10819       # and later when we are not doing run time linking.
10820       library_names_spec='${libname}${release}.a $libname.a'
10821       soname_spec='${libname}${release}${shared_ext}$major'
10822     fi
10823     shlibpath_var=LIBPATH
10824   fi
10825   ;;
10826
10827 amigaos*)
10828   case $host_cpu in
10829   powerpc)
10830     # Since July 2007 AmigaOS4 officially supports .so libraries.
10831     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833     ;;
10834   m68k)
10835     library_names_spec='$libname.ixlibrary $libname.a'
10836     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10837     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'
10838     ;;
10839   esac
10840   ;;
10841
10842 beos*)
10843   library_names_spec='${libname}${shared_ext}'
10844   dynamic_linker="$host_os ld.so"
10845   shlibpath_var=LIBRARY_PATH
10846   ;;
10847
10848 bsdi[45]*)
10849   version_type=linux # correct to gnu/linux during the next big refactor
10850   need_version=no
10851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852   soname_spec='${libname}${release}${shared_ext}$major'
10853   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10854   shlibpath_var=LD_LIBRARY_PATH
10855   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10856   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10857   # the default ld.so.conf also contains /usr/contrib/lib and
10858   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10859   # libtool to hard-code these into programs
10860   ;;
10861
10862 cygwin* | mingw* | pw32* | cegcc*)
10863   version_type=windows
10864   shrext_cmds=".dll"
10865   need_version=no
10866   need_lib_prefix=no
10867
10868   case $GCC,$cc_basename in
10869   yes,*)
10870     # gcc
10871     library_names_spec='$libname.dll.a'
10872     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873     postinstall_cmds='base_file=`basename \${file}`~
10874       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875       dldir=$destdir/`dirname \$dlpath`~
10876       test -d \$dldir || mkdir -p \$dldir~
10877       $install_prog $dir/$dlname \$dldir/$dlname~
10878       chmod a+x \$dldir/$dlname~
10879       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10881       fi'
10882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883       dlpath=$dir/\$dldll~
10884        $RM \$dlpath'
10885     shlibpath_overrides_runpath=yes
10886
10887     case $host_os in
10888     cygwin*)
10889       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891
10892       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10893       ;;
10894     mingw* | cegcc*)
10895       # MinGW DLLs use traditional 'lib' prefix
10896       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897       ;;
10898     pw32*)
10899       # pw32 DLLs use 'pw' prefix rather than 'lib'
10900       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901       ;;
10902     esac
10903     dynamic_linker='Win32 ld.exe'
10904     ;;
10905
10906   *,cl*)
10907     # Native MSVC
10908     libname_spec='$name'
10909     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10910     library_names_spec='${libname}.dll.lib'
10911
10912     case $build_os in
10913     mingw*)
10914       sys_lib_search_path_spec=
10915       lt_save_ifs=$IFS
10916       IFS=';'
10917       for lt_path in $LIB
10918       do
10919         IFS=$lt_save_ifs
10920         # Let DOS variable expansion print the short 8.3 style file name.
10921         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10922         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10923       done
10924       IFS=$lt_save_ifs
10925       # Convert to MSYS style.
10926       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10927       ;;
10928     cygwin*)
10929       # Convert to unix form, then to dos form, then back to unix form
10930       # but this time dos style (no spaces!) so that the unix form looks
10931       # like /cygdrive/c/PROGRA~1:/cygdr...
10932       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10933       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10934       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10935       ;;
10936     *)
10937       sys_lib_search_path_spec="$LIB"
10938       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10939         # It is most probably a Windows format PATH.
10940         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10941       else
10942         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10943       fi
10944       # FIXME: find the short name or the path components, as spaces are
10945       # common. (e.g. "Program Files" -> "PROGRA~1")
10946       ;;
10947     esac
10948
10949     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950     postinstall_cmds='base_file=`basename \${file}`~
10951       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952       dldir=$destdir/`dirname \$dlpath`~
10953       test -d \$dldir || mkdir -p \$dldir~
10954       $install_prog $dir/$dlname \$dldir/$dlname'
10955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10956       dlpath=$dir/\$dldll~
10957        $RM \$dlpath'
10958     shlibpath_overrides_runpath=yes
10959     dynamic_linker='Win32 link.exe'
10960     ;;
10961
10962   *)
10963     # Assume MSVC wrapper
10964     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10965     dynamic_linker='Win32 ld.exe'
10966     ;;
10967   esac
10968   # FIXME: first we should search . and the directory the executable is in
10969   shlibpath_var=PATH
10970   ;;
10971
10972 darwin* | rhapsody*)
10973   dynamic_linker="$host_os dyld"
10974   version_type=darwin
10975   need_lib_prefix=no
10976   need_version=no
10977   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10978   soname_spec='${libname}${release}${major}$shared_ext'
10979   shlibpath_overrides_runpath=yes
10980   shlibpath_var=DYLD_LIBRARY_PATH
10981   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10982
10983   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10984   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10985   ;;
10986
10987 dgux*)
10988   version_type=linux # correct to gnu/linux during the next big refactor
10989   need_lib_prefix=no
10990   need_version=no
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10992   soname_spec='${libname}${release}${shared_ext}$major'
10993   shlibpath_var=LD_LIBRARY_PATH
10994   ;;
10995
10996 freebsd* | dragonfly*)
10997   # DragonFly does not have aout.  When/if they implement a new
10998   # versioning mechanism, adjust this.
10999   if test -x /usr/bin/objformat; then
11000     objformat=`/usr/bin/objformat`
11001   else
11002     case $host_os in
11003     freebsd[23].*) objformat=aout ;;
11004     *) objformat=elf ;;
11005     esac
11006   fi
11007   version_type=freebsd-$objformat
11008   case $version_type in
11009     freebsd-elf*)
11010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11011       need_version=no
11012       need_lib_prefix=no
11013       ;;
11014     freebsd-*)
11015       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11016       need_version=yes
11017       ;;
11018   esac
11019   shlibpath_var=LD_LIBRARY_PATH
11020   case $host_os in
11021   freebsd2.*)
11022     shlibpath_overrides_runpath=yes
11023     ;;
11024   freebsd3.[01]* | freebsdelf3.[01]*)
11025     shlibpath_overrides_runpath=yes
11026     hardcode_into_libs=yes
11027     ;;
11028   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11029   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11030     shlibpath_overrides_runpath=no
11031     hardcode_into_libs=yes
11032     ;;
11033   *) # from 4.6 on, and DragonFly
11034     shlibpath_overrides_runpath=yes
11035     hardcode_into_libs=yes
11036     ;;
11037   esac
11038   ;;
11039
11040 gnu*)
11041   version_type=linux # correct to gnu/linux during the next big refactor
11042   need_lib_prefix=no
11043   need_version=no
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   shlibpath_overrides_runpath=no
11048   hardcode_into_libs=yes
11049   ;;
11050
11051 haiku*)
11052   version_type=linux # correct to gnu/linux during the next big refactor
11053   need_lib_prefix=no
11054   need_version=no
11055   dynamic_linker="$host_os runtime_loader"
11056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11057   soname_spec='${libname}${release}${shared_ext}$major'
11058   shlibpath_var=LIBRARY_PATH
11059   shlibpath_overrides_runpath=yes
11060   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11061   hardcode_into_libs=yes
11062   ;;
11063
11064 hpux9* | hpux10* | hpux11*)
11065   # Give a soname corresponding to the major version so that dld.sl refuses to
11066   # link against other versions.
11067   version_type=sunos
11068   need_lib_prefix=no
11069   need_version=no
11070   case $host_cpu in
11071   ia64*)
11072     shrext_cmds='.so'
11073     hardcode_into_libs=yes
11074     dynamic_linker="$host_os dld.so"
11075     shlibpath_var=LD_LIBRARY_PATH
11076     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078     soname_spec='${libname}${release}${shared_ext}$major'
11079     if test "X$HPUX_IA64_MODE" = X32; then
11080       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11081     else
11082       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11083     fi
11084     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11085     ;;
11086   hppa*64*)
11087     shrext_cmds='.sl'
11088     hardcode_into_libs=yes
11089     dynamic_linker="$host_os dld.sl"
11090     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11091     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093     soname_spec='${libname}${release}${shared_ext}$major'
11094     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11095     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11096     ;;
11097   *)
11098     shrext_cmds='.sl'
11099     dynamic_linker="$host_os dld.sl"
11100     shlibpath_var=SHLIB_PATH
11101     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103     soname_spec='${libname}${release}${shared_ext}$major'
11104     ;;
11105   esac
11106   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11107   postinstall_cmds='chmod 555 $lib'
11108   # or fails outright, so override atomically:
11109   install_override_mode=555
11110   ;;
11111
11112 interix[3-9]*)
11113   version_type=linux # correct to gnu/linux during the next big refactor
11114   need_lib_prefix=no
11115   need_version=no
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11117   soname_spec='${libname}${release}${shared_ext}$major'
11118   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11119   shlibpath_var=LD_LIBRARY_PATH
11120   shlibpath_overrides_runpath=no
11121   hardcode_into_libs=yes
11122   ;;
11123
11124 irix5* | irix6* | nonstopux*)
11125   case $host_os in
11126     nonstopux*) version_type=nonstopux ;;
11127     *)
11128         if test "$lt_cv_prog_gnu_ld" = yes; then
11129                 version_type=linux # correct to gnu/linux during the next big refactor
11130         else
11131                 version_type=irix
11132         fi ;;
11133   esac
11134   need_lib_prefix=no
11135   need_version=no
11136   soname_spec='${libname}${release}${shared_ext}$major'
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11138   case $host_os in
11139   irix5* | nonstopux*)
11140     libsuff= shlibsuff=
11141     ;;
11142   *)
11143     case $LD in # libtool.m4 will add one of these switches to LD
11144     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11145       libsuff= shlibsuff= libmagic=32-bit;;
11146     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11147       libsuff=32 shlibsuff=N32 libmagic=N32;;
11148     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11149       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11150     *) libsuff= shlibsuff= libmagic=never-match;;
11151     esac
11152     ;;
11153   esac
11154   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11155   shlibpath_overrides_runpath=no
11156   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11157   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11158   hardcode_into_libs=yes
11159   ;;
11160
11161 # No shared lib support for Linux oldld, aout, or coff.
11162 linux*oldld* | linux*aout* | linux*coff*)
11163   dynamic_linker=no
11164   ;;
11165
11166 # This must be glibc/ELF.
11167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11168   version_type=linux # correct to gnu/linux during the next big refactor
11169   need_lib_prefix=no
11170   need_version=no
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172   soname_spec='${libname}${release}${shared_ext}$major'
11173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11174   shlibpath_var=LD_LIBRARY_PATH
11175   shlibpath_overrides_runpath=no
11176
11177   # Some binutils ld are patched to set DT_RUNPATH
11178   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   lt_cv_shlibpath_overrides_runpath=no
11182     save_LDFLAGS=$LDFLAGS
11183     save_libdir=$libdir
11184     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11185          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h.  */
11188
11189 int
11190 main ()
11191 {
11192
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11199   lt_cv_shlibpath_overrides_runpath=yes
11200 fi
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext \
11203     conftest$ac_exeext conftest.$ac_ext
11204     LDFLAGS=$save_LDFLAGS
11205     libdir=$save_libdir
11206
11207 fi
11208
11209   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11210
11211   # This implies no fast_install, which is unacceptable.
11212   # Some rework will be needed to allow for fast_install
11213   # before this can be enabled.
11214   hardcode_into_libs=yes
11215
11216   # Append ld.so.conf contents to the search path
11217   if test -f /etc/ld.so.conf; then
11218     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' ' '`
11219     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11220   fi
11221
11222   # We used to test for /lib/ld.so.1 and disable shared libraries on
11223   # powerpc, because MkLinux only supported shared libraries with the
11224   # GNU dynamic linker.  Since this was broken with cross compilers,
11225   # most powerpc-linux boxes support dynamic linking these days and
11226   # people can always --disable-shared, the test was removed, and we
11227   # assume the GNU/Linux dynamic linker is in use.
11228   dynamic_linker='GNU/Linux ld.so'
11229   ;;
11230
11231 netbsdelf*-gnu)
11232   version_type=linux
11233   need_lib_prefix=no
11234   need_version=no
11235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11236   soname_spec='${libname}${release}${shared_ext}$major'
11237   shlibpath_var=LD_LIBRARY_PATH
11238   shlibpath_overrides_runpath=no
11239   hardcode_into_libs=yes
11240   dynamic_linker='NetBSD ld.elf_so'
11241   ;;
11242
11243 netbsd*)
11244   version_type=sunos
11245   need_lib_prefix=no
11246   need_version=no
11247   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11250     dynamic_linker='NetBSD (a.out) ld.so'
11251   else
11252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11253     soname_spec='${libname}${release}${shared_ext}$major'
11254     dynamic_linker='NetBSD ld.elf_so'
11255   fi
11256   shlibpath_var=LD_LIBRARY_PATH
11257   shlibpath_overrides_runpath=yes
11258   hardcode_into_libs=yes
11259   ;;
11260
11261 newsos6)
11262   version_type=linux # correct to gnu/linux during the next big refactor
11263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264   shlibpath_var=LD_LIBRARY_PATH
11265   shlibpath_overrides_runpath=yes
11266   ;;
11267
11268 *nto* | *qnx*)
11269   version_type=qnx
11270   need_lib_prefix=no
11271   need_version=no
11272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273   soname_spec='${libname}${release}${shared_ext}$major'
11274   shlibpath_var=LD_LIBRARY_PATH
11275   shlibpath_overrides_runpath=no
11276   hardcode_into_libs=yes
11277   dynamic_linker='ldqnx.so'
11278   ;;
11279
11280 openbsd*)
11281   version_type=sunos
11282   sys_lib_dlsearch_path_spec="/usr/lib"
11283   need_lib_prefix=no
11284   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11285   case $host_os in
11286     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11287     *)                          need_version=no  ;;
11288   esac
11289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11290   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11291   shlibpath_var=LD_LIBRARY_PATH
11292   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11293     case $host_os in
11294       openbsd2.[89] | openbsd2.[89].*)
11295         shlibpath_overrides_runpath=no
11296         ;;
11297       *)
11298         shlibpath_overrides_runpath=yes
11299         ;;
11300       esac
11301   else
11302     shlibpath_overrides_runpath=yes
11303   fi
11304   ;;
11305
11306 os2*)
11307   libname_spec='$name'
11308   shrext_cmds=".dll"
11309   need_lib_prefix=no
11310   library_names_spec='$libname${shared_ext} $libname.a'
11311   dynamic_linker='OS/2 ld.exe'
11312   shlibpath_var=LIBPATH
11313   ;;
11314
11315 osf3* | osf4* | osf5*)
11316   version_type=osf
11317   need_lib_prefix=no
11318   need_version=no
11319   soname_spec='${libname}${release}${shared_ext}$major'
11320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321   shlibpath_var=LD_LIBRARY_PATH
11322   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11323   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11324   ;;
11325
11326 rdos*)
11327   dynamic_linker=no
11328   ;;
11329
11330 solaris*)
11331   version_type=linux # correct to gnu/linux during the next big refactor
11332   need_lib_prefix=no
11333   need_version=no
11334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335   soname_spec='${libname}${release}${shared_ext}$major'
11336   shlibpath_var=LD_LIBRARY_PATH
11337   shlibpath_overrides_runpath=yes
11338   hardcode_into_libs=yes
11339   # ldd complains unless libraries are executable
11340   postinstall_cmds='chmod +x $lib'
11341   ;;
11342
11343 sunos4*)
11344   version_type=sunos
11345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11346   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11347   shlibpath_var=LD_LIBRARY_PATH
11348   shlibpath_overrides_runpath=yes
11349   if test "$with_gnu_ld" = yes; then
11350     need_lib_prefix=no
11351   fi
11352   need_version=yes
11353   ;;
11354
11355 sysv4 | sysv4.3*)
11356   version_type=linux # correct to gnu/linux during the next big refactor
11357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358   soname_spec='${libname}${release}${shared_ext}$major'
11359   shlibpath_var=LD_LIBRARY_PATH
11360   case $host_vendor in
11361     sni)
11362       shlibpath_overrides_runpath=no
11363       need_lib_prefix=no
11364       runpath_var=LD_RUN_PATH
11365       ;;
11366     siemens)
11367       need_lib_prefix=no
11368       ;;
11369     motorola)
11370       need_lib_prefix=no
11371       need_version=no
11372       shlibpath_overrides_runpath=no
11373       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11374       ;;
11375   esac
11376   ;;
11377
11378 sysv4*MP*)
11379   if test -d /usr/nec ;then
11380     version_type=linux # correct to gnu/linux during the next big refactor
11381     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11382     soname_spec='$libname${shared_ext}.$major'
11383     shlibpath_var=LD_LIBRARY_PATH
11384   fi
11385   ;;
11386
11387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11388   version_type=freebsd-elf
11389   need_lib_prefix=no
11390   need_version=no
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11392   soname_spec='${libname}${release}${shared_ext}$major'
11393   shlibpath_var=LD_LIBRARY_PATH
11394   shlibpath_overrides_runpath=yes
11395   hardcode_into_libs=yes
11396   if test "$with_gnu_ld" = yes; then
11397     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11398   else
11399     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11400     case $host_os in
11401       sco3.2v5*)
11402         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11403         ;;
11404     esac
11405   fi
11406   sys_lib_dlsearch_path_spec='/usr/lib'
11407   ;;
11408
11409 tpf*)
11410   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11411   version_type=linux # correct to gnu/linux during the next big refactor
11412   need_lib_prefix=no
11413   need_version=no
11414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415   shlibpath_var=LD_LIBRARY_PATH
11416   shlibpath_overrides_runpath=no
11417   hardcode_into_libs=yes
11418   ;;
11419
11420 uts4*)
11421   version_type=linux # correct to gnu/linux during the next big refactor
11422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423   soname_spec='${libname}${release}${shared_ext}$major'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   ;;
11426
11427 *)
11428   dynamic_linker=no
11429   ;;
11430 esac
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11432 $as_echo "$dynamic_linker" >&6; }
11433 test "$dynamic_linker" = no && can_build_shared=no
11434
11435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11436 if test "$GCC" = yes; then
11437   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11438 fi
11439
11440 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11441   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11442 fi
11443 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11444   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11445 fi
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11539 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11540 hardcode_action=
11541 if test -n "$hardcode_libdir_flag_spec" ||
11542    test -n "$runpath_var" ||
11543    test "X$hardcode_automatic" = "Xyes" ; then
11544
11545   # We can hardcode non-existent directories.
11546   if test "$hardcode_direct" != no &&
11547      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11548      # have to relink, otherwise we might link with an installed library
11549      # when we should be linking with a yet-to-be-installed one
11550      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11551      test "$hardcode_minus_L" != no; then
11552     # Linking always hardcodes the temporary library directory.
11553     hardcode_action=relink
11554   else
11555     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11556     hardcode_action=immediate
11557   fi
11558 else
11559   # We cannot hardcode anything, or else we can only hardcode existing
11560   # directories.
11561   hardcode_action=unsupported
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11564 $as_echo "$hardcode_action" >&6; }
11565
11566 if test "$hardcode_action" = relink ||
11567    test "$inherit_rpath" = yes; then
11568   # Fast installation is not supported
11569   enable_fast_install=no
11570 elif test "$shlibpath_overrides_runpath" = yes ||
11571      test "$enable_shared" = no; then
11572   # Fast installation is not necessary
11573   enable_fast_install=needless
11574 fi
11575
11576
11577
11578
11579
11580
11581   if test "x$enable_dlopen" != xyes; then
11582   enable_dlopen=unknown
11583   enable_dlopen_self=unknown
11584   enable_dlopen_self_static=unknown
11585 else
11586   lt_cv_dlopen=no
11587   lt_cv_dlopen_libs=
11588
11589   case $host_os in
11590   beos*)
11591     lt_cv_dlopen="load_add_on"
11592     lt_cv_dlopen_libs=
11593     lt_cv_dlopen_self=yes
11594     ;;
11595
11596   mingw* | pw32* | cegcc*)
11597     lt_cv_dlopen="LoadLibrary"
11598     lt_cv_dlopen_libs=
11599     ;;
11600
11601   cygwin*)
11602     lt_cv_dlopen="dlopen"
11603     lt_cv_dlopen_libs=
11604     ;;
11605
11606   darwin*)
11607   # if libdl is installed we need to link against it
11608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11609 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11610 if ${ac_cv_lib_dl_dlopen+:} false; then :
11611   $as_echo_n "(cached) " >&6
11612 else
11613   ac_check_lib_save_LIBS=$LIBS
11614 LIBS="-ldl  $LIBS"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h.  */
11617
11618 /* Override any GCC internal prototype to avoid an error.
11619    Use char because int might match the return type of a GCC
11620    builtin and then its argument prototype would still apply.  */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 char dlopen ();
11625 int
11626 main ()
11627 {
11628 return dlopen ();
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 if ac_fn_c_try_link "$LINENO"; then :
11634   ac_cv_lib_dl_dlopen=yes
11635 else
11636   ac_cv_lib_dl_dlopen=no
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext \
11639     conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11644 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11645   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11646 else
11647
11648     lt_cv_dlopen="dyld"
11649     lt_cv_dlopen_libs=
11650     lt_cv_dlopen_self=yes
11651
11652 fi
11653
11654     ;;
11655
11656   *)
11657     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11658 if test "x$ac_cv_func_shl_load" = xyes; then :
11659   lt_cv_dlopen="shl_load"
11660 else
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11662 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11663 if ${ac_cv_lib_dld_shl_load+:} false; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666   ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-ldld  $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h.  */
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672    Use char because int might match the return type of a GCC
11673    builtin and then its argument prototype would still apply.  */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char shl_load ();
11678 int
11679 main ()
11680 {
11681 return shl_load ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687   ac_cv_lib_dld_shl_load=yes
11688 else
11689   ac_cv_lib_dld_shl_load=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692     conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11696 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11697 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11698   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11699 else
11700   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11701 if test "x$ac_cv_func_dlopen" = xyes; then :
11702   lt_cv_dlopen="dlopen"
11703 else
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11706 if ${ac_cv_lib_dl_dlopen+:} false; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709   ac_check_lib_save_LIBS=$LIBS
11710 LIBS="-ldl  $LIBS"
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h.  */
11713
11714 /* Override any GCC internal prototype to avoid an error.
11715    Use char because int might match the return type of a GCC
11716    builtin and then its argument prototype would still apply.  */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 char dlopen ();
11721 int
11722 main ()
11723 {
11724 return dlopen ();
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_c_try_link "$LINENO"; then :
11730   ac_cv_lib_dl_dlopen=yes
11731 else
11732   ac_cv_lib_dl_dlopen=no
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735     conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_lib_save_LIBS
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11739 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11740 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11741   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11742 else
11743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11744 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11745 if ${ac_cv_lib_svld_dlopen+:} false; then :
11746   $as_echo_n "(cached) " >&6
11747 else
11748   ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-lsvld  $LIBS"
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h.  */
11752
11753 /* Override any GCC internal prototype to avoid an error.
11754    Use char because int might match the return type of a GCC
11755    builtin and then its argument prototype would still apply.  */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char dlopen ();
11760 int
11761 main ()
11762 {
11763 return dlopen ();
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 if ac_fn_c_try_link "$LINENO"; then :
11769   ac_cv_lib_svld_dlopen=yes
11770 else
11771   ac_cv_lib_svld_dlopen=no
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774     conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11778 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11779 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11780   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11781 else
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11783 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11784 if ${ac_cv_lib_dld_dld_link+:} false; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-ldld  $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793    Use char because int might match the return type of a GCC
11794    builtin and then its argument prototype would still apply.  */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char dld_link ();
11799 int
11800 main ()
11801 {
11802 return dld_link ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808   ac_cv_lib_dld_dld_link=yes
11809 else
11810   ac_cv_lib_dld_dld_link=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813     conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11817 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11818 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11819   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11820 fi
11821
11822
11823 fi
11824
11825
11826 fi
11827
11828
11829 fi
11830
11831
11832 fi
11833
11834
11835 fi
11836
11837     ;;
11838   esac
11839
11840   if test "x$lt_cv_dlopen" != xno; then
11841     enable_dlopen=yes
11842   else
11843     enable_dlopen=no
11844   fi
11845
11846   case $lt_cv_dlopen in
11847   dlopen)
11848     save_CPPFLAGS="$CPPFLAGS"
11849     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11850
11851     save_LDFLAGS="$LDFLAGS"
11852     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11853
11854     save_LIBS="$LIBS"
11855     LIBS="$lt_cv_dlopen_libs $LIBS"
11856
11857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11858 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11859 if ${lt_cv_dlopen_self+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862           if test "$cross_compiling" = yes; then :
11863   lt_cv_dlopen_self=cross
11864 else
11865   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11866   lt_status=$lt_dlunknown
11867   cat > conftest.$ac_ext <<_LT_EOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11870
11871 #if HAVE_DLFCN_H
11872 #include <dlfcn.h>
11873 #endif
11874
11875 #include <stdio.h>
11876
11877 #ifdef RTLD_GLOBAL
11878 #  define LT_DLGLOBAL           RTLD_GLOBAL
11879 #else
11880 #  ifdef DL_GLOBAL
11881 #    define LT_DLGLOBAL         DL_GLOBAL
11882 #  else
11883 #    define LT_DLGLOBAL         0
11884 #  endif
11885 #endif
11886
11887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11888    find out it does not work in some platform. */
11889 #ifndef LT_DLLAZY_OR_NOW
11890 #  ifdef RTLD_LAZY
11891 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11892 #  else
11893 #    ifdef DL_LAZY
11894 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11895 #    else
11896 #      ifdef RTLD_NOW
11897 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11898 #      else
11899 #        ifdef DL_NOW
11900 #          define LT_DLLAZY_OR_NOW      DL_NOW
11901 #        else
11902 #          define LT_DLLAZY_OR_NOW      0
11903 #        endif
11904 #      endif
11905 #    endif
11906 #  endif
11907 #endif
11908
11909 /* When -fvisbility=hidden is used, assume the code has been annotated
11910    correspondingly for the symbols needed.  */
11911 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11912 int fnord () __attribute__((visibility("default")));
11913 #endif
11914
11915 int fnord () { return 42; }
11916 int main ()
11917 {
11918   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11919   int status = $lt_dlunknown;
11920
11921   if (self)
11922     {
11923       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11924       else
11925         {
11926           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11927           else puts (dlerror ());
11928         }
11929       /* dlclose (self); */
11930     }
11931   else
11932     puts (dlerror ());
11933
11934   return status;
11935 }
11936 _LT_EOF
11937   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11938   (eval $ac_link) 2>&5
11939   ac_status=$?
11940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11942     (./conftest; exit; ) >&5 2>/dev/null
11943     lt_status=$?
11944     case x$lt_status in
11945       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11946       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11947       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11948     esac
11949   else :
11950     # compilation failed
11951     lt_cv_dlopen_self=no
11952   fi
11953 fi
11954 rm -fr conftest*
11955
11956
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11959 $as_echo "$lt_cv_dlopen_self" >&6; }
11960
11961     if test "x$lt_cv_dlopen_self" = xyes; then
11962       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11963       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11964 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11965 if ${lt_cv_dlopen_self_static+:} false; then :
11966   $as_echo_n "(cached) " >&6
11967 else
11968           if test "$cross_compiling" = yes; then :
11969   lt_cv_dlopen_self_static=cross
11970 else
11971   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11972   lt_status=$lt_dlunknown
11973   cat > conftest.$ac_ext <<_LT_EOF
11974 #line $LINENO "configure"
11975 #include "confdefs.h"
11976
11977 #if HAVE_DLFCN_H
11978 #include <dlfcn.h>
11979 #endif
11980
11981 #include <stdio.h>
11982
11983 #ifdef RTLD_GLOBAL
11984 #  define LT_DLGLOBAL           RTLD_GLOBAL
11985 #else
11986 #  ifdef DL_GLOBAL
11987 #    define LT_DLGLOBAL         DL_GLOBAL
11988 #  else
11989 #    define LT_DLGLOBAL         0
11990 #  endif
11991 #endif
11992
11993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11994    find out it does not work in some platform. */
11995 #ifndef LT_DLLAZY_OR_NOW
11996 #  ifdef RTLD_LAZY
11997 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11998 #  else
11999 #    ifdef DL_LAZY
12000 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12001 #    else
12002 #      ifdef RTLD_NOW
12003 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12004 #      else
12005 #        ifdef DL_NOW
12006 #          define LT_DLLAZY_OR_NOW      DL_NOW
12007 #        else
12008 #          define LT_DLLAZY_OR_NOW      0
12009 #        endif
12010 #      endif
12011 #    endif
12012 #  endif
12013 #endif
12014
12015 /* When -fvisbility=hidden is used, assume the code has been annotated
12016    correspondingly for the symbols needed.  */
12017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12018 int fnord () __attribute__((visibility("default")));
12019 #endif
12020
12021 int fnord () { return 42; }
12022 int main ()
12023 {
12024   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12025   int status = $lt_dlunknown;
12026
12027   if (self)
12028     {
12029       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12030       else
12031         {
12032           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12033           else puts (dlerror ());
12034         }
12035       /* dlclose (self); */
12036     }
12037   else
12038     puts (dlerror ());
12039
12040   return status;
12041 }
12042 _LT_EOF
12043   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12044   (eval $ac_link) 2>&5
12045   ac_status=$?
12046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12047   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12048     (./conftest; exit; ) >&5 2>/dev/null
12049     lt_status=$?
12050     case x$lt_status in
12051       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12052       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12053       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12054     esac
12055   else :
12056     # compilation failed
12057     lt_cv_dlopen_self_static=no
12058   fi
12059 fi
12060 rm -fr conftest*
12061
12062
12063 fi
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12065 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12066     fi
12067
12068     CPPFLAGS="$save_CPPFLAGS"
12069     LDFLAGS="$save_LDFLAGS"
12070     LIBS="$save_LIBS"
12071     ;;
12072   esac
12073
12074   case $lt_cv_dlopen_self in
12075   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12076   *) enable_dlopen_self=unknown ;;
12077   esac
12078
12079   case $lt_cv_dlopen_self_static in
12080   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12081   *) enable_dlopen_self_static=unknown ;;
12082   esac
12083 fi
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101 striplib=
12102 old_striplib=
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12104 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12105 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12106   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12107   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12109 $as_echo "yes" >&6; }
12110 else
12111 # FIXME - insert some real tests, host_os isn't really good enough
12112   case $host_os in
12113   darwin*)
12114     if test -n "$STRIP" ; then
12115       striplib="$STRIP -x"
12116       old_striplib="$STRIP -S"
12117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12119     else
12120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122     fi
12123     ;;
12124   *)
12125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127     ;;
12128   esac
12129 fi
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142   # Report which library types will actually be built
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12144 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12146 $as_echo "$can_build_shared" >&6; }
12147
12148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12149 $as_echo_n "checking whether to build shared libraries... " >&6; }
12150   test "$can_build_shared" = "no" && enable_shared=no
12151
12152   # On AIX, shared libraries and static libraries use the same namespace, and
12153   # are all built from PIC.
12154   case $host_os in
12155   aix3*)
12156     test "$enable_shared" = yes && enable_static=no
12157     if test -n "$RANLIB"; then
12158       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12159       postinstall_cmds='$RANLIB $lib'
12160     fi
12161     ;;
12162
12163   aix[4-9]*)
12164     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12165       test "$enable_shared" = yes && enable_static=no
12166     fi
12167     ;;
12168   esac
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12170 $as_echo "$enable_shared" >&6; }
12171
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12173 $as_echo_n "checking whether to build static libraries... " >&6; }
12174   # Make sure either enable_shared or enable_static is yes.
12175   test "$enable_shared" = yes || enable_static=yes
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12177 $as_echo "$enable_static" >&6; }
12178
12179
12180
12181
12182 fi
12183 ac_ext=cpp
12184 ac_cpp='$CXXCPP $CPPFLAGS'
12185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188
12189 CC="$lt_save_CC"
12190
12191       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12192     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12193     (test "X$CXX" != "Xg++"))) ; then
12194   ac_ext=cpp
12195 ac_cpp='$CXXCPP $CPPFLAGS'
12196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12200 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12201 if test -z "$CXXCPP"; then
12202   if ${ac_cv_prog_CXXCPP+:} false; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205       # Double quotes because CXXCPP needs to be expanded
12206     for CXXCPP in "$CXX -E" "/lib/cpp"
12207     do
12208       ac_preproc_ok=false
12209 for ac_cxx_preproc_warn_flag in '' yes
12210 do
12211   # Use a header file that comes with gcc, so configuring glibc
12212   # with a fresh cross-compiler works.
12213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214   # <limits.h> exists even on freestanding compilers.
12215   # On the NeXT, cc -E runs the code through the compiler's parser,
12216   # not just through cpp. "Syntax error" is here to catch this case.
12217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h.  */
12219 #ifdef __STDC__
12220 # include <limits.h>
12221 #else
12222 # include <assert.h>
12223 #endif
12224                      Syntax error
12225 _ACEOF
12226 if ac_fn_cxx_try_cpp "$LINENO"; then :
12227
12228 else
12229   # Broken: fails on valid input.
12230 continue
12231 fi
12232 rm -f conftest.err conftest.i conftest.$ac_ext
12233
12234   # OK, works on sane cases.  Now check whether nonexistent headers
12235   # can be detected and how.
12236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h.  */
12238 #include <ac_nonexistent.h>
12239 _ACEOF
12240 if ac_fn_cxx_try_cpp "$LINENO"; then :
12241   # Broken: success on invalid input.
12242 continue
12243 else
12244   # Passes both tests.
12245 ac_preproc_ok=:
12246 break
12247 fi
12248 rm -f conftest.err conftest.i conftest.$ac_ext
12249
12250 done
12251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12252 rm -f conftest.i conftest.err conftest.$ac_ext
12253 if $ac_preproc_ok; then :
12254   break
12255 fi
12256
12257     done
12258     ac_cv_prog_CXXCPP=$CXXCPP
12259
12260 fi
12261   CXXCPP=$ac_cv_prog_CXXCPP
12262 else
12263   ac_cv_prog_CXXCPP=$CXXCPP
12264 fi
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12266 $as_echo "$CXXCPP" >&6; }
12267 ac_preproc_ok=false
12268 for ac_cxx_preproc_warn_flag in '' yes
12269 do
12270   # Use a header file that comes with gcc, so configuring glibc
12271   # with a fresh cross-compiler works.
12272   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12273   # <limits.h> exists even on freestanding compilers.
12274   # On the NeXT, cc -E runs the code through the compiler's parser,
12275   # not just through cpp. "Syntax error" is here to catch this case.
12276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278 #ifdef __STDC__
12279 # include <limits.h>
12280 #else
12281 # include <assert.h>
12282 #endif
12283                      Syntax error
12284 _ACEOF
12285 if ac_fn_cxx_try_cpp "$LINENO"; then :
12286
12287 else
12288   # Broken: fails on valid input.
12289 continue
12290 fi
12291 rm -f conftest.err conftest.i conftest.$ac_ext
12292
12293   # OK, works on sane cases.  Now check whether nonexistent headers
12294   # can be detected and how.
12295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297 #include <ac_nonexistent.h>
12298 _ACEOF
12299 if ac_fn_cxx_try_cpp "$LINENO"; then :
12300   # Broken: success on invalid input.
12301 continue
12302 else
12303   # Passes both tests.
12304 ac_preproc_ok=:
12305 break
12306 fi
12307 rm -f conftest.err conftest.i conftest.$ac_ext
12308
12309 done
12310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12311 rm -f conftest.i conftest.err conftest.$ac_ext
12312 if $ac_preproc_ok; then :
12313
12314 else
12315   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12317 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12318 See \`config.log' for more details" "$LINENO" 5; }
12319 fi
12320
12321 ac_ext=cpp
12322 ac_cpp='$CXXCPP $CPPFLAGS'
12323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12326
12327 else
12328   _lt_caught_CXX_error=yes
12329 fi
12330
12331 ac_ext=cpp
12332 ac_cpp='$CXXCPP $CPPFLAGS'
12333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12336
12337 archive_cmds_need_lc_CXX=no
12338 allow_undefined_flag_CXX=
12339 always_export_symbols_CXX=no
12340 archive_expsym_cmds_CXX=
12341 compiler_needs_object_CXX=no
12342 export_dynamic_flag_spec_CXX=
12343 hardcode_direct_CXX=no
12344 hardcode_direct_absolute_CXX=no
12345 hardcode_libdir_flag_spec_CXX=
12346 hardcode_libdir_separator_CXX=
12347 hardcode_minus_L_CXX=no
12348 hardcode_shlibpath_var_CXX=unsupported
12349 hardcode_automatic_CXX=no
12350 inherit_rpath_CXX=no
12351 module_cmds_CXX=
12352 module_expsym_cmds_CXX=
12353 link_all_deplibs_CXX=unknown
12354 old_archive_cmds_CXX=$old_archive_cmds
12355 reload_flag_CXX=$reload_flag
12356 reload_cmds_CXX=$reload_cmds
12357 no_undefined_flag_CXX=
12358 whole_archive_flag_spec_CXX=
12359 enable_shared_with_static_runtimes_CXX=no
12360
12361 # Source file extension for C++ test sources.
12362 ac_ext=cpp
12363
12364 # Object file extension for compiled C++ test sources.
12365 objext=o
12366 objext_CXX=$objext
12367
12368 # No sense in running all these tests if we already determined that
12369 # the CXX compiler isn't working.  Some variables (like enable_shared)
12370 # are currently assumed to apply to all compilers on this platform,
12371 # and will be corrupted by setting them based on a non-working compiler.
12372 if test "$_lt_caught_CXX_error" != yes; then
12373   # Code to be used in simple compile tests
12374   lt_simple_compile_test_code="int some_variable = 0;"
12375
12376   # Code to be used in simple link tests
12377   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12378
12379   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12380
12381
12382
12383
12384
12385
12386 # If no C compiler was specified, use CC.
12387 LTCC=${LTCC-"$CC"}
12388
12389 # If no C compiler flags were specified, use CFLAGS.
12390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12391
12392 # Allow CC to be a program name with arguments.
12393 compiler=$CC
12394
12395
12396   # save warnings/boilerplate of simple test code
12397   ac_outfile=conftest.$ac_objext
12398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12400 _lt_compiler_boilerplate=`cat conftest.err`
12401 $RM conftest*
12402
12403   ac_outfile=conftest.$ac_objext
12404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12406 _lt_linker_boilerplate=`cat conftest.err`
12407 $RM -r conftest*
12408
12409
12410   # Allow CC to be a program name with arguments.
12411   lt_save_CC=$CC
12412   lt_save_CFLAGS=$CFLAGS
12413   lt_save_LD=$LD
12414   lt_save_GCC=$GCC
12415   GCC=$GXX
12416   lt_save_with_gnu_ld=$with_gnu_ld
12417   lt_save_path_LD=$lt_cv_path_LD
12418   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12419     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12420   else
12421     $as_unset lt_cv_prog_gnu_ld
12422   fi
12423   if test -n "${lt_cv_path_LDCXX+set}"; then
12424     lt_cv_path_LD=$lt_cv_path_LDCXX
12425   else
12426     $as_unset lt_cv_path_LD
12427   fi
12428   test -z "${LDCXX+set}" || LD=$LDCXX
12429   CC=${CXX-"c++"}
12430   CFLAGS=$CXXFLAGS
12431   compiler=$CC
12432   compiler_CXX=$CC
12433   for cc_temp in $compiler""; do
12434   case $cc_temp in
12435     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12436     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12437     \-*) ;;
12438     *) break;;
12439   esac
12440 done
12441 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12442
12443
12444   if test -n "$compiler"; then
12445     # We don't want -fno-exception when compiling C++ code, so set the
12446     # no_builtin_flag separately
12447     if test "$GXX" = yes; then
12448       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12449     else
12450       lt_prog_compiler_no_builtin_flag_CXX=
12451     fi
12452
12453     if test "$GXX" = yes; then
12454       # Set up default GNU C++ configuration
12455
12456
12457
12458 # Check whether --with-gnu-ld was given.
12459 if test "${with_gnu_ld+set}" = set; then :
12460   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12461 else
12462   with_gnu_ld=no
12463 fi
12464
12465 ac_prog=ld
12466 if test "$GCC" = yes; then
12467   # Check if gcc -print-prog-name=ld gives a path.
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12469 $as_echo_n "checking for ld used by $CC... " >&6; }
12470   case $host in
12471   *-*-mingw*)
12472     # gcc leaves a trailing carriage return which upsets mingw
12473     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12474   *)
12475     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12476   esac
12477   case $ac_prog in
12478     # Accept absolute paths.
12479     [\\/]* | ?:[\\/]*)
12480       re_direlt='/[^/][^/]*/\.\./'
12481       # Canonicalize the pathname of ld
12482       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12483       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12484         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12485       done
12486       test -z "$LD" && LD="$ac_prog"
12487       ;;
12488   "")
12489     # If it fails, then pretend we aren't using GCC.
12490     ac_prog=ld
12491     ;;
12492   *)
12493     # If it is relative, then search for the first ld in PATH.
12494     with_gnu_ld=unknown
12495     ;;
12496   esac
12497 elif test "$with_gnu_ld" = yes; then
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12499 $as_echo_n "checking for GNU ld... " >&6; }
12500 else
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12502 $as_echo_n "checking for non-GNU ld... " >&6; }
12503 fi
12504 if ${lt_cv_path_LD+:} false; then :
12505   $as_echo_n "(cached) " >&6
12506 else
12507   if test -z "$LD"; then
12508   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12509   for ac_dir in $PATH; do
12510     IFS="$lt_save_ifs"
12511     test -z "$ac_dir" && ac_dir=.
12512     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12513       lt_cv_path_LD="$ac_dir/$ac_prog"
12514       # Check to see if the program is GNU ld.  I'd rather use --version,
12515       # but apparently some variants of GNU ld only accept -v.
12516       # Break only if it was the GNU/non-GNU ld that we prefer.
12517       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12518       *GNU* | *'with BFD'*)
12519         test "$with_gnu_ld" != no && break
12520         ;;
12521       *)
12522         test "$with_gnu_ld" != yes && break
12523         ;;
12524       esac
12525     fi
12526   done
12527   IFS="$lt_save_ifs"
12528 else
12529   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12530 fi
12531 fi
12532
12533 LD="$lt_cv_path_LD"
12534 if test -n "$LD"; then
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12536 $as_echo "$LD" >&6; }
12537 else
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 fi
12541 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12543 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12544 if ${lt_cv_prog_gnu_ld+:} false; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12548 case `$LD -v 2>&1 </dev/null` in
12549 *GNU* | *'with BFD'*)
12550   lt_cv_prog_gnu_ld=yes
12551   ;;
12552 *)
12553   lt_cv_prog_gnu_ld=no
12554   ;;
12555 esac
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12558 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12559 with_gnu_ld=$lt_cv_prog_gnu_ld
12560
12561
12562
12563
12564
12565
12566
12567       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12568       # archiving commands below assume that GNU ld is being used.
12569       if test "$with_gnu_ld" = yes; then
12570         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12571         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'
12572
12573         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12574         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12575
12576         # If archive_cmds runs LD, not CC, wlarc should be empty
12577         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12578         #     investigate it a little bit more. (MM)
12579         wlarc='${wl}'
12580
12581         # ancient GNU ld didn't support --whole-archive et. al.
12582         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12583           $GREP 'no-whole-archive' > /dev/null; then
12584           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12585         else
12586           whole_archive_flag_spec_CXX=
12587         fi
12588       else
12589         with_gnu_ld=no
12590         wlarc=
12591
12592         # A generic and very simple default shared library creation
12593         # command for GNU C++ for the case where it uses the native
12594         # linker, instead of GNU ld.  If possible, this setting should
12595         # overridden to take advantage of the native linker features on
12596         # the platform it is being used on.
12597         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12598       fi
12599
12600       # Commands to make compiler produce verbose output that lists
12601       # what "hidden" libraries, object files and flags are used when
12602       # linking a shared library.
12603       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12604
12605     else
12606       GXX=no
12607       with_gnu_ld=no
12608       wlarc=
12609     fi
12610
12611     # PORTME: fill in a description of your system's C++ link characteristics
12612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12613 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12614     ld_shlibs_CXX=yes
12615     case $host_os in
12616       aix3*)
12617         # FIXME: insert proper C++ library support
12618         ld_shlibs_CXX=no
12619         ;;
12620       aix[4-9]*)
12621         if test "$host_cpu" = ia64; then
12622           # On IA64, the linker does run time linking by default, so we don't
12623           # have to do anything special.
12624           aix_use_runtimelinking=no
12625           exp_sym_flag='-Bexport'
12626           no_entry_flag=""
12627         else
12628           aix_use_runtimelinking=no
12629
12630           # Test if we are trying to use run time linking or normal
12631           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12632           # need to do runtime linking.
12633           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12634             for ld_flag in $LDFLAGS; do
12635               case $ld_flag in
12636               *-brtl*)
12637                 aix_use_runtimelinking=yes
12638                 break
12639                 ;;
12640               esac
12641             done
12642             ;;
12643           esac
12644
12645           exp_sym_flag='-bexport'
12646           no_entry_flag='-bnoentry'
12647         fi
12648
12649         # When large executables or shared objects are built, AIX ld can
12650         # have problems creating the table of contents.  If linking a library
12651         # or program results in "error TOC overflow" add -mminimal-toc to
12652         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12653         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12654
12655         archive_cmds_CXX=''
12656         hardcode_direct_CXX=yes
12657         hardcode_direct_absolute_CXX=yes
12658         hardcode_libdir_separator_CXX=':'
12659         link_all_deplibs_CXX=yes
12660         file_list_spec_CXX='${wl}-f,'
12661
12662         if test "$GXX" = yes; then
12663           case $host_os in aix4.[012]|aix4.[012].*)
12664           # We only want to do this on AIX 4.2 and lower, the check
12665           # below for broken collect2 doesn't work under 4.3+
12666           collect2name=`${CC} -print-prog-name=collect2`
12667           if test -f "$collect2name" &&
12668              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12669           then
12670             # We have reworked collect2
12671             :
12672           else
12673             # We have old collect2
12674             hardcode_direct_CXX=unsupported
12675             # It fails to find uninstalled libraries when the uninstalled
12676             # path is not listed in the libpath.  Setting hardcode_minus_L
12677             # to unsupported forces relinking
12678             hardcode_minus_L_CXX=yes
12679             hardcode_libdir_flag_spec_CXX='-L$libdir'
12680             hardcode_libdir_separator_CXX=
12681           fi
12682           esac
12683           shared_flag='-shared'
12684           if test "$aix_use_runtimelinking" = yes; then
12685             shared_flag="$shared_flag "'${wl}-G'
12686           fi
12687         else
12688           # not using gcc
12689           if test "$host_cpu" = ia64; then
12690           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12691           # chokes on -Wl,-G. The following line is correct:
12692           shared_flag='-G'
12693           else
12694             if test "$aix_use_runtimelinking" = yes; then
12695               shared_flag='${wl}-G'
12696             else
12697               shared_flag='${wl}-bM:SRE'
12698             fi
12699           fi
12700         fi
12701
12702         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12703         # It seems that -bexpall does not export symbols beginning with
12704         # underscore (_), so it is better to generate a list of symbols to
12705         # export.
12706         always_export_symbols_CXX=yes
12707         if test "$aix_use_runtimelinking" = yes; then
12708           # Warning - without using the other runtime loading flags (-brtl),
12709           # -berok will link without error, but may produce a broken library.
12710           allow_undefined_flag_CXX='-berok'
12711           # Determine the default libpath from the value encoded in an empty
12712           # executable.
12713           if test "${lt_cv_aix_libpath+set}" = set; then
12714   aix_libpath=$lt_cv_aix_libpath
12715 else
12716   if ${lt_cv_aix_libpath__CXX+:} false; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h.  */
12721
12722 int
12723 main ()
12724 {
12725
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_cxx_try_link "$LINENO"; then :
12731
12732   lt_aix_libpath_sed='
12733       /Import File Strings/,/^$/ {
12734           /^0/ {
12735               s/^0  *\([^ ]*\) *$/\1/
12736               p
12737           }
12738       }'
12739   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12740   # Check for a 64-bit object if we didn't find anything.
12741   if test -z "$lt_cv_aix_libpath__CXX"; then
12742     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12743   fi
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext \
12746     conftest$ac_exeext conftest.$ac_ext
12747   if test -z "$lt_cv_aix_libpath__CXX"; then
12748     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12749   fi
12750
12751 fi
12752
12753   aix_libpath=$lt_cv_aix_libpath__CXX
12754 fi
12755
12756           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12757
12758           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"
12759         else
12760           if test "$host_cpu" = ia64; then
12761             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12762             allow_undefined_flag_CXX="-z nodefs"
12763             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"
12764           else
12765             # Determine the default libpath from the value encoded in an
12766             # empty executable.
12767             if test "${lt_cv_aix_libpath+set}" = set; then
12768   aix_libpath=$lt_cv_aix_libpath
12769 else
12770   if ${lt_cv_aix_libpath__CXX+:} false; then :
12771   $as_echo_n "(cached) " >&6
12772 else
12773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h.  */
12775
12776 int
12777 main ()
12778 {
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_cxx_try_link "$LINENO"; then :
12785
12786   lt_aix_libpath_sed='
12787       /Import File Strings/,/^$/ {
12788           /^0/ {
12789               s/^0  *\([^ ]*\) *$/\1/
12790               p
12791           }
12792       }'
12793   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12794   # Check for a 64-bit object if we didn't find anything.
12795   if test -z "$lt_cv_aix_libpath__CXX"; then
12796     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12797   fi
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext \
12800     conftest$ac_exeext conftest.$ac_ext
12801   if test -z "$lt_cv_aix_libpath__CXX"; then
12802     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12803   fi
12804
12805 fi
12806
12807   aix_libpath=$lt_cv_aix_libpath__CXX
12808 fi
12809
12810             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12811             # Warning - without using the other run time loading flags,
12812             # -berok will link without error, but may produce a broken library.
12813             no_undefined_flag_CXX=' ${wl}-bernotok'
12814             allow_undefined_flag_CXX=' ${wl}-berok'
12815             if test "$with_gnu_ld" = yes; then
12816               # We only use this code for GNU lds that support --whole-archive.
12817               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12818             else
12819               # Exported symbols can be pulled into shared objects from archives
12820               whole_archive_flag_spec_CXX='$convenience'
12821             fi
12822             archive_cmds_need_lc_CXX=yes
12823             # This is similar to how AIX traditionally builds its shared
12824             # libraries.
12825             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'
12826           fi
12827         fi
12828         ;;
12829
12830       beos*)
12831         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832           allow_undefined_flag_CXX=unsupported
12833           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12834           # support --undefined.  This deserves some investigation.  FIXME
12835           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836         else
12837           ld_shlibs_CXX=no
12838         fi
12839         ;;
12840
12841       chorus*)
12842         case $cc_basename in
12843           *)
12844           # FIXME: insert proper C++ library support
12845           ld_shlibs_CXX=no
12846           ;;
12847         esac
12848         ;;
12849
12850       cygwin* | mingw* | pw32* | cegcc*)
12851         case $GXX,$cc_basename in
12852         ,cl* | no,cl*)
12853           # Native MSVC
12854           # hardcode_libdir_flag_spec is actually meaningless, as there is
12855           # no search path for DLLs.
12856           hardcode_libdir_flag_spec_CXX=' '
12857           allow_undefined_flag_CXX=unsupported
12858           always_export_symbols_CXX=yes
12859           file_list_spec_CXX='@'
12860           # Tell ltmain to make .lib files, not .a files.
12861           libext=lib
12862           # Tell ltmain to make .dll files, not .so files.
12863           shrext_cmds=".dll"
12864           # FIXME: Setting linknames here is a bad hack.
12865           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12866           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12867               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12868             else
12869               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12870             fi~
12871             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12872             linknames='
12873           # The linker will not automatically build a static lib if we build a DLL.
12874           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12875           enable_shared_with_static_runtimes_CXX=yes
12876           # Don't use ranlib
12877           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12878           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12879             lt_tool_outputfile="@TOOL_OUTPUT@"~
12880             case $lt_outputfile in
12881               *.exe|*.EXE) ;;
12882               *)
12883                 lt_outputfile="$lt_outputfile.exe"
12884                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12885                 ;;
12886             esac~
12887             func_to_tool_file "$lt_outputfile"~
12888             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12889               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12890               $RM "$lt_outputfile.manifest";
12891             fi'
12892           ;;
12893         *)
12894           # g++
12895           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12896           # as there is no search path for DLLs.
12897           hardcode_libdir_flag_spec_CXX='-L$libdir'
12898           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12899           allow_undefined_flag_CXX=unsupported
12900           always_export_symbols_CXX=no
12901           enable_shared_with_static_runtimes_CXX=yes
12902
12903           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12904             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'
12905             # If the export-symbols file already is a .def file (1st line
12906             # is EXPORTS), use it as is; otherwise, prepend...
12907             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12908               cp $export_symbols $output_objdir/$soname.def;
12909             else
12910               echo EXPORTS > $output_objdir/$soname.def;
12911               cat $export_symbols >> $output_objdir/$soname.def;
12912             fi~
12913             $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'
12914           else
12915             ld_shlibs_CXX=no
12916           fi
12917           ;;
12918         esac
12919         ;;
12920       darwin* | rhapsody*)
12921
12922
12923   archive_cmds_need_lc_CXX=no
12924   hardcode_direct_CXX=no
12925   hardcode_automatic_CXX=yes
12926   hardcode_shlibpath_var_CXX=unsupported
12927   if test "$lt_cv_ld_force_load" = "yes"; then
12928     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\"`'
12929
12930   else
12931     whole_archive_flag_spec_CXX=''
12932   fi
12933   link_all_deplibs_CXX=yes
12934   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12935   case $cc_basename in
12936      ifort*) _lt_dar_can_shared=yes ;;
12937      *) _lt_dar_can_shared=$GCC ;;
12938   esac
12939   if test "$_lt_dar_can_shared" = "yes"; then
12940     output_verbose_link_cmd=func_echo_all
12941     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}"
12942     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12943     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}"
12944     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}"
12945        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12946       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}"
12947       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}"
12948     fi
12949
12950   else
12951   ld_shlibs_CXX=no
12952   fi
12953
12954         ;;
12955
12956       dgux*)
12957         case $cc_basename in
12958           ec++*)
12959             # FIXME: insert proper C++ library support
12960             ld_shlibs_CXX=no
12961             ;;
12962           ghcx*)
12963             # Green Hills C++ Compiler
12964             # FIXME: insert proper C++ library support
12965             ld_shlibs_CXX=no
12966             ;;
12967           *)
12968             # FIXME: insert proper C++ library support
12969             ld_shlibs_CXX=no
12970             ;;
12971         esac
12972         ;;
12973
12974       freebsd2.*)
12975         # C++ shared libraries reported to be fairly broken before
12976         # switch to ELF
12977         ld_shlibs_CXX=no
12978         ;;
12979
12980       freebsd-elf*)
12981         archive_cmds_need_lc_CXX=no
12982         ;;
12983
12984       freebsd* | dragonfly*)
12985         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12986         # conventions
12987         ld_shlibs_CXX=yes
12988         ;;
12989
12990       gnu*)
12991         ;;
12992
12993       haiku*)
12994         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995         link_all_deplibs_CXX=yes
12996         ;;
12997
12998       hpux9*)
12999         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13000         hardcode_libdir_separator_CXX=:
13001         export_dynamic_flag_spec_CXX='${wl}-E'
13002         hardcode_direct_CXX=yes
13003         hardcode_minus_L_CXX=yes # Not in the search PATH,
13004                                              # but as the default
13005                                              # location of the library.
13006
13007         case $cc_basename in
13008           CC*)
13009             # FIXME: insert proper C++ library support
13010             ld_shlibs_CXX=no
13011             ;;
13012           aCC*)
13013             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'
13014             # Commands to make compiler produce verbose output that lists
13015             # what "hidden" libraries, object files and flags are used when
13016             # linking a shared library.
13017             #
13018             # There doesn't appear to be a way to prevent this compiler from
13019             # explicitly linking system object files so we need to strip them
13020             # from the output so that they don't get included in the library
13021             # dependencies.
13022             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"'
13023             ;;
13024           *)
13025             if test "$GXX" = yes; then
13026               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'
13027             else
13028               # FIXME: insert proper C++ library support
13029               ld_shlibs_CXX=no
13030             fi
13031             ;;
13032         esac
13033         ;;
13034
13035       hpux10*|hpux11*)
13036         if test $with_gnu_ld = no; then
13037           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13038           hardcode_libdir_separator_CXX=:
13039
13040           case $host_cpu in
13041             hppa*64*|ia64*)
13042               ;;
13043             *)
13044               export_dynamic_flag_spec_CXX='${wl}-E'
13045               ;;
13046           esac
13047         fi
13048         case $host_cpu in
13049           hppa*64*|ia64*)
13050             hardcode_direct_CXX=no
13051             hardcode_shlibpath_var_CXX=no
13052             ;;
13053           *)
13054             hardcode_direct_CXX=yes
13055             hardcode_direct_absolute_CXX=yes
13056             hardcode_minus_L_CXX=yes # Not in the search PATH,
13057                                                  # but as the default
13058                                                  # location of the library.
13059             ;;
13060         esac
13061
13062         case $cc_basename in
13063           CC*)
13064             # FIXME: insert proper C++ library support
13065             ld_shlibs_CXX=no
13066             ;;
13067           aCC*)
13068             case $host_cpu in
13069               hppa*64*)
13070                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13071                 ;;
13072               ia64*)
13073                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13074                 ;;
13075               *)
13076                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13077                 ;;
13078             esac
13079             # Commands to make compiler produce verbose output that lists
13080             # what "hidden" libraries, object files and flags are used when
13081             # linking a shared library.
13082             #
13083             # There doesn't appear to be a way to prevent this compiler from
13084             # explicitly linking system object files so we need to strip them
13085             # from the output so that they don't get included in the library
13086             # dependencies.
13087             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"'
13088             ;;
13089           *)
13090             if test "$GXX" = yes; then
13091               if test $with_gnu_ld = no; then
13092                 case $host_cpu in
13093                   hppa*64*)
13094                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13095                     ;;
13096                   ia64*)
13097                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13098                     ;;
13099                   *)
13100                     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'
13101                     ;;
13102                 esac
13103               fi
13104             else
13105               # FIXME: insert proper C++ library support
13106               ld_shlibs_CXX=no
13107             fi
13108             ;;
13109         esac
13110         ;;
13111
13112       interix[3-9]*)
13113         hardcode_direct_CXX=no
13114         hardcode_shlibpath_var_CXX=no
13115         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13116         export_dynamic_flag_spec_CXX='${wl}-E'
13117         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13118         # Instead, shared libraries are loaded at an image base (0x10000000 by
13119         # default) and relocated if they conflict, which is a slow very memory
13120         # consuming and fragmenting process.  To avoid this, we pick a random,
13121         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13122         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13123         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'
13124         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'
13125         ;;
13126       irix5* | irix6*)
13127         case $cc_basename in
13128           CC*)
13129             # SGI C++
13130             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'
13131
13132             # Archives containing C++ object files must be created using
13133             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13134             # necessary to make sure instantiated templates are included
13135             # in the archive.
13136             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13137             ;;
13138           *)
13139             if test "$GXX" = yes; then
13140               if test "$with_gnu_ld" = no; then
13141                 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'
13142               else
13143                 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'
13144               fi
13145             fi
13146             link_all_deplibs_CXX=yes
13147             ;;
13148         esac
13149         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13150         hardcode_libdir_separator_CXX=:
13151         inherit_rpath_CXX=yes
13152         ;;
13153
13154       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13155         case $cc_basename in
13156           KCC*)
13157             # Kuck and Associates, Inc. (KAI) C++ Compiler
13158
13159             # KCC will only create a shared library if the output file
13160             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13161             # to its proper name (with version) after linking.
13162             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'
13163             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'
13164             # Commands to make compiler produce verbose output that lists
13165             # what "hidden" libraries, object files and flags are used when
13166             # linking a shared library.
13167             #
13168             # There doesn't appear to be a way to prevent this compiler from
13169             # explicitly linking system object files so we need to strip them
13170             # from the output so that they don't get included in the library
13171             # dependencies.
13172             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"'
13173
13174             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13175             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13176
13177             # Archives containing C++ object files must be created using
13178             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13179             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13180             ;;
13181           icpc* | ecpc* )
13182             # Intel C++
13183             with_gnu_ld=yes
13184             # version 8.0 and above of icpc choke on multiply defined symbols
13185             # if we add $predep_objects and $postdep_objects, however 7.1 and
13186             # earlier do not add the objects themselves.
13187             case `$CC -V 2>&1` in
13188               *"Version 7."*)
13189                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190                 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'
13191                 ;;
13192               *)  # Version 8.0 or newer
13193                 tmp_idyn=
13194                 case $host_cpu in
13195                   ia64*) tmp_idyn=' -i_dynamic';;
13196                 esac
13197                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198                 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'
13199                 ;;
13200             esac
13201             archive_cmds_need_lc_CXX=no
13202             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13203             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13204             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13205             ;;
13206           pgCC* | pgcpp*)
13207             # Portland Group C++ compiler
13208             case `$CC -V` in
13209             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13210               prelink_cmds_CXX='tpldir=Template.dir~
13211                 rm -rf $tpldir~
13212                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13213                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13214               old_archive_cmds_CXX='tpldir=Template.dir~
13215                 rm -rf $tpldir~
13216                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13217                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13218                 $RANLIB $oldlib'
13219               archive_cmds_CXX='tpldir=Template.dir~
13220                 rm -rf $tpldir~
13221                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13222                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13223               archive_expsym_cmds_CXX='tpldir=Template.dir~
13224                 rm -rf $tpldir~
13225                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13226                 $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'
13227               ;;
13228             *) # Version 6 and above use weak symbols
13229               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13230               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'
13231               ;;
13232             esac
13233
13234             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13235             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13236             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'
13237             ;;
13238           cxx*)
13239             # Compaq C++
13240             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241             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'
13242
13243             runpath_var=LD_RUN_PATH
13244             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13245             hardcode_libdir_separator_CXX=:
13246
13247             # Commands to make compiler produce verbose output that lists
13248             # what "hidden" libraries, object files and flags are used when
13249             # linking a shared library.
13250             #
13251             # There doesn't appear to be a way to prevent this compiler from
13252             # explicitly linking system object files so we need to strip them
13253             # from the output so that they don't get included in the library
13254             # dependencies.
13255             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'
13256             ;;
13257           xl* | mpixl* | bgxl*)
13258             # IBM XL 8.0 on PPC, with GNU ld
13259             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13261             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262             if test "x$supports_anon_versioning" = xyes; then
13263               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13264                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13265                 echo "local: *; };" >> $output_objdir/$libname.ver~
13266                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13267             fi
13268             ;;
13269           *)
13270             case `$CC -V 2>&1 | sed 5q` in
13271             *Sun\ C*)
13272               # Sun C++ 5.9
13273               no_undefined_flag_CXX=' -zdefs'
13274               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13275               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'
13276               hardcode_libdir_flag_spec_CXX='-R$libdir'
13277               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'
13278               compiler_needs_object_CXX=yes
13279
13280               # Not sure whether something based on
13281               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13282               # would be better.
13283               output_verbose_link_cmd='func_echo_all'
13284
13285               # Archives containing C++ object files must be created using
13286               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13287               # necessary to make sure instantiated templates are included
13288               # in the archive.
13289               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13290               ;;
13291             esac
13292             ;;
13293         esac
13294         ;;
13295
13296       lynxos*)
13297         # FIXME: insert proper C++ library support
13298         ld_shlibs_CXX=no
13299         ;;
13300
13301       m88k*)
13302         # FIXME: insert proper C++ library support
13303         ld_shlibs_CXX=no
13304         ;;
13305
13306       mvs*)
13307         case $cc_basename in
13308           cxx*)
13309             # FIXME: insert proper C++ library support
13310             ld_shlibs_CXX=no
13311             ;;
13312           *)
13313             # FIXME: insert proper C++ library support
13314             ld_shlibs_CXX=no
13315             ;;
13316         esac
13317         ;;
13318
13319       netbsd*)
13320         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13321           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13322           wlarc=
13323           hardcode_libdir_flag_spec_CXX='-R$libdir'
13324           hardcode_direct_CXX=yes
13325           hardcode_shlibpath_var_CXX=no
13326         fi
13327         # Workaround some broken pre-1.5 toolchains
13328         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13329         ;;
13330
13331       *nto* | *qnx*)
13332         ld_shlibs_CXX=yes
13333         ;;
13334
13335       openbsd2*)
13336         # C++ shared libraries are fairly broken
13337         ld_shlibs_CXX=no
13338         ;;
13339
13340       openbsd*)
13341         if test -f /usr/libexec/ld.so; then
13342           hardcode_direct_CXX=yes
13343           hardcode_shlibpath_var_CXX=no
13344           hardcode_direct_absolute_CXX=yes
13345           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13346           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13347           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13348             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13349             export_dynamic_flag_spec_CXX='${wl}-E'
13350             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13351           fi
13352           output_verbose_link_cmd=func_echo_all
13353         else
13354           ld_shlibs_CXX=no
13355         fi
13356         ;;
13357
13358       osf3* | osf4* | osf5*)
13359         case $cc_basename in
13360           KCC*)
13361             # Kuck and Associates, Inc. (KAI) C++ Compiler
13362
13363             # KCC will only create a shared library if the output file
13364             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13365             # to its proper name (with version) after linking.
13366             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'
13367
13368             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13369             hardcode_libdir_separator_CXX=:
13370
13371             # Archives containing C++ object files must be created using
13372             # the KAI C++ compiler.
13373             case $host in
13374               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13375               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13376             esac
13377             ;;
13378           RCC*)
13379             # Rational C++ 2.4.1
13380             # FIXME: insert proper C++ library support
13381             ld_shlibs_CXX=no
13382             ;;
13383           cxx*)
13384             case $host in
13385               osf3*)
13386                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13387                 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'
13388                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13389                 ;;
13390               *)
13391                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13392                 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'
13393                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13394                   echo "-hidden">> $lib.exp~
13395                   $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~
13396                   $RM $lib.exp'
13397                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13398                 ;;
13399             esac
13400
13401             hardcode_libdir_separator_CXX=:
13402
13403             # Commands to make compiler produce verbose output that lists
13404             # what "hidden" libraries, object files and flags are used when
13405             # linking a shared library.
13406             #
13407             # There doesn't appear to be a way to prevent this compiler from
13408             # explicitly linking system object files so we need to strip them
13409             # from the output so that they don't get included in the library
13410             # dependencies.
13411             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"'
13412             ;;
13413           *)
13414             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13415               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13416               case $host in
13417                 osf3*)
13418                   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'
13419                   ;;
13420                 *)
13421                   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'
13422                   ;;
13423               esac
13424
13425               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13426               hardcode_libdir_separator_CXX=:
13427
13428               # Commands to make compiler produce verbose output that lists
13429               # what "hidden" libraries, object files and flags are used when
13430               # linking a shared library.
13431               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13432
13433             else
13434               # FIXME: insert proper C++ library support
13435               ld_shlibs_CXX=no
13436             fi
13437             ;;
13438         esac
13439         ;;
13440
13441       psos*)
13442         # FIXME: insert proper C++ library support
13443         ld_shlibs_CXX=no
13444         ;;
13445
13446       sunos4*)
13447         case $cc_basename in
13448           CC*)
13449             # Sun C++ 4.x
13450             # FIXME: insert proper C++ library support
13451             ld_shlibs_CXX=no
13452             ;;
13453           lcc*)
13454             # Lucid
13455             # FIXME: insert proper C++ library support
13456             ld_shlibs_CXX=no
13457             ;;
13458           *)
13459             # FIXME: insert proper C++ library support
13460             ld_shlibs_CXX=no
13461             ;;
13462         esac
13463         ;;
13464
13465       solaris*)
13466         case $cc_basename in
13467           CC* | sunCC*)
13468             # Sun C++ 4.2, 5.x and Centerline C++
13469             archive_cmds_need_lc_CXX=yes
13470             no_undefined_flag_CXX=' -zdefs'
13471             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13473               $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'
13474
13475             hardcode_libdir_flag_spec_CXX='-R$libdir'
13476             hardcode_shlibpath_var_CXX=no
13477             case $host_os in
13478               solaris2.[0-5] | solaris2.[0-5].*) ;;
13479               *)
13480                 # The compiler driver will combine and reorder linker options,
13481                 # but understands `-z linker_flag'.
13482                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13483                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13484                 ;;
13485             esac
13486             link_all_deplibs_CXX=yes
13487
13488             output_verbose_link_cmd='func_echo_all'
13489
13490             # Archives containing C++ object files must be created using
13491             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13492             # necessary to make sure instantiated templates are included
13493             # in the archive.
13494             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13495             ;;
13496           gcx*)
13497             # Green Hills C++ Compiler
13498             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13499
13500             # The C++ compiler must be used to create the archive.
13501             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13502             ;;
13503           *)
13504             # GNU C++ compiler with Solaris linker
13505             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13506               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13507               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13508                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13509                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13510                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13511
13512                 # Commands to make compiler produce verbose output that lists
13513                 # what "hidden" libraries, object files and flags are used when
13514                 # linking a shared library.
13515                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13516               else
13517                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13518                 # platform.
13519                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13520                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13521                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13522
13523                 # Commands to make compiler produce verbose output that lists
13524                 # what "hidden" libraries, object files and flags are used when
13525                 # linking a shared library.
13526                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13527               fi
13528
13529               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13530               case $host_os in
13531                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13532                 *)
13533                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13534                   ;;
13535               esac
13536             fi
13537             ;;
13538         esac
13539         ;;
13540
13541     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13542       no_undefined_flag_CXX='${wl}-z,text'
13543       archive_cmds_need_lc_CXX=no
13544       hardcode_shlibpath_var_CXX=no
13545       runpath_var='LD_RUN_PATH'
13546
13547       case $cc_basename in
13548         CC*)
13549           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551           ;;
13552         *)
13553           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13555           ;;
13556       esac
13557       ;;
13558
13559       sysv5* | sco3.2v5* | sco5v6*)
13560         # Note: We can NOT use -z defs as we might desire, because we do not
13561         # link with -lc, and that would cause any symbols used from libc to
13562         # always be unresolved, which means just about no library would
13563         # ever link correctly.  If we're not using GNU ld we use -z text
13564         # though, which does catch some bad symbols but isn't as heavy-handed
13565         # as -z defs.
13566         no_undefined_flag_CXX='${wl}-z,text'
13567         allow_undefined_flag_CXX='${wl}-z,nodefs'
13568         archive_cmds_need_lc_CXX=no
13569         hardcode_shlibpath_var_CXX=no
13570         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13571         hardcode_libdir_separator_CXX=':'
13572         link_all_deplibs_CXX=yes
13573         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13574         runpath_var='LD_RUN_PATH'
13575
13576         case $cc_basename in
13577           CC*)
13578             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13581               '"$old_archive_cmds_CXX"
13582             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13583               '"$reload_cmds_CXX"
13584             ;;
13585           *)
13586             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13588             ;;
13589         esac
13590       ;;
13591
13592       tandem*)
13593         case $cc_basename in
13594           NCC*)
13595             # NonStop-UX NCC 3.20
13596             # FIXME: insert proper C++ library support
13597             ld_shlibs_CXX=no
13598             ;;
13599           *)
13600             # FIXME: insert proper C++ library support
13601             ld_shlibs_CXX=no
13602             ;;
13603         esac
13604         ;;
13605
13606       vxworks*)
13607         # FIXME: insert proper C++ library support
13608         ld_shlibs_CXX=no
13609         ;;
13610
13611       *)
13612         # FIXME: insert proper C++ library support
13613         ld_shlibs_CXX=no
13614         ;;
13615     esac
13616
13617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13618 $as_echo "$ld_shlibs_CXX" >&6; }
13619     test "$ld_shlibs_CXX" = no && can_build_shared=no
13620
13621     GCC_CXX="$GXX"
13622     LD_CXX="$LD"
13623
13624     ## CAVEAT EMPTOR:
13625     ## There is no encapsulation within the following macros, do not change
13626     ## the running order or otherwise move them around unless you know exactly
13627     ## what you are doing...
13628     # Dependencies to place before and after the object being linked:
13629 predep_objects_CXX=
13630 postdep_objects_CXX=
13631 predeps_CXX=
13632 postdeps_CXX=
13633 compiler_lib_search_path_CXX=
13634
13635 cat > conftest.$ac_ext <<_LT_EOF
13636 class Foo
13637 {
13638 public:
13639   Foo (void) { a = 0; }
13640 private:
13641   int a;
13642 };
13643 _LT_EOF
13644
13645
13646 _lt_libdeps_save_CFLAGS=$CFLAGS
13647 case "$CC $CFLAGS " in #(
13648 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13649 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13650 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13651 esac
13652
13653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13654   (eval $ac_compile) 2>&5
13655   ac_status=$?
13656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13657   test $ac_status = 0; }; then
13658   # Parse the compiler output and extract the necessary
13659   # objects, libraries and library flags.
13660
13661   # Sentinel used to keep track of whether or not we are before
13662   # the conftest object file.
13663   pre_test_object_deps_done=no
13664
13665   for p in `eval "$output_verbose_link_cmd"`; do
13666     case ${prev}${p} in
13667
13668     -L* | -R* | -l*)
13669        # Some compilers place space between "-{L,R}" and the path.
13670        # Remove the space.
13671        if test $p = "-L" ||
13672           test $p = "-R"; then
13673          prev=$p
13674          continue
13675        fi
13676
13677        # Expand the sysroot to ease extracting the directories later.
13678        if test -z "$prev"; then
13679          case $p in
13680          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13681          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13682          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13683          esac
13684        fi
13685        case $p in
13686        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13687        esac
13688        if test "$pre_test_object_deps_done" = no; then
13689          case ${prev} in
13690          -L | -R)
13691            # Internal compiler library paths should come after those
13692            # provided the user.  The postdeps already come after the
13693            # user supplied libs so there is no need to process them.
13694            if test -z "$compiler_lib_search_path_CXX"; then
13695              compiler_lib_search_path_CXX="${prev}${p}"
13696            else
13697              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13698            fi
13699            ;;
13700          # The "-l" case would never come before the object being
13701          # linked, so don't bother handling this case.
13702          esac
13703        else
13704          if test -z "$postdeps_CXX"; then
13705            postdeps_CXX="${prev}${p}"
13706          else
13707            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13708          fi
13709        fi
13710        prev=
13711        ;;
13712
13713     *.lto.$objext) ;; # Ignore GCC LTO objects
13714     *.$objext)
13715        # This assumes that the test object file only shows up
13716        # once in the compiler output.
13717        if test "$p" = "conftest.$objext"; then
13718          pre_test_object_deps_done=yes
13719          continue
13720        fi
13721
13722        if test "$pre_test_object_deps_done" = no; then
13723          if test -z "$predep_objects_CXX"; then
13724            predep_objects_CXX="$p"
13725          else
13726            predep_objects_CXX="$predep_objects_CXX $p"
13727          fi
13728        else
13729          if test -z "$postdep_objects_CXX"; then
13730            postdep_objects_CXX="$p"
13731          else
13732            postdep_objects_CXX="$postdep_objects_CXX $p"
13733          fi
13734        fi
13735        ;;
13736
13737     *) ;; # Ignore the rest.
13738
13739     esac
13740   done
13741
13742   # Clean up.
13743   rm -f a.out a.exe
13744 else
13745   echo "libtool.m4: error: problem compiling CXX test program"
13746 fi
13747
13748 $RM -f confest.$objext
13749 CFLAGS=$_lt_libdeps_save_CFLAGS
13750
13751 # PORTME: override above test on systems where it is broken
13752 case $host_os in
13753 interix[3-9]*)
13754   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13755   # hack all around it, let's just trust "g++" to DTRT.
13756   predep_objects_CXX=
13757   postdep_objects_CXX=
13758   postdeps_CXX=
13759   ;;
13760
13761 linux*)
13762   case `$CC -V 2>&1 | sed 5q` in
13763   *Sun\ C*)
13764     # Sun C++ 5.9
13765
13766     # The more standards-conforming stlport4 library is
13767     # incompatible with the Cstd library. Avoid specifying
13768     # it if it's in CXXFLAGS. Ignore libCrun as
13769     # -library=stlport4 depends on it.
13770     case " $CXX $CXXFLAGS " in
13771     *" -library=stlport4 "*)
13772       solaris_use_stlport4=yes
13773       ;;
13774     esac
13775
13776     if test "$solaris_use_stlport4" != yes; then
13777       postdeps_CXX='-library=Cstd -library=Crun'
13778     fi
13779     ;;
13780   esac
13781   ;;
13782
13783 solaris*)
13784   case $cc_basename in
13785   CC* | sunCC*)
13786     # The more standards-conforming stlport4 library is
13787     # incompatible with the Cstd library. Avoid specifying
13788     # it if it's in CXXFLAGS. Ignore libCrun as
13789     # -library=stlport4 depends on it.
13790     case " $CXX $CXXFLAGS " in
13791     *" -library=stlport4 "*)
13792       solaris_use_stlport4=yes
13793       ;;
13794     esac
13795
13796     # Adding this requires a known-good setup of shared libraries for
13797     # Sun compiler versions before 5.6, else PIC objects from an old
13798     # archive will be linked into the output, leading to subtle bugs.
13799     if test "$solaris_use_stlport4" != yes; then
13800       postdeps_CXX='-library=Cstd -library=Crun'
13801     fi
13802     ;;
13803   esac
13804   ;;
13805 esac
13806
13807
13808 case " $postdeps_CXX " in
13809 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13810 esac
13811  compiler_lib_search_dirs_CXX=
13812 if test -n "${compiler_lib_search_path_CXX}"; then
13813  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13814 fi
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846     lt_prog_compiler_wl_CXX=
13847 lt_prog_compiler_pic_CXX=
13848 lt_prog_compiler_static_CXX=
13849
13850
13851   # C++ specific cases for pic, static, wl, etc.
13852   if test "$GXX" = yes; then
13853     lt_prog_compiler_wl_CXX='-Wl,'
13854     lt_prog_compiler_static_CXX='-static'
13855
13856     case $host_os in
13857     aix*)
13858       # All AIX code is PIC.
13859       if test "$host_cpu" = ia64; then
13860         # AIX 5 now supports IA64 processor
13861         lt_prog_compiler_static_CXX='-Bstatic'
13862       fi
13863       ;;
13864
13865     amigaos*)
13866       case $host_cpu in
13867       powerpc)
13868             # see comment about AmigaOS4 .so support
13869             lt_prog_compiler_pic_CXX='-fPIC'
13870         ;;
13871       m68k)
13872             # FIXME: we need at least 68020 code to build shared libraries, but
13873             # adding the `-m68020' flag to GCC prevents building anything better,
13874             # like `-m68040'.
13875             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13876         ;;
13877       esac
13878       ;;
13879
13880     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13881       # PIC is the default for these OSes.
13882       ;;
13883     mingw* | cygwin* | os2* | pw32* | cegcc*)
13884       # This hack is so that the source file can tell whether it is being
13885       # built for inclusion in a dll (and should export symbols for example).
13886       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13887       # (--disable-auto-import) libraries
13888       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13889       ;;
13890     darwin* | rhapsody*)
13891       # PIC is the default on this platform
13892       # Common symbols not allowed in MH_DYLIB files
13893       lt_prog_compiler_pic_CXX='-fno-common'
13894       ;;
13895     *djgpp*)
13896       # DJGPP does not support shared libraries at all
13897       lt_prog_compiler_pic_CXX=
13898       ;;
13899     haiku*)
13900       # PIC is the default for Haiku.
13901       # The "-static" flag exists, but is broken.
13902       lt_prog_compiler_static_CXX=
13903       ;;
13904     interix[3-9]*)
13905       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13906       # Instead, we relocate shared libraries at runtime.
13907       ;;
13908     sysv4*MP*)
13909       if test -d /usr/nec; then
13910         lt_prog_compiler_pic_CXX=-Kconform_pic
13911       fi
13912       ;;
13913     hpux*)
13914       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13915       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13916       # sets the default TLS model and affects inlining.
13917       case $host_cpu in
13918       hppa*64*)
13919         ;;
13920       *)
13921         lt_prog_compiler_pic_CXX='-fPIC'
13922         ;;
13923       esac
13924       ;;
13925     *qnx* | *nto*)
13926       # QNX uses GNU C++, but need to define -shared option too, otherwise
13927       # it will coredump.
13928       lt_prog_compiler_pic_CXX='-fPIC -shared'
13929       ;;
13930     *)
13931       lt_prog_compiler_pic_CXX='-fPIC'
13932       ;;
13933     esac
13934   else
13935     case $host_os in
13936       aix[4-9]*)
13937         # All AIX code is PIC.
13938         if test "$host_cpu" = ia64; then
13939           # AIX 5 now supports IA64 processor
13940           lt_prog_compiler_static_CXX='-Bstatic'
13941         else
13942           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13943         fi
13944         ;;
13945       chorus*)
13946         case $cc_basename in
13947         cxch68*)
13948           # Green Hills C++ Compiler
13949           # _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"
13950           ;;
13951         esac
13952         ;;
13953       mingw* | cygwin* | os2* | pw32* | cegcc*)
13954         # This hack is so that the source file can tell whether it is being
13955         # built for inclusion in a dll (and should export symbols for example).
13956         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13957         ;;
13958       dgux*)
13959         case $cc_basename in
13960           ec++*)
13961             lt_prog_compiler_pic_CXX='-KPIC'
13962             ;;
13963           ghcx*)
13964             # Green Hills C++ Compiler
13965             lt_prog_compiler_pic_CXX='-pic'
13966             ;;
13967           *)
13968             ;;
13969         esac
13970         ;;
13971       freebsd* | dragonfly*)
13972         # FreeBSD uses GNU C++
13973         ;;
13974       hpux9* | hpux10* | hpux11*)
13975         case $cc_basename in
13976           CC*)
13977             lt_prog_compiler_wl_CXX='-Wl,'
13978             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13979             if test "$host_cpu" != ia64; then
13980               lt_prog_compiler_pic_CXX='+Z'
13981             fi
13982             ;;
13983           aCC*)
13984             lt_prog_compiler_wl_CXX='-Wl,'
13985             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13986             case $host_cpu in
13987             hppa*64*|ia64*)
13988               # +Z the default
13989               ;;
13990             *)
13991               lt_prog_compiler_pic_CXX='+Z'
13992               ;;
13993             esac
13994             ;;
13995           *)
13996             ;;
13997         esac
13998         ;;
13999       interix*)
14000         # This is c89, which is MS Visual C++ (no shared libs)
14001         # Anyone wants to do a port?
14002         ;;
14003       irix5* | irix6* | nonstopux*)
14004         case $cc_basename in
14005           CC*)
14006             lt_prog_compiler_wl_CXX='-Wl,'
14007             lt_prog_compiler_static_CXX='-non_shared'
14008             # CC pic flag -KPIC is the default.
14009             ;;
14010           *)
14011             ;;
14012         esac
14013         ;;
14014       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14015         case $cc_basename in
14016           KCC*)
14017             # KAI C++ Compiler
14018             lt_prog_compiler_wl_CXX='--backend -Wl,'
14019             lt_prog_compiler_pic_CXX='-fPIC'
14020             ;;
14021           ecpc* )
14022             # old Intel C++ for x86_64 which still supported -KPIC.
14023             lt_prog_compiler_wl_CXX='-Wl,'
14024             lt_prog_compiler_pic_CXX='-KPIC'
14025             lt_prog_compiler_static_CXX='-static'
14026             ;;
14027           icpc* )
14028             # Intel C++, used to be incompatible with GCC.
14029             # ICC 10 doesn't accept -KPIC any more.
14030             lt_prog_compiler_wl_CXX='-Wl,'
14031             lt_prog_compiler_pic_CXX='-fPIC'
14032             lt_prog_compiler_static_CXX='-static'
14033             ;;
14034           pgCC* | pgcpp*)
14035             # Portland Group C++ compiler
14036             lt_prog_compiler_wl_CXX='-Wl,'
14037             lt_prog_compiler_pic_CXX='-fpic'
14038             lt_prog_compiler_static_CXX='-Bstatic'
14039             ;;
14040           cxx*)
14041             # Compaq C++
14042             # Make sure the PIC flag is empty.  It appears that all Alpha
14043             # Linux and Compaq Tru64 Unix objects are PIC.
14044             lt_prog_compiler_pic_CXX=
14045             lt_prog_compiler_static_CXX='-non_shared'
14046             ;;
14047           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14048             # IBM XL 8.0, 9.0 on PPC and BlueGene
14049             lt_prog_compiler_wl_CXX='-Wl,'
14050             lt_prog_compiler_pic_CXX='-qpic'
14051             lt_prog_compiler_static_CXX='-qstaticlink'
14052             ;;
14053           *)
14054             case `$CC -V 2>&1 | sed 5q` in
14055             *Sun\ C*)
14056               # Sun C++ 5.9
14057               lt_prog_compiler_pic_CXX='-KPIC'
14058               lt_prog_compiler_static_CXX='-Bstatic'
14059               lt_prog_compiler_wl_CXX='-Qoption ld '
14060               ;;
14061             esac
14062             ;;
14063         esac
14064         ;;
14065       lynxos*)
14066         ;;
14067       m88k*)
14068         ;;
14069       mvs*)
14070         case $cc_basename in
14071           cxx*)
14072             lt_prog_compiler_pic_CXX='-W c,exportall'
14073             ;;
14074           *)
14075             ;;
14076         esac
14077         ;;
14078       netbsd* | netbsdelf*-gnu)
14079         ;;
14080       *qnx* | *nto*)
14081         # QNX uses GNU C++, but need to define -shared option too, otherwise
14082         # it will coredump.
14083         lt_prog_compiler_pic_CXX='-fPIC -shared'
14084         ;;
14085       osf3* | osf4* | osf5*)
14086         case $cc_basename in
14087           KCC*)
14088             lt_prog_compiler_wl_CXX='--backend -Wl,'
14089             ;;
14090           RCC*)
14091             # Rational C++ 2.4.1
14092             lt_prog_compiler_pic_CXX='-pic'
14093             ;;
14094           cxx*)
14095             # Digital/Compaq C++
14096             lt_prog_compiler_wl_CXX='-Wl,'
14097             # Make sure the PIC flag is empty.  It appears that all Alpha
14098             # Linux and Compaq Tru64 Unix objects are PIC.
14099             lt_prog_compiler_pic_CXX=
14100             lt_prog_compiler_static_CXX='-non_shared'
14101             ;;
14102           *)
14103             ;;
14104         esac
14105         ;;
14106       psos*)
14107         ;;
14108       solaris*)
14109         case $cc_basename in
14110           CC* | sunCC*)
14111             # Sun C++ 4.2, 5.x and Centerline C++
14112             lt_prog_compiler_pic_CXX='-KPIC'
14113             lt_prog_compiler_static_CXX='-Bstatic'
14114             lt_prog_compiler_wl_CXX='-Qoption ld '
14115             ;;
14116           gcx*)
14117             # Green Hills C++ Compiler
14118             lt_prog_compiler_pic_CXX='-PIC'
14119             ;;
14120           *)
14121             ;;
14122         esac
14123         ;;
14124       sunos4*)
14125         case $cc_basename in
14126           CC*)
14127             # Sun C++ 4.x
14128             lt_prog_compiler_pic_CXX='-pic'
14129             lt_prog_compiler_static_CXX='-Bstatic'
14130             ;;
14131           lcc*)
14132             # Lucid
14133             lt_prog_compiler_pic_CXX='-pic'
14134             ;;
14135           *)
14136             ;;
14137         esac
14138         ;;
14139       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14140         case $cc_basename in
14141           CC*)
14142             lt_prog_compiler_wl_CXX='-Wl,'
14143             lt_prog_compiler_pic_CXX='-KPIC'
14144             lt_prog_compiler_static_CXX='-Bstatic'
14145             ;;
14146         esac
14147         ;;
14148       tandem*)
14149         case $cc_basename in
14150           NCC*)
14151             # NonStop-UX NCC 3.20
14152             lt_prog_compiler_pic_CXX='-KPIC'
14153             ;;
14154           *)
14155             ;;
14156         esac
14157         ;;
14158       vxworks*)
14159         ;;
14160       *)
14161         lt_prog_compiler_can_build_shared_CXX=no
14162         ;;
14163     esac
14164   fi
14165
14166 case $host_os in
14167   # For platforms which do not support PIC, -DPIC is meaningless:
14168   *djgpp*)
14169     lt_prog_compiler_pic_CXX=
14170     ;;
14171   *)
14172     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14173     ;;
14174 esac
14175
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14177 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14178 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14179   $as_echo_n "(cached) " >&6
14180 else
14181   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14182 fi
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14184 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14185 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14186
14187 #
14188 # Check to make sure the PIC flag actually works.
14189 #
14190 if test -n "$lt_prog_compiler_pic_CXX"; then
14191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14192 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14193 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14194   $as_echo_n "(cached) " >&6
14195 else
14196   lt_cv_prog_compiler_pic_works_CXX=no
14197    ac_outfile=conftest.$ac_objext
14198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14199    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14200    # Insert the option either (1) after the last *FLAGS variable, or
14201    # (2) before a word containing "conftest.", or (3) at the end.
14202    # Note that $ac_compile itself does not contain backslashes and begins
14203    # with a dollar sign (not a hyphen), so the echo should work correctly.
14204    # The option is referenced via a variable to avoid confusing sed.
14205    lt_compile=`echo "$ac_compile" | $SED \
14206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14208    -e 's:$: $lt_compiler_flag:'`
14209    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14210    (eval "$lt_compile" 2>conftest.err)
14211    ac_status=$?
14212    cat conftest.err >&5
14213    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214    if (exit $ac_status) && test -s "$ac_outfile"; then
14215      # The compiler can only warn and ignore the option if not recognized
14216      # So say no if there are warnings other than the usual output.
14217      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14218      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14219      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14220        lt_cv_prog_compiler_pic_works_CXX=yes
14221      fi
14222    fi
14223    $RM conftest*
14224
14225 fi
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14227 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14228
14229 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14230     case $lt_prog_compiler_pic_CXX in
14231      "" | " "*) ;;
14232      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14233      esac
14234 else
14235     lt_prog_compiler_pic_CXX=
14236      lt_prog_compiler_can_build_shared_CXX=no
14237 fi
14238
14239 fi
14240
14241
14242
14243
14244
14245 #
14246 # Check to make sure the static flag actually works.
14247 #
14248 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14250 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14251 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14252   $as_echo_n "(cached) " >&6
14253 else
14254   lt_cv_prog_compiler_static_works_CXX=no
14255    save_LDFLAGS="$LDFLAGS"
14256    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14257    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14258    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14259      # The linker can only warn and ignore the option if not recognized
14260      # So say no if there are warnings
14261      if test -s conftest.err; then
14262        # Append any errors to the config.log.
14263        cat conftest.err 1>&5
14264        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14265        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14266        if diff conftest.exp conftest.er2 >/dev/null; then
14267          lt_cv_prog_compiler_static_works_CXX=yes
14268        fi
14269      else
14270        lt_cv_prog_compiler_static_works_CXX=yes
14271      fi
14272    fi
14273    $RM -r conftest*
14274    LDFLAGS="$save_LDFLAGS"
14275
14276 fi
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14278 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14279
14280 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14281     :
14282 else
14283     lt_prog_compiler_static_CXX=
14284 fi
14285
14286
14287
14288
14289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14290 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14291 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294   lt_cv_prog_compiler_c_o_CXX=no
14295    $RM -r conftest 2>/dev/null
14296    mkdir conftest
14297    cd conftest
14298    mkdir out
14299    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14300
14301    lt_compiler_flag="-o out/conftest2.$ac_objext"
14302    # Insert the option either (1) after the last *FLAGS variable, or
14303    # (2) before a word containing "conftest.", or (3) at the end.
14304    # Note that $ac_compile itself does not contain backslashes and begins
14305    # with a dollar sign (not a hyphen), so the echo should work correctly.
14306    lt_compile=`echo "$ac_compile" | $SED \
14307    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309    -e 's:$: $lt_compiler_flag:'`
14310    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14311    (eval "$lt_compile" 2>out/conftest.err)
14312    ac_status=$?
14313    cat out/conftest.err >&5
14314    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14316    then
14317      # The compiler can only warn and ignore the option if not recognized
14318      # So say no if there are warnings
14319      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14320      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14321      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14322        lt_cv_prog_compiler_c_o_CXX=yes
14323      fi
14324    fi
14325    chmod u+w . 2>&5
14326    $RM conftest*
14327    # SGI C++ compiler will create directory out/ii_files/ for
14328    # template instantiation
14329    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14330    $RM out/* && rmdir out
14331    cd ..
14332    $RM -r conftest
14333    $RM conftest*
14334
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14337 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14338
14339
14340
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14343 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14344   $as_echo_n "(cached) " >&6
14345 else
14346   lt_cv_prog_compiler_c_o_CXX=no
14347    $RM -r conftest 2>/dev/null
14348    mkdir conftest
14349    cd conftest
14350    mkdir out
14351    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14352
14353    lt_compiler_flag="-o out/conftest2.$ac_objext"
14354    # Insert the option either (1) after the last *FLAGS variable, or
14355    # (2) before a word containing "conftest.", or (3) at the end.
14356    # Note that $ac_compile itself does not contain backslashes and begins
14357    # with a dollar sign (not a hyphen), so the echo should work correctly.
14358    lt_compile=`echo "$ac_compile" | $SED \
14359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361    -e 's:$: $lt_compiler_flag:'`
14362    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14363    (eval "$lt_compile" 2>out/conftest.err)
14364    ac_status=$?
14365    cat out/conftest.err >&5
14366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14368    then
14369      # The compiler can only warn and ignore the option if not recognized
14370      # So say no if there are warnings
14371      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14372      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14373      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14374        lt_cv_prog_compiler_c_o_CXX=yes
14375      fi
14376    fi
14377    chmod u+w . 2>&5
14378    $RM conftest*
14379    # SGI C++ compiler will create directory out/ii_files/ for
14380    # template instantiation
14381    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14382    $RM out/* && rmdir out
14383    cd ..
14384    $RM -r conftest
14385    $RM conftest*
14386
14387 fi
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14390
14391
14392
14393
14394 hard_links="nottested"
14395 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14396   # do not overwrite the value of need_locks provided by the user
14397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14398 $as_echo_n "checking if we can lock with hard links... " >&6; }
14399   hard_links=yes
14400   $RM conftest*
14401   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14402   touch conftest.a
14403   ln conftest.a conftest.b 2>&5 || hard_links=no
14404   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14406 $as_echo "$hard_links" >&6; }
14407   if test "$hard_links" = no; then
14408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14409 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14410     need_locks=warn
14411   fi
14412 else
14413   need_locks=no
14414 fi
14415
14416
14417
14418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14419 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14420
14421   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14422   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14423   case $host_os in
14424   aix[4-9]*)
14425     # If we're using GNU nm, then we don't want the "-C" option.
14426     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14427     # Also, AIX nm treats weak defined symbols like other global defined
14428     # symbols, whereas GNU nm marks them as "W".
14429     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14430       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'
14431     else
14432       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'
14433     fi
14434     ;;
14435   pw32*)
14436     export_symbols_cmds_CXX="$ltdll_cmds"
14437     ;;
14438   cygwin* | mingw* | cegcc*)
14439     case $cc_basename in
14440     cl*)
14441       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14442       ;;
14443     *)
14444       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'
14445       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14446       ;;
14447     esac
14448     ;;
14449   linux* | k*bsd*-gnu | gnu*)
14450     link_all_deplibs_CXX=no
14451     ;;
14452   *)
14453     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14454     ;;
14455   esac
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14458 $as_echo "$ld_shlibs_CXX" >&6; }
14459 test "$ld_shlibs_CXX" = no && can_build_shared=no
14460
14461 with_gnu_ld_CXX=$with_gnu_ld
14462
14463
14464
14465
14466
14467
14468 #
14469 # Do we need to explicitly link libc?
14470 #
14471 case "x$archive_cmds_need_lc_CXX" in
14472 x|xyes)
14473   # Assume -lc should be added
14474   archive_cmds_need_lc_CXX=yes
14475
14476   if test "$enable_shared" = yes && test "$GCC" = yes; then
14477     case $archive_cmds_CXX in
14478     *'~'*)
14479       # FIXME: we may have to deal with multi-command sequences.
14480       ;;
14481     '$CC '*)
14482       # Test whether the compiler implicitly links with -lc since on some
14483       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14484       # to ld, don't add -lc before -lgcc.
14485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14486 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14487 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14488   $as_echo_n "(cached) " >&6
14489 else
14490   $RM conftest*
14491         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14492
14493         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14494   (eval $ac_compile) 2>&5
14495   ac_status=$?
14496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14497   test $ac_status = 0; } 2>conftest.err; then
14498           soname=conftest
14499           lib=conftest
14500           libobjs=conftest.$ac_objext
14501           deplibs=
14502           wl=$lt_prog_compiler_wl_CXX
14503           pic_flag=$lt_prog_compiler_pic_CXX
14504           compiler_flags=-v
14505           linker_flags=-v
14506           verstring=
14507           output_objdir=.
14508           libname=conftest
14509           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14510           allow_undefined_flag_CXX=
14511           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14512   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14513   ac_status=$?
14514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14515   test $ac_status = 0; }
14516           then
14517             lt_cv_archive_cmds_need_lc_CXX=no
14518           else
14519             lt_cv_archive_cmds_need_lc_CXX=yes
14520           fi
14521           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14522         else
14523           cat conftest.err 1>&5
14524         fi
14525         $RM conftest*
14526
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14529 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14530       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14531       ;;
14532     esac
14533   fi
14534   ;;
14535 esac
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14599 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14600
14601 library_names_spec=
14602 libname_spec='lib$name'
14603 soname_spec=
14604 shrext_cmds=".so"
14605 postinstall_cmds=
14606 postuninstall_cmds=
14607 finish_cmds=
14608 finish_eval=
14609 shlibpath_var=
14610 shlibpath_overrides_runpath=unknown
14611 version_type=none
14612 dynamic_linker="$host_os ld.so"
14613 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14614 need_lib_prefix=unknown
14615 hardcode_into_libs=no
14616
14617 # when you set need_version to no, make sure it does not cause -set_version
14618 # flags to be left without arguments
14619 need_version=unknown
14620
14621 case $host_os in
14622 aix3*)
14623   version_type=linux # correct to gnu/linux during the next big refactor
14624   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14625   shlibpath_var=LIBPATH
14626
14627   # AIX 3 has no versioning support, so we append a major version to the name.
14628   soname_spec='${libname}${release}${shared_ext}$major'
14629   ;;
14630
14631 aix[4-9]*)
14632   version_type=linux # correct to gnu/linux during the next big refactor
14633   need_lib_prefix=no
14634   need_version=no
14635   hardcode_into_libs=yes
14636   if test "$host_cpu" = ia64; then
14637     # AIX 5 supports IA64
14638     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14639     shlibpath_var=LD_LIBRARY_PATH
14640   else
14641     # With GCC up to 2.95.x, collect2 would create an import file
14642     # for dependence libraries.  The import file would start with
14643     # the line `#! .'.  This would cause the generated library to
14644     # depend on `.', always an invalid library.  This was fixed in
14645     # development snapshots of GCC prior to 3.0.
14646     case $host_os in
14647       aix4 | aix4.[01] | aix4.[01].*)
14648       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14649            echo ' yes '
14650            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14651         :
14652       else
14653         can_build_shared=no
14654       fi
14655       ;;
14656     esac
14657     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14658     # soname into executable. Probably we can add versioning support to
14659     # collect2, so additional links can be useful in future.
14660     if test "$aix_use_runtimelinking" = yes; then
14661       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14662       # instead of lib<name>.a to let people know that these are not
14663       # typical AIX shared libraries.
14664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665     else
14666       # We preserve .a as extension for shared libraries through AIX4.2
14667       # and later when we are not doing run time linking.
14668       library_names_spec='${libname}${release}.a $libname.a'
14669       soname_spec='${libname}${release}${shared_ext}$major'
14670     fi
14671     shlibpath_var=LIBPATH
14672   fi
14673   ;;
14674
14675 amigaos*)
14676   case $host_cpu in
14677   powerpc)
14678     # Since July 2007 AmigaOS4 officially supports .so libraries.
14679     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681     ;;
14682   m68k)
14683     library_names_spec='$libname.ixlibrary $libname.a'
14684     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14685     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'
14686     ;;
14687   esac
14688   ;;
14689
14690 beos*)
14691   library_names_spec='${libname}${shared_ext}'
14692   dynamic_linker="$host_os ld.so"
14693   shlibpath_var=LIBRARY_PATH
14694   ;;
14695
14696 bsdi[45]*)
14697   version_type=linux # correct to gnu/linux during the next big refactor
14698   need_version=no
14699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700   soname_spec='${libname}${release}${shared_ext}$major'
14701   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14702   shlibpath_var=LD_LIBRARY_PATH
14703   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14704   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14705   # the default ld.so.conf also contains /usr/contrib/lib and
14706   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14707   # libtool to hard-code these into programs
14708   ;;
14709
14710 cygwin* | mingw* | pw32* | cegcc*)
14711   version_type=windows
14712   shrext_cmds=".dll"
14713   need_version=no
14714   need_lib_prefix=no
14715
14716   case $GCC,$cc_basename in
14717   yes,*)
14718     # gcc
14719     library_names_spec='$libname.dll.a'
14720     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14721     postinstall_cmds='base_file=`basename \${file}`~
14722       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14723       dldir=$destdir/`dirname \$dlpath`~
14724       test -d \$dldir || mkdir -p \$dldir~
14725       $install_prog $dir/$dlname \$dldir/$dlname~
14726       chmod a+x \$dldir/$dlname~
14727       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14728         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14729       fi'
14730     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14731       dlpath=$dir/\$dldll~
14732        $RM \$dlpath'
14733     shlibpath_overrides_runpath=yes
14734
14735     case $host_os in
14736     cygwin*)
14737       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14738       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14739
14740       ;;
14741     mingw* | cegcc*)
14742       # MinGW DLLs use traditional 'lib' prefix
14743       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14744       ;;
14745     pw32*)
14746       # pw32 DLLs use 'pw' prefix rather than 'lib'
14747       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14748       ;;
14749     esac
14750     dynamic_linker='Win32 ld.exe'
14751     ;;
14752
14753   *,cl*)
14754     # Native MSVC
14755     libname_spec='$name'
14756     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14757     library_names_spec='${libname}.dll.lib'
14758
14759     case $build_os in
14760     mingw*)
14761       sys_lib_search_path_spec=
14762       lt_save_ifs=$IFS
14763       IFS=';'
14764       for lt_path in $LIB
14765       do
14766         IFS=$lt_save_ifs
14767         # Let DOS variable expansion print the short 8.3 style file name.
14768         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14769         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14770       done
14771       IFS=$lt_save_ifs
14772       # Convert to MSYS style.
14773       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14774       ;;
14775     cygwin*)
14776       # Convert to unix form, then to dos form, then back to unix form
14777       # but this time dos style (no spaces!) so that the unix form looks
14778       # like /cygdrive/c/PROGRA~1:/cygdr...
14779       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14780       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14781       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14782       ;;
14783     *)
14784       sys_lib_search_path_spec="$LIB"
14785       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14786         # It is most probably a Windows format PATH.
14787         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14788       else
14789         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14790       fi
14791       # FIXME: find the short name or the path components, as spaces are
14792       # common. (e.g. "Program Files" -> "PROGRA~1")
14793       ;;
14794     esac
14795
14796     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14797     postinstall_cmds='base_file=`basename \${file}`~
14798       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14799       dldir=$destdir/`dirname \$dlpath`~
14800       test -d \$dldir || mkdir -p \$dldir~
14801       $install_prog $dir/$dlname \$dldir/$dlname'
14802     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14803       dlpath=$dir/\$dldll~
14804        $RM \$dlpath'
14805     shlibpath_overrides_runpath=yes
14806     dynamic_linker='Win32 link.exe'
14807     ;;
14808
14809   *)
14810     # Assume MSVC wrapper
14811     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14812     dynamic_linker='Win32 ld.exe'
14813     ;;
14814   esac
14815   # FIXME: first we should search . and the directory the executable is in
14816   shlibpath_var=PATH
14817   ;;
14818
14819 darwin* | rhapsody*)
14820   dynamic_linker="$host_os dyld"
14821   version_type=darwin
14822   need_lib_prefix=no
14823   need_version=no
14824   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14825   soname_spec='${libname}${release}${major}$shared_ext'
14826   shlibpath_overrides_runpath=yes
14827   shlibpath_var=DYLD_LIBRARY_PATH
14828   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14829
14830   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14831   ;;
14832
14833 dgux*)
14834   version_type=linux # correct to gnu/linux during the next big refactor
14835   need_lib_prefix=no
14836   need_version=no
14837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14838   soname_spec='${libname}${release}${shared_ext}$major'
14839   shlibpath_var=LD_LIBRARY_PATH
14840   ;;
14841
14842 freebsd* | dragonfly*)
14843   # DragonFly does not have aout.  When/if they implement a new
14844   # versioning mechanism, adjust this.
14845   if test -x /usr/bin/objformat; then
14846     objformat=`/usr/bin/objformat`
14847   else
14848     case $host_os in
14849     freebsd[23].*) objformat=aout ;;
14850     *) objformat=elf ;;
14851     esac
14852   fi
14853   version_type=freebsd-$objformat
14854   case $version_type in
14855     freebsd-elf*)
14856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14857       need_version=no
14858       need_lib_prefix=no
14859       ;;
14860     freebsd-*)
14861       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14862       need_version=yes
14863       ;;
14864   esac
14865   shlibpath_var=LD_LIBRARY_PATH
14866   case $host_os in
14867   freebsd2.*)
14868     shlibpath_overrides_runpath=yes
14869     ;;
14870   freebsd3.[01]* | freebsdelf3.[01]*)
14871     shlibpath_overrides_runpath=yes
14872     hardcode_into_libs=yes
14873     ;;
14874   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14875   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14876     shlibpath_overrides_runpath=no
14877     hardcode_into_libs=yes
14878     ;;
14879   *) # from 4.6 on, and DragonFly
14880     shlibpath_overrides_runpath=yes
14881     hardcode_into_libs=yes
14882     ;;
14883   esac
14884   ;;
14885
14886 gnu*)
14887   version_type=linux # correct to gnu/linux during the next big refactor
14888   need_lib_prefix=no
14889   need_version=no
14890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14891   soname_spec='${libname}${release}${shared_ext}$major'
14892   shlibpath_var=LD_LIBRARY_PATH
14893   shlibpath_overrides_runpath=no
14894   hardcode_into_libs=yes
14895   ;;
14896
14897 haiku*)
14898   version_type=linux # correct to gnu/linux during the next big refactor
14899   need_lib_prefix=no
14900   need_version=no
14901   dynamic_linker="$host_os runtime_loader"
14902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14903   soname_spec='${libname}${release}${shared_ext}$major'
14904   shlibpath_var=LIBRARY_PATH
14905   shlibpath_overrides_runpath=yes
14906   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14907   hardcode_into_libs=yes
14908   ;;
14909
14910 hpux9* | hpux10* | hpux11*)
14911   # Give a soname corresponding to the major version so that dld.sl refuses to
14912   # link against other versions.
14913   version_type=sunos
14914   need_lib_prefix=no
14915   need_version=no
14916   case $host_cpu in
14917   ia64*)
14918     shrext_cmds='.so'
14919     hardcode_into_libs=yes
14920     dynamic_linker="$host_os dld.so"
14921     shlibpath_var=LD_LIBRARY_PATH
14922     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924     soname_spec='${libname}${release}${shared_ext}$major'
14925     if test "X$HPUX_IA64_MODE" = X32; then
14926       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14927     else
14928       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14929     fi
14930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14931     ;;
14932   hppa*64*)
14933     shrext_cmds='.sl'
14934     hardcode_into_libs=yes
14935     dynamic_linker="$host_os dld.sl"
14936     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14937     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939     soname_spec='${libname}${release}${shared_ext}$major'
14940     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14941     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14942     ;;
14943   *)
14944     shrext_cmds='.sl'
14945     dynamic_linker="$host_os dld.sl"
14946     shlibpath_var=SHLIB_PATH
14947     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949     soname_spec='${libname}${release}${shared_ext}$major'
14950     ;;
14951   esac
14952   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14953   postinstall_cmds='chmod 555 $lib'
14954   # or fails outright, so override atomically:
14955   install_override_mode=555
14956   ;;
14957
14958 interix[3-9]*)
14959   version_type=linux # correct to gnu/linux during the next big refactor
14960   need_lib_prefix=no
14961   need_version=no
14962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14963   soname_spec='${libname}${release}${shared_ext}$major'
14964   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14965   shlibpath_var=LD_LIBRARY_PATH
14966   shlibpath_overrides_runpath=no
14967   hardcode_into_libs=yes
14968   ;;
14969
14970 irix5* | irix6* | nonstopux*)
14971   case $host_os in
14972     nonstopux*) version_type=nonstopux ;;
14973     *)
14974         if test "$lt_cv_prog_gnu_ld" = yes; then
14975                 version_type=linux # correct to gnu/linux during the next big refactor
14976         else
14977                 version_type=irix
14978         fi ;;
14979   esac
14980   need_lib_prefix=no
14981   need_version=no
14982   soname_spec='${libname}${release}${shared_ext}$major'
14983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14984   case $host_os in
14985   irix5* | nonstopux*)
14986     libsuff= shlibsuff=
14987     ;;
14988   *)
14989     case $LD in # libtool.m4 will add one of these switches to LD
14990     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14991       libsuff= shlibsuff= libmagic=32-bit;;
14992     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14993       libsuff=32 shlibsuff=N32 libmagic=N32;;
14994     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14995       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14996     *) libsuff= shlibsuff= libmagic=never-match;;
14997     esac
14998     ;;
14999   esac
15000   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15001   shlibpath_overrides_runpath=no
15002   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15003   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15004   hardcode_into_libs=yes
15005   ;;
15006
15007 # No shared lib support for Linux oldld, aout, or coff.
15008 linux*oldld* | linux*aout* | linux*coff*)
15009   dynamic_linker=no
15010   ;;
15011
15012 # This must be glibc/ELF.
15013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15014   version_type=linux # correct to gnu/linux during the next big refactor
15015   need_lib_prefix=no
15016   need_version=no
15017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018   soname_spec='${libname}${release}${shared_ext}$major'
15019   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15020   shlibpath_var=LD_LIBRARY_PATH
15021   shlibpath_overrides_runpath=no
15022
15023   # Some binutils ld are patched to set DT_RUNPATH
15024   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15025   $as_echo_n "(cached) " >&6
15026 else
15027   lt_cv_shlibpath_overrides_runpath=no
15028     save_LDFLAGS=$LDFLAGS
15029     save_libdir=$libdir
15030     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15031          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h.  */
15034
15035 int
15036 main ()
15037 {
15038
15039   ;
15040   return 0;
15041 }
15042 _ACEOF
15043 if ac_fn_cxx_try_link "$LINENO"; then :
15044   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15045   lt_cv_shlibpath_overrides_runpath=yes
15046 fi
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext \
15049     conftest$ac_exeext conftest.$ac_ext
15050     LDFLAGS=$save_LDFLAGS
15051     libdir=$save_libdir
15052
15053 fi
15054
15055   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15056
15057   # This implies no fast_install, which is unacceptable.
15058   # Some rework will be needed to allow for fast_install
15059   # before this can be enabled.
15060   hardcode_into_libs=yes
15061
15062   # Append ld.so.conf contents to the search path
15063   if test -f /etc/ld.so.conf; then
15064     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' ' '`
15065     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15066   fi
15067
15068   # We used to test for /lib/ld.so.1 and disable shared libraries on
15069   # powerpc, because MkLinux only supported shared libraries with the
15070   # GNU dynamic linker.  Since this was broken with cross compilers,
15071   # most powerpc-linux boxes support dynamic linking these days and
15072   # people can always --disable-shared, the test was removed, and we
15073   # assume the GNU/Linux dynamic linker is in use.
15074   dynamic_linker='GNU/Linux ld.so'
15075   ;;
15076
15077 netbsdelf*-gnu)
15078   version_type=linux
15079   need_lib_prefix=no
15080   need_version=no
15081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15082   soname_spec='${libname}${release}${shared_ext}$major'
15083   shlibpath_var=LD_LIBRARY_PATH
15084   shlibpath_overrides_runpath=no
15085   hardcode_into_libs=yes
15086   dynamic_linker='NetBSD ld.elf_so'
15087   ;;
15088
15089 netbsd*)
15090   version_type=sunos
15091   need_lib_prefix=no
15092   need_version=no
15093   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15095     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15096     dynamic_linker='NetBSD (a.out) ld.so'
15097   else
15098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15099     soname_spec='${libname}${release}${shared_ext}$major'
15100     dynamic_linker='NetBSD ld.elf_so'
15101   fi
15102   shlibpath_var=LD_LIBRARY_PATH
15103   shlibpath_overrides_runpath=yes
15104   hardcode_into_libs=yes
15105   ;;
15106
15107 newsos6)
15108   version_type=linux # correct to gnu/linux during the next big refactor
15109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110   shlibpath_var=LD_LIBRARY_PATH
15111   shlibpath_overrides_runpath=yes
15112   ;;
15113
15114 *nto* | *qnx*)
15115   version_type=qnx
15116   need_lib_prefix=no
15117   need_version=no
15118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119   soname_spec='${libname}${release}${shared_ext}$major'
15120   shlibpath_var=LD_LIBRARY_PATH
15121   shlibpath_overrides_runpath=no
15122   hardcode_into_libs=yes
15123   dynamic_linker='ldqnx.so'
15124   ;;
15125
15126 openbsd*)
15127   version_type=sunos
15128   sys_lib_dlsearch_path_spec="/usr/lib"
15129   need_lib_prefix=no
15130   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15131   case $host_os in
15132     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15133     *)                          need_version=no  ;;
15134   esac
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15136   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15137   shlibpath_var=LD_LIBRARY_PATH
15138   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15139     case $host_os in
15140       openbsd2.[89] | openbsd2.[89].*)
15141         shlibpath_overrides_runpath=no
15142         ;;
15143       *)
15144         shlibpath_overrides_runpath=yes
15145         ;;
15146       esac
15147   else
15148     shlibpath_overrides_runpath=yes
15149   fi
15150   ;;
15151
15152 os2*)
15153   libname_spec='$name'
15154   shrext_cmds=".dll"
15155   need_lib_prefix=no
15156   library_names_spec='$libname${shared_ext} $libname.a'
15157   dynamic_linker='OS/2 ld.exe'
15158   shlibpath_var=LIBPATH
15159   ;;
15160
15161 osf3* | osf4* | osf5*)
15162   version_type=osf
15163   need_lib_prefix=no
15164   need_version=no
15165   soname_spec='${libname}${release}${shared_ext}$major'
15166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167   shlibpath_var=LD_LIBRARY_PATH
15168   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15169   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15170   ;;
15171
15172 rdos*)
15173   dynamic_linker=no
15174   ;;
15175
15176 solaris*)
15177   version_type=linux # correct to gnu/linux during the next big refactor
15178   need_lib_prefix=no
15179   need_version=no
15180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181   soname_spec='${libname}${release}${shared_ext}$major'
15182   shlibpath_var=LD_LIBRARY_PATH
15183   shlibpath_overrides_runpath=yes
15184   hardcode_into_libs=yes
15185   # ldd complains unless libraries are executable
15186   postinstall_cmds='chmod +x $lib'
15187   ;;
15188
15189 sunos4*)
15190   version_type=sunos
15191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15192   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15193   shlibpath_var=LD_LIBRARY_PATH
15194   shlibpath_overrides_runpath=yes
15195   if test "$with_gnu_ld" = yes; then
15196     need_lib_prefix=no
15197   fi
15198   need_version=yes
15199   ;;
15200
15201 sysv4 | sysv4.3*)
15202   version_type=linux # correct to gnu/linux during the next big refactor
15203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204   soname_spec='${libname}${release}${shared_ext}$major'
15205   shlibpath_var=LD_LIBRARY_PATH
15206   case $host_vendor in
15207     sni)
15208       shlibpath_overrides_runpath=no
15209       need_lib_prefix=no
15210       runpath_var=LD_RUN_PATH
15211       ;;
15212     siemens)
15213       need_lib_prefix=no
15214       ;;
15215     motorola)
15216       need_lib_prefix=no
15217       need_version=no
15218       shlibpath_overrides_runpath=no
15219       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15220       ;;
15221   esac
15222   ;;
15223
15224 sysv4*MP*)
15225   if test -d /usr/nec ;then
15226     version_type=linux # correct to gnu/linux during the next big refactor
15227     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15228     soname_spec='$libname${shared_ext}.$major'
15229     shlibpath_var=LD_LIBRARY_PATH
15230   fi
15231   ;;
15232
15233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15234   version_type=freebsd-elf
15235   need_lib_prefix=no
15236   need_version=no
15237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15238   soname_spec='${libname}${release}${shared_ext}$major'
15239   shlibpath_var=LD_LIBRARY_PATH
15240   shlibpath_overrides_runpath=yes
15241   hardcode_into_libs=yes
15242   if test "$with_gnu_ld" = yes; then
15243     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15244   else
15245     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15246     case $host_os in
15247       sco3.2v5*)
15248         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15249         ;;
15250     esac
15251   fi
15252   sys_lib_dlsearch_path_spec='/usr/lib'
15253   ;;
15254
15255 tpf*)
15256   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15257   version_type=linux # correct to gnu/linux during the next big refactor
15258   need_lib_prefix=no
15259   need_version=no
15260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261   shlibpath_var=LD_LIBRARY_PATH
15262   shlibpath_overrides_runpath=no
15263   hardcode_into_libs=yes
15264   ;;
15265
15266 uts4*)
15267   version_type=linux # correct to gnu/linux during the next big refactor
15268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269   soname_spec='${libname}${release}${shared_ext}$major'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   ;;
15272
15273 *)
15274   dynamic_linker=no
15275   ;;
15276 esac
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15278 $as_echo "$dynamic_linker" >&6; }
15279 test "$dynamic_linker" = no && can_build_shared=no
15280
15281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15282 if test "$GCC" = yes; then
15283   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15284 fi
15285
15286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15287   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15288 fi
15289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15290   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15291 fi
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15331 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15332 hardcode_action_CXX=
15333 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15334    test -n "$runpath_var_CXX" ||
15335    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15336
15337   # We can hardcode non-existent directories.
15338   if test "$hardcode_direct_CXX" != no &&
15339      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15340      # have to relink, otherwise we might link with an installed library
15341      # when we should be linking with a yet-to-be-installed one
15342      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15343      test "$hardcode_minus_L_CXX" != no; then
15344     # Linking always hardcodes the temporary library directory.
15345     hardcode_action_CXX=relink
15346   else
15347     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15348     hardcode_action_CXX=immediate
15349   fi
15350 else
15351   # We cannot hardcode anything, or else we can only hardcode existing
15352   # directories.
15353   hardcode_action_CXX=unsupported
15354 fi
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15356 $as_echo "$hardcode_action_CXX" >&6; }
15357
15358 if test "$hardcode_action_CXX" = relink ||
15359    test "$inherit_rpath_CXX" = yes; then
15360   # Fast installation is not supported
15361   enable_fast_install=no
15362 elif test "$shlibpath_overrides_runpath" = yes ||
15363      test "$enable_shared" = no; then
15364   # Fast installation is not necessary
15365   enable_fast_install=needless
15366 fi
15367
15368
15369
15370
15371
15372
15373
15374   fi # test -n "$compiler"
15375
15376   CC=$lt_save_CC
15377   CFLAGS=$lt_save_CFLAGS
15378   LDCXX=$LD
15379   LD=$lt_save_LD
15380   GCC=$lt_save_GCC
15381   with_gnu_ld=$lt_save_with_gnu_ld
15382   lt_cv_path_LDCXX=$lt_cv_path_LD
15383   lt_cv_path_LD=$lt_save_path_LD
15384   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15385   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15386 fi # test "$_lt_caught_CXX_error" != yes
15387
15388 ac_ext=cpp
15389 ac_cpp='$CXXCPP $CPPFLAGS'
15390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408         ac_config_commands="$ac_config_commands libtool"
15409
15410
15411
15412
15413 # Only expand once:
15414
15415
15416
15417
15418 # Check whether some low-level functions/files are available
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15421 $as_echo_n "checking for ANSI C header files... " >&6; }
15422 if ${ac_cv_header_stdc+:} false; then :
15423   $as_echo_n "(cached) " >&6
15424 else
15425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h.  */
15427 #include <stdlib.h>
15428 #include <stdarg.h>
15429 #include <string.h>
15430 #include <float.h>
15431
15432 int
15433 main ()
15434 {
15435
15436   ;
15437   return 0;
15438 }
15439 _ACEOF
15440 if ac_fn_cxx_try_compile "$LINENO"; then :
15441   ac_cv_header_stdc=yes
15442 else
15443   ac_cv_header_stdc=no
15444 fi
15445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446
15447 if test $ac_cv_header_stdc = yes; then
15448   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h.  */
15451 #include <string.h>
15452
15453 _ACEOF
15454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15455   $EGREP "memchr" >/dev/null 2>&1; then :
15456
15457 else
15458   ac_cv_header_stdc=no
15459 fi
15460 rm -f conftest*
15461
15462 fi
15463
15464 if test $ac_cv_header_stdc = yes; then
15465   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h.  */
15468 #include <stdlib.h>
15469
15470 _ACEOF
15471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15472   $EGREP "free" >/dev/null 2>&1; then :
15473
15474 else
15475   ac_cv_header_stdc=no
15476 fi
15477 rm -f conftest*
15478
15479 fi
15480
15481 if test $ac_cv_header_stdc = yes; then
15482   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15483   if test "$cross_compiling" = yes; then :
15484   :
15485 else
15486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h.  */
15488 #include <ctype.h>
15489 #include <stdlib.h>
15490 #if ((' ' & 0x0FF) == 0x020)
15491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15493 #else
15494 # define ISLOWER(c) \
15495                    (('a' <= (c) && (c) <= 'i') \
15496                      || ('j' <= (c) && (c) <= 'r') \
15497                      || ('s' <= (c) && (c) <= 'z'))
15498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15499 #endif
15500
15501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15502 int
15503 main ()
15504 {
15505   int i;
15506   for (i = 0; i < 256; i++)
15507     if (XOR (islower (i), ISLOWER (i))
15508         || toupper (i) != TOUPPER (i))
15509       return 2;
15510   return 0;
15511 }
15512 _ACEOF
15513 if ac_fn_cxx_try_run "$LINENO"; then :
15514
15515 else
15516   ac_cv_header_stdc=no
15517 fi
15518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519   conftest.$ac_objext conftest.beam conftest.$ac_ext
15520 fi
15521
15522 fi
15523 fi
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15525 $as_echo "$ac_cv_header_stdc" >&6; }
15526 if test $ac_cv_header_stdc = yes; then
15527
15528 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15529
15530 fi
15531
15532
15533 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15534 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15535 if test "x$ac_cv_header_stdint_h" = xyes; then :
15536   ac_cv_have_stdint_h=1
15537 else
15538   ac_cv_have_stdint_h=0
15539 fi
15540
15541
15542 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15543 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15544   ac_cv_have_systypes_h=1
15545 else
15546   ac_cv_have_systypes_h=0
15547 fi
15548
15549
15550 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15551 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15552   ac_cv_have_inttypes_h=1
15553 else
15554   ac_cv_have_inttypes_h=0
15555 fi
15556
15557
15558 for ac_header in unistd.h
15559 do :
15560   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15561 if test "x$ac_cv_header_unistd_h" = xyes; then :
15562   cat >>confdefs.h <<_ACEOF
15563 #define HAVE_UNISTD_H 1
15564 _ACEOF
15565  ac_cv_have_unistd_h=1
15566 else
15567   ac_cv_have_unistd_h=0
15568 fi
15569
15570 done
15571
15572 for ac_header in syscall.h
15573 do :
15574   ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15575 if test "x$ac_cv_header_syscall_h" = xyes; then :
15576   cat >>confdefs.h <<_ACEOF
15577 #define HAVE_SYSCALL_H 1
15578 _ACEOF
15579
15580 fi
15581
15582 done
15583
15584 for ac_header in sys/syscall.h
15585 do :
15586   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15587 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15588   cat >>confdefs.h <<_ACEOF
15589 #define HAVE_SYS_SYSCALL_H 1
15590 _ACEOF
15591
15592 fi
15593
15594 done
15595
15596 # For backtrace with glibc.
15597 for ac_header in execinfo.h
15598 do :
15599   ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15600 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15601   cat >>confdefs.h <<_ACEOF
15602 #define HAVE_EXECINFO_H 1
15603 _ACEOF
15604
15605 fi
15606
15607 done
15608
15609 # For backtrace with libunwind.
15610 for ac_header in libunwind.h
15611 do :
15612   ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15613 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15614   cat >>confdefs.h <<_ACEOF
15615 #define HAVE_LIBUNWIND_H 1
15616 _ACEOF
15617  ac_cv_have_libunwind_h=1
15618 else
15619   ac_cv_have_libunwind_h=0
15620 fi
15621
15622 done
15623
15624 for ac_header in ucontext.h
15625 do :
15626   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15627 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15628   cat >>confdefs.h <<_ACEOF
15629 #define HAVE_UCONTEXT_H 1
15630 _ACEOF
15631
15632 fi
15633
15634 done
15635
15636 for ac_header in sys/utsname.h
15637 do :
15638   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15639 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15640   cat >>confdefs.h <<_ACEOF
15641 #define HAVE_SYS_UTSNAME_H 1
15642 _ACEOF
15643
15644 fi
15645
15646 done
15647
15648 for ac_header in pwd.h
15649 do :
15650   ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15651 if test "x$ac_cv_header_pwd_h" = xyes; then :
15652   cat >>confdefs.h <<_ACEOF
15653 #define HAVE_PWD_H 1
15654 _ACEOF
15655
15656 fi
15657
15658 done
15659
15660 for ac_header in syslog.h
15661 do :
15662   ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15663 if test "x$ac_cv_header_syslog_h" = xyes; then :
15664   cat >>confdefs.h <<_ACEOF
15665 #define HAVE_SYSLOG_H 1
15666 _ACEOF
15667
15668 fi
15669
15670 done
15671
15672 for ac_header in sys/time.h
15673 do :
15674   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15675 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15676   cat >>confdefs.h <<_ACEOF
15677 #define HAVE_SYS_TIME_H 1
15678 _ACEOF
15679
15680 fi
15681
15682 done
15683
15684 for ac_header in glob.h
15685 do :
15686   ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15687 if test "x$ac_cv_header_glob_h" = xyes; then :
15688   cat >>confdefs.h <<_ACEOF
15689 #define HAVE_GLOB_H 1
15690 _ACEOF
15691
15692 fi
15693
15694 done
15695
15696 # For backtrace with gcc.
15697 for ac_header in unwind.h
15698 do :
15699   ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15700 if test "x$ac_cv_header_unwind_h" = xyes; then :
15701   cat >>confdefs.h <<_ACEOF
15702 #define HAVE_UNWIND_H 1
15703 _ACEOF
15704
15705 fi
15706
15707 done
15708
15709
15710 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15711 if test "x$ac_cv_header_windows_h" = xyes; then :
15712   ac_cv_have_windows_h=1
15713 else
15714   ac_cv_have_windows_h=0
15715 fi
15716
15717
15718 if test x"$ac_cv_have_windows_h" = x"1"; then
15719   MINGW_CFLAGS=-Isrc/windows
15720 fi
15721
15722 # The cast to long int works around a bug in the HP C Compiler
15723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15725 # This bug is HP SR number 8606223364.
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15727 $as_echo_n "checking size of void *... " >&6; }
15728 if ${ac_cv_sizeof_void_p+:} false; then :
15729   $as_echo_n "(cached) " >&6
15730 else
15731   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15732
15733 else
15734   if test "$ac_cv_type_void_p" = yes; then
15735      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15737 as_fn_error 77 "cannot compute sizeof (void *)
15738 See \`config.log' for more details" "$LINENO" 5; }
15739    else
15740      ac_cv_sizeof_void_p=0
15741    fi
15742 fi
15743
15744 fi
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15746 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15747
15748
15749
15750 cat >>confdefs.h <<_ACEOF
15751 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15752 _ACEOF
15753
15754
15755
15756 # These are the types I need.  We look for them in either stdint.h,
15757 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15758 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15759 if test "x$ac_cv_type_uint16_t" = xyes; then :
15760   ac_cv_have_uint16_t=1
15761 else
15762   ac_cv_have_uint16_t=0
15763 fi
15764
15765 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15766 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15767   ac_cv_have_u_int16_t=1
15768 else
15769   ac_cv_have_u_int16_t=0
15770 fi
15771
15772 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15773 if test "x$ac_cv_type___uint16" = xyes; then :
15774   ac_cv_have___uint16=1
15775 else
15776   ac_cv_have___uint16=0
15777 fi
15778
15779
15780 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15781 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15782
15783 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15784
15785 fi
15786
15787 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
15788 if test "x$ac_cv_func_sigaction" = xyes; then :
15789
15790 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
15791
15792 fi
15793
15794 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15795 if test "x$ac_cv_func_dladdr" = xyes; then :
15796
15797 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15798
15799 fi
15800
15801 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15802 if test "x$ac_cv_func_fcntl" = xyes; then :
15803
15804 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15805
15806 fi
15807
15808 ac_fn_cxx_check_func "$LINENO" "pread" "ac_cv_func_pread"
15809 if test "x$ac_cv_func_pread" = xyes; then :
15810
15811 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
15812
15813 fi
15814
15815 ac_fn_cxx_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
15816 if test "x$ac_cv_func_pwrite" = xyes; then :
15817
15818 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
15819
15820 fi
15821
15822
15823
15824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15825 $as_echo_n "checking for __attribute__... " >&6; }
15826   if ${ac_cv___attribute__+:} false; then :
15827   $as_echo_n "(cached) " >&6
15828 else
15829
15830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h.  */
15832 #include <stdlib.h>
15833        static void foo(void) __attribute__ ((unused));
15834        void foo(void) { exit(1); }
15835 int
15836 main ()
15837 {
15838
15839   ;
15840   return 0;
15841 }
15842 _ACEOF
15843 if ac_fn_cxx_try_compile "$LINENO"; then :
15844   ac_cv___attribute__=yes
15845 else
15846   ac_cv___attribute__=no
15847
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 fi
15851
15852   if test "$ac_cv___attribute__" = "yes"; then
15853
15854 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15855
15856   fi
15857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15858 $as_echo "$ac_cv___attribute__" >&6; }
15859
15860 # We only care about these two attributes.
15861 if test x"$ac_cv___attribute__" = x"yes"; then
15862   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15863   ac_cv___attribute___noinline="__attribute__ ((noinline))"
15864   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15865 else
15866   ac_cv___attribute___noreturn=
15867   ac_cv___attribute___noinline=
15868   ac_cv___attribute___printf_4_5=
15869 fi
15870
15871
15872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15873 $as_echo_n "checking for __builtin_expect... " >&6; }
15874   if ${ac_cv___builtin_expect+:} false; then :
15875   $as_echo_n "(cached) " >&6
15876 else
15877
15878     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h.  */
15880 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15881 int
15882 main ()
15883 {
15884
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 if ac_fn_cxx_try_compile "$LINENO"; then :
15890   ac_cv___builtin_expect=yes
15891 else
15892   ac_cv___builtin_expect=no
15893
15894 fi
15895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896 fi
15897
15898   if test "$ac_cv___builtin_expect" = "yes"; then
15899
15900 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15901
15902   fi
15903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15904 $as_echo "$ac_cv___builtin_expect" >&6; }
15905
15906 if test x"$ac_cv___builtin_expect" = x"yes"; then
15907   ac_cv_have___builtin_expect=1
15908 else
15909   ac_cv_have___builtin_expect=0
15910 fi
15911
15912
15913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15914 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15915   if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15916   $as_echo_n "(cached) " >&6
15917 else
15918
15919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h.  */
15921
15922 int
15923 main ()
15924 {
15925 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15926   ;
15927   return 0;
15928 }
15929 _ACEOF
15930 if ac_fn_cxx_try_link "$LINENO"; then :
15931   ac_cv___sync_val_compare_and_swap=yes
15932 else
15933   ac_cv___sync_val_compare_and_swap=no
15934
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext \
15937     conftest$ac_exeext conftest.$ac_ext
15938 fi
15939
15940   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15941
15942 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15943
15944   fi
15945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15946 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15947
15948
15949 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15950 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15951 # Check whether --enable-frame_pointers was given.
15952 if test "${enable_frame_pointers+set}" = set; then :
15953   enableval=$enable_frame_pointers;
15954 else
15955   enable_frame_pointers=no
15956 fi
15957
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h.  */
15960
15961 int
15962 main ()
15963 {
15964 return __x86_64__ == 1 ? 0 : 1
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_cxx_try_compile "$LINENO"; then :
15970   is_x86_64=yes
15971 else
15972   is_x86_64=no
15973 fi
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975  if test "$enable_frame_pointers" = yes; then
15976   ENABLE_FRAME_POINTERS_TRUE=
15977   ENABLE_FRAME_POINTERS_FALSE='#'
15978 else
15979   ENABLE_FRAME_POINTERS_TRUE='#'
15980   ENABLE_FRAME_POINTERS_FALSE=
15981 fi
15982
15983  if test "$is_x86_64" = yes; then
15984   X86_64_TRUE=
15985   X86_64_FALSE='#'
15986 else
15987   X86_64_TRUE='#'
15988   X86_64_FALSE=
15989 fi
15990
15991
15992 # Check whether --enable-rtti was given.
15993 if test "${enable_rtti+set}" = set; then :
15994   enableval=$enable_rtti;
15995 fi
15996
15997  if test x"$enable_rtti" = x"no"; then
15998   DISABLE_RTTI_TRUE=
15999   DISABLE_RTTI_FALSE='#'
16000 else
16001   DISABLE_RTTI_TRUE='#'
16002   DISABLE_RTTI_FALSE=
16003 fi
16004
16005 if test x"$enable_rtti" = x"no"; then
16006
16007 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
16008
16009 fi
16010
16011 # Some of the code in this directory depends on pthreads
16012
16013
16014
16015 ac_ext=c
16016 ac_cpp='$CPP $CPPFLAGS'
16017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16020
16021 acx_pthread_ok=no
16022
16023 # We used to check for pthread.h first, but this fails if pthread.h
16024 # requires special compiler flags (e.g. on True64 or Sequent).
16025 # It gets checked for in the link test anyway.
16026
16027 # First of all, check if the user has set any of the PTHREAD_LIBS,
16028 # etcetera environment variables, and if threads linking works using
16029 # them:
16030 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16031         save_CFLAGS="$CFLAGS"
16032         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16033         save_LIBS="$LIBS"
16034         LIBS="$PTHREAD_LIBS $LIBS"
16035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16036 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16037         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h.  */
16039
16040 /* Override any GCC internal prototype to avoid an error.
16041    Use char because int might match the return type of a GCC
16042    builtin and then its argument prototype would still apply.  */
16043 #ifdef __cplusplus
16044 extern "C"
16045 #endif
16046 char pthread_join ();
16047 int
16048 main ()
16049 {
16050 return pthread_join ();
16051   ;
16052   return 0;
16053 }
16054 _ACEOF
16055 if ac_fn_c_try_link "$LINENO"; then :
16056   acx_pthread_ok=yes
16057 fi
16058 rm -f core conftest.err conftest.$ac_objext \
16059     conftest$ac_exeext conftest.$ac_ext
16060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16061 $as_echo "$acx_pthread_ok" >&6; }
16062         if test x"$acx_pthread_ok" = xno; then
16063                 PTHREAD_LIBS=""
16064                 PTHREAD_CFLAGS=""
16065         fi
16066         LIBS="$save_LIBS"
16067         CFLAGS="$save_CFLAGS"
16068 fi
16069
16070 # We must check for the threads library under a number of different
16071 # names; the ordering is very important because some systems
16072 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16073 # libraries is broken (non-POSIX).
16074
16075 # Create a list of thread flags to try.  Items starting with a "-" are
16076 # C compiler flags, and other items are library names, except for "none"
16077 # which indicates that we try without any flags at all, and "pthread-config"
16078 # which is a program returning the flags for the Pth emulation library.
16079
16080 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16081
16082 # The ordering *is* (sometimes) important.  Some notes on the
16083 # individual items follow:
16084
16085 # pthreads: AIX (must check this before -lpthread)
16086 # none: in case threads are in libc; should be tried before -Kthread and
16087 #       other compiler flags to prevent continual compiler warnings
16088 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16089 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16090 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16091 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16092 # -pthreads: Solaris/gcc
16093 # -mthreads: Mingw32/gcc, Lynx/gcc
16094 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16095 #      doesn't hurt to check since this sometimes defines pthreads too;
16096 #      also defines -D_REENTRANT)
16097 #      ... -mt is also the pthreads flag for HP/aCC
16098 # pthread: Linux, etcetera
16099 # --thread-safe: KAI C++
16100 # pthread-config: use pthread-config program (for GNU Pth library)
16101
16102 case "${host_cpu}-${host_os}" in
16103         *solaris*)
16104
16105         # On Solaris (at least, for some versions), libc contains stubbed
16106         # (non-functional) versions of the pthreads routines, so link-based
16107         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16108         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16109         # a function called by this macro, so we could check for that, but
16110         # who knows whether they'll stub that too in a future libc.)  So,
16111         # we'll just look for -pthreads and -lpthread first:
16112
16113         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16114         ;;
16115 esac
16116
16117 if test x"$acx_pthread_ok" = xno; then
16118 for flag in $acx_pthread_flags; do
16119
16120         case $flag in
16121                 none)
16122                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16123 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16124                 ;;
16125
16126                 -*)
16127                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16128 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16129                 PTHREAD_CFLAGS="$flag"
16130                 ;;
16131
16132                 pthread-config)
16133                 # Extract the first word of "pthread-config", so it can be a program name with args.
16134 set dummy pthread-config; ac_word=$2
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16136 $as_echo_n "checking for $ac_word... " >&6; }
16137 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16138   $as_echo_n "(cached) " >&6
16139 else
16140   if test -n "$acx_pthread_config"; then
16141   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16142 else
16143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144 for as_dir in $PATH
16145 do
16146   IFS=$as_save_IFS
16147   test -z "$as_dir" && as_dir=.
16148     for ac_exec_ext in '' $ac_executable_extensions; do
16149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16150     ac_cv_prog_acx_pthread_config="yes"
16151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16152     break 2
16153   fi
16154 done
16155   done
16156 IFS=$as_save_IFS
16157
16158   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16159 fi
16160 fi
16161 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16162 if test -n "$acx_pthread_config"; then
16163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16164 $as_echo "$acx_pthread_config" >&6; }
16165 else
16166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167 $as_echo "no" >&6; }
16168 fi
16169
16170
16171                 if test x"$acx_pthread_config" = xno; then continue; fi
16172                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16173                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16174                 ;;
16175
16176                 *)
16177                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16178 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16179                 PTHREAD_LIBS="-l$flag"
16180                 ;;
16181         esac
16182
16183         save_LIBS="$LIBS"
16184         save_CFLAGS="$CFLAGS"
16185         LIBS="$PTHREAD_LIBS $LIBS"
16186         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16187
16188         # Check for various functions.  We must include pthread.h,
16189         # since some functions may be macros.  (On the Sequent, we
16190         # need a special flag -Kthread to make this header compile.)
16191         # We check for pthread_join because it is in -lpthread on IRIX
16192         # while pthread_create is in libc.  We check for pthread_attr_init
16193         # due to DEC craziness with -lpthreads.  We check for
16194         # pthread_cleanup_push because it is one of the few pthread
16195         # functions on Solaris that doesn't have a non-functional libc stub.
16196         # We try pthread_create on general principles.
16197         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h.  */
16199 #include <pthread.h>
16200 int
16201 main ()
16202 {
16203 pthread_t th; pthread_join(th, 0);
16204                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16205                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16206   ;
16207   return 0;
16208 }
16209 _ACEOF
16210 if ac_fn_c_try_link "$LINENO"; then :
16211   acx_pthread_ok=yes
16212 fi
16213 rm -f core conftest.err conftest.$ac_objext \
16214     conftest$ac_exeext conftest.$ac_ext
16215
16216         LIBS="$save_LIBS"
16217         CFLAGS="$save_CFLAGS"
16218
16219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16220 $as_echo "$acx_pthread_ok" >&6; }
16221         if test "x$acx_pthread_ok" = xyes; then
16222                 break;
16223         fi
16224
16225         PTHREAD_LIBS=""
16226         PTHREAD_CFLAGS=""
16227 done
16228 fi
16229
16230 # Various other checks:
16231 if test "x$acx_pthread_ok" = xyes; then
16232         save_LIBS="$LIBS"
16233         LIBS="$PTHREAD_LIBS $LIBS"
16234         save_CFLAGS="$CFLAGS"
16235         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16236
16237         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16239 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16240         attr_name=unknown
16241         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16242             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h.  */
16244 #include <pthread.h>
16245 int
16246 main ()
16247 {
16248 int attr=$attr; return attr;
16249   ;
16250   return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_link "$LINENO"; then :
16254   attr_name=$attr; break
16255 fi
16256 rm -f core conftest.err conftest.$ac_objext \
16257     conftest$ac_exeext conftest.$ac_ext
16258         done
16259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16260 $as_echo "$attr_name" >&6; }
16261         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16262
16263 cat >>confdefs.h <<_ACEOF
16264 #define PTHREAD_CREATE_JOINABLE $attr_name
16265 _ACEOF
16266
16267         fi
16268
16269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16270 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16271         flag=no
16272         case "${host_cpu}-${host_os}" in
16273             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16274             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16275         esac
16276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16277 $as_echo "${flag}" >&6; }
16278         if test "x$flag" != xno; then
16279             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16280         fi
16281
16282         LIBS="$save_LIBS"
16283         CFLAGS="$save_CFLAGS"
16284         # More AIX lossage: must compile with xlc_r or cc_r
16285         if test x"$GCC" != xyes; then
16286           for ac_prog in xlc_r cc_r
16287 do
16288   # Extract the first word of "$ac_prog", so it can be a program name with args.
16289 set dummy $ac_prog; ac_word=$2
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16291 $as_echo_n "checking for $ac_word... " >&6; }
16292 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16293   $as_echo_n "(cached) " >&6
16294 else
16295   if test -n "$PTHREAD_CC"; then
16296   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16297 else
16298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16299 for as_dir in $PATH
16300 do
16301   IFS=$as_save_IFS
16302   test -z "$as_dir" && as_dir=.
16303     for ac_exec_ext in '' $ac_executable_extensions; do
16304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16305     ac_cv_prog_PTHREAD_CC="$ac_prog"
16306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16307     break 2
16308   fi
16309 done
16310   done
16311 IFS=$as_save_IFS
16312
16313 fi
16314 fi
16315 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16316 if test -n "$PTHREAD_CC"; then
16317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16318 $as_echo "$PTHREAD_CC" >&6; }
16319 else
16320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16322 fi
16323
16324
16325   test -n "$PTHREAD_CC" && break
16326 done
16327 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16328
16329         else
16330           PTHREAD_CC=$CC
16331         fi
16332
16333         # The next part tries to detect GCC inconsistency with -shared on some
16334         # architectures and systems. The problem is that in certain
16335         # configurations, when -shared is specified, GCC "forgets" to
16336         # internally use various flags which are still necessary.
16337
16338         #
16339         # Prepare the flags
16340         #
16341         save_CFLAGS="$CFLAGS"
16342         save_LIBS="$LIBS"
16343         save_CC="$CC"
16344
16345         # Try with the flags determined by the earlier checks.
16346         #
16347         # -Wl,-z,defs forces link-time symbol resolution, so that the
16348         # linking checks with -shared actually have any value
16349         #
16350         # FIXME: -fPIC is required for -shared on many architectures,
16351         # so we specify it here, but the right way would probably be to
16352         # properly detect whether it is actually required.
16353         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16354         LIBS="$PTHREAD_LIBS $LIBS"
16355         CC="$PTHREAD_CC"
16356
16357         # In order not to create several levels of indentation, we test
16358         # the value of "$done" until we find the cure or run out of ideas.
16359         done="no"
16360
16361         # First, make sure the CFLAGS we added are actually accepted by our
16362         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
16363         # then we can't do this test.
16364         if test x"$done" = xno; then
16365            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16366 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16367            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h.  */
16369
16370 int
16371 main ()
16372 {
16373
16374   ;
16375   return 0;
16376 }
16377 _ACEOF
16378 if ac_fn_c_try_link "$LINENO"; then :
16379
16380 else
16381   done=yes
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext \
16384     conftest$ac_exeext conftest.$ac_ext
16385
16386            if test "x$done" = xyes ; then
16387               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16389            else
16390               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391 $as_echo "yes" >&6; }
16392            fi
16393         fi
16394
16395         if test x"$done" = xno; then
16396            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16397 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16398            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h.  */
16400 #include <pthread.h>
16401 int
16402 main ()
16403 {
16404 pthread_t th; pthread_join(th, 0);
16405               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16406               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 if ac_fn_c_try_link "$LINENO"; then :
16412   done=yes
16413 fi
16414 rm -f core conftest.err conftest.$ac_objext \
16415     conftest$ac_exeext conftest.$ac_ext
16416
16417            if test "x$done" = xyes; then
16418               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16419 $as_echo "yes" >&6; }
16420            else
16421               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16423            fi
16424         fi
16425
16426         #
16427         # Linux gcc on some architectures such as mips/mipsel forgets
16428         # about -lpthread
16429         #
16430         if test x"$done" = xno; then
16431            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16432 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16433            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16434            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h.  */
16436 #include <pthread.h>
16437 int
16438 main ()
16439 {
16440 pthread_t th; pthread_join(th, 0);
16441               pthread_attr_init(0); pthread_cleanup_push(0, 0);
16442               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 if ac_fn_c_try_link "$LINENO"; then :
16448   done=yes
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext \
16451     conftest$ac_exeext conftest.$ac_ext
16452
16453            if test "x$done" = xyes; then
16454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16455 $as_echo "yes" >&6; }
16456               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16457            else
16458               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16460            fi
16461         fi
16462         #
16463         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16464         #
16465         if test x"$done" = xno; then
16466            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16467 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16468            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16469            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h.  */
16471 #include <pthread.h>
16472 int
16473 main ()
16474 {
16475 pthread_t th; pthread_join(th, 0);
16476                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16477                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16478   ;
16479   return 0;
16480 }
16481 _ACEOF
16482 if ac_fn_c_try_link "$LINENO"; then :
16483   done=yes
16484 fi
16485 rm -f core conftest.err conftest.$ac_objext \
16486     conftest$ac_exeext conftest.$ac_ext
16487
16488            if test "x$done" = xyes; then
16489               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16490 $as_echo "yes" >&6; }
16491               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16492            else
16493               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16495            fi
16496         fi
16497         if test x"$done" = xno; then
16498            # OK, we have run out of ideas
16499            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16500 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16501
16502            # so it's not safe to assume that we may use pthreads
16503            acx_pthread_ok=no
16504         fi
16505
16506         CFLAGS="$save_CFLAGS"
16507         LIBS="$save_LIBS"
16508         CC="$save_CC"
16509 else
16510         PTHREAD_CC="$CC"
16511 fi
16512
16513
16514
16515
16516
16517 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16518 if test x"$acx_pthread_ok" = xyes; then
16519
16520 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16521
16522         :
16523 else
16524         acx_pthread_ok=no
16525
16526 fi
16527 ac_ext=cpp
16528 ac_cpp='$CXXCPP $CPPFLAGS'
16529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16532
16533
16534 if test x"$acx_pthread_ok" = x"yes"; then
16535   # To make libglog depend on libpthread on Linux, we need to add
16536   # -lpthread in addition to -pthread.
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16538 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16539 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16540   $as_echo_n "(cached) " >&6
16541 else
16542   ac_check_lib_save_LIBS=$LIBS
16543 LIBS="-lpthread  $LIBS"
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h.  */
16546
16547 /* Override any GCC internal prototype to avoid an error.
16548    Use char because int might match the return type of a GCC
16549    builtin and then its argument prototype would still apply.  */
16550 #ifdef __cplusplus
16551 extern "C"
16552 #endif
16553 char pthread_self ();
16554 int
16555 main ()
16556 {
16557 return pthread_self ();
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_cxx_try_link "$LINENO"; then :
16563   ac_cv_lib_pthread_pthread_self=yes
16564 else
16565   ac_cv_lib_pthread_pthread_self=no
16566 fi
16567 rm -f core conftest.err conftest.$ac_objext \
16568     conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16572 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16573 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16574   cat >>confdefs.h <<_ACEOF
16575 #define HAVE_LIBPTHREAD 1
16576 _ACEOF
16577
16578   LIBS="-lpthread $LIBS"
16579
16580 fi
16581
16582 fi
16583
16584 # Check if there is google-gflags library installed.
16585 SAVE_CFLAGS="$CFLAGS"
16586 SAVE_LIBS="$LIBS"
16587
16588 # Check whether --with-gflags was given.
16589 if test "${with_gflags+set}" = set; then :
16590   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16591   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16592   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16593   LIBS="$LIBS $GFLAGS_LIBS"
16594
16595 fi
16596
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16598 $as_echo_n "checking for main in -lgflags... " >&6; }
16599 if ${ac_cv_lib_gflags_main+:} false; then :
16600   $as_echo_n "(cached) " >&6
16601 else
16602   ac_check_lib_save_LIBS=$LIBS
16603 LIBS="-lgflags  $LIBS"
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h.  */
16606
16607
16608 int
16609 main ()
16610 {
16611 return main ();
16612   ;
16613   return 0;
16614 }
16615 _ACEOF
16616 if ac_fn_cxx_try_link "$LINENO"; then :
16617   ac_cv_lib_gflags_main=yes
16618 else
16619   ac_cv_lib_gflags_main=no
16620 fi
16621 rm -f core conftest.err conftest.$ac_objext \
16622     conftest$ac_exeext conftest.$ac_ext
16623 LIBS=$ac_check_lib_save_LIBS
16624 fi
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16626 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16627 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16628   ac_cv_have_libgflags=1
16629 else
16630   ac_cv_have_libgflags=0
16631 fi
16632
16633 if test x"$ac_cv_have_libgflags" = x"1"; then
16634
16635 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16636
16637   if test x"$GFLAGS_LIBS" = x""; then
16638     GFLAGS_LIBS="-lgflags"
16639   fi
16640 else
16641   GFLAGS_CFLAGS=
16642   GFLAGS_LIBS=
16643 fi
16644 CFLAGS="$SAVE_CFLAGS"
16645 LIBS="$SAVE_LIBS"
16646
16647 # TODO(hamaji): Use official m4 macros provided by testing libraries
16648 #               once the m4 macro of Google Mocking becomes ready.
16649 # Check if there is Google Test library installed.
16650 # Extract the first word of "gtest-config", so it can be a program name with args.
16651 set dummy gtest-config; ac_word=$2
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16653 $as_echo_n "checking for $ac_word... " >&6; }
16654 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16655   $as_echo_n "(cached) " >&6
16656 else
16657   if test -n "$GTEST_CONFIG"; then
16658   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16659 else
16660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16661 for as_dir in $PATH
16662 do
16663   IFS=$as_save_IFS
16664   test -z "$as_dir" && as_dir=.
16665     for ac_exec_ext in '' $ac_executable_extensions; do
16666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16667     ac_cv_prog_GTEST_CONFIG=""yes""
16668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16669     break 2
16670   fi
16671 done
16672   done
16673 IFS=$as_save_IFS
16674
16675 fi
16676 fi
16677 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16678 if test -n "$GTEST_CONFIG"; then
16679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16680 $as_echo "$GTEST_CONFIG" >&6; }
16681 else
16682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16683 $as_echo "no" >&6; }
16684 fi
16685
16686
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtest" >&5
16688 $as_echo_n "checking for main in -lgtest... " >&6; }
16689 if ${ac_cv_lib_gtest_main+:} false; then :
16690   $as_echo_n "(cached) " >&6
16691 else
16692   ac_check_lib_save_LIBS=$LIBS
16693 LIBS="-lgtest  $LIBS"
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h.  */
16696
16697
16698 int
16699 main ()
16700 {
16701 return main ();
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 if ac_fn_cxx_try_link "$LINENO"; then :
16707   ac_cv_lib_gtest_main=yes
16708 else
16709   ac_cv_lib_gtest_main=no
16710 fi
16711 rm -f core conftest.err conftest.$ac_objext \
16712     conftest$ac_exeext conftest.$ac_ext
16713 LIBS=$ac_check_lib_save_LIBS
16714 fi
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtest_main" >&5
16716 $as_echo "$ac_cv_lib_gtest_main" >&6; }
16717 if test "x$ac_cv_lib_gtest_main" = xyes; then :
16718   have_gtest_lib="yes"
16719 fi
16720
16721 if test x"$GTEST_CONFIG" = "xyes" -a x"$have_gtest_lib" = "xyes"; then
16722   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16723   GTEST_LIBS=`gtest-config --ldflags --libs`
16724
16725 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16726
16727
16728   # Check if there is Google Mocking library installed.
16729   # Extract the first word of "gmock-config", so it can be a program name with args.
16730 set dummy gmock-config; ac_word=$2
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16732 $as_echo_n "checking for $ac_word... " >&6; }
16733 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16734   $as_echo_n "(cached) " >&6
16735 else
16736   if test -n "$GMOCK_CONFIG"; then
16737   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16738 else
16739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740 for as_dir in $PATH
16741 do
16742   IFS=$as_save_IFS
16743   test -z "$as_dir" && as_dir=.
16744     for ac_exec_ext in '' $ac_executable_extensions; do
16745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16746     ac_cv_prog_GMOCK_CONFIG=""yes""
16747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16748     break 2
16749   fi
16750 done
16751   done
16752 IFS=$as_save_IFS
16753
16754 fi
16755 fi
16756 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16757 if test -n "$GMOCK_CONFIG"; then
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16759 $as_echo "$GMOCK_CONFIG" >&6; }
16760 else
16761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16763 fi
16764
16765
16766   if test x"$GMOCK_CONFIG" = "xyes"; then
16767     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16768     GMOCK_LIBS=`gmock-config --ldflags --libs`
16769
16770 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16771
16772   else
16773     # We don't run test cases which use Google Mocking framework.
16774     GMOCK_CFLAGS=
16775     GMOCK_LIBS=
16776   fi
16777 else
16778   # We'll use src/googletest.h for our unittests.
16779   GTEST_CFLAGS=
16780   GTEST_LIBS=
16781 fi
16782  if test x"$GMOCK_CONFIG" = "xyes"; then
16783   HAVE_GMOCK_TRUE=
16784   HAVE_GMOCK_FALSE='#'
16785 else
16786   HAVE_GMOCK_TRUE='#'
16787   HAVE_GMOCK_FALSE=
16788 fi
16789
16790
16791 # We want to link in libunwind if it exists
16792 UNWIND_LIBS=
16793 # Unfortunately, we need to check the header file in addition to the
16794 # lib file to check if libunwind is available since libunwind-0.98
16795 # doesn't install all necessary header files.
16796 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16798 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16799 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16800   $as_echo_n "(cached) " >&6
16801 else
16802   ac_check_lib_save_LIBS=$LIBS
16803 LIBS="-lunwind  $LIBS"
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h.  */
16806
16807 /* Override any GCC internal prototype to avoid an error.
16808    Use char because int might match the return type of a GCC
16809    builtin and then its argument prototype would still apply.  */
16810 #ifdef __cplusplus
16811 extern "C"
16812 #endif
16813 char backtrace ();
16814 int
16815 main ()
16816 {
16817 return backtrace ();
16818   ;
16819   return 0;
16820 }
16821 _ACEOF
16822 if ac_fn_cxx_try_link "$LINENO"; then :
16823   ac_cv_lib_unwind_backtrace=yes
16824 else
16825   ac_cv_lib_unwind_backtrace=no
16826 fi
16827 rm -f core conftest.err conftest.$ac_objext \
16828     conftest$ac_exeext conftest.$ac_ext
16829 LIBS=$ac_check_lib_save_LIBS
16830 fi
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16832 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16833 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16834   UNWIND_LIBS=-lunwind
16835 fi
16836
16837 fi
16838
16839 if test x"$UNWIND_LIBS" != x""; then
16840
16841 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16842
16843 fi
16844
16845 # We'd like to use read/write locks in several places in the code.
16846 # See if our pthreads support extends to that.  Note: for linux, it
16847 # does as long as you define _XOPEN_SOURCE appropriately.
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16849 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16850 if ${ac_cv_rwlock+:} false; then :
16851   $as_echo_n "(cached) " >&6
16852 else
16853
16854  ac_ext=c
16855 ac_cpp='$CPP $CPPFLAGS'
16856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16859
16860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h.  */
16862 #define _XOPEN_SOURCE 500
16863                  #include <pthread.h>
16864 int
16865 main ()
16866 {
16867 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16868                  pthread_rwlock_rdlock(&l);
16869                  return 0;
16870   ;
16871   return 0;
16872 }
16873 _ACEOF
16874 if ac_fn_c_try_compile "$LINENO"; then :
16875   ac_cv_rwlock=yes
16876 else
16877   ac_cv_rwlock=no
16878 fi
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880  ac_ext=cpp
16881 ac_cpp='$CXXCPP $CPPFLAGS'
16882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16885
16886
16887 fi
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16889 $as_echo "$ac_cv_rwlock" >&6; }
16890 if test "$ac_cv_rwlock" = yes; then
16891
16892 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16893
16894 fi
16895
16896
16897 # Find out what namespace 'normal' STL code lives in, and also what namespace
16898 # the user wants our classes to be defined in
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16900 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16901 if ${ac_cv_cxx_namespaces+:} false; then :
16902   $as_echo_n "(cached) " >&6
16903 else
16904
16905                   ac_ext=cpp
16906 ac_cpp='$CXXCPP $CPPFLAGS'
16907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16910
16911                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h.  */
16913 namespace Outer {
16914                                     namespace Inner { int i = 0; }}
16915 int
16916 main ()
16917 {
16918 using namespace Outer::Inner; return i;
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923 if ac_fn_cxx_try_compile "$LINENO"; then :
16924   ac_cv_cxx_namespaces=yes
16925 else
16926   ac_cv_cxx_namespaces=no
16927 fi
16928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929                   ac_ext=cpp
16930 ac_cpp='$CXXCPP $CPPFLAGS'
16931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16934
16935 fi
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16937 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16938   if test "$ac_cv_cxx_namespaces" = yes; then
16939
16940 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16941
16942   fi
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16944 $as_echo_n "checking what namespace STL code is in... " >&6; }
16945 if ${ac_cv_cxx_stl_namespace+:} false; then :
16946   $as_echo_n "(cached) " >&6
16947 else
16948
16949
16950       ac_ext=cpp
16951 ac_cpp='$CXXCPP $CPPFLAGS'
16952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16955
16956       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h.  */
16958 #include <vector>
16959 int
16960 main ()
16961 {
16962 vector<int> t; return 0;
16963   ;
16964   return 0;
16965 }
16966 _ACEOF
16967 if ac_fn_cxx_try_compile "$LINENO"; then :
16968   ac_cv_cxx_stl_namespace=none
16969 fi
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h.  */
16973 #include <vector>
16974 int
16975 main ()
16976 {
16977 std::vector<int> t; return 0;
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 if ac_fn_cxx_try_compile "$LINENO"; then :
16983   ac_cv_cxx_stl_namespace=std
16984 fi
16985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16986       ac_ext=cpp
16987 ac_cpp='$CXXCPP $CPPFLAGS'
16988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16991
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16994 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16995    if test "$ac_cv_cxx_stl_namespace" = none; then
16996
16997 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16998
16999    fi
17000    if test "$ac_cv_cxx_stl_namespace" = std; then
17001
17002 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
17003
17004    fi
17005
17006 google_namespace_default=google
17007    # Check whether --enable-namespace was given.
17008 if test "${enable_namespace+set}" = set; then :
17009   enableval=$enable_namespace; case "$enableval" in
17010                     yes) google_namespace="$google_namespace_default" ;;
17011                      no) google_namespace="" ;;
17012                       *) google_namespace="$enableval" ;;
17013                   esac
17014 else
17015   google_namespace="$google_namespace_default"
17016 fi
17017
17018    if test -n "$google_namespace"; then
17019      ac_google_namespace="$google_namespace"
17020      ac_google_start_namespace="namespace $google_namespace {"
17021      ac_google_end_namespace="}"
17022    else
17023      ac_google_namespace=""
17024      ac_google_start_namespace=""
17025      ac_google_end_namespace=""
17026    fi
17027
17028 cat >>confdefs.h <<_ACEOF
17029 #define GOOGLE_NAMESPACE $ac_google_namespace
17030 _ACEOF
17031
17032
17033 cat >>confdefs.h <<_ACEOF
17034 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
17035 _ACEOF
17036
17037
17038 cat >>confdefs.h <<_ACEOF
17039 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
17040 _ACEOF
17041
17042
17043
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
17045 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
17046 if ${ac_cv_cxx_using_operator+:} false; then :
17047   $as_echo_n "(cached) " >&6
17048 else
17049
17050        ac_ext=cpp
17051 ac_cpp='$CXXCPP $CPPFLAGS'
17052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17055
17056        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h.  */
17058 #include <iostream>
17059                        std::ostream& operator<<(std::ostream&, struct s);
17060 int
17061 main ()
17062 {
17063 using ::operator<<; return 0;
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 if ac_fn_cxx_try_compile "$LINENO"; then :
17069   ac_cv_cxx_using_operator=1
17070 else
17071   ac_cv_cxx_using_operator=0
17072 fi
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074       ac_ext=cpp
17075 ac_cpp='$CXXCPP $CPPFLAGS'
17076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17079
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17082 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17083   if test "$ac_cv_cxx_using_operator" = 1; then
17084
17085 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17086
17087   fi
17088
17089 for ac_header in ucontext.h
17090 do :
17091   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17092 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17093   cat >>confdefs.h <<_ACEOF
17094 #define HAVE_UCONTEXT_H 1
17095 _ACEOF
17096
17097 fi
17098
17099 done
17100
17101    for ac_header in sys/ucontext.h
17102 do :
17103   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17104 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17105   cat >>confdefs.h <<_ACEOF
17106 #define HAVE_SYS_UCONTEXT_H 1
17107 _ACEOF
17108
17109 fi
17110
17111 done
17112        # ucontext on OS X 10.6 (at least)
17113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17114 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17115    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
17116    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17117    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17118    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
17119    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17120    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
17121    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
17122    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
17123    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
17124    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
17125    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
17126    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
17127    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
17128    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
17129    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
17130    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
17131    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
17132    pc_field_found=false
17133    for pc_field in $pc_fields; do
17134      if ! $pc_field_found; then
17135        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17136          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h.  */
17138 #define _GNU_SOURCE 1
17139                          #include <sys/ucontext.h>
17140 int
17141 main ()
17142 {
17143 ucontext_t u; return u.$pc_field == 0;
17144   ;
17145   return 0;
17146 }
17147 _ACEOF
17148 if ac_fn_cxx_try_compile "$LINENO"; then :
17149
17150 cat >>confdefs.h <<_ACEOF
17151 #define PC_FROM_UCONTEXT $pc_field
17152 _ACEOF
17153
17154                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17155 $as_echo "$pc_field" >&6; }
17156                         pc_field_found=true
17157 fi
17158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159        else
17160          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h.  */
17162 #define _GNU_SOURCE 1
17163                          #include <ucontext.h>
17164 int
17165 main ()
17166 {
17167 ucontext_t u; return u.$pc_field == 0;
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 if ac_fn_cxx_try_compile "$LINENO"; then :
17173
17174 cat >>confdefs.h <<_ACEOF
17175 #define PC_FROM_UCONTEXT $pc_field
17176 _ACEOF
17177
17178                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17179 $as_echo "$pc_field" >&6; }
17180                         pc_field_found=true
17181 fi
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183        fi
17184      fi
17185    done
17186    if ! $pc_field_found; then
17187      pc_fields="           sc_eip"  # OpenBSD (i386)
17188      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
17189      for pc_field in $pc_fields; do
17190        if ! $pc_field_found; then
17191          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h.  */
17193 #include <signal.h>
17194 int
17195 main ()
17196 {
17197 ucontext_t u; return u.$pc_field == 0;
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 if ac_fn_cxx_try_compile "$LINENO"; then :
17203
17204 cat >>confdefs.h <<_ACEOF
17205 #define PC_FROM_UCONTEXT $pc_field
17206 _ACEOF
17207
17208                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17209 $as_echo "$pc_field" >&6; }
17210                         pc_field_found=true
17211 fi
17212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17213        fi
17214      done
17215    fi
17216    if ! $pc_field_found; then
17217      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
17218 $as_echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
17219    fi
17220
17221
17222 cat >>confdefs.h <<_ACEOF
17223 #define TEST_SRC_DIR "$srcdir"
17224 _ACEOF
17225
17226
17227 # These are what's needed by logging.h.in and raw_logging.h.in
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252 # Write generated configuration file
17253 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
17254
17255 ac_config_files="$ac_config_files libglog.pc"
17256
17257 cat >confcache <<\_ACEOF
17258 # This file is a shell script that caches the results of configure
17259 # tests run on this system so they can be shared between configure
17260 # scripts and configure runs, see configure's option --config-cache.
17261 # It is not useful on other systems.  If it contains results you don't
17262 # want to keep, you may remove or edit it.
17263 #
17264 # config.status only pays attention to the cache file if you give it
17265 # the --recheck option to rerun configure.
17266 #
17267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17269 # following values.
17270
17271 _ACEOF
17272
17273 # The following way of writing the cache mishandles newlines in values,
17274 # but we know of no workaround that is simple, portable, and efficient.
17275 # So, we kill variables containing newlines.
17276 # Ultrix sh set writes to stderr and can't be redirected directly,
17277 # and sets the high bit in the cache file unless we assign to the vars.
17278 (
17279   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17280     eval ac_val=\$$ac_var
17281     case $ac_val in #(
17282     *${as_nl}*)
17283       case $ac_var in #(
17284       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17286       esac
17287       case $ac_var in #(
17288       _ | IFS | as_nl) ;; #(
17289       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17290       *) { eval $ac_var=; unset $ac_var;} ;;
17291       esac ;;
17292     esac
17293   done
17294
17295   (set) 2>&1 |
17296     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17297     *${as_nl}ac_space=\ *)
17298       # `set' does not quote correctly, so add quotes: double-quote
17299       # substitution turns \\\\ into \\, and sed turns \\ into \.
17300       sed -n \
17301         "s/'/'\\\\''/g;
17302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17303       ;; #(
17304     *)
17305       # `set' quotes correctly as required by POSIX, so do not add quotes.
17306       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17307       ;;
17308     esac |
17309     sort
17310 ) |
17311   sed '
17312      /^ac_cv_env_/b end
17313      t clear
17314      :clear
17315      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17316      t end
17317      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17318      :end' >>confcache
17319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17320   if test -w "$cache_file"; then
17321     if test "x$cache_file" != "x/dev/null"; then
17322       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17323 $as_echo "$as_me: updating cache $cache_file" >&6;}
17324       if test ! -f "$cache_file" || test -h "$cache_file"; then
17325         cat confcache >"$cache_file"
17326       else
17327         case $cache_file in #(
17328         */* | ?:*)
17329           mv -f confcache "$cache_file"$$ &&
17330           mv -f "$cache_file"$$ "$cache_file" ;; #(
17331         *)
17332           mv -f confcache "$cache_file" ;;
17333         esac
17334       fi
17335     fi
17336   else
17337     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17338 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17339   fi
17340 fi
17341 rm -f confcache
17342
17343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17344 # Let make expand exec_prefix.
17345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17346
17347 DEFS=-DHAVE_CONFIG_H
17348
17349 ac_libobjs=
17350 ac_ltlibobjs=
17351 U=
17352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17353   # 1. Remove the extension, and $U if already installed.
17354   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17355   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17356   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17357   #    will be set to the directory where LIBOBJS objects are built.
17358   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17359   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17360 done
17361 LIBOBJS=$ac_libobjs
17362
17363 LTLIBOBJS=$ac_ltlibobjs
17364
17365
17366  if test -n "$EXEEXT"; then
17367   am__EXEEXT_TRUE=
17368   am__EXEEXT_FALSE='#'
17369 else
17370   am__EXEEXT_TRUE='#'
17371   am__EXEEXT_FALSE=
17372 fi
17373
17374 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17375   as_fn_error $? "conditional \"AMDEP\" was never defined.
17376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17377 fi
17378 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17379   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17381 fi
17382 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17383   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17385 fi
17386 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17387   as_fn_error $? "conditional \"GCC\" was never defined.
17388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17389 fi
17390 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17391   as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17393 fi
17394 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17395   as_fn_error $? "conditional \"X86_64\" was never defined.
17396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17397 fi
17398 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17399   as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17401 fi
17402 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17403   as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17405 fi
17406
17407 : "${CONFIG_STATUS=./config.status}"
17408 ac_write_fail=0
17409 ac_clean_files_save=$ac_clean_files
17410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17412 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17413 as_write_fail=0
17414 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17415 #! $SHELL
17416 # Generated by $as_me.
17417 # Run this file to recreate the current configuration.
17418 # Compiler output produced by configure, useful for debugging
17419 # configure, is in config.log if it exists.
17420
17421 debug=false
17422 ac_cs_recheck=false
17423 ac_cs_silent=false
17424
17425 SHELL=\${CONFIG_SHELL-$SHELL}
17426 export SHELL
17427 _ASEOF
17428 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17429 ## -------------------- ##
17430 ## M4sh Initialization. ##
17431 ## -------------------- ##
17432
17433 # Be more Bourne compatible
17434 DUALCASE=1; export DUALCASE # for MKS sh
17435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17436   emulate sh
17437   NULLCMD=:
17438   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17439   # is contrary to our usage.  Disable this feature.
17440   alias -g '${1+"$@"}'='"$@"'
17441   setopt NO_GLOB_SUBST
17442 else
17443   case `(set -o) 2>/dev/null` in #(
17444   *posix*) :
17445     set -o posix ;; #(
17446   *) :
17447      ;;
17448 esac
17449 fi
17450
17451
17452 as_nl='
17453 '
17454 export as_nl
17455 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17456 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17459 # Prefer a ksh shell builtin over an external printf program on Solaris,
17460 # but without wasting forks for bash or zsh.
17461 if test -z "$BASH_VERSION$ZSH_VERSION" \
17462     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17463   as_echo='print -r --'
17464   as_echo_n='print -rn --'
17465 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17466   as_echo='printf %s\n'
17467   as_echo_n='printf %s'
17468 else
17469   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17470     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17471     as_echo_n='/usr/ucb/echo -n'
17472   else
17473     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17474     as_echo_n_body='eval
17475       arg=$1;
17476       case $arg in #(
17477       *"$as_nl"*)
17478         expr "X$arg" : "X\\(.*\\)$as_nl";
17479         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17480       esac;
17481       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17482     '
17483     export as_echo_n_body
17484     as_echo_n='sh -c $as_echo_n_body as_echo'
17485   fi
17486   export as_echo_body
17487   as_echo='sh -c $as_echo_body as_echo'
17488 fi
17489
17490 # The user is always right.
17491 if test "${PATH_SEPARATOR+set}" != set; then
17492   PATH_SEPARATOR=:
17493   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17494     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17495       PATH_SEPARATOR=';'
17496   }
17497 fi
17498
17499
17500 # IFS
17501 # We need space, tab and new line, in precisely that order.  Quoting is
17502 # there to prevent editors from complaining about space-tab.
17503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17504 # splitting by setting IFS to empty value.)
17505 IFS=" ""        $as_nl"
17506
17507 # Find who we are.  Look in the path if we contain no directory separator.
17508 as_myself=
17509 case $0 in #((
17510   *[\\/]* ) as_myself=$0 ;;
17511   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $PATH
17513 do
17514   IFS=$as_save_IFS
17515   test -z "$as_dir" && as_dir=.
17516     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17517   done
17518 IFS=$as_save_IFS
17519
17520      ;;
17521 esac
17522 # We did not find ourselves, most probably we were run as `sh COMMAND'
17523 # in which case we are not to be found in the path.
17524 if test "x$as_myself" = x; then
17525   as_myself=$0
17526 fi
17527 if test ! -f "$as_myself"; then
17528   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17529   exit 1
17530 fi
17531
17532 # Unset variables that we do not need and which cause bugs (e.g. in
17533 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17534 # suppresses any "Segmentation fault" message there.  '((' could
17535 # trigger a bug in pdksh 5.2.14.
17536 for as_var in BASH_ENV ENV MAIL MAILPATH
17537 do eval test x\${$as_var+set} = xset \
17538   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17539 done
17540 PS1='$ '
17541 PS2='> '
17542 PS4='+ '
17543
17544 # NLS nuisances.
17545 LC_ALL=C
17546 export LC_ALL
17547 LANGUAGE=C
17548 export LANGUAGE
17549
17550 # CDPATH.
17551 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17552
17553
17554 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17555 # ----------------------------------------
17556 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17557 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17558 # script with STATUS, using 1 if that was 0.
17559 as_fn_error ()
17560 {
17561   as_status=$1; test $as_status -eq 0 && as_status=1
17562   if test "$4"; then
17563     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17564     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17565   fi
17566   $as_echo "$as_me: error: $2" >&2
17567   as_fn_exit $as_status
17568 } # as_fn_error
17569
17570
17571 # as_fn_set_status STATUS
17572 # -----------------------
17573 # Set $? to STATUS, without forking.
17574 as_fn_set_status ()
17575 {
17576   return $1
17577 } # as_fn_set_status
17578
17579 # as_fn_exit STATUS
17580 # -----------------
17581 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17582 as_fn_exit ()
17583 {
17584   set +e
17585   as_fn_set_status $1
17586   exit $1
17587 } # as_fn_exit
17588
17589 # as_fn_unset VAR
17590 # ---------------
17591 # Portably unset VAR.
17592 as_fn_unset ()
17593 {
17594   { eval $1=; unset $1;}
17595 }
17596 as_unset=as_fn_unset
17597 # as_fn_append VAR VALUE
17598 # ----------------------
17599 # Append the text in VALUE to the end of the definition contained in VAR. Take
17600 # advantage of any shell optimizations that allow amortized linear growth over
17601 # repeated appends, instead of the typical quadratic growth present in naive
17602 # implementations.
17603 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17604   eval 'as_fn_append ()
17605   {
17606     eval $1+=\$2
17607   }'
17608 else
17609   as_fn_append ()
17610   {
17611     eval $1=\$$1\$2
17612   }
17613 fi # as_fn_append
17614
17615 # as_fn_arith ARG...
17616 # ------------------
17617 # Perform arithmetic evaluation on the ARGs, and store the result in the
17618 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17619 # must be portable across $(()) and expr.
17620 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17621   eval 'as_fn_arith ()
17622   {
17623     as_val=$(( $* ))
17624   }'
17625 else
17626   as_fn_arith ()
17627   {
17628     as_val=`expr "$@" || test $? -eq 1`
17629   }
17630 fi # as_fn_arith
17631
17632
17633 if expr a : '\(a\)' >/dev/null 2>&1 &&
17634    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17635   as_expr=expr
17636 else
17637   as_expr=false
17638 fi
17639
17640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17641   as_basename=basename
17642 else
17643   as_basename=false
17644 fi
17645
17646 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17647   as_dirname=dirname
17648 else
17649   as_dirname=false
17650 fi
17651
17652 as_me=`$as_basename -- "$0" ||
17653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17654          X"$0" : 'X\(//\)$' \| \
17655          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17656 $as_echo X/"$0" |
17657     sed '/^.*\/\([^/][^/]*\)\/*$/{
17658             s//\1/
17659             q
17660           }
17661           /^X\/\(\/\/\)$/{
17662             s//\1/
17663             q
17664           }
17665           /^X\/\(\/\).*/{
17666             s//\1/
17667             q
17668           }
17669           s/.*/./; q'`
17670
17671 # Avoid depending upon Character Ranges.
17672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17675 as_cr_digits='0123456789'
17676 as_cr_alnum=$as_cr_Letters$as_cr_digits
17677
17678 ECHO_C= ECHO_N= ECHO_T=
17679 case `echo -n x` in #(((((
17680 -n*)
17681   case `echo 'xy\c'` in
17682   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17683   xy)  ECHO_C='\c';;
17684   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17685        ECHO_T=' ';;
17686   esac;;
17687 *)
17688   ECHO_N='-n';;
17689 esac
17690
17691 rm -f conf$$ conf$$.exe conf$$.file
17692 if test -d conf$$.dir; then
17693   rm -f conf$$.dir/conf$$.file
17694 else
17695   rm -f conf$$.dir
17696   mkdir conf$$.dir 2>/dev/null
17697 fi
17698 if (echo >conf$$.file) 2>/dev/null; then
17699   if ln -s conf$$.file conf$$ 2>/dev/null; then
17700     as_ln_s='ln -s'
17701     # ... but there are two gotchas:
17702     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17703     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17704     # In both cases, we have to default to `cp -p'.
17705     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17706       as_ln_s='cp -p'
17707   elif ln conf$$.file conf$$ 2>/dev/null; then
17708     as_ln_s=ln
17709   else
17710     as_ln_s='cp -p'
17711   fi
17712 else
17713   as_ln_s='cp -p'
17714 fi
17715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17716 rmdir conf$$.dir 2>/dev/null
17717
17718
17719 # as_fn_mkdir_p
17720 # -------------
17721 # Create "$as_dir" as a directory, including parents if necessary.
17722 as_fn_mkdir_p ()
17723 {
17724
17725   case $as_dir in #(
17726   -*) as_dir=./$as_dir;;
17727   esac
17728   test -d "$as_dir" || eval $as_mkdir_p || {
17729     as_dirs=
17730     while :; do
17731       case $as_dir in #(
17732       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17733       *) as_qdir=$as_dir;;
17734       esac
17735       as_dirs="'$as_qdir' $as_dirs"
17736       as_dir=`$as_dirname -- "$as_dir" ||
17737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17738          X"$as_dir" : 'X\(//\)[^/]' \| \
17739          X"$as_dir" : 'X\(//\)$' \| \
17740          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17741 $as_echo X"$as_dir" |
17742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17743             s//\1/
17744             q
17745           }
17746           /^X\(\/\/\)[^/].*/{
17747             s//\1/
17748             q
17749           }
17750           /^X\(\/\/\)$/{
17751             s//\1/
17752             q
17753           }
17754           /^X\(\/\).*/{
17755             s//\1/
17756             q
17757           }
17758           s/.*/./; q'`
17759       test -d "$as_dir" && break
17760     done
17761     test -z "$as_dirs" || eval "mkdir $as_dirs"
17762   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17763
17764
17765 } # as_fn_mkdir_p
17766 if mkdir -p . 2>/dev/null; then
17767   as_mkdir_p='mkdir -p "$as_dir"'
17768 else
17769   test -d ./-p && rmdir ./-p
17770   as_mkdir_p=false
17771 fi
17772
17773 if test -x / >/dev/null 2>&1; then
17774   as_test_x='test -x'
17775 else
17776   if ls -dL / >/dev/null 2>&1; then
17777     as_ls_L_option=L
17778   else
17779     as_ls_L_option=
17780   fi
17781   as_test_x='
17782     eval sh -c '\''
17783       if test -d "$1"; then
17784         test -d "$1/.";
17785       else
17786         case $1 in #(
17787         -*)set "./$1";;
17788         esac;
17789         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17790         ???[sx]*):;;*)false;;esac;fi
17791     '\'' sh
17792   '
17793 fi
17794 as_executable_p=$as_test_x
17795
17796 # Sed expression to map a string onto a valid CPP name.
17797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17798
17799 # Sed expression to map a string onto a valid variable name.
17800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17801
17802
17803 exec 6>&1
17804 ## ----------------------------------- ##
17805 ## Main body of $CONFIG_STATUS script. ##
17806 ## ----------------------------------- ##
17807 _ASEOF
17808 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17809
17810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811 # Save the log message, to keep $0 and so on meaningful, and to
17812 # report actual input values of CONFIG_FILES etc. instead of their
17813 # values after options handling.
17814 ac_log="
17815 This file was extended by glog $as_me 0.3.3, which was
17816 generated by GNU Autoconf 2.68.  Invocation command line was
17817
17818   CONFIG_FILES    = $CONFIG_FILES
17819   CONFIG_HEADERS  = $CONFIG_HEADERS
17820   CONFIG_LINKS    = $CONFIG_LINKS
17821   CONFIG_COMMANDS = $CONFIG_COMMANDS
17822   $ $0 $@
17823
17824 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17825 "
17826
17827 _ACEOF
17828
17829 case $ac_config_files in *"
17830 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17831 esac
17832
17833 case $ac_config_headers in *"
17834 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17835 esac
17836
17837
17838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17839 # Files that config.status was made for.
17840 config_files="$ac_config_files"
17841 config_headers="$ac_config_headers"
17842 config_commands="$ac_config_commands"
17843
17844 _ACEOF
17845
17846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17847 ac_cs_usage="\
17848 \`$as_me' instantiates files and other configuration actions
17849 from templates according to the current configuration.  Unless the files
17850 and actions are specified as TAGs, all are instantiated by default.
17851
17852 Usage: $0 [OPTION]... [TAG]...
17853
17854   -h, --help       print this help, then exit
17855   -V, --version    print version number and configuration settings, then exit
17856       --config     print configuration, then exit
17857   -q, --quiet, --silent
17858                    do not print progress messages
17859   -d, --debug      don't remove temporary files
17860       --recheck    update $as_me by reconfiguring in the same conditions
17861       --file=FILE[:TEMPLATE]
17862                    instantiate the configuration file FILE
17863       --header=FILE[:TEMPLATE]
17864                    instantiate the configuration header FILE
17865
17866 Configuration files:
17867 $config_files
17868
17869 Configuration headers:
17870 $config_headers
17871
17872 Configuration commands:
17873 $config_commands
17874
17875 Report bugs to <opensource@google.com>."
17876
17877 _ACEOF
17878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17879 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17880 ac_cs_version="\\
17881 glog config.status 0.3.3
17882 configured by $0, generated by GNU Autoconf 2.68,
17883   with options \\"\$ac_cs_config\\"
17884
17885 Copyright (C) 2010 Free Software Foundation, Inc.
17886 This config.status script is free software; the Free Software Foundation
17887 gives unlimited permission to copy, distribute and modify it."
17888
17889 ac_pwd='$ac_pwd'
17890 srcdir='$srcdir'
17891 INSTALL='$INSTALL'
17892 MKDIR_P='$MKDIR_P'
17893 AWK='$AWK'
17894 test -n "\$AWK" || AWK=awk
17895 _ACEOF
17896
17897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17898 # The default lists apply if the user does not specify any file.
17899 ac_need_defaults=:
17900 while test $# != 0
17901 do
17902   case $1 in
17903   --*=?*)
17904     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17905     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17906     ac_shift=:
17907     ;;
17908   --*=)
17909     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17910     ac_optarg=
17911     ac_shift=:
17912     ;;
17913   *)
17914     ac_option=$1
17915     ac_optarg=$2
17916     ac_shift=shift
17917     ;;
17918   esac
17919
17920   case $ac_option in
17921   # Handling of the options.
17922   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17923     ac_cs_recheck=: ;;
17924   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17925     $as_echo "$ac_cs_version"; exit ;;
17926   --config | --confi | --conf | --con | --co | --c )
17927     $as_echo "$ac_cs_config"; exit ;;
17928   --debug | --debu | --deb | --de | --d | -d )
17929     debug=: ;;
17930   --file | --fil | --fi | --f )
17931     $ac_shift
17932     case $ac_optarg in
17933     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17934     '') as_fn_error $? "missing file argument" ;;
17935     esac
17936     as_fn_append CONFIG_FILES " '$ac_optarg'"
17937     ac_need_defaults=false;;
17938   --header | --heade | --head | --hea )
17939     $ac_shift
17940     case $ac_optarg in
17941     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17942     esac
17943     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17944     ac_need_defaults=false;;
17945   --he | --h)
17946     # Conflict between --help and --header
17947     as_fn_error $? "ambiguous option: \`$1'
17948 Try \`$0 --help' for more information.";;
17949   --help | --hel | -h )
17950     $as_echo "$ac_cs_usage"; exit ;;
17951   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17952   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17953     ac_cs_silent=: ;;
17954
17955   # This is an error.
17956   -*) as_fn_error $? "unrecognized option: \`$1'
17957 Try \`$0 --help' for more information." ;;
17958
17959   *) as_fn_append ac_config_targets " $1"
17960      ac_need_defaults=false ;;
17961
17962   esac
17963   shift
17964 done
17965
17966 ac_configure_extra_args=
17967
17968 if $ac_cs_silent; then
17969   exec 6>/dev/null
17970   ac_configure_extra_args="$ac_configure_extra_args --silent"
17971 fi
17972
17973 _ACEOF
17974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17975 if \$ac_cs_recheck; then
17976   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17977   shift
17978   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17979   CONFIG_SHELL='$SHELL'
17980   export CONFIG_SHELL
17981   exec "\$@"
17982 fi
17983
17984 _ACEOF
17985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17986 exec 5>>config.log
17987 {
17988   echo
17989   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17990 ## Running $as_me. ##
17991 _ASBOX
17992   $as_echo "$ac_log"
17993 } >&5
17994
17995 _ACEOF
17996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17997 #
17998 # INIT-COMMANDS
17999 #
18000 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18001
18002
18003 # The HP-UX ksh and POSIX shell print the target directory to stdout
18004 # if CDPATH is set.
18005 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18006
18007 sed_quote_subst='$sed_quote_subst'
18008 double_quote_subst='$double_quote_subst'
18009 delay_variable_subst='$delay_variable_subst'
18010 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18011 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18012 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18013 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18014 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18015 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18016 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18017 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18018 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18019 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18020 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18021 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18022 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18023 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18024 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18025 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18026 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18027 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18028 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18029 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18030 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18031 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18032 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18033 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18034 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18035 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18036 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18037 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18038 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18039 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18040 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18041 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18042 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18043 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18044 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18045 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18046 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18047 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18048 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18049 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18050 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18051 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18052 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18053 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18054 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18055 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18056 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18057 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18058 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18059 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18060 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18061 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18062 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18063 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18064 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18065 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18066 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"`'
18067 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18068 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18069 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18070 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18071 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18072 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18073 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18074 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18075 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18076 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18077 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18078 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18079 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18080 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18081 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18082 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18083 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18084 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18085 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18086 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18087 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18088 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18089 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18090 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18091 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18092 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18093 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18094 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18095 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18096 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18097 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18098 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18099 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18100 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18101 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18102 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18103 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18104 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18105 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18106 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18107 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18108 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18109 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18110 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18111 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18112 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18113 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18114 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18115 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18116 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18117 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18118 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18119 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18120 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18121 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18122 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18123 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18124 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18125 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18126 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18127 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18128 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18129 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18130 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18131 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18132 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18133 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18134 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18135 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18136 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18137 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18138 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18139 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18140 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18141 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18142 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18143 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18144 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18145 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18146 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18147 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18148 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18149 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18150 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18151 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18152 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18153 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18154 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18155 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18156 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18157 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18158 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18159 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18160 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18161 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18162 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18163 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18164 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18165 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18166 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18167 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18168 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18169 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18170 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18171 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18172 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18173 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18174 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18175 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18176 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18177 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18178 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18179 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18180 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18181 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18182 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18183 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18184 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18185 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18187 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18188 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18189 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18190 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18191 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18192 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18193 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18194
18195 LTCC='$LTCC'
18196 LTCFLAGS='$LTCFLAGS'
18197 compiler='$compiler_DEFAULT'
18198
18199 # A function that is used when there is no print builtin or printf.
18200 func_fallback_echo ()
18201 {
18202   eval 'cat <<_LTECHO_EOF
18203 \$1
18204 _LTECHO_EOF'
18205 }
18206
18207 # Quote evaled strings.
18208 for var in SHELL \
18209 ECHO \
18210 PATH_SEPARATOR \
18211 SED \
18212 GREP \
18213 EGREP \
18214 FGREP \
18215 LD \
18216 NM \
18217 LN_S \
18218 lt_SP2NL \
18219 lt_NL2SP \
18220 reload_flag \
18221 OBJDUMP \
18222 deplibs_check_method \
18223 file_magic_cmd \
18224 file_magic_glob \
18225 want_nocaseglob \
18226 DLLTOOL \
18227 sharedlib_from_linklib_cmd \
18228 AR \
18229 AR_FLAGS \
18230 archiver_list_spec \
18231 STRIP \
18232 RANLIB \
18233 CC \
18234 CFLAGS \
18235 compiler \
18236 lt_cv_sys_global_symbol_pipe \
18237 lt_cv_sys_global_symbol_to_cdecl \
18238 lt_cv_sys_global_symbol_to_c_name_address \
18239 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18240 nm_file_list_spec \
18241 lt_prog_compiler_no_builtin_flag \
18242 lt_prog_compiler_pic \
18243 lt_prog_compiler_wl \
18244 lt_prog_compiler_static \
18245 lt_cv_prog_compiler_c_o \
18246 need_locks \
18247 MANIFEST_TOOL \
18248 DSYMUTIL \
18249 NMEDIT \
18250 LIPO \
18251 OTOOL \
18252 OTOOL64 \
18253 shrext_cmds \
18254 export_dynamic_flag_spec \
18255 whole_archive_flag_spec \
18256 compiler_needs_object \
18257 with_gnu_ld \
18258 allow_undefined_flag \
18259 no_undefined_flag \
18260 hardcode_libdir_flag_spec \
18261 hardcode_libdir_separator \
18262 exclude_expsyms \
18263 include_expsyms \
18264 file_list_spec \
18265 variables_saved_for_relink \
18266 libname_spec \
18267 library_names_spec \
18268 soname_spec \
18269 install_override_mode \
18270 finish_eval \
18271 old_striplib \
18272 striplib \
18273 compiler_lib_search_dirs \
18274 predep_objects \
18275 postdep_objects \
18276 predeps \
18277 postdeps \
18278 compiler_lib_search_path \
18279 LD_CXX \
18280 reload_flag_CXX \
18281 compiler_CXX \
18282 lt_prog_compiler_no_builtin_flag_CXX \
18283 lt_prog_compiler_pic_CXX \
18284 lt_prog_compiler_wl_CXX \
18285 lt_prog_compiler_static_CXX \
18286 lt_cv_prog_compiler_c_o_CXX \
18287 export_dynamic_flag_spec_CXX \
18288 whole_archive_flag_spec_CXX \
18289 compiler_needs_object_CXX \
18290 with_gnu_ld_CXX \
18291 allow_undefined_flag_CXX \
18292 no_undefined_flag_CXX \
18293 hardcode_libdir_flag_spec_CXX \
18294 hardcode_libdir_separator_CXX \
18295 exclude_expsyms_CXX \
18296 include_expsyms_CXX \
18297 file_list_spec_CXX \
18298 compiler_lib_search_dirs_CXX \
18299 predep_objects_CXX \
18300 postdep_objects_CXX \
18301 predeps_CXX \
18302 postdeps_CXX \
18303 compiler_lib_search_path_CXX; do
18304     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18305     *[\\\\\\\`\\"\\\$]*)
18306       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18307       ;;
18308     *)
18309       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18310       ;;
18311     esac
18312 done
18313
18314 # Double-quote double-evaled strings.
18315 for var in reload_cmds \
18316 old_postinstall_cmds \
18317 old_postuninstall_cmds \
18318 old_archive_cmds \
18319 extract_expsyms_cmds \
18320 old_archive_from_new_cmds \
18321 old_archive_from_expsyms_cmds \
18322 archive_cmds \
18323 archive_expsym_cmds \
18324 module_cmds \
18325 module_expsym_cmds \
18326 export_symbols_cmds \
18327 prelink_cmds \
18328 postlink_cmds \
18329 postinstall_cmds \
18330 postuninstall_cmds \
18331 finish_cmds \
18332 sys_lib_search_path_spec \
18333 sys_lib_dlsearch_path_spec \
18334 reload_cmds_CXX \
18335 old_archive_cmds_CXX \
18336 old_archive_from_new_cmds_CXX \
18337 old_archive_from_expsyms_cmds_CXX \
18338 archive_cmds_CXX \
18339 archive_expsym_cmds_CXX \
18340 module_cmds_CXX \
18341 module_expsym_cmds_CXX \
18342 export_symbols_cmds_CXX \
18343 prelink_cmds_CXX \
18344 postlink_cmds_CXX; do
18345     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18346     *[\\\\\\\`\\"\\\$]*)
18347       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18348       ;;
18349     *)
18350       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18351       ;;
18352     esac
18353 done
18354
18355 ac_aux_dir='$ac_aux_dir'
18356 xsi_shell='$xsi_shell'
18357 lt_shell_append='$lt_shell_append'
18358
18359 # See if we are running on zsh, and set the options which allow our
18360 # commands through without removal of \ escapes INIT.
18361 if test -n "\${ZSH_VERSION+set}" ; then
18362    setopt NO_GLOB_SUBST
18363 fi
18364
18365
18366     PACKAGE='$PACKAGE'
18367     VERSION='$VERSION'
18368     TIMESTAMP='$TIMESTAMP'
18369     RM='$RM'
18370     ofile='$ofile'
18371
18372
18373
18374
18375
18376
18377 _ACEOF
18378
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18380
18381 # Handling of arguments.
18382 for ac_config_target in $ac_config_targets
18383 do
18384   case $ac_config_target in
18385     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18386     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18387     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18388     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18389     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18390     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18391     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18392     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18393     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18394
18395   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18396   esac
18397 done
18398
18399
18400 # If the user did not use the arguments to specify the items to instantiate,
18401 # then the envvar interface is used.  Set only those that are not.
18402 # We use the long form for the default assignment because of an extremely
18403 # bizarre bug on SunOS 4.1.3.
18404 if $ac_need_defaults; then
18405   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18406   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18407   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18408 fi
18409
18410 # Have a temporary directory for convenience.  Make it in the build tree
18411 # simply because there is no reason against having it here, and in addition,
18412 # creating and moving files from /tmp can sometimes cause problems.
18413 # Hook for its removal unless debugging.
18414 # Note that there is a small window in which the directory will not be cleaned:
18415 # after its creation but before its name has been assigned to `$tmp'.
18416 $debug ||
18417 {
18418   tmp= ac_tmp=
18419   trap 'exit_status=$?
18420   : "${ac_tmp:=$tmp}"
18421   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18422 ' 0
18423   trap 'as_fn_exit 1' 1 2 13 15
18424 }
18425 # Create a (secure) tmp directory for tmp files.
18426
18427 {
18428   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18429   test -d "$tmp"
18430 }  ||
18431 {
18432   tmp=./conf$$-$RANDOM
18433   (umask 077 && mkdir "$tmp")
18434 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18435 ac_tmp=$tmp
18436
18437 # Set up the scripts for CONFIG_FILES section.
18438 # No need to generate them if there are no CONFIG_FILES.
18439 # This happens for instance with `./config.status config.h'.
18440 if test -n "$CONFIG_FILES"; then
18441
18442
18443 ac_cr=`echo X | tr X '\015'`
18444 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18445 # But we know of no other shell where ac_cr would be empty at this
18446 # point, so we can use a bashism as a fallback.
18447 if test "x$ac_cr" = x; then
18448   eval ac_cr=\$\'\\r\'
18449 fi
18450 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18451 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18452   ac_cs_awk_cr='\\r'
18453 else
18454   ac_cs_awk_cr=$ac_cr
18455 fi
18456
18457 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18458 _ACEOF
18459
18460
18461 {
18462   echo "cat >conf$$subs.awk <<_ACEOF" &&
18463   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18464   echo "_ACEOF"
18465 } >conf$$subs.sh ||
18466   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18467 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18468 ac_delim='%!_!# '
18469 for ac_last_try in false false false false false :; do
18470   . ./conf$$subs.sh ||
18471     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18472
18473   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18474   if test $ac_delim_n = $ac_delim_num; then
18475     break
18476   elif $ac_last_try; then
18477     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18478   else
18479     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18480   fi
18481 done
18482 rm -f conf$$subs.sh
18483
18484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18486 _ACEOF
18487 sed -n '
18488 h
18489 s/^/S["/; s/!.*/"]=/
18490 p
18491 g
18492 s/^[^!]*!//
18493 :repl
18494 t repl
18495 s/'"$ac_delim"'$//
18496 t delim
18497 :nl
18498 h
18499 s/\(.\{148\}\)..*/\1/
18500 t more1
18501 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18502 p
18503 n
18504 b repl
18505 :more1
18506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18507 p
18508 g
18509 s/.\{148\}//
18510 t nl
18511 :delim
18512 h
18513 s/\(.\{148\}\)..*/\1/
18514 t more2
18515 s/["\\]/\\&/g; s/^/"/; s/$/"/
18516 p
18517 b
18518 :more2
18519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18520 p
18521 g
18522 s/.\{148\}//
18523 t delim
18524 ' <conf$$subs.awk | sed '
18525 /^[^""]/{
18526   N
18527   s/\n//
18528 }
18529 ' >>$CONFIG_STATUS || ac_write_fail=1
18530 rm -f conf$$subs.awk
18531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18532 _ACAWK
18533 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18534   for (key in S) S_is_set[key] = 1
18535   FS = "\a"
18536
18537 }
18538 {
18539   line = $ 0
18540   nfields = split(line, field, "@")
18541   substed = 0
18542   len = length(field[1])
18543   for (i = 2; i < nfields; i++) {
18544     key = field[i]
18545     keylen = length(key)
18546     if (S_is_set[key]) {
18547       value = S[key]
18548       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18549       len += length(value) + length(field[++i])
18550       substed = 1
18551     } else
18552       len += 1 + keylen
18553   }
18554
18555   print line
18556 }
18557
18558 _ACAWK
18559 _ACEOF
18560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18562   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18563 else
18564   cat
18565 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18566   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18567 _ACEOF
18568
18569 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18570 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18571 # trailing colons and then remove the whole line if VPATH becomes empty
18572 # (actually we leave an empty line to preserve line numbers).
18573 if test "x$srcdir" = x.; then
18574   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18575 h
18576 s///
18577 s/^/:/
18578 s/[      ]*$/:/
18579 s/:\$(srcdir):/:/g
18580 s/:\${srcdir}:/:/g
18581 s/:@srcdir@:/:/g
18582 s/^:*//
18583 s/:*$//
18584 x
18585 s/\(=[   ]*\).*/\1/
18586 G
18587 s/\n//
18588 s/^[^=]*=[       ]*$//
18589 }'
18590 fi
18591
18592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18593 fi # test -n "$CONFIG_FILES"
18594
18595 # Set up the scripts for CONFIG_HEADERS section.
18596 # No need to generate them if there are no CONFIG_HEADERS.
18597 # This happens for instance with `./config.status Makefile'.
18598 if test -n "$CONFIG_HEADERS"; then
18599 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18600 BEGIN {
18601 _ACEOF
18602
18603 # Transform confdefs.h into an awk script `defines.awk', embedded as
18604 # here-document in config.status, that substitutes the proper values into
18605 # config.h.in to produce config.h.
18606
18607 # Create a delimiter string that does not exist in confdefs.h, to ease
18608 # handling of long lines.
18609 ac_delim='%!_!# '
18610 for ac_last_try in false false :; do
18611   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18612   if test -z "$ac_tt"; then
18613     break
18614   elif $ac_last_try; then
18615     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18616   else
18617     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18618   fi
18619 done
18620
18621 # For the awk script, D is an array of macro values keyed by name,
18622 # likewise P contains macro parameters if any.  Preserve backslash
18623 # newline sequences.
18624
18625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18626 sed -n '
18627 s/.\{148\}/&'"$ac_delim"'/g
18628 t rset
18629 :rset
18630 s/^[     ]*#[    ]*define[       ][      ]*/ /
18631 t def
18632 d
18633 :def
18634 s/\\$//
18635 t bsnl
18636 s/["\\]/\\&/g
18637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18638 D["\1"]=" \3"/p
18639 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18640 d
18641 :bsnl
18642 s/["\\]/\\&/g
18643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18644 D["\1"]=" \3\\\\\\n"\\/p
18645 t cont
18646 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18647 t cont
18648 d
18649 :cont
18650 n
18651 s/.\{148\}/&'"$ac_delim"'/g
18652 t clear
18653 :clear
18654 s/\\$//
18655 t bsnlc
18656 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18657 d
18658 :bsnlc
18659 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18660 b cont
18661 ' <confdefs.h | sed '
18662 s/'"$ac_delim"'/"\\\
18663 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18664
18665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666   for (key in D) D_is_set[key] = 1
18667   FS = "\a"
18668 }
18669 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18670   line = \$ 0
18671   split(line, arg, " ")
18672   if (arg[1] == "#") {
18673     defundef = arg[2]
18674     mac1 = arg[3]
18675   } else {
18676     defundef = substr(arg[1], 2)
18677     mac1 = arg[2]
18678   }
18679   split(mac1, mac2, "(") #)
18680   macro = mac2[1]
18681   prefix = substr(line, 1, index(line, defundef) - 1)
18682   if (D_is_set[macro]) {
18683     # Preserve the white space surrounding the "#".
18684     print prefix "define", macro P[macro] D[macro]
18685     next
18686   } else {
18687     # Replace #undef with comments.  This is necessary, for example,
18688     # in the case of _POSIX_SOURCE, which is predefined and required
18689     # on some systems where configure will not decide to define it.
18690     if (defundef == "undef") {
18691       print "/*", prefix defundef, macro, "*/"
18692       next
18693     }
18694   }
18695 }
18696 { print }
18697 _ACAWK
18698 _ACEOF
18699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18700   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18701 fi # test -n "$CONFIG_HEADERS"
18702
18703
18704 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18705 shift
18706 for ac_tag
18707 do
18708   case $ac_tag in
18709   :[FHLC]) ac_mode=$ac_tag; continue;;
18710   esac
18711   case $ac_mode$ac_tag in
18712   :[FHL]*:*);;
18713   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18714   :[FH]-) ac_tag=-:-;;
18715   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18716   esac
18717   ac_save_IFS=$IFS
18718   IFS=:
18719   set x $ac_tag
18720   IFS=$ac_save_IFS
18721   shift
18722   ac_file=$1
18723   shift
18724
18725   case $ac_mode in
18726   :L) ac_source=$1;;
18727   :[FH])
18728     ac_file_inputs=
18729     for ac_f
18730     do
18731       case $ac_f in
18732       -) ac_f="$ac_tmp/stdin";;
18733       *) # Look for the file first in the build tree, then in the source tree
18734          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18735          # because $ac_f cannot contain `:'.
18736          test -f "$ac_f" ||
18737            case $ac_f in
18738            [\\/$]*) false;;
18739            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18740            esac ||
18741            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18742       esac
18743       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18744       as_fn_append ac_file_inputs " '$ac_f'"
18745     done
18746
18747     # Let's still pretend it is `configure' which instantiates (i.e., don't
18748     # use $as_me), people would be surprised to read:
18749     #    /* config.h.  Generated by config.status.  */
18750     configure_input='Generated from '`
18751           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18752         `' by configure.'
18753     if test x"$ac_file" != x-; then
18754       configure_input="$ac_file.  $configure_input"
18755       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18756 $as_echo "$as_me: creating $ac_file" >&6;}
18757     fi
18758     # Neutralize special characters interpreted by sed in replacement strings.
18759     case $configure_input in #(
18760     *\&* | *\|* | *\\* )
18761        ac_sed_conf_input=`$as_echo "$configure_input" |
18762        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18763     *) ac_sed_conf_input=$configure_input;;
18764     esac
18765
18766     case $ac_tag in
18767     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18768       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18769     esac
18770     ;;
18771   esac
18772
18773   ac_dir=`$as_dirname -- "$ac_file" ||
18774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18775          X"$ac_file" : 'X\(//\)[^/]' \| \
18776          X"$ac_file" : 'X\(//\)$' \| \
18777          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18778 $as_echo X"$ac_file" |
18779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18780             s//\1/
18781             q
18782           }
18783           /^X\(\/\/\)[^/].*/{
18784             s//\1/
18785             q
18786           }
18787           /^X\(\/\/\)$/{
18788             s//\1/
18789             q
18790           }
18791           /^X\(\/\).*/{
18792             s//\1/
18793             q
18794           }
18795           s/.*/./; q'`
18796   as_dir="$ac_dir"; as_fn_mkdir_p
18797   ac_builddir=.
18798
18799 case "$ac_dir" in
18800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18801 *)
18802   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18803   # A ".." for each directory in $ac_dir_suffix.
18804   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18805   case $ac_top_builddir_sub in
18806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18808   esac ;;
18809 esac
18810 ac_abs_top_builddir=$ac_pwd
18811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18812 # for backward compatibility:
18813 ac_top_builddir=$ac_top_build_prefix
18814
18815 case $srcdir in
18816   .)  # We are building in place.
18817     ac_srcdir=.
18818     ac_top_srcdir=$ac_top_builddir_sub
18819     ac_abs_top_srcdir=$ac_pwd ;;
18820   [\\/]* | ?:[\\/]* )  # Absolute name.
18821     ac_srcdir=$srcdir$ac_dir_suffix;
18822     ac_top_srcdir=$srcdir
18823     ac_abs_top_srcdir=$srcdir ;;
18824   *) # Relative name.
18825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18826     ac_top_srcdir=$ac_top_build_prefix$srcdir
18827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18828 esac
18829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18830
18831
18832   case $ac_mode in
18833   :F)
18834   #
18835   # CONFIG_FILE
18836   #
18837
18838   case $INSTALL in
18839   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18840   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18841   esac
18842   ac_MKDIR_P=$MKDIR_P
18843   case $MKDIR_P in
18844   [\\/$]* | ?:[\\/]* ) ;;
18845   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18846   esac
18847 _ACEOF
18848
18849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18850 # If the template does not know about datarootdir, expand it.
18851 # FIXME: This hack should be removed a few years after 2.60.
18852 ac_datarootdir_hack=; ac_datarootdir_seen=
18853 ac_sed_dataroot='
18854 /datarootdir/ {
18855   p
18856   q
18857 }
18858 /@datadir@/p
18859 /@docdir@/p
18860 /@infodir@/p
18861 /@localedir@/p
18862 /@mandir@/p'
18863 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18864 *datarootdir*) ac_datarootdir_seen=yes;;
18865 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18866   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18867 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18868 _ACEOF
18869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18870   ac_datarootdir_hack='
18871   s&@datadir@&$datadir&g
18872   s&@docdir@&$docdir&g
18873   s&@infodir@&$infodir&g
18874   s&@localedir@&$localedir&g
18875   s&@mandir@&$mandir&g
18876   s&\\\${datarootdir}&$datarootdir&g' ;;
18877 esac
18878 _ACEOF
18879
18880 # Neutralize VPATH when `$srcdir' = `.'.
18881 # Shell code in configure.ac might set extrasub.
18882 # FIXME: do we really want to maintain this feature?
18883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18884 ac_sed_extra="$ac_vpsub
18885 $extrasub
18886 _ACEOF
18887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18888 :t
18889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18890 s|@configure_input@|$ac_sed_conf_input|;t t
18891 s&@top_builddir@&$ac_top_builddir_sub&;t t
18892 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18893 s&@srcdir@&$ac_srcdir&;t t
18894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18895 s&@top_srcdir@&$ac_top_srcdir&;t t
18896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18897 s&@builddir@&$ac_builddir&;t t
18898 s&@abs_builddir@&$ac_abs_builddir&;t t
18899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18900 s&@INSTALL@&$ac_INSTALL&;t t
18901 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18902 $ac_datarootdir_hack
18903 "
18904 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18905   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18906
18907 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18908   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18909   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18910       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18912 which seems to be undefined.  Please make sure it is defined" >&5
18913 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18914 which seems to be undefined.  Please make sure it is defined" >&2;}
18915
18916   rm -f "$ac_tmp/stdin"
18917   case $ac_file in
18918   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18919   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18920   esac \
18921   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18922  ;;
18923   :H)
18924   #
18925   # CONFIG_HEADER
18926   #
18927   if test x"$ac_file" != x-; then
18928     {
18929       $as_echo "/* $configure_input  */" \
18930       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18931     } >"$ac_tmp/config.h" \
18932       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18933     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18934       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18935 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18936     else
18937       rm -f "$ac_file"
18938       mv "$ac_tmp/config.h" "$ac_file" \
18939         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18940     fi
18941   else
18942     $as_echo "/* $configure_input  */" \
18943       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18944       || as_fn_error $? "could not create -" "$LINENO" 5
18945   fi
18946 # Compute "$ac_file"'s index in $config_headers.
18947 _am_arg="$ac_file"
18948 _am_stamp_count=1
18949 for _am_header in $config_headers :; do
18950   case $_am_header in
18951     $_am_arg | $_am_arg:* )
18952       break ;;
18953     * )
18954       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18955   esac
18956 done
18957 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18958 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959          X"$_am_arg" : 'X\(//\)[^/]' \| \
18960          X"$_am_arg" : 'X\(//\)$' \| \
18961          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18962 $as_echo X"$_am_arg" |
18963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18964             s//\1/
18965             q
18966           }
18967           /^X\(\/\/\)[^/].*/{
18968             s//\1/
18969             q
18970           }
18971           /^X\(\/\/\)$/{
18972             s//\1/
18973             q
18974           }
18975           /^X\(\/\).*/{
18976             s//\1/
18977             q
18978           }
18979           s/.*/./; q'`/stamp-h$_am_stamp_count
18980  ;;
18981
18982   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18983 $as_echo "$as_me: executing $ac_file commands" >&6;}
18984  ;;
18985   esac
18986
18987
18988   case $ac_file$ac_mode in
18989     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18990   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18991   # are listed without --file.  Let's play safe and only enable the eval
18992   # if we detect the quoting.
18993   case $CONFIG_FILES in
18994   *\'*) eval set x "$CONFIG_FILES" ;;
18995   *)   set x $CONFIG_FILES ;;
18996   esac
18997   shift
18998   for mf
18999   do
19000     # Strip MF so we end up with the name of the file.
19001     mf=`echo "$mf" | sed -e 's/:.*$//'`
19002     # Check whether this is an Automake generated Makefile or not.
19003     # We used to match only the files named `Makefile.in', but
19004     # some people rename them; so instead we look at the file content.
19005     # Grep'ing the first line is not enough: some people post-process
19006     # each Makefile.in and add a new line on top of each file to say so.
19007     # Grep'ing the whole file is not good either: AIX grep has a line
19008     # limit of 2048, but all sed's we know have understand at least 4000.
19009     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19010       dirpart=`$as_dirname -- "$mf" ||
19011 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19012          X"$mf" : 'X\(//\)[^/]' \| \
19013          X"$mf" : 'X\(//\)$' \| \
19014          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19015 $as_echo X"$mf" |
19016     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19017             s//\1/
19018             q
19019           }
19020           /^X\(\/\/\)[^/].*/{
19021             s//\1/
19022             q
19023           }
19024           /^X\(\/\/\)$/{
19025             s//\1/
19026             q
19027           }
19028           /^X\(\/\).*/{
19029             s//\1/
19030             q
19031           }
19032           s/.*/./; q'`
19033     else
19034       continue
19035     fi
19036     # Extract the definition of DEPDIR, am__include, and am__quote
19037     # from the Makefile without running `make'.
19038     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19039     test -z "$DEPDIR" && continue
19040     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19041     test -z "am__include" && continue
19042     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19043     # When using ansi2knr, U may be empty or an underscore; expand it
19044     U=`sed -n 's/^U = //p' < "$mf"`
19045     # Find all dependency output files, they are included files with
19046     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19047     # simplest approach to changing $(DEPDIR) to its actual value in the
19048     # expansion.
19049     for file in `sed -n "
19050       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19051          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19052       # Make sure the directory exists.
19053       test -f "$dirpart/$file" && continue
19054       fdir=`$as_dirname -- "$file" ||
19055 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19056          X"$file" : 'X\(//\)[^/]' \| \
19057          X"$file" : 'X\(//\)$' \| \
19058          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19059 $as_echo X"$file" |
19060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19061             s//\1/
19062             q
19063           }
19064           /^X\(\/\/\)[^/].*/{
19065             s//\1/
19066             q
19067           }
19068           /^X\(\/\/\)$/{
19069             s//\1/
19070             q
19071           }
19072           /^X\(\/\).*/{
19073             s//\1/
19074             q
19075           }
19076           s/.*/./; q'`
19077       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19078       # echo "creating $dirpart/$file"
19079       echo '# dummy' > "$dirpart/$file"
19080     done
19081   done
19082 }
19083  ;;
19084     "libtool":C)
19085
19086     # See if we are running on zsh, and set the options which allow our
19087     # commands through without removal of \ escapes.
19088     if test -n "${ZSH_VERSION+set}" ; then
19089       setopt NO_GLOB_SUBST
19090     fi
19091
19092     cfgfile="${ofile}T"
19093     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19094     $RM "$cfgfile"
19095
19096     cat <<_LT_EOF >> "$cfgfile"
19097 #! $SHELL
19098
19099 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19100 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19103 #
19104 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19105 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19106 #                 Foundation, Inc.
19107 #   Written by Gordon Matzigkeit, 1996
19108 #
19109 #   This file is part of GNU Libtool.
19110 #
19111 # GNU Libtool is free software; you can redistribute it and/or
19112 # modify it under the terms of the GNU General Public License as
19113 # published by the Free Software Foundation; either version 2 of
19114 # the License, or (at your option) any later version.
19115 #
19116 # As a special exception to the GNU General Public License,
19117 # if you distribute this file as part of a program or library that
19118 # is built using GNU Libtool, you may include this file under the
19119 # same distribution terms that you use for the rest of that program.
19120 #
19121 # GNU Libtool is distributed in the hope that it will be useful,
19122 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19123 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19124 # GNU General Public License for more details.
19125 #
19126 # You should have received a copy of the GNU General Public License
19127 # along with GNU Libtool; see the file COPYING.  If not, a copy
19128 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19129 # obtained by writing to the Free Software Foundation, Inc.,
19130 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19131
19132
19133 # The names of the tagged configurations supported by this script.
19134 available_tags="CXX "
19135
19136 # ### BEGIN LIBTOOL CONFIG
19137
19138 # Which release of libtool.m4 was used?
19139 macro_version=$macro_version
19140 macro_revision=$macro_revision
19141
19142 # Whether or not to build shared libraries.
19143 build_libtool_libs=$enable_shared
19144
19145 # Whether or not to build static libraries.
19146 build_old_libs=$enable_static
19147
19148 # What type of objects to build.
19149 pic_mode=$pic_mode
19150
19151 # Whether or not to optimize for fast installation.
19152 fast_install=$enable_fast_install
19153
19154 # Shell to use when invoking shell scripts.
19155 SHELL=$lt_SHELL
19156
19157 # An echo program that protects backslashes.
19158 ECHO=$lt_ECHO
19159
19160 # The PATH separator for the build system.
19161 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19162
19163 # The host system.
19164 host_alias=$host_alias
19165 host=$host
19166 host_os=$host_os
19167
19168 # The build system.
19169 build_alias=$build_alias
19170 build=$build
19171 build_os=$build_os
19172
19173 # A sed program that does not truncate output.
19174 SED=$lt_SED
19175
19176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19177 Xsed="\$SED -e 1s/^X//"
19178
19179 # A grep program that handles long lines.
19180 GREP=$lt_GREP
19181
19182 # An ERE matcher.
19183 EGREP=$lt_EGREP
19184
19185 # A literal string matcher.
19186 FGREP=$lt_FGREP
19187
19188 # A BSD- or MS-compatible name lister.
19189 NM=$lt_NM
19190
19191 # Whether we need soft or hard links.
19192 LN_S=$lt_LN_S
19193
19194 # What is the maximum length of a command?
19195 max_cmd_len=$max_cmd_len
19196
19197 # Object file suffix (normally "o").
19198 objext=$ac_objext
19199
19200 # Executable file suffix (normally "").
19201 exeext=$exeext
19202
19203 # whether the shell understands "unset".
19204 lt_unset=$lt_unset
19205
19206 # turn spaces into newlines.
19207 SP2NL=$lt_lt_SP2NL
19208
19209 # turn newlines into spaces.
19210 NL2SP=$lt_lt_NL2SP
19211
19212 # convert \$build file names to \$host format.
19213 to_host_file_cmd=$lt_cv_to_host_file_cmd
19214
19215 # convert \$build files to toolchain format.
19216 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19217
19218 # An object symbol dumper.
19219 OBJDUMP=$lt_OBJDUMP
19220
19221 # Method to check whether dependent libraries are shared objects.
19222 deplibs_check_method=$lt_deplibs_check_method
19223
19224 # Command to use when deplibs_check_method = "file_magic".
19225 file_magic_cmd=$lt_file_magic_cmd
19226
19227 # How to find potential files when deplibs_check_method = "file_magic".
19228 file_magic_glob=$lt_file_magic_glob
19229
19230 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19231 want_nocaseglob=$lt_want_nocaseglob
19232
19233 # DLL creation program.
19234 DLLTOOL=$lt_DLLTOOL
19235
19236 # Command to associate shared and link libraries.
19237 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19238
19239 # The archiver.
19240 AR=$lt_AR
19241
19242 # Flags to create an archive.
19243 AR_FLAGS=$lt_AR_FLAGS
19244
19245 # How to feed a file listing to the archiver.
19246 archiver_list_spec=$lt_archiver_list_spec
19247
19248 # A symbol stripping program.
19249 STRIP=$lt_STRIP
19250
19251 # Commands used to install an old-style archive.
19252 RANLIB=$lt_RANLIB
19253 old_postinstall_cmds=$lt_old_postinstall_cmds
19254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19255
19256 # Whether to use a lock for old archive extraction.
19257 lock_old_archive_extraction=$lock_old_archive_extraction
19258
19259 # A C compiler.
19260 LTCC=$lt_CC
19261
19262 # LTCC compiler flags.
19263 LTCFLAGS=$lt_CFLAGS
19264
19265 # Take the output of nm and produce a listing of raw symbols and C names.
19266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19267
19268 # Transform the output of nm in a proper C declaration.
19269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19270
19271 # Transform the output of nm in a C name address pair.
19272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19273
19274 # Transform the output of nm in a C name address pair when lib prefix is needed.
19275 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19276
19277 # Specify filename containing input files for \$NM.
19278 nm_file_list_spec=$lt_nm_file_list_spec
19279
19280 # The root where to search for dependent libraries,and in which our libraries should be installed.
19281 lt_sysroot=$lt_sysroot
19282
19283 # The name of the directory that contains temporary libtool files.
19284 objdir=$objdir
19285
19286 # Used to examine libraries when file_magic_cmd begins with "file".
19287 MAGIC_CMD=$MAGIC_CMD
19288
19289 # Must we lock files when doing compilation?
19290 need_locks=$lt_need_locks
19291
19292 # Manifest tool.
19293 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19294
19295 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19296 DSYMUTIL=$lt_DSYMUTIL
19297
19298 # Tool to change global to local symbols on Mac OS X.
19299 NMEDIT=$lt_NMEDIT
19300
19301 # Tool to manipulate fat objects and archives on Mac OS X.
19302 LIPO=$lt_LIPO
19303
19304 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19305 OTOOL=$lt_OTOOL
19306
19307 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19308 OTOOL64=$lt_OTOOL64
19309
19310 # Old archive suffix (normally "a").
19311 libext=$libext
19312
19313 # Shared library suffix (normally ".so").
19314 shrext_cmds=$lt_shrext_cmds
19315
19316 # The commands to extract the exported symbol list from a shared archive.
19317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19318
19319 # Variables whose values should be saved in libtool wrapper scripts and
19320 # restored at link time.
19321 variables_saved_for_relink=$lt_variables_saved_for_relink
19322
19323 # Do we need the "lib" prefix for modules?
19324 need_lib_prefix=$need_lib_prefix
19325
19326 # Do we need a version for libraries?
19327 need_version=$need_version
19328
19329 # Library versioning type.
19330 version_type=$version_type
19331
19332 # Shared library runtime path variable.
19333 runpath_var=$runpath_var
19334
19335 # Shared library path variable.
19336 shlibpath_var=$shlibpath_var
19337
19338 # Is shlibpath searched before the hard-coded library search path?
19339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19340
19341 # Format of library name prefix.
19342 libname_spec=$lt_libname_spec
19343
19344 # List of archive names.  First name is the real one, the rest are links.
19345 # The last name is the one that the linker finds with -lNAME
19346 library_names_spec=$lt_library_names_spec
19347
19348 # The coded name of the library, if different from the real name.
19349 soname_spec=$lt_soname_spec
19350
19351 # Permission mode override for installation of shared libraries.
19352 install_override_mode=$lt_install_override_mode
19353
19354 # Command to use after installation of a shared archive.
19355 postinstall_cmds=$lt_postinstall_cmds
19356
19357 # Command to use after uninstallation of a shared archive.
19358 postuninstall_cmds=$lt_postuninstall_cmds
19359
19360 # Commands used to finish a libtool library installation in a directory.
19361 finish_cmds=$lt_finish_cmds
19362
19363 # As "finish_cmds", except a single script fragment to be evaled but
19364 # not shown.
19365 finish_eval=$lt_finish_eval
19366
19367 # Whether we should hardcode library paths into libraries.
19368 hardcode_into_libs=$hardcode_into_libs
19369
19370 # Compile-time system search path for libraries.
19371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19372
19373 # Run-time system search path for libraries.
19374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19375
19376 # Whether dlopen is supported.
19377 dlopen_support=$enable_dlopen
19378
19379 # Whether dlopen of programs is supported.
19380 dlopen_self=$enable_dlopen_self
19381
19382 # Whether dlopen of statically linked programs is supported.
19383 dlopen_self_static=$enable_dlopen_self_static
19384
19385 # Commands to strip libraries.
19386 old_striplib=$lt_old_striplib
19387 striplib=$lt_striplib
19388
19389
19390 # The linker used to build libraries.
19391 LD=$lt_LD
19392
19393 # How to create reloadable object files.
19394 reload_flag=$lt_reload_flag
19395 reload_cmds=$lt_reload_cmds
19396
19397 # Commands used to build an old-style archive.
19398 old_archive_cmds=$lt_old_archive_cmds
19399
19400 # A language specific compiler.
19401 CC=$lt_compiler
19402
19403 # Is the compiler the GNU compiler?
19404 with_gcc=$GCC
19405
19406 # Compiler flag to turn off builtin functions.
19407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19408
19409 # Additional compiler flags for building library objects.
19410 pic_flag=$lt_lt_prog_compiler_pic
19411
19412 # How to pass a linker flag through the compiler.
19413 wl=$lt_lt_prog_compiler_wl
19414
19415 # Compiler flag to prevent dynamic linking.
19416 link_static_flag=$lt_lt_prog_compiler_static
19417
19418 # Does compiler simultaneously support -c and -o options?
19419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19420
19421 # Whether or not to add -lc for building shared libraries.
19422 build_libtool_need_lc=$archive_cmds_need_lc
19423
19424 # Whether or not to disallow shared libs when runtime libs are static.
19425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19426
19427 # Compiler flag to allow reflexive dlopens.
19428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19429
19430 # Compiler flag to generate shared objects directly from archives.
19431 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19432
19433 # Whether the compiler copes with passing no objects directly.
19434 compiler_needs_object=$lt_compiler_needs_object
19435
19436 # Create an old-style archive from a shared archive.
19437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19438
19439 # Create a temporary old-style archive to link instead of a shared archive.
19440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19441
19442 # Commands used to build a shared archive.
19443 archive_cmds=$lt_archive_cmds
19444 archive_expsym_cmds=$lt_archive_expsym_cmds
19445
19446 # Commands used to build a loadable module if different from building
19447 # a shared archive.
19448 module_cmds=$lt_module_cmds
19449 module_expsym_cmds=$lt_module_expsym_cmds
19450
19451 # Whether we are building with GNU ld or not.
19452 with_gnu_ld=$lt_with_gnu_ld
19453
19454 # Flag that allows shared libraries with undefined symbols to be built.
19455 allow_undefined_flag=$lt_allow_undefined_flag
19456
19457 # Flag that enforces no undefined symbols.
19458 no_undefined_flag=$lt_no_undefined_flag
19459
19460 # Flag to hardcode \$libdir into a binary during linking.
19461 # This must work even if \$libdir does not exist
19462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19463
19464 # Whether we need a single "-rpath" flag with a separated argument.
19465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19466
19467 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19468 # DIR into the resulting binary.
19469 hardcode_direct=$hardcode_direct
19470
19471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19472 # DIR into the resulting binary and the resulting library dependency is
19473 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19474 # library is relocated.
19475 hardcode_direct_absolute=$hardcode_direct_absolute
19476
19477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19478 # into the resulting binary.
19479 hardcode_minus_L=$hardcode_minus_L
19480
19481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19482 # into the resulting binary.
19483 hardcode_shlibpath_var=$hardcode_shlibpath_var
19484
19485 # Set to "yes" if building a shared library automatically hardcodes DIR
19486 # into the library and all subsequent libraries and executables linked
19487 # against it.
19488 hardcode_automatic=$hardcode_automatic
19489
19490 # Set to yes if linker adds runtime paths of dependent libraries
19491 # to runtime path list.
19492 inherit_rpath=$inherit_rpath
19493
19494 # Whether libtool must link a program against all its dependency libraries.
19495 link_all_deplibs=$link_all_deplibs
19496
19497 # Set to "yes" if exported symbols are required.
19498 always_export_symbols=$always_export_symbols
19499
19500 # The commands to list exported symbols.
19501 export_symbols_cmds=$lt_export_symbols_cmds
19502
19503 # Symbols that should not be listed in the preloaded symbols.
19504 exclude_expsyms=$lt_exclude_expsyms
19505
19506 # Symbols that must always be exported.
19507 include_expsyms=$lt_include_expsyms
19508
19509 # Commands necessary for linking programs (against libraries) with templates.
19510 prelink_cmds=$lt_prelink_cmds
19511
19512 # Commands necessary for finishing linking programs.
19513 postlink_cmds=$lt_postlink_cmds
19514
19515 # Specify filename containing input files.
19516 file_list_spec=$lt_file_list_spec
19517
19518 # How to hardcode a shared library path into an executable.
19519 hardcode_action=$hardcode_action
19520
19521 # The directories searched by this compiler when creating a shared library.
19522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19523
19524 # Dependencies to place before and after the objects being linked to
19525 # create a shared library.
19526 predep_objects=$lt_predep_objects
19527 postdep_objects=$lt_postdep_objects
19528 predeps=$lt_predeps
19529 postdeps=$lt_postdeps
19530
19531 # The library search path used internally by the compiler when linking
19532 # a shared library.
19533 compiler_lib_search_path=$lt_compiler_lib_search_path
19534
19535 # ### END LIBTOOL CONFIG
19536
19537 _LT_EOF
19538
19539   case $host_os in
19540   aix3*)
19541     cat <<\_LT_EOF >> "$cfgfile"
19542 # AIX sometimes has problems with the GCC collect2 program.  For some
19543 # reason, if we set the COLLECT_NAMES environment variable, the problems
19544 # vanish in a puff of smoke.
19545 if test "X${COLLECT_NAMES+set}" != Xset; then
19546   COLLECT_NAMES=
19547   export COLLECT_NAMES
19548 fi
19549 _LT_EOF
19550     ;;
19551   esac
19552
19553
19554 ltmain="$ac_aux_dir/ltmain.sh"
19555
19556
19557   # We use sed instead of cat because bash on DJGPP gets confused if
19558   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19559   # text mode, it properly converts lines to CR/LF.  This bash problem
19560   # is reportedly fixed, but why not run on old versions too?
19561   sed '$q' "$ltmain" >> "$cfgfile" \
19562      || (rm -f "$cfgfile"; exit 1)
19563
19564   if test x"$xsi_shell" = xyes; then
19565   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19566 func_dirname ()\
19567 {\
19568 \    case ${1} in\
19569 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19570 \      *  ) func_dirname_result="${3}" ;;\
19571 \    esac\
19572 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19573   && mv -f "$cfgfile.tmp" "$cfgfile" \
19574     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19575 test 0 -eq $? || _lt_function_replace_fail=:
19576
19577
19578   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19579 func_basename ()\
19580 {\
19581 \    func_basename_result="${1##*/}"\
19582 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19583   && mv -f "$cfgfile.tmp" "$cfgfile" \
19584     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19585 test 0 -eq $? || _lt_function_replace_fail=:
19586
19587
19588   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19589 func_dirname_and_basename ()\
19590 {\
19591 \    case ${1} in\
19592 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19593 \      *  ) func_dirname_result="${3}" ;;\
19594 \    esac\
19595 \    func_basename_result="${1##*/}"\
19596 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19597   && mv -f "$cfgfile.tmp" "$cfgfile" \
19598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19599 test 0 -eq $? || _lt_function_replace_fail=:
19600
19601
19602   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19603 func_stripname ()\
19604 {\
19605 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19606 \    # positional parameters, so assign one to ordinary parameter first.\
19607 \    func_stripname_result=${3}\
19608 \    func_stripname_result=${func_stripname_result#"${1}"}\
19609 \    func_stripname_result=${func_stripname_result%"${2}"}\
19610 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19611   && mv -f "$cfgfile.tmp" "$cfgfile" \
19612     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19613 test 0 -eq $? || _lt_function_replace_fail=:
19614
19615
19616   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19617 func_split_long_opt ()\
19618 {\
19619 \    func_split_long_opt_name=${1%%=*}\
19620 \    func_split_long_opt_arg=${1#*=}\
19621 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19622   && mv -f "$cfgfile.tmp" "$cfgfile" \
19623     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19624 test 0 -eq $? || _lt_function_replace_fail=:
19625
19626
19627   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19628 func_split_short_opt ()\
19629 {\
19630 \    func_split_short_opt_arg=${1#??}\
19631 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19632 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19633   && mv -f "$cfgfile.tmp" "$cfgfile" \
19634     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19635 test 0 -eq $? || _lt_function_replace_fail=:
19636
19637
19638   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19639 func_lo2o ()\
19640 {\
19641 \    case ${1} in\
19642 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19643 \      *)    func_lo2o_result=${1} ;;\
19644 \    esac\
19645 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19646   && mv -f "$cfgfile.tmp" "$cfgfile" \
19647     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19648 test 0 -eq $? || _lt_function_replace_fail=:
19649
19650
19651   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19652 func_xform ()\
19653 {\
19654     func_xform_result=${1%.*}.lo\
19655 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19656   && mv -f "$cfgfile.tmp" "$cfgfile" \
19657     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19658 test 0 -eq $? || _lt_function_replace_fail=:
19659
19660
19661   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19662 func_arith ()\
19663 {\
19664     func_arith_result=$(( $* ))\
19665 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19666   && mv -f "$cfgfile.tmp" "$cfgfile" \
19667     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19668 test 0 -eq $? || _lt_function_replace_fail=:
19669
19670
19671   sed -e '/^func_len ()$/,/^} # func_len /c\
19672 func_len ()\
19673 {\
19674     func_len_result=${#1}\
19675 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19676   && mv -f "$cfgfile.tmp" "$cfgfile" \
19677     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19678 test 0 -eq $? || _lt_function_replace_fail=:
19679
19680 fi
19681
19682 if test x"$lt_shell_append" = xyes; then
19683   sed -e '/^func_append ()$/,/^} # func_append /c\
19684 func_append ()\
19685 {\
19686     eval "${1}+=\\${2}"\
19687 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19688   && mv -f "$cfgfile.tmp" "$cfgfile" \
19689     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19690 test 0 -eq $? || _lt_function_replace_fail=:
19691
19692
19693   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19694 func_append_quoted ()\
19695 {\
19696 \    func_quote_for_eval "${2}"\
19697 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19698 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19699   && mv -f "$cfgfile.tmp" "$cfgfile" \
19700     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19701 test 0 -eq $? || _lt_function_replace_fail=:
19702
19703
19704   # Save a `func_append' function call where possible by direct use of '+='
19705   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19706     && mv -f "$cfgfile.tmp" "$cfgfile" \
19707       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19708   test 0 -eq $? || _lt_function_replace_fail=:
19709 else
19710   # Save a `func_append' function call even when '+=' is not available
19711   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19712     && mv -f "$cfgfile.tmp" "$cfgfile" \
19713       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19714   test 0 -eq $? || _lt_function_replace_fail=:
19715 fi
19716
19717 if test x"$_lt_function_replace_fail" = x":"; then
19718   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19719 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19720 fi
19721
19722
19723    mv -f "$cfgfile" "$ofile" ||
19724     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19725   chmod +x "$ofile"
19726
19727
19728     cat <<_LT_EOF >> "$ofile"
19729
19730 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19731
19732 # The linker used to build libraries.
19733 LD=$lt_LD_CXX
19734
19735 # How to create reloadable object files.
19736 reload_flag=$lt_reload_flag_CXX
19737 reload_cmds=$lt_reload_cmds_CXX
19738
19739 # Commands used to build an old-style archive.
19740 old_archive_cmds=$lt_old_archive_cmds_CXX
19741
19742 # A language specific compiler.
19743 CC=$lt_compiler_CXX
19744
19745 # Is the compiler the GNU compiler?
19746 with_gcc=$GCC_CXX
19747
19748 # Compiler flag to turn off builtin functions.
19749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19750
19751 # Additional compiler flags for building library objects.
19752 pic_flag=$lt_lt_prog_compiler_pic_CXX
19753
19754 # How to pass a linker flag through the compiler.
19755 wl=$lt_lt_prog_compiler_wl_CXX
19756
19757 # Compiler flag to prevent dynamic linking.
19758 link_static_flag=$lt_lt_prog_compiler_static_CXX
19759
19760 # Does compiler simultaneously support -c and -o options?
19761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19762
19763 # Whether or not to add -lc for building shared libraries.
19764 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19765
19766 # Whether or not to disallow shared libs when runtime libs are static.
19767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19768
19769 # Compiler flag to allow reflexive dlopens.
19770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19771
19772 # Compiler flag to generate shared objects directly from archives.
19773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19774
19775 # Whether the compiler copes with passing no objects directly.
19776 compiler_needs_object=$lt_compiler_needs_object_CXX
19777
19778 # Create an old-style archive from a shared archive.
19779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19780
19781 # Create a temporary old-style archive to link instead of a shared archive.
19782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19783
19784 # Commands used to build a shared archive.
19785 archive_cmds=$lt_archive_cmds_CXX
19786 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19787
19788 # Commands used to build a loadable module if different from building
19789 # a shared archive.
19790 module_cmds=$lt_module_cmds_CXX
19791 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19792
19793 # Whether we are building with GNU ld or not.
19794 with_gnu_ld=$lt_with_gnu_ld_CXX
19795
19796 # Flag that allows shared libraries with undefined symbols to be built.
19797 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19798
19799 # Flag that enforces no undefined symbols.
19800 no_undefined_flag=$lt_no_undefined_flag_CXX
19801
19802 # Flag to hardcode \$libdir into a binary during linking.
19803 # This must work even if \$libdir does not exist
19804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19805
19806 # Whether we need a single "-rpath" flag with a separated argument.
19807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19808
19809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19810 # DIR into the resulting binary.
19811 hardcode_direct=$hardcode_direct_CXX
19812
19813 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19814 # DIR into the resulting binary and the resulting library dependency is
19815 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19816 # library is relocated.
19817 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19818
19819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19820 # into the resulting binary.
19821 hardcode_minus_L=$hardcode_minus_L_CXX
19822
19823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19824 # into the resulting binary.
19825 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19826
19827 # Set to "yes" if building a shared library automatically hardcodes DIR
19828 # into the library and all subsequent libraries and executables linked
19829 # against it.
19830 hardcode_automatic=$hardcode_automatic_CXX
19831
19832 # Set to yes if linker adds runtime paths of dependent libraries
19833 # to runtime path list.
19834 inherit_rpath=$inherit_rpath_CXX
19835
19836 # Whether libtool must link a program against all its dependency libraries.
19837 link_all_deplibs=$link_all_deplibs_CXX
19838
19839 # Set to "yes" if exported symbols are required.
19840 always_export_symbols=$always_export_symbols_CXX
19841
19842 # The commands to list exported symbols.
19843 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19844
19845 # Symbols that should not be listed in the preloaded symbols.
19846 exclude_expsyms=$lt_exclude_expsyms_CXX
19847
19848 # Symbols that must always be exported.
19849 include_expsyms=$lt_include_expsyms_CXX
19850
19851 # Commands necessary for linking programs (against libraries) with templates.
19852 prelink_cmds=$lt_prelink_cmds_CXX
19853
19854 # Commands necessary for finishing linking programs.
19855 postlink_cmds=$lt_postlink_cmds_CXX
19856
19857 # Specify filename containing input files.
19858 file_list_spec=$lt_file_list_spec_CXX
19859
19860 # How to hardcode a shared library path into an executable.
19861 hardcode_action=$hardcode_action_CXX
19862
19863 # The directories searched by this compiler when creating a shared library.
19864 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19865
19866 # Dependencies to place before and after the objects being linked to
19867 # create a shared library.
19868 predep_objects=$lt_predep_objects_CXX
19869 postdep_objects=$lt_postdep_objects_CXX
19870 predeps=$lt_predeps_CXX
19871 postdeps=$lt_postdeps_CXX
19872
19873 # The library search path used internally by the compiler when linking
19874 # a shared library.
19875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19876
19877 # ### END LIBTOOL TAG CONFIG: CXX
19878 _LT_EOF
19879
19880  ;;
19881
19882   esac
19883 done # for ac_tag
19884
19885
19886 as_fn_exit 0
19887 _ACEOF
19888 ac_clean_files=$ac_clean_files_save
19889
19890 test $ac_write_fail = 0 ||
19891   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19892
19893
19894 # configure is writing to config.log, and then calls config.status.
19895 # config.status does its own redirection, appending to config.log.
19896 # Unfortunately, on DOS this fails, as config.log is still kept open
19897 # by configure, so config.status won't be able to write to it; its
19898 # output is simply discarded.  So we exec the FD to /dev/null,
19899 # effectively closing config.log, so it can be properly (re)opened and
19900 # appended to by config.status.  When coming back to configure, we
19901 # need to make the FD available again.
19902 if test "$no_create" != yes; then
19903   ac_cs_success=:
19904   ac_config_status_args=
19905   test "$silent" = yes &&
19906     ac_config_status_args="$ac_config_status_args --quiet"
19907   exec 5>/dev/null
19908   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19909   exec 5>>config.log
19910   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19911   # would make configure fail if this is the last instruction.
19912   $ac_cs_success || as_fn_exit 1
19913 fi
19914 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19915   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19916 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19917 fi
19918