Fix __sync_val_compare_and_swap detection
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for glog 0.3.1.
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 Free Software Foundation,
10 # 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 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: opensource@google.com about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='glog'
703 PACKAGE_TARNAME='glog'
704 PACKAGE_VERSION='0.3.1'
705 PACKAGE_STRING='glog 0.3.1'
706 PACKAGE_BUGREPORT='opensource@google.com'
707 PACKAGE_URL=''
708
709 ac_unique_file="README"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 GMOCK_LIBS
751 GTEST_LIBS
752 GFLAGS_LIBS
753 GMOCK_CFLAGS
754 GTEST_CFLAGS
755 GFLAGS_CFLAGS
756 ac_cv_have_libgflags
757 ac_cv_have___uint16
758 ac_cv_have_u_int16_t
759 ac_cv_have_uint16_t
760 ac_cv_have_unistd_h
761 ac_cv_have_inttypes_h
762 ac_cv_have_systypes_h
763 ac_cv_have_stdint_h
764 ac_cv_have___builtin_expect
765 ac_cv___attribute___printf_4_5
766 ac_cv___attribute___noreturn
767 ac_cv_cxx_using_operator
768 ac_google_namespace
769 ac_google_end_namespace
770 ac_google_start_namespace
771 UNWIND_LIBS
772 HAVE_GMOCK_FALSE
773 HAVE_GMOCK_TRUE
774 GMOCK_CONFIG
775 GTEST_CONFIG
776 PTHREAD_CFLAGS
777 PTHREAD_LIBS
778 PTHREAD_CC
779 acx_pthread_config
780 X86_64_FALSE
781 X86_64_TRUE
782 ENABLE_FRAME_POINTERS_FALSE
783 ENABLE_FRAME_POINTERS_TRUE
784 LIBTOOL_DEPS
785 CXXCPP
786 OTOOL64
787 OTOOL
788 LIPO
789 NMEDIT
790 DSYMUTIL
791 lt_ECHO
792 RANLIB
793 AR
794 OBJDUMP
795 LN_S
796 NM
797 ac_ct_DUMPBIN
798 DUMPBIN
799 LD
800 FGREP
801 EGREP
802 GREP
803 SED
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 LIBTOOL
813 GCC_FALSE
814 GCC_TRUE
815 am__fastdepCXX_FALSE
816 am__fastdepCXX_TRUE
817 CXXDEPMODE
818 ac_ct_CXX
819 CXXFLAGS
820 CXX
821 CPP
822 am__fastdepCC_FALSE
823 am__fastdepCC_TRUE
824 CCDEPMODE
825 AMDEPBACKSLASH
826 AMDEP_FALSE
827 AMDEP_TRUE
828 am__quote
829 am__include
830 DEPDIR
831 OBJEXT
832 EXEEXT
833 ac_ct_CC
834 CPPFLAGS
835 LDFLAGS
836 CFLAGS
837 CC
838 am__untar
839 am__tar
840 AMTAR
841 am__leading_dot
842 SET_MAKE
843 AWK
844 mkdir_p
845 MKDIR_P
846 INSTALL_STRIP_PROGRAM
847 STRIP
848 install_sh
849 MAKEINFO
850 AUTOHEADER
851 AUTOMAKE
852 AUTOCONF
853 ACLOCAL
854 VERSION
855 PACKAGE
856 CYGPATH_W
857 am__isrc
858 INSTALL_DATA
859 INSTALL_SCRIPT
860 INSTALL_PROGRAM
861 target_alias
862 host_alias
863 build_alias
864 LIBS
865 ECHO_T
866 ECHO_N
867 ECHO_C
868 DEFS
869 mandir
870 localedir
871 libdir
872 psdir
873 pdfdir
874 dvidir
875 htmldir
876 infodir
877 docdir
878 oldincludedir
879 includedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_dependency_tracking
903 enable_shared
904 enable_static
905 with_pic
906 enable_fast_install
907 with_gnu_ld
908 enable_libtool_lock
909 enable_frame_pointers
910 with_gflags
911 enable_namespace
912 '
913       ac_precious_vars='build_alias
914 host_alias
915 target_alias
916 CC
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 CPP
922 CXX
923 CXXFLAGS
924 CCC
925 CXXCPP'
926
927
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 ac_unrecognized_opts=
932 ac_unrecognized_sep=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
949
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
975
976 ac_prev=
977 ac_dashdash=
978 for ac_option
979 do
980   # If the previous option needs an argument, assign it.
981   if test -n "$ac_prev"; then
982     eval $ac_prev=\$ac_option
983     ac_prev=
984     continue
985   fi
986
987   case $ac_option in
988   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989   *)    ac_optarg=yes ;;
990   esac
991
992   # Accept the important Cygnus configure options, so we can diagnose typos.
993
994   case $ac_dashdash$ac_option in
995   --)
996     ac_dashdash=yes ;;
997
998   -bindir | --bindir | --bindi | --bind | --bin | --bi)
999     ac_prev=bindir ;;
1000   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001     bindir=$ac_optarg ;;
1002
1003   -build | --build | --buil | --bui | --bu)
1004     ac_prev=build_alias ;;
1005   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006     build_alias=$ac_optarg ;;
1007
1008   -cache-file | --cache-file | --cache-fil | --cache-fi \
1009   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010     ac_prev=cache_file ;;
1011   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013     cache_file=$ac_optarg ;;
1014
1015   --config-cache | -C)
1016     cache_file=config.cache ;;
1017
1018   -datadir | --datadir | --datadi | --datad)
1019     ac_prev=datadir ;;
1020   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021     datadir=$ac_optarg ;;
1022
1023   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024   | --dataroo | --dataro | --datar)
1025     ac_prev=datarootdir ;;
1026   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028     datarootdir=$ac_optarg ;;
1029
1030   -disable-* | --disable-*)
1031     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034       as_fn_error "invalid feature name: $ac_useropt"
1035     ac_useropt_orig=$ac_useropt
1036     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037     case $ac_user_opts in
1038       *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042          ac_unrecognized_sep=', ';;
1043     esac
1044     eval enable_$ac_useropt=no ;;
1045
1046   -docdir | --docdir | --docdi | --doc | --do)
1047     ac_prev=docdir ;;
1048   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049     docdir=$ac_optarg ;;
1050
1051   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052     ac_prev=dvidir ;;
1053   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054     dvidir=$ac_optarg ;;
1055
1056   -enable-* | --enable-*)
1057     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060       as_fn_error "invalid feature name: $ac_useropt"
1061     ac_useropt_orig=$ac_useropt
1062     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063     case $ac_user_opts in
1064       *"
1065 "enable_$ac_useropt"
1066 "*) ;;
1067       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1068          ac_unrecognized_sep=', ';;
1069     esac
1070     eval enable_$ac_useropt=\$ac_optarg ;;
1071
1072   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074   | --exec | --exe | --ex)
1075     ac_prev=exec_prefix ;;
1076   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078   | --exec=* | --exe=* | --ex=*)
1079     exec_prefix=$ac_optarg ;;
1080
1081   -gas | --gas | --ga | --g)
1082     # Obsolete; use --with-gas.
1083     with_gas=yes ;;
1084
1085   -help | --help | --hel | --he | -h)
1086     ac_init_help=long ;;
1087   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088     ac_init_help=recursive ;;
1089   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090     ac_init_help=short ;;
1091
1092   -host | --host | --hos | --ho)
1093     ac_prev=host_alias ;;
1094   -host=* | --host=* | --hos=* | --ho=*)
1095     host_alias=$ac_optarg ;;
1096
1097   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098     ac_prev=htmldir ;;
1099   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100   | --ht=*)
1101     htmldir=$ac_optarg ;;
1102
1103   -includedir | --includedir | --includedi | --included | --include \
1104   | --includ | --inclu | --incl | --inc)
1105     ac_prev=includedir ;;
1106   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107   | --includ=* | --inclu=* | --incl=* | --inc=*)
1108     includedir=$ac_optarg ;;
1109
1110   -infodir | --infodir | --infodi | --infod | --info | --inf)
1111     ac_prev=infodir ;;
1112   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113     infodir=$ac_optarg ;;
1114
1115   -libdir | --libdir | --libdi | --libd)
1116     ac_prev=libdir ;;
1117   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118     libdir=$ac_optarg ;;
1119
1120   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121   | --libexe | --libex | --libe)
1122     ac_prev=libexecdir ;;
1123   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124   | --libexe=* | --libex=* | --libe=*)
1125     libexecdir=$ac_optarg ;;
1126
1127   -localedir | --localedir | --localedi | --localed | --locale)
1128     ac_prev=localedir ;;
1129   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130     localedir=$ac_optarg ;;
1131
1132   -localstatedir | --localstatedir | --localstatedi | --localstated \
1133   | --localstate | --localstat | --localsta | --localst | --locals)
1134     ac_prev=localstatedir ;;
1135   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137     localstatedir=$ac_optarg ;;
1138
1139   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140     ac_prev=mandir ;;
1141   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142     mandir=$ac_optarg ;;
1143
1144   -nfp | --nfp | --nf)
1145     # Obsolete; use --without-fp.
1146     with_fp=no ;;
1147
1148   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149   | --no-cr | --no-c | -n)
1150     no_create=yes ;;
1151
1152   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154     no_recursion=yes ;;
1155
1156   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158   | --oldin | --oldi | --old | --ol | --o)
1159     ac_prev=oldincludedir ;;
1160   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163     oldincludedir=$ac_optarg ;;
1164
1165   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166     ac_prev=prefix ;;
1167   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168     prefix=$ac_optarg ;;
1169
1170   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171   | --program-pre | --program-pr | --program-p)
1172     ac_prev=program_prefix ;;
1173   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175     program_prefix=$ac_optarg ;;
1176
1177   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178   | --program-suf | --program-su | --program-s)
1179     ac_prev=program_suffix ;;
1180   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182     program_suffix=$ac_optarg ;;
1183
1184   -program-transform-name | --program-transform-name \
1185   | --program-transform-nam | --program-transform-na \
1186   | --program-transform-n | --program-transform- \
1187   | --program-transform | --program-transfor \
1188   | --program-transfo | --program-transf \
1189   | --program-trans | --program-tran \
1190   | --progr-tra | --program-tr | --program-t)
1191     ac_prev=program_transform_name ;;
1192   -program-transform-name=* | --program-transform-name=* \
1193   | --program-transform-nam=* | --program-transform-na=* \
1194   | --program-transform-n=* | --program-transform-=* \
1195   | --program-transform=* | --program-transfor=* \
1196   | --program-transfo=* | --program-transf=* \
1197   | --program-trans=* | --program-tran=* \
1198   | --progr-tra=* | --program-tr=* | --program-t=*)
1199     program_transform_name=$ac_optarg ;;
1200
1201   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202     ac_prev=pdfdir ;;
1203   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204     pdfdir=$ac_optarg ;;
1205
1206   -psdir | --psdir | --psdi | --psd | --ps)
1207     ac_prev=psdir ;;
1208   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209     psdir=$ac_optarg ;;
1210
1211   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212   | -silent | --silent | --silen | --sile | --sil)
1213     silent=yes ;;
1214
1215   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216     ac_prev=sbindir ;;
1217   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218   | --sbi=* | --sb=*)
1219     sbindir=$ac_optarg ;;
1220
1221   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223   | --sharedst | --shareds | --shared | --share | --shar \
1224   | --sha | --sh)
1225     ac_prev=sharedstatedir ;;
1226   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229   | --sha=* | --sh=*)
1230     sharedstatedir=$ac_optarg ;;
1231
1232   -site | --site | --sit)
1233     ac_prev=site ;;
1234   -site=* | --site=* | --sit=*)
1235     site=$ac_optarg ;;
1236
1237   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238     ac_prev=srcdir ;;
1239   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240     srcdir=$ac_optarg ;;
1241
1242   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243   | --syscon | --sysco | --sysc | --sys | --sy)
1244     ac_prev=sysconfdir ;;
1245   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247     sysconfdir=$ac_optarg ;;
1248
1249   -target | --target | --targe | --targ | --tar | --ta | --t)
1250     ac_prev=target_alias ;;
1251   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252     target_alias=$ac_optarg ;;
1253
1254   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255     verbose=yes ;;
1256
1257   -version | --version | --versio | --versi | --vers | -V)
1258     ac_init_version=: ;;
1259
1260   -with-* | --with-*)
1261     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264       as_fn_error "invalid package name: $ac_useropt"
1265     ac_useropt_orig=$ac_useropt
1266     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267     case $ac_user_opts in
1268       *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1272          ac_unrecognized_sep=', ';;
1273     esac
1274     eval with_$ac_useropt=\$ac_optarg ;;
1275
1276   -without-* | --without-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280       as_fn_error "invalid package name: $ac_useropt"
1281     ac_useropt_orig=$ac_useropt
1282     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283     case $ac_user_opts in
1284       *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288          ac_unrecognized_sep=', ';;
1289     esac
1290     eval with_$ac_useropt=no ;;
1291
1292   --x)
1293     # Obsolete; use --with-x.
1294     with_x=yes ;;
1295
1296   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297   | --x-incl | --x-inc | --x-in | --x-i)
1298     ac_prev=x_includes ;;
1299   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301     x_includes=$ac_optarg ;;
1302
1303   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305     ac_prev=x_libraries ;;
1306   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308     x_libraries=$ac_optarg ;;
1309
1310   -*) as_fn_error "unrecognized option: \`$ac_option'
1311 Try \`$0 --help' for more information."
1312     ;;
1313
1314   *=*)
1315     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316     # Reject names that are not valid shell variable names.
1317     case $ac_envvar in #(
1318       '' | [0-9]* | *[!_$as_cr_alnum]* )
1319       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1320     esac
1321     eval $ac_envvar=\$ac_optarg
1322     export $ac_envvar ;;
1323
1324   *)
1325     # FIXME: should be removed in autoconf 3.0.
1326     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330     ;;
1331
1332   esac
1333 done
1334
1335 if test -n "$ac_prev"; then
1336   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337   as_fn_error "missing argument to $ac_option"
1338 fi
1339
1340 if test -n "$ac_unrecognized_opts"; then
1341   case $enable_option_checking in
1342     no) ;;
1343     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1344     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345   esac
1346 fi
1347
1348 # Check all directory arguments for consistency.
1349 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                 datadir sysconfdir sharedstatedir localstatedir includedir \
1351                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                 libdir localedir mandir
1353 do
1354   eval ac_val=\$$ac_var
1355   # Remove trailing slashes.
1356   case $ac_val in
1357     */ )
1358       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359       eval $ac_var=\$ac_val;;
1360   esac
1361   # Be sure to have absolute directory names.
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1367 done
1368
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1372 build=$build_alias
1373 host=$host_alias
1374 target=$target_alias
1375
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378   if test "x$build_alias" = x; then
1379     cross_compiling=maybe
1380     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381     If a cross compiler is detected then cross compile mode will be used." >&2
1382   elif test "x$build_alias" != "x$host_alias"; then
1383     cross_compiling=yes
1384   fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396   as_fn_error "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398   as_fn_error "pwd does not report name of working directory"
1399
1400
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403   ac_srcdir_defaulted=yes
1404   # Try the directory containing this script, then the parent directory.
1405   ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407          X"$as_myself" : 'X\(//\)[^/]' \| \
1408          X"$as_myself" : 'X\(//\)$' \| \
1409          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)[^/].*/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\).*/{
1424             s//\1/
1425             q
1426           }
1427           s/.*/./; q'`
1428   srcdir=$ac_confdir
1429   if test ! -r "$srcdir/$ac_unique_file"; then
1430     srcdir=..
1431   fi
1432 else
1433   ac_srcdir_defaulted=no
1434 fi
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1438 fi
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1442         pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445   srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_env_${ac_var}_value=\$${ac_var}
1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464   # Omit some internal or obsolete options to make the list less imposing.
1465   # This message is too long to be a string in the A/UX 3.1 sh.
1466   cat <<_ACEOF
1467 \`configure' configures glog 0.3.1 to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477   -h, --help              display this help and exit
1478       --help=short        display options specific to this package
1479       --help=recursive    display the short help of all the included packages
1480   -V, --version           display version information and exit
1481   -q, --quiet, --silent   do not print \`checking...' messages
1482       --cache-file=FILE   cache test results in FILE [disabled]
1483   -C, --config-cache      alias for \`--cache-file=config.cache'
1484   -n, --no-create         do not create output files
1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488   --prefix=PREFIX         install architecture-independent files in PREFIX
1489                           [$ac_default_prefix]
1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                           [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501   --bindir=DIR            user executables [EPREFIX/bin]
1502   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1503   --libexecdir=DIR        program executables [EPREFIX/libexec]
1504   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1505   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1506   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1507   --libdir=DIR            object code libraries [EPREFIX/lib]
1508   --includedir=DIR        C header files [PREFIX/include]
1509   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1510   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1511   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1512   --infodir=DIR           info documentation [DATAROOTDIR/info]
1513   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1514   --mandir=DIR            man documentation [DATAROOTDIR/man]
1515   --docdir=DIR            documentation root [DATAROOTDIR/doc/glog]
1516   --htmldir=DIR           html documentation [DOCDIR]
1517   --dvidir=DIR            dvi documentation [DOCDIR]
1518   --pdfdir=DIR            pdf documentation [DOCDIR]
1519   --psdir=DIR             ps documentation [DOCDIR]
1520 _ACEOF
1521
1522   cat <<\_ACEOF
1523
1524 Program names:
1525   --program-prefix=PREFIX            prepend PREFIX to installed program names
1526   --program-suffix=SUFFIX            append SUFFIX to installed program names
1527   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1528
1529 System types:
1530   --build=BUILD     configure for building on BUILD [guessed]
1531   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1532 _ACEOF
1533 fi
1534
1535 if test -n "$ac_init_help"; then
1536   case $ac_init_help in
1537      short | recursive ) echo "Configuration of glog 0.3.1:";;
1538    esac
1539   cat <<\_ACEOF
1540
1541 Optional Features:
1542   --disable-option-checking  ignore unrecognized --enable/--with options
1543   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1544   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1545   --disable-dependency-tracking  speeds up one-time build
1546   --enable-dependency-tracking   do not reject slow dependency extractors
1547   --enable-shared[=PKGS]  build shared libraries [default=yes]
1548   --enable-static[=PKGS]  build static libraries [default=yes]
1549   --enable-fast-install[=PKGS]
1550                           optimize for fast installation [default=yes]
1551   --disable-libtool-lock  avoid locking (might break parallel builds)
1552   --enable-frame-pointers On x86_64 systems, compile with
1553                           -fno-omit-frame-pointer (see INSTALL)
1554   --enable-namespace=FOO to define these Google
1555                              classes in the FOO namespace. --disable-namespace
1556                              to define them in the global namespace. Default
1557                              is to define them in namespace google.
1558
1559 Optional Packages:
1560   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562   --with-pic              try to use only PIC/non-PIC objects [default=use
1563                           both]
1564   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565                           --with-gflags=GFLAGS_DIR
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   LIBS        libraries to pass to the linker, e.g. -l<library>
1573   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CPP         C preprocessor
1576   CXX         C++ compiler command
1577   CXXFLAGS    C++ compiler flags
1578   CXXCPP      C++ preprocessor
1579
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1582
1583 Report bugs to <opensource@google.com>.
1584 _ACEOF
1585 ac_status=$?
1586 fi
1587
1588 if test "$ac_init_help" = "recursive"; then
1589   # If there are subdirs, report their specific --help.
1590   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591     test -d "$ac_dir" ||
1592       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593       continue
1594     ac_builddir=.
1595
1596 case "$ac_dir" in
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *)
1599   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600   # A ".." for each directory in $ac_dir_suffix.
1601   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602   case $ac_top_builddir_sub in
1603   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605   esac ;;
1606 esac
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1611
1612 case $srcdir in
1613   .)  # We are building in place.
1614     ac_srcdir=.
1615     ac_top_srcdir=$ac_top_builddir_sub
1616     ac_abs_top_srcdir=$ac_pwd ;;
1617   [\\/]* | ?:[\\/]* )  # Absolute name.
1618     ac_srcdir=$srcdir$ac_dir_suffix;
1619     ac_top_srcdir=$srcdir
1620     ac_abs_top_srcdir=$srcdir ;;
1621   *) # Relative name.
1622     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623     ac_top_srcdir=$ac_top_build_prefix$srcdir
1624     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625 esac
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628     cd "$ac_dir" || { ac_status=$?; continue; }
1629     # Check for guested configure.
1630     if test -f "$ac_srcdir/configure.gnu"; then
1631       echo &&
1632       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633     elif test -f "$ac_srcdir/configure"; then
1634       echo &&
1635       $SHELL "$ac_srcdir/configure" --help=recursive
1636     else
1637       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638     fi || ac_status=$?
1639     cd "$ac_pwd" || { ac_status=$?; break; }
1640   done
1641 fi
1642
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1645   cat <<\_ACEOF
1646 glog configure 0.3.1
1647 generated by GNU Autoconf 2.65
1648
1649 Copyright (C) 2009 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1652 _ACEOF
1653   exit
1654 fi
1655
1656 ## ------------------------ ##
1657 ## Autoconf initialization. ##
1658 ## ------------------------ ##
1659
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_compile ()
1664 {
1665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666   rm -f conftest.$ac_objext
1667   if { { ac_try="$ac_compile"
1668 case "(($ac_try" in
1669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670   *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674   (eval "$ac_compile") 2>conftest.err
1675   ac_status=$?
1676   if test -s conftest.err; then
1677     grep -v '^ *+' conftest.err >conftest.er1
1678     cat conftest.er1 >&5
1679     mv -f conftest.er1 conftest.err
1680   fi
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; } && {
1683          test -z "$ac_c_werror_flag" ||
1684          test ! -s conftest.err
1685        } && test -s conftest.$ac_objext; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691         ac_retval=1
1692 fi
1693   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694   as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_compile
1697
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707   *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712   ac_status=$?
1713   if test -s conftest.err; then
1714     grep -v '^ *+' conftest.err >conftest.er1
1715     cat conftest.er1 >&5
1716     mv -f conftest.er1 conftest.err
1717   fi
1718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719   test $ac_status = 0; } >/dev/null && {
1720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721          test ! -s conftest.err
1722        }; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728     ac_retval=1
1729 fi
1730   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1739 {
1740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741   rm -f conftest.$ac_objext
1742   if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745   *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749   (eval "$ac_compile") 2>conftest.err
1750   ac_status=$?
1751   if test -s conftest.err; then
1752     grep -v '^ *+' conftest.err >conftest.er1
1753     cat conftest.er1 >&5
1754     mv -f conftest.er1 conftest.err
1755   fi
1756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757   test $ac_status = 0; } && {
1758          test -z "$ac_cxx_werror_flag" ||
1759          test ! -s conftest.err
1760        } && test -s conftest.$ac_objext; then :
1761   ac_retval=0
1762 else
1763   $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766         ac_retval=1
1767 fi
1768   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769   as_fn_set_status $ac_retval
1770
1771 } # ac_fn_cxx_try_compile
1772
1773 # ac_fn_c_try_link LINENO
1774 # -----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_link ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   rm -f conftest.$ac_objext conftest$ac_exeext
1780   if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_link") 2>conftest.err
1788   ac_status=$?
1789   if test -s conftest.err; then
1790     grep -v '^ *+' conftest.err >conftest.er1
1791     cat conftest.er1 >&5
1792     mv -f conftest.er1 conftest.err
1793   fi
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; } && {
1796          test -z "$ac_c_werror_flag" ||
1797          test ! -s conftest.err
1798        } && test -s conftest$ac_exeext && {
1799          test "$cross_compiling" = yes ||
1800          $as_test_x conftest$ac_exeext
1801        }; then :
1802   ac_retval=0
1803 else
1804   $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807         ac_retval=1
1808 fi
1809   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811   # interfere with the next link command; also delete a directory that is
1812   # left behind by Apple's compiler.  We do this before executing the actions.
1813   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815   as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_link
1818
1819 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists and can be compiled using the include files in
1822 # INCLUDES, setting the cache variable VAR accordingly.
1823 ac_fn_c_check_header_compile ()
1824 {
1825   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829   $as_echo_n "(cached) " >&6
1830 else
1831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1833 $4
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837   eval "$3=yes"
1838 else
1839   eval "$3=no"
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 fi
1843 eval ac_res=\$$3
1844                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
1848 } # ac_fn_c_check_header_compile
1849
1850 # ac_fn_c_try_run LINENO
1851 # ----------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1853 # that executables *can* be run.
1854 ac_fn_c_try_run ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_link") 2>&5
1865   ac_status=$?
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868   { { case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_try") 2>&5
1875   ac_status=$?
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; }; }; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: program exited with status $ac_status" >&5
1881        $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884        ac_retval=$ac_status
1885 fi
1886   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888   as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_run
1891
1892 # ac_fn_c_check_func LINENO FUNC VAR
1893 # ----------------------------------
1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1895 ac_fn_c_check_func ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901   $as_echo_n "(cached) " >&6
1902 else
1903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1907 #define $2 innocuous_$2
1908
1909 /* System header to define __stub macros and hopefully few prototypes,
1910     which can conflict with char $2 (); below.
1911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912     <limits.h> exists even on freestanding compilers.  */
1913
1914 #ifdef __STDC__
1915 # include <limits.h>
1916 #else
1917 # include <assert.h>
1918 #endif
1919
1920 #undef $2
1921
1922 /* Override any GCC internal prototype to avoid an error.
1923    Use char because int might match the return type of a GCC
1924    builtin and then its argument prototype would still apply.  */
1925 #ifdef __cplusplus
1926 extern "C"
1927 #endif
1928 char $2 ();
1929 /* The GNU C library defines this for functions which it implements
1930     to always fail with ENOSYS.  Some functions are actually named
1931     something starting with __ and the normal name is an alias.  */
1932 #if defined __stub_$2 || defined __stub___$2
1933 choke me
1934 #endif
1935
1936 int
1937 main ()
1938 {
1939 return $2 ();
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_link "$LINENO"; then :
1945   eval "$3=yes"
1946 else
1947   eval "$3=no"
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext \
1950     conftest$ac_exeext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
1957 } # ac_fn_c_check_func
1958
1959 # ac_fn_cxx_try_cpp LINENO
1960 # ------------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_cxx_try_cpp ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   if { { ac_try="$ac_cpp conftest.$ac_ext"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973   ac_status=$?
1974   if test -s conftest.err; then
1975     grep -v '^ *+' conftest.err >conftest.er1
1976     cat conftest.er1 >&5
1977     mv -f conftest.er1 conftest.err
1978   fi
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } >/dev/null && {
1981          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1982          test ! -s conftest.err
1983        }; then :
1984   ac_retval=0
1985 else
1986   $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989     ac_retval=1
1990 fi
1991   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992   as_fn_set_status $ac_retval
1993
1994 } # ac_fn_cxx_try_cpp
1995
1996 # ac_fn_cxx_try_link LINENO
1997 # -------------------------
1998 # Try to link conftest.$ac_ext, and return whether this succeeded.
1999 ac_fn_cxx_try_link ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   rm -f conftest.$ac_objext conftest$ac_exeext
2003   if { { ac_try="$ac_link"
2004 case "(($ac_try" in
2005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006   *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010   (eval "$ac_link") 2>conftest.err
2011   ac_status=$?
2012   if test -s conftest.err; then
2013     grep -v '^ *+' conftest.err >conftest.er1
2014     cat conftest.er1 >&5
2015     mv -f conftest.er1 conftest.err
2016   fi
2017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018   test $ac_status = 0; } && {
2019          test -z "$ac_cxx_werror_flag" ||
2020          test ! -s conftest.err
2021        } && test -s conftest$ac_exeext && {
2022          test "$cross_compiling" = yes ||
2023          $as_test_x conftest$ac_exeext
2024        }; then :
2025   ac_retval=0
2026 else
2027   $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2029
2030         ac_retval=1
2031 fi
2032   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2033   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2034   # interfere with the next link command; also delete a directory that is
2035   # left behind by Apple's compiler.  We do this before executing the actions.
2036   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038   as_fn_set_status $ac_retval
2039
2040 } # ac_fn_cxx_try_link
2041
2042 # ac_fn_cxx_try_run LINENO
2043 # ------------------------
2044 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2045 # that executables *can* be run.
2046 ac_fn_cxx_try_run ()
2047 {
2048   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049   if { { ac_try="$ac_link"
2050 case "(($ac_try" in
2051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052   *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056   (eval "$ac_link") 2>&5
2057   ac_status=$?
2058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2060   { { case "(($ac_try" in
2061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062   *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066   (eval "$ac_try") 2>&5
2067   ac_status=$?
2068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069   test $ac_status = 0; }; }; then :
2070   ac_retval=0
2071 else
2072   $as_echo "$as_me: program exited with status $ac_status" >&5
2073        $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2075
2076        ac_retval=$ac_status
2077 fi
2078   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080   as_fn_set_status $ac_retval
2081
2082 } # ac_fn_cxx_try_run
2083
2084 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2085 # ---------------------------------------------------------
2086 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2087 # the include files in INCLUDES and setting the cache variable VAR
2088 # accordingly.
2089 ac_fn_cxx_check_header_mongrel ()
2090 {
2091   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096   $as_echo_n "(cached) " >&6
2097 fi
2098 eval ac_res=\$$3
2099                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 else
2102   # Is the header compilable?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2104 $as_echo_n "checking $2 usability... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 #include <$2>
2109 _ACEOF
2110 if ac_fn_cxx_try_compile "$LINENO"; then :
2111   ac_header_compiler=yes
2112 else
2113   ac_header_compiler=no
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2117 $as_echo "$ac_header_compiler" >&6; }
2118
2119 # Is the header present?
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2121 $as_echo_n "checking $2 presence... " >&6; }
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h.  */
2124 #include <$2>
2125 _ACEOF
2126 if ac_fn_cxx_try_cpp "$LINENO"; then :
2127   ac_header_preproc=yes
2128 else
2129   ac_header_preproc=no
2130 fi
2131 rm -f conftest.err conftest.$ac_ext
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2133 $as_echo "$ac_header_preproc" >&6; }
2134
2135 # So?  What about this header?
2136 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2137   yes:no: )
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2139 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2141 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142     ;;
2143   no:yes:* )
2144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2145 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2147 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2149 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2151 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2153 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2154 ( cat <<\_ASBOX
2155 ## ------------------------------------ ##
2156 ## Report this to opensource@google.com ##
2157 ## ------------------------------------ ##
2158 _ASBOX
2159      ) | sed "s/^/$as_me: WARNING:     /" >&2
2160     ;;
2161 esac
2162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165   $as_echo_n "(cached) " >&6
2166 else
2167   eval "$3=\$ac_header_compiler"
2168 fi
2169 eval ac_res=\$$3
2170                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 fi
2173   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174
2175 } # ac_fn_cxx_check_header_mongrel
2176
2177 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2178 # ----------------------------------------------
2179 # Tries to find the compile-time value of EXPR in a program that includes
2180 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2181 # computed
2182 ac_fn_cxx_compute_int ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   if test "$cross_compiling" = yes; then
2186     # Depending upon the size, compute the lo and hi bounds.
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h.  */
2189 $4
2190 int
2191 main ()
2192 {
2193 static int test_array [1 - 2 * !(($2) >= 0)];
2194 test_array [0] = 0
2195
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_cxx_try_compile "$LINENO"; then :
2201   ac_lo=0 ac_mid=0
2202   while :; do
2203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h.  */
2205 $4
2206 int
2207 main ()
2208 {
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 test_array [0] = 0
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_cxx_try_compile "$LINENO"; then :
2217   ac_hi=$ac_mid; break
2218 else
2219   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220                         if test $ac_lo -le $ac_mid; then
2221                           ac_lo= ac_hi=
2222                           break
2223                         fi
2224                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227   done
2228 else
2229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 int
2233 main ()
2234 {
2235 static int test_array [1 - 2 * !(($2) < 0)];
2236 test_array [0] = 0
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2243   ac_hi=-1 ac_mid=-1
2244   while :; do
2245     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 int
2249 main ()
2250 {
2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2252 test_array [0] = 0
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_cxx_try_compile "$LINENO"; then :
2259   ac_lo=$ac_mid; break
2260 else
2261   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262                         if test $ac_mid -le $ac_hi; then
2263                           ac_lo= ac_hi=
2264                           break
2265                         fi
2266                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269   done
2270 else
2271   ac_lo= ac_hi=
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 # Binary search between lo and hi bounds.
2277 while test "x$ac_lo" != "x$ac_hi"; do
2278   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 test_array [0] = 0
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_cxx_try_compile "$LINENO"; then :
2293   ac_hi=$ac_mid
2294 else
2295   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 done
2299 case $ac_lo in #((
2300 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2301 '') ac_retval=1 ;;
2302 esac
2303   else
2304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 static long int longval () { return $2; }
2308 static unsigned long int ulongval () { return $2; }
2309 #include <stdio.h>
2310 #include <stdlib.h>
2311 int
2312 main ()
2313 {
2314
2315   FILE *f = fopen ("conftest.val", "w");
2316   if (! f)
2317     return 1;
2318   if (($2) < 0)
2319     {
2320       long int i = longval ();
2321       if (i != ($2))
2322         return 1;
2323       fprintf (f, "%ld", i);
2324     }
2325   else
2326     {
2327       unsigned long int i = ulongval ();
2328       if (i != ($2))
2329         return 1;
2330       fprintf (f, "%lu", i);
2331     }
2332   /* Do not output a trailing newline, as this causes \r\n confusion
2333      on some platforms.  */
2334   return ferror (f) || fclose (f) != 0;
2335
2336   ;
2337   return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_cxx_try_run "$LINENO"; then :
2341   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2342 else
2343   ac_retval=1
2344 fi
2345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2346   conftest.$ac_objext conftest.beam conftest.$ac_ext
2347 rm -f conftest.val
2348
2349   fi
2350   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351   as_fn_set_status $ac_retval
2352
2353 } # ac_fn_cxx_compute_int
2354
2355 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2356 # ---------------------------------------------
2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
2358 # variable VAR accordingly.
2359 ac_fn_cxx_check_type ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   eval "$3=no"
2368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 $4
2371 int
2372 main ()
2373 {
2374 if (sizeof ($2))
2375          return 0;
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h.  */
2383 $4
2384 int
2385 main ()
2386 {
2387 if (sizeof (($2)))
2388             return 0;
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_cxx_try_compile "$LINENO"; then :
2394
2395 else
2396   eval "$3=yes"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$3
2403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406
2407 } # ac_fn_cxx_check_type
2408
2409 # ac_fn_cxx_check_func LINENO FUNC VAR
2410 # ------------------------------------
2411 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2412 ac_fn_cxx_check_func ()
2413 {
2414   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2416 $as_echo_n "checking for $2... " >&6; }
2417 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2418   $as_echo_n "(cached) " >&6
2419 else
2420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h.  */
2422 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2424 #define $2 innocuous_$2
2425
2426 /* System header to define __stub macros and hopefully few prototypes,
2427     which can conflict with char $2 (); below.
2428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2429     <limits.h> exists even on freestanding compilers.  */
2430
2431 #ifdef __STDC__
2432 # include <limits.h>
2433 #else
2434 # include <assert.h>
2435 #endif
2436
2437 #undef $2
2438
2439 /* Override any GCC internal prototype to avoid an error.
2440    Use char because int might match the return type of a GCC
2441    builtin and then its argument prototype would still apply.  */
2442 #ifdef __cplusplus
2443 extern "C"
2444 #endif
2445 char $2 ();
2446 /* The GNU C library defines this for functions which it implements
2447     to always fail with ENOSYS.  Some functions are actually named
2448     something starting with __ and the normal name is an alias.  */
2449 #if defined __stub_$2 || defined __stub___$2
2450 choke me
2451 #endif
2452
2453 int
2454 main ()
2455 {
2456 return $2 ();
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 if ac_fn_cxx_try_link "$LINENO"; then :
2462   eval "$3=yes"
2463 else
2464   eval "$3=no"
2465 fi
2466 rm -f core conftest.err conftest.$ac_objext \
2467     conftest$ac_exeext conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_cxx_check_func
2475 cat >config.log <<_ACEOF
2476 This file contains any messages produced by compilers while
2477 running configure, to aid debugging if configure makes a mistake.
2478
2479 It was created by glog $as_me 0.3.1, which was
2480 generated by GNU Autoconf 2.65.  Invocation command line was
2481
2482   $ $0 $@
2483
2484 _ACEOF
2485 exec 5>>config.log
2486 {
2487 cat <<_ASUNAME
2488 ## --------- ##
2489 ## Platform. ##
2490 ## --------- ##
2491
2492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2497
2498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2499 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2500
2501 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2502 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2504 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2505 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2506 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2507 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2508
2509 _ASUNAME
2510
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516     $as_echo "PATH: $as_dir"
2517   done
2518 IFS=$as_save_IFS
2519
2520 } >&5
2521
2522 cat >&5 <<_ACEOF
2523
2524
2525 ## ----------- ##
2526 ## Core tests. ##
2527 ## ----------- ##
2528
2529 _ACEOF
2530
2531
2532 # Keep a trace of the command line.
2533 # Strip out --no-create and --no-recursion so they do not pile up.
2534 # Strip out --silent because we don't want to record it for future runs.
2535 # Also quote any args containing shell meta-characters.
2536 # Make two passes to allow for proper duplicate-argument suppression.
2537 ac_configure_args=
2538 ac_configure_args0=
2539 ac_configure_args1=
2540 ac_must_keep_next=false
2541 for ac_pass in 1 2
2542 do
2543   for ac_arg
2544   do
2545     case $ac_arg in
2546     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2547     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2548     | -silent | --silent | --silen | --sile | --sil)
2549       continue ;;
2550     *\'*)
2551       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2552     esac
2553     case $ac_pass in
2554     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2555     2)
2556       as_fn_append ac_configure_args1 " '$ac_arg'"
2557       if test $ac_must_keep_next = true; then
2558         ac_must_keep_next=false # Got value, back to normal.
2559       else
2560         case $ac_arg in
2561           *=* | --config-cache | -C | -disable-* | --disable-* \
2562           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2563           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2564           | -with-* | --with-* | -without-* | --without-* | --x)
2565             case "$ac_configure_args0 " in
2566               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2567             esac
2568             ;;
2569           -* ) ac_must_keep_next=true ;;
2570         esac
2571       fi
2572       as_fn_append ac_configure_args " '$ac_arg'"
2573       ;;
2574     esac
2575   done
2576 done
2577 { ac_configure_args0=; unset ac_configure_args0;}
2578 { ac_configure_args1=; unset ac_configure_args1;}
2579
2580 # When interrupted or exit'd, cleanup temporary files, and complete
2581 # config.log.  We remove comments because anyway the quotes in there
2582 # would cause problems or look ugly.
2583 # WARNING: Use '\'' to represent an apostrophe within the trap.
2584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2585 trap 'exit_status=$?
2586   # Save into config.log some information that might help in debugging.
2587   {
2588     echo
2589
2590     cat <<\_ASBOX
2591 ## ---------------- ##
2592 ## Cache variables. ##
2593 ## ---------------- ##
2594 _ASBOX
2595     echo
2596     # The following way of writing the cache mishandles newlines in values,
2597 (
2598   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2599     eval ac_val=\$$ac_var
2600     case $ac_val in #(
2601     *${as_nl}*)
2602       case $ac_var in #(
2603       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2604 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2605       esac
2606       case $ac_var in #(
2607       _ | IFS | as_nl) ;; #(
2608       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2609       *) { eval $ac_var=; unset $ac_var;} ;;
2610       esac ;;
2611     esac
2612   done
2613   (set) 2>&1 |
2614     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2615     *${as_nl}ac_space=\ *)
2616       sed -n \
2617         "s/'\''/'\''\\\\'\'''\''/g;
2618           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2619       ;; #(
2620     *)
2621       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2622       ;;
2623     esac |
2624     sort
2625 )
2626     echo
2627
2628     cat <<\_ASBOX
2629 ## ----------------- ##
2630 ## Output variables. ##
2631 ## ----------------- ##
2632 _ASBOX
2633     echo
2634     for ac_var in $ac_subst_vars
2635     do
2636       eval ac_val=\$$ac_var
2637       case $ac_val in
2638       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2639       esac
2640       $as_echo "$ac_var='\''$ac_val'\''"
2641     done | sort
2642     echo
2643
2644     if test -n "$ac_subst_files"; then
2645       cat <<\_ASBOX
2646 ## ------------------- ##
2647 ## File substitutions. ##
2648 ## ------------------- ##
2649 _ASBOX
2650       echo
2651       for ac_var in $ac_subst_files
2652       do
2653         eval ac_val=\$$ac_var
2654         case $ac_val in
2655         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2656         esac
2657         $as_echo "$ac_var='\''$ac_val'\''"
2658       done | sort
2659       echo
2660     fi
2661
2662     if test -s confdefs.h; then
2663       cat <<\_ASBOX
2664 ## ----------- ##
2665 ## confdefs.h. ##
2666 ## ----------- ##
2667 _ASBOX
2668       echo
2669       cat confdefs.h
2670       echo
2671     fi
2672     test "$ac_signal" != 0 &&
2673       $as_echo "$as_me: caught signal $ac_signal"
2674     $as_echo "$as_me: exit $exit_status"
2675   } >&5
2676   rm -f core *.core core.conftest.* &&
2677     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2678     exit $exit_status
2679 ' 0
2680 for ac_signal in 1 2 13 15; do
2681   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2682 done
2683 ac_signal=0
2684
2685 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2686 rm -f -r conftest* confdefs.h
2687
2688 $as_echo "/* confdefs.h */" > confdefs.h
2689
2690 # Predefined preprocessor variables.
2691
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_NAME "$PACKAGE_NAME"
2694 _ACEOF
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2698 _ACEOF
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2702 _ACEOF
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_STRING "$PACKAGE_STRING"
2706 _ACEOF
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2710 _ACEOF
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_URL "$PACKAGE_URL"
2714 _ACEOF
2715
2716
2717 # Let the site file select an alternate cache file if it wants to.
2718 # Prefer an explicitly selected file to automatically selected ones.
2719 ac_site_file1=NONE
2720 ac_site_file2=NONE
2721 if test -n "$CONFIG_SITE"; then
2722   ac_site_file1=$CONFIG_SITE
2723 elif test "x$prefix" != xNONE; then
2724   ac_site_file1=$prefix/share/config.site
2725   ac_site_file2=$prefix/etc/config.site
2726 else
2727   ac_site_file1=$ac_default_prefix/share/config.site
2728   ac_site_file2=$ac_default_prefix/etc/config.site
2729 fi
2730 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2731 do
2732   test "x$ac_site_file" = xNONE && continue
2733   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2734     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2735 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2736     sed 's/^/| /' "$ac_site_file" >&5
2737     . "$ac_site_file"
2738   fi
2739 done
2740
2741 if test -r "$cache_file"; then
2742   # Some versions of bash will fail to source /dev/null (special files
2743   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2744   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2745     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2746 $as_echo "$as_me: loading cache $cache_file" >&6;}
2747     case $cache_file in
2748       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2749       *)                      . "./$cache_file";;
2750     esac
2751   fi
2752 else
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2754 $as_echo "$as_me: creating cache $cache_file" >&6;}
2755   >$cache_file
2756 fi
2757
2758 # Check that the precious variables saved in the cache have kept the same
2759 # value.
2760 ac_cache_corrupted=false
2761 for ac_var in $ac_precious_vars; do
2762   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2763   eval ac_new_set=\$ac_env_${ac_var}_set
2764   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2765   eval ac_new_val=\$ac_env_${ac_var}_value
2766   case $ac_old_set,$ac_new_set in
2767     set,)
2768       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2770       ac_cache_corrupted=: ;;
2771     ,set)
2772       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2774       ac_cache_corrupted=: ;;
2775     ,);;
2776     *)
2777       if test "x$ac_old_val" != "x$ac_new_val"; then
2778         # differences in whitespace do not lead to failure.
2779         ac_old_val_w=`echo x $ac_old_val`
2780         ac_new_val_w=`echo x $ac_new_val`
2781         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2782           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2784           ac_cache_corrupted=:
2785         else
2786           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2788           eval $ac_var=\$ac_old_val
2789         fi
2790         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2791 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2792         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2793 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2794       fi;;
2795   esac
2796   # Pass precious variables to config.status.
2797   if test "$ac_new_set" = set; then
2798     case $ac_new_val in
2799     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2800     *) ac_arg=$ac_var=$ac_new_val ;;
2801     esac
2802     case " $ac_configure_args " in
2803       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2804       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2805     esac
2806   fi
2807 done
2808 if $ac_cache_corrupted; then
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2813   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2814 fi
2815 ## -------------------- ##
2816 ## Main body of script. ##
2817 ## -------------------- ##
2818
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824
2825
2826 # The argument here is just something that should be in the current directory
2827 # (for sanity checking)
2828
2829
2830 am__api_version='1.11'
2831
2832 ac_aux_dir=
2833 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2834   for ac_t in install-sh install.sh shtool; do
2835     if test -f "$ac_dir/$ac_t"; then
2836       ac_aux_dir=$ac_dir
2837       ac_install_sh="$ac_aux_dir/$ac_t -c"
2838       break 2
2839     fi
2840   done
2841 done
2842 if test -z "$ac_aux_dir"; then
2843   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2844 fi
2845
2846 # These three variables are undocumented and unsupported,
2847 # and are intended to be withdrawn in a future Autoconf release.
2848 # They can cause serious problems if a builder's source tree is in a directory
2849 # whose full name contains unusual characters.
2850 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2851 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2852 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2853
2854
2855 # Find a good install program.  We prefer a C program (faster),
2856 # so one script is as good as another.  But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if test "${ac_cv_path_install+set}" = set; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882   ./ | .// | /[cC]/* | \
2883   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2885   /usr/ucb/* ) ;;
2886   *)
2887     # OSF1 and SCO ODT 3.0 have their own names for install.
2888     # Don't use installbsd from OSF since it installs stuff as root
2889     # by default.
2890     for ac_prog in ginstall scoinst install; do
2891       for ac_exec_ext in '' $ac_executable_extensions; do
2892         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2893           if test $ac_prog = install &&
2894             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895             # AIX install.  It has an incompatible calling convention.
2896             :
2897           elif test $ac_prog = install &&
2898             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899             # program-specific install script used by HP pwplus--don't use.
2900             :
2901           else
2902             rm -rf conftest.one conftest.two conftest.dir
2903             echo one > conftest.one
2904             echo two > conftest.two
2905             mkdir conftest.dir
2906             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907               test -s conftest.one && test -s conftest.two &&
2908               test -s conftest.dir/conftest.one &&
2909               test -s conftest.dir/conftest.two
2910             then
2911               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912               break 3
2913             fi
2914           fi
2915         fi
2916       done
2917     done
2918     ;;
2919 esac
2920
2921   done
2922 IFS=$as_save_IFS
2923
2924 rm -rf conftest.one conftest.two conftest.dir
2925
2926 fi
2927   if test "${ac_cv_path_install+set}" = set; then
2928     INSTALL=$ac_cv_path_install
2929   else
2930     # As a last resort, use the slow shell script.  Don't cache a
2931     # value for INSTALL within a source directory, because that will
2932     # break other packages using the cache if that directory is
2933     # removed, or if the value is a relative name.
2934     INSTALL=$ac_install_sh
2935   fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2939
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2943
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2945
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Just in case
2951 sleep 1
2952 echo timestamp > conftest.file
2953 # Reject unsafe characters in $srcdir or the absolute working directory
2954 # name.  Accept space and tab only in the latter.
2955 am_lf='
2956 '
2957 case `pwd` in
2958   *[\\\"\#\$\&\'\`$am_lf]*)
2959     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2960 esac
2961 case $srcdir in
2962   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2963     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2964 esac
2965
2966 # Do `set' in a subshell so we don't clobber the current shell's
2967 # arguments.  Must try -L first in case configure is actually a
2968 # symlink; some systems play weird games with the mod time of symlinks
2969 # (eg FreeBSD returns the mod time of the symlink's containing
2970 # directory).
2971 if (
2972    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973    if test "$*" = "X"; then
2974       # -L didn't work.
2975       set X `ls -t "$srcdir/configure" conftest.file`
2976    fi
2977    rm -f conftest.file
2978    if test "$*" != "X $srcdir/configure conftest.file" \
2979       && test "$*" != "X conftest.file $srcdir/configure"; then
2980
2981       # If neither matched, then we have a broken ls.  This can happen
2982       # if, for instance, CONFIG_SHELL is bash and it inherits a
2983       # broken ls alias from the environment.  This has actually
2984       # happened.  Such a system could not be considered "sane".
2985       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2987    fi
2988
2989    test "$2" = conftest.file
2990    )
2991 then
2992    # Ok.
2993    :
2994 else
2995    as_fn_error "newly created file is older than distributed files!
2996 Check your system clock" "$LINENO" 5
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2999 $as_echo "yes" >&6; }
3000 test "$program_prefix" != NONE &&
3001   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002 # Use a double $ so make ignores it.
3003 test "$program_suffix" != NONE &&
3004   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005 # Double any \ or $.
3006 # By default was `s,x,x', remove it if useless.
3007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3009
3010 # expand $ac_aux_dir to an absolute path
3011 am_aux_dir=`cd $ac_aux_dir && pwd`
3012
3013 if test x"${MISSING+set}" != xset; then
3014   case $am_aux_dir in
3015   *\ * | *\     *)
3016     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3017   *)
3018     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3019   esac
3020 fi
3021 # Use eval to expand $SHELL
3022 if eval "$MISSING --run true"; then
3023   am_missing_run="$MISSING --run "
3024 else
3025   am_missing_run=
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3028 fi
3029
3030 if test x"${install_sh}" != xset; then
3031   case $am_aux_dir in
3032   *\ * | *\     *)
3033     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3034   *)
3035     install_sh="\${SHELL} $am_aux_dir/install-sh"
3036   esac
3037 fi
3038
3039 # Installed binaries are usually stripped using `strip' when the user
3040 # run `make install-strip'.  However `strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the `STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044   if test -n "$ac_tool_prefix"; then
3045   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_STRIP+set}" = set; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$STRIP"; then
3053   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_exec_ext in '' $ac_executable_extensions; do
3061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 $as_echo "$STRIP" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$ac_cv_prog_STRIP"; then
3084   ac_ct_STRIP=$STRIP
3085   # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$ac_ct_STRIP"; then
3093   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102     ac_cv_prog_ac_ct_STRIP="strip"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115 $as_echo "$ac_ct_STRIP" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121   if test "x$ac_ct_STRIP" = x; then
3122     STRIP=":"
3123   else
3124     case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130     STRIP=$ac_ct_STRIP
3131   fi
3132 else
3133   STRIP="$ac_cv_prog_STRIP"
3134 fi
3135
3136 fi
3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3138
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3141 if test -z "$MKDIR_P"; then
3142   if test "${ac_cv_path_mkdir+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150     for ac_prog in mkdir gmkdir; do
3151          for ac_exec_ext in '' $ac_executable_extensions; do
3152            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3153            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3154              'mkdir (GNU coreutils) '* | \
3155              'mkdir (coreutils) '* | \
3156              'mkdir (fileutils) '4.1*)
3157                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3158                break 3;;
3159            esac
3160          done
3161        done
3162   done
3163 IFS=$as_save_IFS
3164
3165 fi
3166
3167   test -d ./--version && rmdir ./--version
3168   if test "${ac_cv_path_mkdir+set}" = set; then
3169     MKDIR_P="$ac_cv_path_mkdir -p"
3170   else
3171     # As a last resort, use the slow shell script.  Don't cache a
3172     # value for MKDIR_P within a source directory, because that will
3173     # break other packages using the cache if that directory is
3174     # removed, or if the value is a relative name.
3175     MKDIR_P="$ac_install_sh -d"
3176   fi
3177 fi
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3179 $as_echo "$MKDIR_P" >&6; }
3180
3181 mkdir_p="$MKDIR_P"
3182 case $mkdir_p in
3183   [\\/$]* | ?:[\\/]*) ;;
3184   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3185 esac
3186
3187 for ac_prog in gawk mawk nawk awk
3188 do
3189   # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_AWK+set}" = set; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$AWK"; then
3197   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_AWK="$ac_prog"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 AWK=$ac_cv_prog_AWK
3217 if test -n "$AWK"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219 $as_echo "$AWK" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226   test -n "$AWK" && break
3227 done
3228
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3231 set x ${MAKE-make}
3232 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   cat >conftest.make <<\_ACEOF
3237 SHELL = /bin/sh
3238 all:
3239         @echo '@@@%%%=$(MAKE)=@@@%%%'
3240 _ACEOF
3241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3242 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3243   *@@@%%%=?*=@@@%%%*)
3244     eval ac_cv_prog_make_${ac_make}_set=yes;;
3245   *)
3246     eval ac_cv_prog_make_${ac_make}_set=no;;
3247 esac
3248 rm -f conftest.make
3249 fi
3250 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253   SET_MAKE=
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257   SET_MAKE="MAKE=${MAKE-make}"
3258 fi
3259
3260 rm -rf .tst 2>/dev/null
3261 mkdir .tst 2>/dev/null
3262 if test -d .tst; then
3263   am__leading_dot=.
3264 else
3265   am__leading_dot=_
3266 fi
3267 rmdir .tst 2>/dev/null
3268
3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271   # is not polluted with repeated "-I."
3272   am__isrc=' -I$(srcdir)'
3273   # test to see if srcdir already configured
3274   if test -f $srcdir/config.status; then
3275     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3276   fi
3277 fi
3278
3279 # test whether we have cygpath
3280 if test -z "$CYGPATH_W"; then
3281   if (cygpath --version) >/dev/null 2>/dev/null; then
3282     CYGPATH_W='cygpath -w'
3283   else
3284     CYGPATH_W=echo
3285   fi
3286 fi
3287
3288
3289 # Define the identity of the package.
3290  PACKAGE='glog'
3291  VERSION='0.3.1'
3292
3293
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE "$PACKAGE"
3296 _ACEOF
3297
3298
3299 cat >>confdefs.h <<_ACEOF
3300 #define VERSION "$VERSION"
3301 _ACEOF
3302
3303 # Some tools Automake needs.
3304
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3306
3307
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3309
3310
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3312
3313
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3315
3316
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3318
3319 # We need awk for the "check" target.  The system "awk" is bad on
3320 # some platforms.
3321 # Always define AMTAR for backward compatibility.
3322
3323 AMTAR=${AMTAR-"${am_missing_run}tar"}
3324
3325 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3326
3327
3328
3329
3330
3331 ac_config_headers="$ac_config_headers src/config.h"
3332
3333
3334 ac_ext=cpp
3335 ac_cpp='$CXXCPP $CPPFLAGS'
3336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3339
3340
3341 # Checks for programs.
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 if test -n "$ac_tool_prefix"; then
3348   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then :
3353   $as_echo_n "(cached) " >&6
3354 else
3355   if test -n "$CC"; then
3356   ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363     for ac_exec_ext in '' $ac_executable_extensions; do
3364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370   done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385 fi
3386 if test -z "$ac_cv_prog_CC"; then
3387   ac_ct_CC=$CC
3388   # Extract the first word of "gcc", so it can be a program name with args.
3389 set dummy gcc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3393   $as_echo_n "(cached) " >&6
3394 else
3395   if test -n "$ac_ct_CC"; then
3396   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403     for ac_exec_ext in '' $ac_executable_extensions; do
3404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405     ac_cv_prog_ac_ct_CC="gcc"
3406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410   done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424   if test "x$ac_ct_CC" = x; then
3425     CC=""
3426   else
3427     case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433     CC=$ac_ct_CC
3434   fi
3435 else
3436   CC="$ac_cv_prog_CC"
3437 fi
3438
3439 if test -z "$CC"; then
3440           if test -n "$ac_tool_prefix"; then
3441     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}cc; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if test "${ac_cv_prog_CC+set}" = set; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   if test -n "$CC"; then
3449   ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454   IFS=$as_save_IFS
3455   test -z "$as_dir" && as_dir=.
3456     for ac_exec_ext in '' $ac_executable_extensions; do
3457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458     ac_cv_prog_CC="${ac_tool_prefix}cc"
3459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463   done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 CC=$ac_cv_prog_CC
3469 if test -n "$CC"; then
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3472 else
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477
3478   fi
3479 fi
3480 if test -z "$CC"; then
3481   # Extract the first word of "cc", so it can be a program name with args.
3482 set dummy cc; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if test "${ac_cv_prog_CC+set}" = set; then :
3486   $as_echo_n "(cached) " >&6
3487 else
3488   if test -n "$CC"; then
3489   ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491   ac_prog_rejected=no
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495   IFS=$as_save_IFS
3496   test -z "$as_dir" && as_dir=.
3497     for ac_exec_ext in '' $ac_executable_extensions; do
3498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3500        ac_prog_rejected=yes
3501        continue
3502      fi
3503     ac_cv_prog_CC="cc"
3504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505     break 2
3506   fi
3507 done
3508   done
3509 IFS=$as_save_IFS
3510
3511 if test $ac_prog_rejected = yes; then
3512   # We found a bogon in the path, so make sure we never use it.
3513   set dummy $ac_cv_prog_CC
3514   shift
3515   if test $# != 0; then
3516     # We chose a different compiler from the bogus one.
3517     # However, it has the same basename, so the bogon will be chosen
3518     # first if we set CC to just the basename; use the full file name.
3519     shift
3520     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3521   fi
3522 fi
3523 fi
3524 fi
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534
3535 fi
3536 if test -z "$CC"; then
3537   if test -n "$ac_tool_prefix"; then
3538   for ac_prog in cl.exe
3539   do
3540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_CC+set}" = set; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   if test -n "$CC"; then
3548   ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562   done
3563 IFS=$as_save_IFS
3564
3565 fi
3566 fi
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576
3577     test -n "$CC" && break
3578   done
3579 fi
3580 if test -z "$CC"; then
3581   ac_ct_CC=$CC
3582   for ac_prog in cl.exe
3583 do
3584   # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy $ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3589   $as_echo_n "(cached) " >&6
3590 else
3591   if test -n "$ac_ct_CC"; then
3592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599     for ac_exec_ext in '' $ac_executable_extensions; do
3600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601     ac_cv_prog_ac_ct_CC="$ac_prog"
3602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603     break 2
3604   fi
3605 done
3606   done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612 if test -n "$ac_ct_CC"; then
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614 $as_echo "$ac_ct_CC" >&6; }
3615 else
3616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621   test -n "$ac_ct_CC" && break
3622 done
3623
3624   if test "x$ac_ct_CC" = x; then
3625     CC=""
3626   else
3627     case $cross_compiling:$ac_tool_warned in
3628 yes:)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3632 esac
3633     CC=$ac_ct_CC
3634   fi
3635 fi
3636
3637 fi
3638
3639
3640 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error "no acceptable C compiler found in \$PATH
3643 See \`config.log' for more details." "$LINENO" 5; }
3644
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3647 set X $ac_compile
3648 ac_compiler=$2
3649 for ac_option in --version -v -V -qversion; do
3650   { { ac_try="$ac_compiler $ac_option >&5"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3658   ac_status=$?
3659   if test -s conftest.err; then
3660     sed '10a\
3661 ... rest of stderr output deleted ...
3662          10q' conftest.err >conftest.er1
3663     cat conftest.er1 >&5
3664   fi
3665   rm -f conftest.er1 conftest.err
3666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667   test $ac_status = 0; }
3668 done
3669
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 ac_clean_files_save=$ac_clean_files
3682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3683 # Try to create an executable without -o first, disregard a.out.
3684 # It will help us diagnose broken compilers, and finding out an intuition
3685 # of exeext.
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3687 $as_echo_n "checking whether the C compiler works... " >&6; }
3688 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3689
3690 # The possible output files:
3691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3692
3693 ac_rmfiles=
3694 for ac_file in $ac_files
3695 do
3696   case $ac_file in
3697     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3699   esac
3700 done
3701 rm -f $ac_rmfiles
3702
3703 if { { ac_try="$ac_link_default"
3704 case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710   (eval "$ac_link_default") 2>&5
3711   ac_status=$?
3712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713   test $ac_status = 0; }; then :
3714   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3716 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3717 # so that the user can short-circuit this test for compilers unknown to
3718 # Autoconf.
3719 for ac_file in $ac_files ''
3720 do
3721   test -f "$ac_file" || continue
3722   case $ac_file in
3723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3724         ;;
3725     [ab].out )
3726         # We found the default executable, but exeext='' is most
3727         # certainly right.
3728         break;;
3729     *.* )
3730         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3731         then :; else
3732            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3733         fi
3734         # We set ac_cv_exeext here because the later test for it is not
3735         # safe: cross compilers may not add the suffix if given an `-o'
3736         # argument, so we may need to know it at that point already.
3737         # Even if this section looks crufty: it has the advantage of
3738         # actually working.
3739         break;;
3740     * )
3741         break;;
3742   esac
3743 done
3744 test "$ac_cv_exeext" = no && ac_cv_exeext=
3745
3746 else
3747   ac_file=''
3748 fi
3749 if test -z "$ac_file"; then :
3750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3752 $as_echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 { as_fn_set_status 77
3758 as_fn_error "C compiler cannot create executables
3759 See \`config.log' for more details." "$LINENO" 5; }; }
3760 else
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762 $as_echo "yes" >&6; }
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3765 $as_echo_n "checking for C compiler default output file name... " >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3767 $as_echo "$ac_file" >&6; }
3768 ac_exeext=$ac_cv_exeext
3769
3770 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3771 ac_clean_files=$ac_clean_files_save
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3773 $as_echo_n "checking for suffix of executables... " >&6; }
3774 if { { ac_try="$ac_link"
3775 case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781   (eval "$ac_link") 2>&5
3782   ac_status=$?
3783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784   test $ac_status = 0; }; then :
3785   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3786 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3787 # work properly (i.e., refer to `conftest.exe'), while it won't with
3788 # `rm'.
3789 for ac_file in conftest.exe conftest conftest.*; do
3790   test -f "$ac_file" || continue
3791   case $ac_file in
3792     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794           break;;
3795     * ) break;;
3796   esac
3797 done
3798 else
3799   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error "cannot compute suffix of executables: cannot compile and link
3802 See \`config.log' for more details." "$LINENO" 5; }
3803 fi
3804 rm -f conftest conftest$ac_cv_exeext
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3806 $as_echo "$ac_cv_exeext" >&6; }
3807
3808 rm -f conftest.$ac_ext
3809 EXEEXT=$ac_cv_exeext
3810 ac_exeext=$EXEEXT
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813 #include <stdio.h>
3814 int
3815 main ()
3816 {
3817 FILE *f = fopen ("conftest.out", "w");
3818  return ferror (f) || fclose (f) != 0;
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 ac_clean_files="$ac_clean_files conftest.out"
3825 # Check that the compiler produces executables we can run.  If not, either
3826 # the compiler is broken, or we cross compile.
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3828 $as_echo_n "checking whether we are cross compiling... " >&6; }
3829 if test "$cross_compiling" != yes; then
3830   { { ac_try="$ac_link"
3831 case "(($ac_try" in
3832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833   *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837   (eval "$ac_link") 2>&5
3838   ac_status=$?
3839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840   test $ac_status = 0; }
3841   if { ac_try='./conftest$ac_cv_exeext'
3842   { { case "(($ac_try" in
3843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844   *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848   (eval "$ac_try") 2>&5
3849   ac_status=$?
3850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851   test $ac_status = 0; }; }; then
3852     cross_compiling=no
3853   else
3854     if test "$cross_compiling" = maybe; then
3855         cross_compiling=yes
3856     else
3857         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "cannot run C compiled programs.
3860 If you meant to cross compile, use \`--host'.
3861 See \`config.log' for more details." "$LINENO" 5; }
3862     fi
3863   fi
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3866 $as_echo "$cross_compiling" >&6; }
3867
3868 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3869 ac_clean_files=$ac_clean_files_save
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3871 $as_echo_n "checking for suffix of object files... " >&6; }
3872 if test "${ac_cv_objext+set}" = set; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 rm -f conftest.o conftest.obj
3887 if { { ac_try="$ac_compile"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894   (eval "$ac_compile") 2>&5
3895   ac_status=$?
3896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897   test $ac_status = 0; }; then :
3898   for ac_file in conftest.o conftest.obj conftest.*; do
3899   test -f "$ac_file" || continue;
3900   case $ac_file in
3901     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3903        break;;
3904   esac
3905 done
3906 else
3907   $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error "cannot compute suffix of object files: cannot compile
3913 See \`config.log' for more details." "$LINENO" 5; }
3914 fi
3915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3918 $as_echo "$ac_cv_objext" >&6; }
3919 OBJEXT=$ac_cv_objext
3920 ac_objext=$OBJEXT
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3922 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3923 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932 #ifndef __GNUC__
3933        choke me
3934 #endif
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941   ac_compiler_gnu=yes
3942 else
3943   ac_compiler_gnu=no
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3947
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3950 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3951 if test $ac_compiler_gnu = yes; then
3952   GCC=yes
3953 else
3954   GCC=
3955 fi
3956 ac_test_CFLAGS=${CFLAGS+set}
3957 ac_save_CFLAGS=$CFLAGS
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3959 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3960 if test "${ac_cv_prog_cc_g+set}" = set; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   ac_save_c_werror_flag=$ac_c_werror_flag
3964    ac_c_werror_flag=yes
3965    ac_cv_prog_cc_g=no
3966    CFLAGS="-g"
3967    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979   ac_cv_prog_cc_g=yes
3980 else
3981   CFLAGS=""
3982       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h.  */
3984
3985 int
3986 main ()
3987 {
3988
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994
3995 else
3996   ac_c_werror_flag=$ac_save_c_werror_flag
3997          CFLAGS="-g"
3998          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000
4001 int
4002 main ()
4003 {
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010   ac_cv_prog_cc_g=yes
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 fi
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017    ac_c_werror_flag=$ac_save_c_werror_flag
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020 $as_echo "$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022   CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024   if test "$GCC" = yes; then
4025     CFLAGS="-g -O2"
4026   else
4027     CFLAGS="-g"
4028   fi
4029 else
4030   if test "$GCC" = yes; then
4031     CFLAGS="-O2"
4032   else
4033     CFLAGS=
4034   fi
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4037 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4039   $as_echo_n "(cached) " >&6
4040 else
4041   ac_cv_prog_cc_c89=no
4042 ac_save_CC=$CC
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h.  */
4045 #include <stdarg.h>
4046 #include <stdio.h>
4047 #include <sys/types.h>
4048 #include <sys/stat.h>
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4053      char **p;
4054      int i;
4055 {
4056   return p[i];
4057 }
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4059 {
4060   char *s;
4061   va_list v;
4062   va_start (v,p);
4063   s = g (p, va_arg (v,int));
4064   va_end (v);
4065   return s;
4066 }
4067
4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4069    function prototypes and stuff, but not '\xHH' hex character constants.
4070    These don't provoke an error unfortunately, instead are silently treated
4071    as 'x'.  The following induces an error, until -std is added to get
4072    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4073    array size at least.  It's necessary to write '\x00'==0 to get something
4074    that's true only with -std.  */
4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4076
4077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4078    inside strings and character constants.  */
4079 #define FOO(x) 'x'
4080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4081
4082 int test (int i, double x);
4083 struct s1 {int (*f) (int a);};
4084 struct s2 {int (*f) (double a);};
4085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4086 int argc;
4087 char **argv;
4088 int
4089 main ()
4090 {
4091 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4097         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4098 do
4099   CC="$ac_save_CC $ac_arg"
4100   if ac_fn_c_try_compile "$LINENO"; then :
4101   ac_cv_prog_cc_c89=$ac_arg
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext
4104   test "x$ac_cv_prog_cc_c89" != "xno" && break
4105 done
4106 rm -f conftest.$ac_ext
4107 CC=$ac_save_CC
4108
4109 fi
4110 # AC_CACHE_VAL
4111 case "x$ac_cv_prog_cc_c89" in
4112   x)
4113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 $as_echo "none needed" >&6; } ;;
4115   xno)
4116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117 $as_echo "unsupported" >&6; } ;;
4118   *)
4119     CC="$CC $ac_cv_prog_cc_c89"
4120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4121 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4122 esac
4123 if test "x$ac_cv_prog_cc_c89" != xno; then :
4124
4125 fi
4126
4127 ac_ext=cpp
4128 ac_cpp='$CXXCPP $CPPFLAGS'
4129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4132 DEPDIR="${am__leading_dot}deps"
4133
4134 ac_config_commands="$ac_config_commands depfiles"
4135
4136
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4139 am__doit:
4140         @echo this is the am__doit target
4141 .PHONY: am__doit
4142 END
4143 # If we don't find an include directive, just comment out the code.
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4145 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4146 am__include="#"
4147 am__quote=
4148 _am_result=none
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # Ignore all kinds of additional output from `make'.
4152 case `$am_make -s -f confmf 2> /dev/null` in #(
4153 *the\ am__doit\ target*)
4154   am__include=include
4155   am__quote=
4156   _am_result=GNU
4157   ;;
4158 esac
4159 # Now try BSD make style include.
4160 if test "$am__include" = "#"; then
4161    echo '.include "confinc"' > confmf
4162    case `$am_make -s -f confmf 2> /dev/null` in #(
4163    *the\ am__doit\ target*)
4164      am__include=.include
4165      am__quote="\""
4166      _am_result=BSD
4167      ;;
4168    esac
4169 fi
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4173 $as_echo "$_am_result" >&6; }
4174 rm -f confinc confmf
4175
4176 # Check whether --enable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then :
4178   enableval=$enable_dependency_tracking;
4179 fi
4180
4181 if test "x$enable_dependency_tracking" != xno; then
4182   am_depcomp="$ac_aux_dir/depcomp"
4183   AMDEPBACKSLASH='\'
4184 fi
4185  if test "x$enable_dependency_tracking" != xno; then
4186   AMDEP_TRUE=
4187   AMDEP_FALSE='#'
4188 else
4189   AMDEP_TRUE='#'
4190   AMDEP_FALSE=
4191 fi
4192
4193
4194
4195 depcc="$CC"   am_compiler_list=
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
4199 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4200   $as_echo_n "(cached) " >&6
4201 else
4202   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203   # We make a subdir and do the tests there.  Otherwise we can end up
4204   # making bogus files that we don't know about and never remove.  For
4205   # instance it was reported that on HP-UX the gcc test will end up
4206   # making a dummy file named `D' -- because `-MD' means `put the output
4207   # in D'.
4208   mkdir conftest.dir
4209   # Copy depcomp to subdir because otherwise we won't find it if we're
4210   # using a relative directory.
4211   cp "$am_depcomp" conftest.dir
4212   cd conftest.dir
4213   # We will build objects and dependencies in a subdirectory because
4214   # it helps to detect inapplicable dependency modes.  For instance
4215   # both Tru64's cc and ICC support -MD to output dependencies as a
4216   # side effect of compilation, but ICC will put the dependencies in
4217   # the current directory while Tru64 will put them in the object
4218   # directory.
4219   mkdir sub
4220
4221   am_cv_CC_dependencies_compiler_type=none
4222   if test "$am_compiler_list" = ""; then
4223      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4224   fi
4225   am__universal=false
4226   case " $depcc " in #(
4227      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4228      esac
4229
4230   for depmode in $am_compiler_list; do
4231     # Setup a source with many dependencies, because some compilers
4232     # like to wrap large dependency lists on column 80 (with \), and
4233     # we should not choose a depcomp mode which is confused by this.
4234     #
4235     # We need to recreate these files for each test, as the compiler may
4236     # overwrite some of them when testing with obscure command lines.
4237     # This happens at least with the AIX C compiler.
4238     : > sub/conftest.c
4239     for i in 1 2 3 4 5 6; do
4240       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4241       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4242       # Solaris 8's {/usr,}/bin/sh.
4243       touch sub/conftst$i.h
4244     done
4245     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4246
4247     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4248     # mode.  It turns out that the SunPro C++ compiler does not properly
4249     # handle `-M -o', and we need to detect this.  Also, some Intel
4250     # versions had trouble with output in subdirs
4251     am__obj=sub/conftest.${OBJEXT-o}
4252     am__minus_obj="-o $am__obj"
4253     case $depmode in
4254     gcc)
4255       # This depmode causes a compiler race in universal mode.
4256       test "$am__universal" = false || continue
4257       ;;
4258     nosideeffect)
4259       # after this tag, mechanisms are not by side-effect, so they'll
4260       # only be used when explicitly requested
4261       if test "x$enable_dependency_tracking" = xyes; then
4262         continue
4263       else
4264         break
4265       fi
4266       ;;
4267     msvisualcpp | msvcmsys)
4268       # This compiler won't grok `-c -o', but also, the minuso test has
4269       # not run yet.  These depmodes are late enough in the game, and
4270       # so weak that their functioning should not be impacted.
4271       am__obj=conftest.${OBJEXT-o}
4272       am__minus_obj=
4273       ;;
4274     none) break ;;
4275     esac
4276     if depmode=$depmode \
4277        source=sub/conftest.c object=$am__obj \
4278        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4279        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4280          >/dev/null 2>conftest.err &&
4281        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4282        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4283        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4284        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4285       # icc doesn't choke on unknown options, it will just issue warnings
4286       # or remarks (even with -Werror).  So we grep stderr for any message
4287       # that says an option was ignored or not supported.
4288       # When given -MP, icc 7.0 and 7.1 complain thusly:
4289       #   icc: Command line warning: ignoring option '-M'; no argument required
4290       # The diagnosis changed in icc 8.0:
4291       #   icc: Command line remark: option '-MP' not supported
4292       if (grep 'ignoring option' conftest.err ||
4293           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4294         am_cv_CC_dependencies_compiler_type=$depmode
4295         break
4296       fi
4297     fi
4298   done
4299
4300   cd ..
4301   rm -rf conftest.dir
4302 else
4303   am_cv_CC_dependencies_compiler_type=none
4304 fi
4305
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4310
4311  if
4312   test "x$enable_dependency_tracking" != xno \
4313   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4314   am__fastdepCC_TRUE=
4315   am__fastdepCC_FALSE='#'
4316 else
4317   am__fastdepCC_TRUE='#'
4318   am__fastdepCC_FALSE=
4319 fi
4320
4321
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4328 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4329 # On Suns, sometimes $CPP names a directory.
4330 if test -n "$CPP" && test -d "$CPP"; then
4331   CPP=
4332 fi
4333 if test -z "$CPP"; then
4334   if test "${ac_cv_prog_CPP+set}" = set; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337       # Double quotes because CPP needs to be expanded
4338     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4339     do
4340       ac_preproc_ok=false
4341 for ac_c_preproc_warn_flag in '' yes
4342 do
4343   # Use a header file that comes with gcc, so configuring glibc
4344   # with a fresh cross-compiler works.
4345   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346   # <limits.h> exists even on freestanding compilers.
4347   # On the NeXT, cc -E runs the code through the compiler's parser,
4348   # not just through cpp. "Syntax error" is here to catch this case.
4349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351 #ifdef __STDC__
4352 # include <limits.h>
4353 #else
4354 # include <assert.h>
4355 #endif
4356                      Syntax error
4357 _ACEOF
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4359
4360 else
4361   # Broken: fails on valid input.
4362 continue
4363 fi
4364 rm -f conftest.err conftest.$ac_ext
4365
4366   # OK, works on sane cases.  Now check whether nonexistent headers
4367   # can be detected and how.
4368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370 #include <ac_nonexistent.h>
4371 _ACEOF
4372 if ac_fn_c_try_cpp "$LINENO"; then :
4373   # Broken: success on invalid input.
4374 continue
4375 else
4376   # Passes both tests.
4377 ac_preproc_ok=:
4378 break
4379 fi
4380 rm -f conftest.err conftest.$ac_ext
4381
4382 done
4383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384 rm -f conftest.err conftest.$ac_ext
4385 if $ac_preproc_ok; then :
4386   break
4387 fi
4388
4389     done
4390     ac_cv_prog_CPP=$CPP
4391
4392 fi
4393   CPP=$ac_cv_prog_CPP
4394 else
4395   ac_cv_prog_CPP=$CPP
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4398 $as_echo "$CPP" >&6; }
4399 ac_preproc_ok=false
4400 for ac_c_preproc_warn_flag in '' yes
4401 do
4402   # Use a header file that comes with gcc, so configuring glibc
4403   # with a fresh cross-compiler works.
4404   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405   # <limits.h> exists even on freestanding compilers.
4406   # On the NeXT, cc -E runs the code through the compiler's parser,
4407   # not just through cpp. "Syntax error" is here to catch this case.
4408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h.  */
4410 #ifdef __STDC__
4411 # include <limits.h>
4412 #else
4413 # include <assert.h>
4414 #endif
4415                      Syntax error
4416 _ACEOF
4417 if ac_fn_c_try_cpp "$LINENO"; then :
4418
4419 else
4420   # Broken: fails on valid input.
4421 continue
4422 fi
4423 rm -f conftest.err conftest.$ac_ext
4424
4425   # OK, works on sane cases.  Now check whether nonexistent headers
4426   # can be detected and how.
4427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h.  */
4429 #include <ac_nonexistent.h>
4430 _ACEOF
4431 if ac_fn_c_try_cpp "$LINENO"; then :
4432   # Broken: success on invalid input.
4433 continue
4434 else
4435   # Passes both tests.
4436 ac_preproc_ok=:
4437 break
4438 fi
4439 rm -f conftest.err conftest.$ac_ext
4440
4441 done
4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4443 rm -f conftest.err conftest.$ac_ext
4444 if $ac_preproc_ok; then :
4445
4446 else
4447   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4449 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4450 See \`config.log' for more details." "$LINENO" 5; }
4451 fi
4452
4453 ac_ext=cpp
4454 ac_cpp='$CXXCPP $CPPFLAGS'
4455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4458
4459 ac_ext=cpp
4460 ac_cpp='$CXXCPP $CPPFLAGS'
4461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4464 if test -z "$CXX"; then
4465   if test -n "$CCC"; then
4466     CXX=$CCC
4467   else
4468     if test -n "$ac_tool_prefix"; then
4469   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4470   do
4471     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if test "${ac_cv_prog_CXX+set}" = set; then :
4476   $as_echo_n "(cached) " >&6
4477 else
4478   if test -n "$CXX"; then
4479   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486     for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493   done
4494 IFS=$as_save_IFS
4495
4496 fi
4497 fi
4498 CXX=$ac_cv_prog_CXX
4499 if test -n "$CXX"; then
4500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4501 $as_echo "$CXX" >&6; }
4502 else
4503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4505 fi
4506
4507
4508     test -n "$CXX" && break
4509   done
4510 fi
4511 if test -z "$CXX"; then
4512   ac_ct_CXX=$CXX
4513   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4514 do
4515   # Extract the first word of "$ac_prog", so it can be a program name with args.
4516 set dummy $ac_prog; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4520   $as_echo_n "(cached) " >&6
4521 else
4522   if test -n "$ac_ct_CXX"; then
4523   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     ac_cv_prog_ac_ct_CXX="$ac_prog"
4533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537   done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4543 if test -n "$ac_ct_CXX"; then
4544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4545 $as_echo "$ac_ct_CXX" >&6; }
4546 else
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4549 fi
4550
4551
4552   test -n "$ac_ct_CXX" && break
4553 done
4554
4555   if test "x$ac_ct_CXX" = x; then
4556     CXX="g++"
4557   else
4558     case $cross_compiling:$ac_tool_warned in
4559 yes:)
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4562 ac_tool_warned=yes ;;
4563 esac
4564     CXX=$ac_ct_CXX
4565   fi
4566 fi
4567
4568   fi
4569 fi
4570 # Provide some information about the compiler.
4571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4572 set X $ac_compile
4573 ac_compiler=$2
4574 for ac_option in --version -v -V -qversion; do
4575   { { ac_try="$ac_compiler $ac_option >&5"
4576 case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4583   ac_status=$?
4584   if test -s conftest.err; then
4585     sed '10a\
4586 ... rest of stderr output deleted ...
4587          10q' conftest.err >conftest.er1
4588     cat conftest.er1 >&5
4589   fi
4590   rm -f conftest.er1 conftest.err
4591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592   test $ac_status = 0; }
4593 done
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4596 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4597 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602
4603 int
4604 main ()
4605 {
4606 #ifndef __GNUC__
4607        choke me
4608 #endif
4609
4610   ;
4611   return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4615   ac_compiler_gnu=yes
4616 else
4617   ac_compiler_gnu=no
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4624 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4626   GXX=yes
4627 else
4628   GXX=
4629 fi
4630 ac_test_CXXFLAGS=${CXXFLAGS+set}
4631 ac_save_CXXFLAGS=$CXXFLAGS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4633 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4634 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4638    ac_cxx_werror_flag=yes
4639    ac_cv_prog_cxx_g=no
4640    CXXFLAGS="-g"
4641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h.  */
4643
4644 int
4645 main ()
4646 {
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_cxx_try_compile "$LINENO"; then :
4653   ac_cv_prog_cxx_g=yes
4654 else
4655   CXXFLAGS=""
4656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658
4659 int
4660 main ()
4661 {
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_cxx_try_compile "$LINENO"; then :
4668
4669 else
4670   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4671          CXXFLAGS="-g"
4672          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h.  */
4674
4675 int
4676 main ()
4677 {
4678
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_cxx_try_compile "$LINENO"; then :
4684   ac_cv_prog_cxx_g=yes
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4694 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4695 if test "$ac_test_CXXFLAGS" = set; then
4696   CXXFLAGS=$ac_save_CXXFLAGS
4697 elif test $ac_cv_prog_cxx_g = yes; then
4698   if test "$GXX" = yes; then
4699     CXXFLAGS="-g -O2"
4700   else
4701     CXXFLAGS="-g"
4702   fi
4703 else
4704   if test "$GXX" = yes; then
4705     CXXFLAGS="-O2"
4706   else
4707     CXXFLAGS=
4708   fi
4709 fi
4710 ac_ext=cpp
4711 ac_cpp='$CXXCPP $CPPFLAGS'
4712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4715
4716 depcc="$CXX"  am_compiler_list=
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4719 $as_echo_n "checking dependency style of $depcc... " >&6; }
4720 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4721   $as_echo_n "(cached) " >&6
4722 else
4723   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4724   # We make a subdir and do the tests there.  Otherwise we can end up
4725   # making bogus files that we don't know about and never remove.  For
4726   # instance it was reported that on HP-UX the gcc test will end up
4727   # making a dummy file named `D' -- because `-MD' means `put the output
4728   # in D'.
4729   mkdir conftest.dir
4730   # Copy depcomp to subdir because otherwise we won't find it if we're
4731   # using a relative directory.
4732   cp "$am_depcomp" conftest.dir
4733   cd conftest.dir
4734   # We will build objects and dependencies in a subdirectory because
4735   # it helps to detect inapplicable dependency modes.  For instance
4736   # both Tru64's cc and ICC support -MD to output dependencies as a
4737   # side effect of compilation, but ICC will put the dependencies in
4738   # the current directory while Tru64 will put them in the object
4739   # directory.
4740   mkdir sub
4741
4742   am_cv_CXX_dependencies_compiler_type=none
4743   if test "$am_compiler_list" = ""; then
4744      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4745   fi
4746   am__universal=false
4747   case " $depcc " in #(
4748      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4749      esac
4750
4751   for depmode in $am_compiler_list; do
4752     # Setup a source with many dependencies, because some compilers
4753     # like to wrap large dependency lists on column 80 (with \), and
4754     # we should not choose a depcomp mode which is confused by this.
4755     #
4756     # We need to recreate these files for each test, as the compiler may
4757     # overwrite some of them when testing with obscure command lines.
4758     # This happens at least with the AIX C compiler.
4759     : > sub/conftest.c
4760     for i in 1 2 3 4 5 6; do
4761       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4762       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4763       # Solaris 8's {/usr,}/bin/sh.
4764       touch sub/conftst$i.h
4765     done
4766     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4767
4768     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4769     # mode.  It turns out that the SunPro C++ compiler does not properly
4770     # handle `-M -o', and we need to detect this.  Also, some Intel
4771     # versions had trouble with output in subdirs
4772     am__obj=sub/conftest.${OBJEXT-o}
4773     am__minus_obj="-o $am__obj"
4774     case $depmode in
4775     gcc)
4776       # This depmode causes a compiler race in universal mode.
4777       test "$am__universal" = false || continue
4778       ;;
4779     nosideeffect)
4780       # after this tag, mechanisms are not by side-effect, so they'll
4781       # only be used when explicitly requested
4782       if test "x$enable_dependency_tracking" = xyes; then
4783         continue
4784       else
4785         break
4786       fi
4787       ;;
4788     msvisualcpp | msvcmsys)
4789       # This compiler won't grok `-c -o', but also, the minuso test has
4790       # not run yet.  These depmodes are late enough in the game, and
4791       # so weak that their functioning should not be impacted.
4792       am__obj=conftest.${OBJEXT-o}
4793       am__minus_obj=
4794       ;;
4795     none) break ;;
4796     esac
4797     if depmode=$depmode \
4798        source=sub/conftest.c object=$am__obj \
4799        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4800        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4801          >/dev/null 2>conftest.err &&
4802        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4803        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4804        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4805        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4806       # icc doesn't choke on unknown options, it will just issue warnings
4807       # or remarks (even with -Werror).  So we grep stderr for any message
4808       # that says an option was ignored or not supported.
4809       # When given -MP, icc 7.0 and 7.1 complain thusly:
4810       #   icc: Command line warning: ignoring option '-M'; no argument required
4811       # The diagnosis changed in icc 8.0:
4812       #   icc: Command line remark: option '-MP' not supported
4813       if (grep 'ignoring option' conftest.err ||
4814           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4815         am_cv_CXX_dependencies_compiler_type=$depmode
4816         break
4817       fi
4818     fi
4819   done
4820
4821   cd ..
4822   rm -rf conftest.dir
4823 else
4824   am_cv_CXX_dependencies_compiler_type=none
4825 fi
4826
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4829 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4830 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4831
4832  if
4833   test "x$enable_dependency_tracking" != xno \
4834   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4835   am__fastdepCXX_TRUE=
4836   am__fastdepCXX_FALSE='#'
4837 else
4838   am__fastdepCXX_TRUE='#'
4839   am__fastdepCXX_FALSE=
4840 fi
4841
4842
4843  if test "$GCC" = yes; then
4844   GCC_TRUE=
4845   GCC_FALSE='#'
4846 else
4847   GCC_TRUE='#'
4848   GCC_FALSE=
4849 fi
4850    # let the Makefile know if we're gcc
4851
4852 case `pwd` in
4853   *\ * | *\     *)
4854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4855 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4856 esac
4857
4858
4859
4860 macro_version='2.2.6b'
4861 macro_revision='1.3017'
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875 ltmain="$ac_aux_dir/ltmain.sh"
4876
4877 # Make sure we can run config.sub.
4878 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4879   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4882 $as_echo_n "checking build system type... " >&6; }
4883 if test "${ac_cv_build+set}" = set; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   ac_build_alias=$build_alias
4887 test "x$ac_build_alias" = x &&
4888   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4889 test "x$ac_build_alias" = x &&
4890   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4891 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4892   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4893
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4896 $as_echo "$ac_cv_build" >&6; }
4897 case $ac_cv_build in
4898 *-*-*) ;;
4899 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4900 esac
4901 build=$ac_cv_build
4902 ac_save_IFS=$IFS; IFS='-'
4903 set x $ac_cv_build
4904 shift
4905 build_cpu=$1
4906 build_vendor=$2
4907 shift; shift
4908 # Remember, the first character of IFS is used to create $*,
4909 # except with old shells:
4910 build_os=$*
4911 IFS=$ac_save_IFS
4912 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4913
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4916 $as_echo_n "checking host system type... " >&6; }
4917 if test "${ac_cv_host+set}" = set; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   if test "x$host_alias" = x; then
4921   ac_cv_host=$ac_cv_build
4922 else
4923   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4924     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4925 fi
4926
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4929 $as_echo "$ac_cv_host" >&6; }
4930 case $ac_cv_host in
4931 *-*-*) ;;
4932 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4933 esac
4934 host=$ac_cv_host
4935 ac_save_IFS=$IFS; IFS='-'
4936 set x $ac_cv_host
4937 shift
4938 host_cpu=$1
4939 host_vendor=$2
4940 shift; shift
4941 # Remember, the first character of IFS is used to create $*,
4942 # except with old shells:
4943 host_os=$*
4944 IFS=$ac_save_IFS
4945 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4946
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4949 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4950 if test "${ac_cv_path_SED+set}" = set; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4954      for ac_i in 1 2 3 4 5 6 7; do
4955        ac_script="$ac_script$as_nl$ac_script"
4956      done
4957      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4958      { ac_script=; unset ac_script;}
4959      if test -z "$SED"; then
4960   ac_path_SED_found=false
4961   # Loop through the user's path and test for each of PROGNAME-LIST
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967     for ac_prog in sed gsed; do
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4970       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4971 # Check for GNU ac_path_SED and select it if it is found.
4972   # Check for GNU $ac_path_SED
4973 case `"$ac_path_SED" --version 2>&1` in
4974 *GNU*)
4975   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4976 *)
4977   ac_count=0
4978   $as_echo_n 0123456789 >"conftest.in"
4979   while :
4980   do
4981     cat "conftest.in" "conftest.in" >"conftest.tmp"
4982     mv "conftest.tmp" "conftest.in"
4983     cp "conftest.in" "conftest.nl"
4984     $as_echo '' >> "conftest.nl"
4985     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987     as_fn_arith $ac_count + 1 && ac_count=$as_val
4988     if test $ac_count -gt ${ac_path_SED_max-0}; then
4989       # Best one so far, save it but keep looking for a better one
4990       ac_cv_path_SED="$ac_path_SED"
4991       ac_path_SED_max=$ac_count
4992     fi
4993     # 10*(2^10) chars as input seems more than enough
4994     test $ac_count -gt 10 && break
4995   done
4996   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997 esac
4998
4999       $ac_path_SED_found && break 3
5000     done
5001   done
5002   done
5003 IFS=$as_save_IFS
5004   if test -z "$ac_cv_path_SED"; then
5005     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5006   fi
5007 else
5008   ac_cv_path_SED=$SED
5009 fi
5010
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5013 $as_echo "$ac_cv_path_SED" >&6; }
5014  SED="$ac_cv_path_SED"
5015   rm -f conftest.sed
5016
5017 test -z "$SED" && SED=sed
5018 Xsed="$SED -e 1s/^X//"
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5031 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5032 if test "${ac_cv_path_GREP+set}" = set; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   if test -z "$GREP"; then
5036   ac_path_GREP_found=false
5037   # Loop through the user's path and test for each of PROGNAME-LIST
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043     for ac_prog in grep ggrep; do
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5046       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5047 # Check for GNU ac_path_GREP and select it if it is found.
5048   # Check for GNU $ac_path_GREP
5049 case `"$ac_path_GREP" --version 2>&1` in
5050 *GNU*)
5051   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5052 *)
5053   ac_count=0
5054   $as_echo_n 0123456789 >"conftest.in"
5055   while :
5056   do
5057     cat "conftest.in" "conftest.in" >"conftest.tmp"
5058     mv "conftest.tmp" "conftest.in"
5059     cp "conftest.in" "conftest.nl"
5060     $as_echo 'GREP' >> "conftest.nl"
5061     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5062     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5063     as_fn_arith $ac_count + 1 && ac_count=$as_val
5064     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5065       # Best one so far, save it but keep looking for a better one
5066       ac_cv_path_GREP="$ac_path_GREP"
5067       ac_path_GREP_max=$ac_count
5068     fi
5069     # 10*(2^10) chars as input seems more than enough
5070     test $ac_count -gt 10 && break
5071   done
5072   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5073 esac
5074
5075       $ac_path_GREP_found && break 3
5076     done
5077   done
5078   done
5079 IFS=$as_save_IFS
5080   if test -z "$ac_cv_path_GREP"; then
5081     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5082   fi
5083 else
5084   ac_cv_path_GREP=$GREP
5085 fi
5086
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5089 $as_echo "$ac_cv_path_GREP" >&6; }
5090  GREP="$ac_cv_path_GREP"
5091
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5094 $as_echo_n "checking for egrep... " >&6; }
5095 if test "${ac_cv_path_EGREP+set}" = set; then :
5096   $as_echo_n "(cached) " >&6
5097 else
5098   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5099    then ac_cv_path_EGREP="$GREP -E"
5100    else
5101      if test -z "$EGREP"; then
5102   ac_path_EGREP_found=false
5103   # Loop through the user's path and test for each of PROGNAME-LIST
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_prog in egrep; do
5110     for ac_exec_ext in '' $ac_executable_extensions; do
5111       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5112       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5113 # Check for GNU ac_path_EGREP and select it if it is found.
5114   # Check for GNU $ac_path_EGREP
5115 case `"$ac_path_EGREP" --version 2>&1` in
5116 *GNU*)
5117   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5118 *)
5119   ac_count=0
5120   $as_echo_n 0123456789 >"conftest.in"
5121   while :
5122   do
5123     cat "conftest.in" "conftest.in" >"conftest.tmp"
5124     mv "conftest.tmp" "conftest.in"
5125     cp "conftest.in" "conftest.nl"
5126     $as_echo 'EGREP' >> "conftest.nl"
5127     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129     as_fn_arith $ac_count + 1 && ac_count=$as_val
5130     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5131       # Best one so far, save it but keep looking for a better one
5132       ac_cv_path_EGREP="$ac_path_EGREP"
5133       ac_path_EGREP_max=$ac_count
5134     fi
5135     # 10*(2^10) chars as input seems more than enough
5136     test $ac_count -gt 10 && break
5137   done
5138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5139 esac
5140
5141       $ac_path_EGREP_found && break 3
5142     done
5143   done
5144   done
5145 IFS=$as_save_IFS
5146   if test -z "$ac_cv_path_EGREP"; then
5147     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148   fi
5149 else
5150   ac_cv_path_EGREP=$EGREP
5151 fi
5152
5153    fi
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5156 $as_echo "$ac_cv_path_EGREP" >&6; }
5157  EGREP="$ac_cv_path_EGREP"
5158
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5161 $as_echo_n "checking for fgrep... " >&6; }
5162 if test "${ac_cv_path_FGREP+set}" = set; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5166    then ac_cv_path_FGREP="$GREP -F"
5167    else
5168      if test -z "$FGREP"; then
5169   ac_path_FGREP_found=false
5170   # Loop through the user's path and test for each of PROGNAME-LIST
5171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176     for ac_prog in fgrep; do
5177     for ac_exec_ext in '' $ac_executable_extensions; do
5178       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5179       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5180 # Check for GNU ac_path_FGREP and select it if it is found.
5181   # Check for GNU $ac_path_FGREP
5182 case `"$ac_path_FGREP" --version 2>&1` in
5183 *GNU*)
5184   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5185 *)
5186   ac_count=0
5187   $as_echo_n 0123456789 >"conftest.in"
5188   while :
5189   do
5190     cat "conftest.in" "conftest.in" >"conftest.tmp"
5191     mv "conftest.tmp" "conftest.in"
5192     cp "conftest.in" "conftest.nl"
5193     $as_echo 'FGREP' >> "conftest.nl"
5194     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5195     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5196     as_fn_arith $ac_count + 1 && ac_count=$as_val
5197     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5198       # Best one so far, save it but keep looking for a better one
5199       ac_cv_path_FGREP="$ac_path_FGREP"
5200       ac_path_FGREP_max=$ac_count
5201     fi
5202     # 10*(2^10) chars as input seems more than enough
5203     test $ac_count -gt 10 && break
5204   done
5205   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206 esac
5207
5208       $ac_path_FGREP_found && break 3
5209     done
5210   done
5211   done
5212 IFS=$as_save_IFS
5213   if test -z "$ac_cv_path_FGREP"; then
5214     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5215   fi
5216 else
5217   ac_cv_path_FGREP=$FGREP
5218 fi
5219
5220    fi
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5223 $as_echo "$ac_cv_path_FGREP" >&6; }
5224  FGREP="$ac_cv_path_FGREP"
5225
5226
5227 test -z "$GREP" && GREP=grep
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 # Check whether --with-gnu-ld was given.
5248 if test "${with_gnu_ld+set}" = set; then :
5249   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5250 else
5251   with_gnu_ld=no
5252 fi
5253
5254 ac_prog=ld
5255 if test "$GCC" = yes; then
5256   # Check if gcc -print-prog-name=ld gives a path.
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5258 $as_echo_n "checking for ld used by $CC... " >&6; }
5259   case $host in
5260   *-*-mingw*)
5261     # gcc leaves a trailing carriage return which upsets mingw
5262     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5263   *)
5264     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265   esac
5266   case $ac_prog in
5267     # Accept absolute paths.
5268     [\\/]* | ?:[\\/]*)
5269       re_direlt='/[^/][^/]*/\.\./'
5270       # Canonicalize the pathname of ld
5271       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5274       done
5275       test -z "$LD" && LD="$ac_prog"
5276       ;;
5277   "")
5278     # If it fails, then pretend we aren't using GCC.
5279     ac_prog=ld
5280     ;;
5281   *)
5282     # If it is relative, then search for the first ld in PATH.
5283     with_gnu_ld=unknown
5284     ;;
5285   esac
5286 elif test "$with_gnu_ld" = yes; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5288 $as_echo_n "checking for GNU ld... " >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5291 $as_echo_n "checking for non-GNU ld... " >&6; }
5292 fi
5293 if test "${lt_cv_path_LD+set}" = set; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   if test -z "$LD"; then
5297   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5298   for ac_dir in $PATH; do
5299     IFS="$lt_save_ifs"
5300     test -z "$ac_dir" && ac_dir=.
5301     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5302       lt_cv_path_LD="$ac_dir/$ac_prog"
5303       # Check to see if the program is GNU ld.  I'd rather use --version,
5304       # but apparently some variants of GNU ld only accept -v.
5305       # Break only if it was the GNU/non-GNU ld that we prefer.
5306       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5307       *GNU* | *'with BFD'*)
5308         test "$with_gnu_ld" != no && break
5309         ;;
5310       *)
5311         test "$with_gnu_ld" != yes && break
5312         ;;
5313       esac
5314     fi
5315   done
5316   IFS="$lt_save_ifs"
5317 else
5318   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5319 fi
5320 fi
5321
5322 LD="$lt_cv_path_LD"
5323 if test -n "$LD"; then
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5325 $as_echo "$LD" >&6; }
5326 else
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 fi
5330 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5333 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5334   $as_echo_n "(cached) " >&6
5335 else
5336   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5337 case `$LD -v 2>&1 </dev/null` in
5338 *GNU* | *'with BFD'*)
5339   lt_cv_prog_gnu_ld=yes
5340   ;;
5341 *)
5342   lt_cv_prog_gnu_ld=no
5343   ;;
5344 esac
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5348 with_gnu_ld=$lt_cv_prog_gnu_ld
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5359 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5360 if test "${lt_cv_path_NM+set}" = set; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -n "$NM"; then
5364   # Let the user override the test.
5365   lt_cv_path_NM="$NM"
5366 else
5367   lt_nm_to_check="${ac_tool_prefix}nm"
5368   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5369     lt_nm_to_check="$lt_nm_to_check nm"
5370   fi
5371   for lt_tmp_nm in $lt_nm_to_check; do
5372     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5373     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5374       IFS="$lt_save_ifs"
5375       test -z "$ac_dir" && ac_dir=.
5376       tmp_nm="$ac_dir/$lt_tmp_nm"
5377       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5378         # Check to see if the nm accepts a BSD-compat flag.
5379         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5380         #   nm: unknown option "B" ignored
5381         # Tru64's nm complains that /dev/null is an invalid object file
5382         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5383         */dev/null* | *'Invalid file or object type'*)
5384           lt_cv_path_NM="$tmp_nm -B"
5385           break
5386           ;;
5387         *)
5388           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5389           */dev/null*)
5390             lt_cv_path_NM="$tmp_nm -p"
5391             break
5392             ;;
5393           *)
5394             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5395             continue # so that we can try to find one that supports BSD flags
5396             ;;
5397           esac
5398           ;;
5399         esac
5400       fi
5401     done
5402     IFS="$lt_save_ifs"
5403   done
5404   : ${lt_cv_path_NM=no}
5405 fi
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5408 $as_echo "$lt_cv_path_NM" >&6; }
5409 if test "$lt_cv_path_NM" != "no"; then
5410   NM="$lt_cv_path_NM"
5411 else
5412   # Didn't find any BSD compatible name lister, look for dumpbin.
5413   if test -n "$ac_tool_prefix"; then
5414   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5415   do
5416     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   if test -n "$DUMPBIN"; then
5424   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 DUMPBIN=$ac_cv_prog_DUMPBIN
5444 if test -n "$DUMPBIN"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5446 $as_echo "$DUMPBIN" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453     test -n "$DUMPBIN" && break
5454   done
5455 fi
5456 if test -z "$DUMPBIN"; then
5457   ac_ct_DUMPBIN=$DUMPBIN
5458   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5459 do
5460   # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if test -n "$ac_ct_DUMPBIN"; then
5468   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5488 if test -n "$ac_ct_DUMPBIN"; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5490 $as_echo "$ac_ct_DUMPBIN" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497   test -n "$ac_ct_DUMPBIN" && break
5498 done
5499
5500   if test "x$ac_ct_DUMPBIN" = x; then
5501     DUMPBIN=":"
5502   else
5503     case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509     DUMPBIN=$ac_ct_DUMPBIN
5510   fi
5511 fi
5512
5513
5514   if test "$DUMPBIN" != ":"; then
5515     NM="$DUMPBIN"
5516   fi
5517 fi
5518 test -z "$NM" && NM=nm
5519
5520
5521
5522
5523
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5526 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5527 if test "${lt_cv_nm_interface+set}" = set; then :
5528   $as_echo_n "(cached) " >&6
5529 else
5530   lt_cv_nm_interface="BSD nm"
5531   echo "int some_variable = 0;" > conftest.$ac_ext
5532   (eval echo "\"\$as_me:5532: $ac_compile\"" >&5)
5533   (eval "$ac_compile" 2>conftest.err)
5534   cat conftest.err >&5
5535   (eval echo "\"\$as_me:5535: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5536   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5537   cat conftest.err >&5
5538   (eval echo "\"\$as_me:5538: output\"" >&5)
5539   cat conftest.out >&5
5540   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5541     lt_cv_nm_interface="MS dumpbin"
5542   fi
5543   rm -f conftest*
5544 fi
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5546 $as_echo "$lt_cv_nm_interface" >&6; }
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5549 $as_echo_n "checking whether ln -s works... " >&6; }
5550 LN_S=$as_ln_s
5551 if test "$LN_S" = "ln -s"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553 $as_echo "yes" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5556 $as_echo "no, using $LN_S" >&6; }
5557 fi
5558
5559 # find the maximum length of command line arguments
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5562 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565     i=0
5566   teststring="ABCD"
5567
5568   case $build_os in
5569   msdosdjgpp*)
5570     # On DJGPP, this test can blow up pretty badly due to problems in libc
5571     # (any single argument exceeding 2000 bytes causes a buffer overrun
5572     # during glob expansion).  Even if it were fixed, the result of this
5573     # check would be larger than it should be.
5574     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5575     ;;
5576
5577   gnu*)
5578     # Under GNU Hurd, this test is not required because there is
5579     # no limit to the length of command line arguments.
5580     # Libtool will interpret -1 as no limit whatsoever
5581     lt_cv_sys_max_cmd_len=-1;
5582     ;;
5583
5584   cygwin* | mingw* | cegcc*)
5585     # On Win9x/ME, this test blows up -- it succeeds, but takes
5586     # about 5 minutes as the teststring grows exponentially.
5587     # Worse, since 9x/ME are not pre-emptively multitasking,
5588     # you end up with a "frozen" computer, even though with patience
5589     # the test eventually succeeds (with a max line length of 256k).
5590     # Instead, let's just punt: use the minimum linelength reported by
5591     # all of the supported platforms: 8192 (on NT/2K/XP).
5592     lt_cv_sys_max_cmd_len=8192;
5593     ;;
5594
5595   amigaos*)
5596     # On AmigaOS with pdksh, this test takes hours, literally.
5597     # So we just punt and use a minimum line length of 8192.
5598     lt_cv_sys_max_cmd_len=8192;
5599     ;;
5600
5601   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5602     # This has been around since 386BSD, at least.  Likely further.
5603     if test -x /sbin/sysctl; then
5604       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5605     elif test -x /usr/sbin/sysctl; then
5606       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5607     else
5608       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5609     fi
5610     # And add a safety zone
5611     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5612     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5613     ;;
5614
5615   interix*)
5616     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5617     lt_cv_sys_max_cmd_len=196608
5618     ;;
5619
5620   osf*)
5621     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5622     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5623     # nice to cause kernel panics so lets avoid the loop below.
5624     # First set a reasonable default.
5625     lt_cv_sys_max_cmd_len=16384
5626     #
5627     if test -x /sbin/sysconfig; then
5628       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5629         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5630       esac
5631     fi
5632     ;;
5633   sco3.2v5*)
5634     lt_cv_sys_max_cmd_len=102400
5635     ;;
5636   sysv5* | sco5v6* | sysv4.2uw2*)
5637     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5638     if test -n "$kargmax"; then
5639       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5640     else
5641       lt_cv_sys_max_cmd_len=32768
5642     fi
5643     ;;
5644   *)
5645     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5646     if test -n "$lt_cv_sys_max_cmd_len"; then
5647       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5648       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5649     else
5650       # Make teststring a little bigger before we do anything with it.
5651       # a 1K string should be a reasonable start.
5652       for i in 1 2 3 4 5 6 7 8 ; do
5653         teststring=$teststring$teststring
5654       done
5655       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5656       # If test is not a shell built-in, we'll probably end up computing a
5657       # maximum length that is only half of the actual maximum length, but
5658       # we can't tell.
5659       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5660                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5661               test $i != 17 # 1/2 MB should be enough
5662       do
5663         i=`expr $i + 1`
5664         teststring=$teststring$teststring
5665       done
5666       # Only check the string length outside the loop.
5667       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5668       teststring=
5669       # Add a significant safety factor because C++ compilers can tack on
5670       # massive amounts of additional arguments before passing them to the
5671       # linker.  It appears as though 1/2 is a usable value.
5672       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5673     fi
5674     ;;
5675   esac
5676
5677 fi
5678
5679 if test -n $lt_cv_sys_max_cmd_len ; then
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5681 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5682 else
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5684 $as_echo "none" >&6; }
5685 fi
5686 max_cmd_len=$lt_cv_sys_max_cmd_len
5687
5688
5689
5690
5691
5692
5693 : ${CP="cp -f"}
5694 : ${MV="mv -f"}
5695 : ${RM="rm -f"}
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5698 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5699 # Try some XSI features
5700 xsi_shell=no
5701 ( _lt_dummy="a/b/c"
5702   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5703       = c,a/b,, \
5704     && eval 'test $(( 1 + 1 )) -eq 2 \
5705     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5706   && xsi_shell=yes
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5708 $as_echo "$xsi_shell" >&6; }
5709
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5712 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5713 lt_shell_append=no
5714 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5715     >/dev/null 2>&1 \
5716   && lt_shell_append=yes
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5718 $as_echo "$lt_shell_append" >&6; }
5719
5720
5721 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5722   lt_unset=unset
5723 else
5724   lt_unset=false
5725 fi
5726
5727
5728
5729
5730
5731 # test EBCDIC or ASCII
5732 case `echo X|tr X '\101'` in
5733  A) # ASCII based system
5734     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5735   lt_SP2NL='tr \040 \012'
5736   lt_NL2SP='tr \015\012 \040\040'
5737   ;;
5738  *) # EBCDIC based system
5739   lt_SP2NL='tr \100 \n'
5740   lt_NL2SP='tr \r\n \100\100'
5741   ;;
5742 esac
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5753 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5754 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   lt_cv_ld_reload_flag='-r'
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5760 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5761 reload_flag=$lt_cv_ld_reload_flag
5762 case $reload_flag in
5763 "" | " "*) ;;
5764 *) reload_flag=" $reload_flag" ;;
5765 esac
5766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5767 case $host_os in
5768   darwin*)
5769     if test "$GCC" = yes; then
5770       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5771     else
5772       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5773     fi
5774     ;;
5775 esac
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 if test -n "$ac_tool_prefix"; then
5786   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if test -n "$OBJDUMP"; then
5794   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 OBJDUMP=$ac_cv_prog_OBJDUMP
5814 if test -n "$OBJDUMP"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5816 $as_echo "$OBJDUMP" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 fi
5824 if test -z "$ac_cv_prog_OBJDUMP"; then
5825   ac_ct_OBJDUMP=$OBJDUMP
5826   # Extract the first word of "objdump", so it can be a program name with args.
5827 set dummy objdump; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if test -n "$ac_ct_OBJDUMP"; then
5834   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5854 if test -n "$ac_ct_OBJDUMP"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5856 $as_echo "$ac_ct_OBJDUMP" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862   if test "x$ac_ct_OBJDUMP" = x; then
5863     OBJDUMP="false"
5864   else
5865     case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871     OBJDUMP=$ac_ct_OBJDUMP
5872   fi
5873 else
5874   OBJDUMP="$ac_cv_prog_OBJDUMP"
5875 fi
5876
5877 test -z "$OBJDUMP" && OBJDUMP=objdump
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5888 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5889 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   lt_cv_file_magic_cmd='$MAGIC_CMD'
5893 lt_cv_file_magic_test_file=
5894 lt_cv_deplibs_check_method='unknown'
5895 # Need to set the preceding variable on all platforms that support
5896 # interlibrary dependencies.
5897 # 'none' -- dependencies not supported.
5898 # `unknown' -- same as none, but documents that we really don't know.
5899 # 'pass_all' -- all dependencies passed with no checks.
5900 # 'test_compile' -- check by making test program.
5901 # 'file_magic [[regex]]' -- check by looking for files in library path
5902 # which responds to the $file_magic_cmd with a given extended regex.
5903 # If you have `file' or equivalent on your system and you're not sure
5904 # whether `pass_all' will *always* work, you probably want this one.
5905
5906 case $host_os in
5907 aix[4-9]*)
5908   lt_cv_deplibs_check_method=pass_all
5909   ;;
5910
5911 beos*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 bsdi[45]*)
5916   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5917   lt_cv_file_magic_cmd='/usr/bin/file -L'
5918   lt_cv_file_magic_test_file=/shlib/libc.so
5919   ;;
5920
5921 cygwin*)
5922   # func_win32_libid is a shell function defined in ltmain.sh
5923   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5924   lt_cv_file_magic_cmd='func_win32_libid'
5925   ;;
5926
5927 mingw* | pw32*)
5928   # Base MSYS/MinGW do not provide the 'file' command needed by
5929   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5930   # unless we find 'file', for example because we are cross-compiling.
5931   if ( file / ) >/dev/null 2>&1; then
5932     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5933     lt_cv_file_magic_cmd='func_win32_libid'
5934   else
5935     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5936     lt_cv_file_magic_cmd='$OBJDUMP -f'
5937   fi
5938   ;;
5939
5940 cegcc)
5941   # use the weaker test based on 'objdump'. See mingw*.
5942   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5943   lt_cv_file_magic_cmd='$OBJDUMP -f'
5944   ;;
5945
5946 darwin* | rhapsody*)
5947   lt_cv_deplibs_check_method=pass_all
5948   ;;
5949
5950 freebsd* | dragonfly*)
5951   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5952     case $host_cpu in
5953     i*86 )
5954       # Not sure whether the presence of OpenBSD here was a mistake.
5955       # Let's accept both of them until this is cleared up.
5956       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5957       lt_cv_file_magic_cmd=/usr/bin/file
5958       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5959       ;;
5960     esac
5961   else
5962     lt_cv_deplibs_check_method=pass_all
5963   fi
5964   ;;
5965
5966 gnu*)
5967   lt_cv_deplibs_check_method=pass_all
5968   ;;
5969
5970 hpux10.20* | hpux11*)
5971   lt_cv_file_magic_cmd=/usr/bin/file
5972   case $host_cpu in
5973   ia64*)
5974     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5975     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5976     ;;
5977   hppa*64*)
5978     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5979     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5980     ;;
5981   *)
5982     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5983     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5984     ;;
5985   esac
5986   ;;
5987
5988 interix[3-9]*)
5989   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5990   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5991   ;;
5992
5993 irix5* | irix6* | nonstopux*)
5994   case $LD in
5995   *-32|*"-32 ") libmagic=32-bit;;
5996   *-n32|*"-n32 ") libmagic=N32;;
5997   *-64|*"-64 ") libmagic=64-bit;;
5998   *) libmagic=never-match;;
5999   esac
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 # This must be Linux ELF.
6004 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6005   lt_cv_deplibs_check_method=pass_all
6006   ;;
6007
6008 netbsd* | netbsdelf*-gnu)
6009   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6011   else
6012     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6013   fi
6014   ;;
6015
6016 newos6*)
6017   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6018   lt_cv_file_magic_cmd=/usr/bin/file
6019   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6020   ;;
6021
6022 *nto* | *qnx*)
6023   lt_cv_deplibs_check_method=pass_all
6024   ;;
6025
6026 openbsd*)
6027   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6029   else
6030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6031   fi
6032   ;;
6033
6034 osf3* | osf4* | osf5*)
6035   lt_cv_deplibs_check_method=pass_all
6036   ;;
6037
6038 rdos*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041
6042 solaris*)
6043   lt_cv_deplibs_check_method=pass_all
6044   ;;
6045
6046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6047   lt_cv_deplibs_check_method=pass_all
6048   ;;
6049
6050 sysv4 | sysv4.3*)
6051   case $host_vendor in
6052   motorola)
6053     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]'
6054     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6055     ;;
6056   ncr)
6057     lt_cv_deplibs_check_method=pass_all
6058     ;;
6059   sequent)
6060     lt_cv_file_magic_cmd='/bin/file'
6061     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6062     ;;
6063   sni)
6064     lt_cv_file_magic_cmd='/bin/file'
6065     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6066     lt_cv_file_magic_test_file=/lib/libc.so
6067     ;;
6068   siemens)
6069     lt_cv_deplibs_check_method=pass_all
6070     ;;
6071   pc)
6072     lt_cv_deplibs_check_method=pass_all
6073     ;;
6074   esac
6075   ;;
6076
6077 tpf*)
6078   lt_cv_deplibs_check_method=pass_all
6079   ;;
6080 esac
6081
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6084 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6085 file_magic_cmd=$lt_cv_file_magic_cmd
6086 deplibs_check_method=$lt_cv_deplibs_check_method
6087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100 if test -n "$ac_tool_prefix"; then
6101   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}ar; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_AR+set}" = set; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108   if test -n "$AR"; then
6109   ac_cv_prog_AR="$AR" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116     for ac_exec_ext in '' $ac_executable_extensions; do
6117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118     ac_cv_prog_AR="${ac_tool_prefix}ar"
6119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120     break 2
6121   fi
6122 done
6123   done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 AR=$ac_cv_prog_AR
6129 if test -n "$AR"; then
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6131 $as_echo "$AR" >&6; }
6132 else
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137
6138 fi
6139 if test -z "$ac_cv_prog_AR"; then
6140   ac_ct_AR=$AR
6141   # Extract the first word of "ar", so it can be a program name with args.
6142 set dummy ar; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$ac_ct_AR"; then
6149   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_ac_ct_AR="ar"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6169 if test -n "$ac_ct_AR"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6171 $as_echo "$ac_ct_AR" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177   if test "x$ac_ct_AR" = x; then
6178     AR="false"
6179   else
6180     case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186     AR=$ac_ct_AR
6187   fi
6188 else
6189   AR="$ac_cv_prog_AR"
6190 fi
6191
6192 test -z "$AR" && AR=ar
6193 test -z "$AR_FLAGS" && AR_FLAGS=cru
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 if test -n "$ac_tool_prefix"; then
6206   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}strip; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_STRIP+set}" = set; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   if test -n "$STRIP"; then
6214   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228   done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 STRIP=$ac_cv_prog_STRIP
6234 if test -n "$STRIP"; then
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6236 $as_echo "$STRIP" >&6; }
6237 else
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242
6243 fi
6244 if test -z "$ac_cv_prog_STRIP"; then
6245   ac_ct_STRIP=$STRIP
6246   # Extract the first word of "strip", so it can be a program name with args.
6247 set dummy strip; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6251   $as_echo_n "(cached) " >&6
6252 else
6253   if test -n "$ac_ct_STRIP"; then
6254   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_prog_ac_ct_STRIP="strip"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6274 if test -n "$ac_ct_STRIP"; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6276 $as_echo "$ac_ct_STRIP" >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282   if test "x$ac_ct_STRIP" = x; then
6283     STRIP=":"
6284   else
6285     case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291     STRIP=$ac_ct_STRIP
6292   fi
6293 else
6294   STRIP="$ac_cv_prog_STRIP"
6295 fi
6296
6297 test -z "$STRIP" && STRIP=:
6298
6299
6300
6301
6302
6303
6304 if test -n "$ac_tool_prefix"; then
6305   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   if test -n "$RANLIB"; then
6313   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320     for ac_exec_ext in '' $ac_executable_extensions; do
6321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327   done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 RANLIB=$ac_cv_prog_RANLIB
6333 if test -n "$RANLIB"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6335 $as_echo "$RANLIB" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_RANLIB"; then
6344   ac_ct_RANLIB=$RANLIB
6345   # Extract the first word of "ranlib", so it can be a program name with args.
6346 set dummy ranlib; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   if test -n "$ac_ct_RANLIB"; then
6353   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_prog_ac_ct_RANLIB="ranlib"
6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367   done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6373 if test -n "$ac_ct_RANLIB"; then
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6375 $as_echo "$ac_ct_RANLIB" >&6; }
6376 else
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381   if test "x$ac_ct_RANLIB" = x; then
6382     RANLIB=":"
6383   else
6384     case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390     RANLIB=$ac_ct_RANLIB
6391   fi
6392 else
6393   RANLIB="$ac_cv_prog_RANLIB"
6394 fi
6395
6396 test -z "$RANLIB" && RANLIB=:
6397
6398
6399
6400
6401
6402
6403 # Determine commands to create old-style static archives.
6404 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6405 old_postinstall_cmds='chmod 644 $oldlib'
6406 old_postuninstall_cmds=
6407
6408 if test -n "$RANLIB"; then
6409   case $host_os in
6410   openbsd*)
6411     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6412     ;;
6413   *)
6414     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6415     ;;
6416   esac
6417   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6418 fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 # If no C compiler was specified, use CC.
6454 LTCC=${LTCC-"$CC"}
6455
6456 # If no C compiler flags were specified, use CFLAGS.
6457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6458
6459 # Allow CC to be a program name with arguments.
6460 compiler=$CC
6461
6462
6463 # Check for command to grab the raw symbol name followed by C symbol from nm.
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6465 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6466 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469
6470 # These are sane defaults that work on at least a few old systems.
6471 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6472
6473 # Character class describing NM global symbol codes.
6474 symcode='[BCDEGRST]'
6475
6476 # Regexp to match symbols that can be accessed directly from C.
6477 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6478
6479 # Define system-specific variables.
6480 case $host_os in
6481 aix*)
6482   symcode='[BCDT]'
6483   ;;
6484 cygwin* | mingw* | pw32* | cegcc*)
6485   symcode='[ABCDGISTW]'
6486   ;;
6487 hpux*)
6488   if test "$host_cpu" = ia64; then
6489     symcode='[ABCDEGRST]'
6490   fi
6491   ;;
6492 irix* | nonstopux*)
6493   symcode='[BCDEGRST]'
6494   ;;
6495 osf*)
6496   symcode='[BCDEGQRST]'
6497   ;;
6498 solaris*)
6499   symcode='[BDRT]'
6500   ;;
6501 sco3.2v5*)
6502   symcode='[DT]'
6503   ;;
6504 sysv4.2uw2*)
6505   symcode='[DT]'
6506   ;;
6507 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6508   symcode='[ABDT]'
6509   ;;
6510 sysv4)
6511   symcode='[DFNSTU]'
6512   ;;
6513 esac
6514
6515 # If we're using GNU nm, then use its standard symbol codes.
6516 case `$NM -V 2>&1` in
6517 *GNU* | *'with BFD'*)
6518   symcode='[ABCDGIRSTW]' ;;
6519 esac
6520
6521 # Transform an extracted symbol line into a proper C declaration.
6522 # Some systems (esp. on ia64) link data and code symbols differently,
6523 # so use this general approach.
6524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6525
6526 # Transform an extracted symbol line into symbol name and symbol address
6527 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6528 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'"
6529
6530 # Handle CRLF in mingw tool chain
6531 opt_cr=
6532 case $build_os in
6533 mingw*)
6534   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6535   ;;
6536 esac
6537
6538 # Try without a prefix underscore, then with it.
6539 for ac_symprfx in "" "_"; do
6540
6541   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6542   symxfrm="\\1 $ac_symprfx\\2 \\2"
6543
6544   # Write the raw and C identifiers.
6545   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6546     # Fake it for dumpbin and say T for any non-static function
6547     # and D for any global variable.
6548     # Also find C++ and __fastcall symbols from MSVC++,
6549     # which start with @ or ?.
6550     lt_cv_sys_global_symbol_pipe="$AWK '"\
6551 "     {last_section=section; section=\$ 3};"\
6552 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6553 "     \$ 0!~/External *\|/{next};"\
6554 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6555 "     {if(hide[section]) next};"\
6556 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6557 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6558 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6559 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6560 "     ' prfx=^$ac_symprfx"
6561   else
6562     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6563   fi
6564
6565   # Check to see that the pipe works correctly.
6566   pipe_works=no
6567
6568   rm -f conftest*
6569   cat > conftest.$ac_ext <<_LT_EOF
6570 #ifdef __cplusplus
6571 extern "C" {
6572 #endif
6573 char nm_test_var;
6574 void nm_test_func(void);
6575 void nm_test_func(void){}
6576 #ifdef __cplusplus
6577 }
6578 #endif
6579 int main(){nm_test_var='a';nm_test_func();return(0);}
6580 _LT_EOF
6581
6582   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583   (eval $ac_compile) 2>&5
6584   ac_status=$?
6585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586   test $ac_status = 0; }; then
6587     # Now try to grab the symbols.
6588     nlist=conftest.nm
6589     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6590   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6591   ac_status=$?
6592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593   test $ac_status = 0; } && test -s "$nlist"; then
6594       # Try sorting and uniquifying the output.
6595       if sort "$nlist" | uniq > "$nlist"T; then
6596         mv -f "$nlist"T "$nlist"
6597       else
6598         rm -f "$nlist"T
6599       fi
6600
6601       # Make sure that we snagged all the symbols we need.
6602       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6603         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6604           cat <<_LT_EOF > conftest.$ac_ext
6605 #ifdef __cplusplus
6606 extern "C" {
6607 #endif
6608
6609 _LT_EOF
6610           # Now generate the symbol file.
6611           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6612
6613           cat <<_LT_EOF >> conftest.$ac_ext
6614
6615 /* The mapping between symbol names and symbols.  */
6616 const struct {
6617   const char *name;
6618   void       *address;
6619 }
6620 lt__PROGRAM__LTX_preloaded_symbols[] =
6621 {
6622   { "@PROGRAM@", (void *) 0 },
6623 _LT_EOF
6624           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6625           cat <<\_LT_EOF >> conftest.$ac_ext
6626   {0, (void *) 0}
6627 };
6628
6629 /* This works around a problem in FreeBSD linker */
6630 #ifdef FREEBSD_WORKAROUND
6631 static const void *lt_preloaded_setup() {
6632   return lt__PROGRAM__LTX_preloaded_symbols;
6633 }
6634 #endif
6635
6636 #ifdef __cplusplus
6637 }
6638 #endif
6639 _LT_EOF
6640           # Now try linking the two files.
6641           mv conftest.$ac_objext conftstm.$ac_objext
6642           lt_save_LIBS="$LIBS"
6643           lt_save_CFLAGS="$CFLAGS"
6644           LIBS="conftstm.$ac_objext"
6645           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6646           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6647   (eval $ac_link) 2>&5
6648   ac_status=$?
6649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6651             pipe_works=yes
6652           fi
6653           LIBS="$lt_save_LIBS"
6654           CFLAGS="$lt_save_CFLAGS"
6655         else
6656           echo "cannot find nm_test_func in $nlist" >&5
6657         fi
6658       else
6659         echo "cannot find nm_test_var in $nlist" >&5
6660       fi
6661     else
6662       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6663     fi
6664   else
6665     echo "$progname: failed program was:" >&5
6666     cat conftest.$ac_ext >&5
6667   fi
6668   rm -rf conftest* conftst*
6669
6670   # Do not use the global_symbol_pipe unless it works.
6671   if test "$pipe_works" = yes; then
6672     break
6673   else
6674     lt_cv_sys_global_symbol_pipe=
6675   fi
6676 done
6677
6678 fi
6679
6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6681   lt_cv_sys_global_symbol_to_cdecl=
6682 fi
6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6685 $as_echo "failed" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6688 $as_echo "ok" >&6; }
6689 fi
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713 # Check whether --enable-libtool-lock was given.
6714 if test "${enable_libtool_lock+set}" = set; then :
6715   enableval=$enable_libtool_lock;
6716 fi
6717
6718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6719
6720 # Some flags need to be propagated to the compiler or linker for good
6721 # libtool support.
6722 case $host in
6723 ia64-*-hpux*)
6724   # Find out which ABI we are using.
6725   echo 'int i;' > conftest.$ac_ext
6726   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727   (eval $ac_compile) 2>&5
6728   ac_status=$?
6729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730   test $ac_status = 0; }; then
6731     case `/usr/bin/file conftest.$ac_objext` in
6732       *ELF-32*)
6733         HPUX_IA64_MODE="32"
6734         ;;
6735       *ELF-64*)
6736         HPUX_IA64_MODE="64"
6737         ;;
6738     esac
6739   fi
6740   rm -rf conftest*
6741   ;;
6742 *-*-irix6*)
6743   # Find out which ABI we are using.
6744   echo '#line 6744 "configure"' > conftest.$ac_ext
6745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6746   (eval $ac_compile) 2>&5
6747   ac_status=$?
6748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749   test $ac_status = 0; }; then
6750     if test "$lt_cv_prog_gnu_ld" = yes; then
6751       case `/usr/bin/file conftest.$ac_objext` in
6752         *32-bit*)
6753           LD="${LD-ld} -melf32bsmip"
6754           ;;
6755         *N32*)
6756           LD="${LD-ld} -melf32bmipn32"
6757           ;;
6758         *64-bit*)
6759           LD="${LD-ld} -melf64bmip"
6760         ;;
6761       esac
6762     else
6763       case `/usr/bin/file conftest.$ac_objext` in
6764         *32-bit*)
6765           LD="${LD-ld} -32"
6766           ;;
6767         *N32*)
6768           LD="${LD-ld} -n32"
6769           ;;
6770         *64-bit*)
6771           LD="${LD-ld} -64"
6772           ;;
6773       esac
6774     fi
6775   fi
6776   rm -rf conftest*
6777   ;;
6778
6779 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6780 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6781   # Find out which ABI we are using.
6782   echo 'int i;' > conftest.$ac_ext
6783   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6784   (eval $ac_compile) 2>&5
6785   ac_status=$?
6786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787   test $ac_status = 0; }; then
6788     case `/usr/bin/file conftest.o` in
6789       *32-bit*)
6790         case $host in
6791           x86_64-*kfreebsd*-gnu)
6792             LD="${LD-ld} -m elf_i386_fbsd"
6793             ;;
6794           x86_64-*linux*)
6795             LD="${LD-ld} -m elf_i386"
6796             ;;
6797           ppc64-*linux*|powerpc64-*linux*)
6798             LD="${LD-ld} -m elf32ppclinux"
6799             ;;
6800           s390x-*linux*)
6801             LD="${LD-ld} -m elf_s390"
6802             ;;
6803           sparc64-*linux*)
6804             LD="${LD-ld} -m elf32_sparc"
6805             ;;
6806         esac
6807         ;;
6808       *64-bit*)
6809         case $host in
6810           x86_64-*kfreebsd*-gnu)
6811             LD="${LD-ld} -m elf_x86_64_fbsd"
6812             ;;
6813           x86_64-*linux*)
6814             LD="${LD-ld} -m elf_x86_64"
6815             ;;
6816           ppc*-*linux*|powerpc*-*linux*)
6817             LD="${LD-ld} -m elf64ppc"
6818             ;;
6819           s390*-*linux*|s390*-*tpf*)
6820             LD="${LD-ld} -m elf64_s390"
6821             ;;
6822           sparc*-*linux*)
6823             LD="${LD-ld} -m elf64_sparc"
6824             ;;
6825         esac
6826         ;;
6827     esac
6828   fi
6829   rm -rf conftest*
6830   ;;
6831
6832 *-*-sco3.2v5*)
6833   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6834   SAVE_CFLAGS="$CFLAGS"
6835   CFLAGS="$CFLAGS -belf"
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6837 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6838 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h.  */
6849
6850 int
6851 main ()
6852 {
6853
6854   ;
6855   return 0;
6856 }
6857 _ACEOF
6858 if ac_fn_c_try_link "$LINENO"; then :
6859   lt_cv_cc_needs_belf=yes
6860 else
6861   lt_cv_cc_needs_belf=no
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext \
6864     conftest$ac_exeext conftest.$ac_ext
6865      ac_ext=c
6866 ac_cpp='$CPP $CPPFLAGS'
6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6873 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6874   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6875     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6876     CFLAGS="$SAVE_CFLAGS"
6877   fi
6878   ;;
6879 sparc*-*solaris*)
6880   # Find out which ABI we are using.
6881   echo 'int i;' > conftest.$ac_ext
6882   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883   (eval $ac_compile) 2>&5
6884   ac_status=$?
6885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886   test $ac_status = 0; }; then
6887     case `/usr/bin/file conftest.o` in
6888     *64-bit*)
6889       case $lt_cv_prog_gnu_ld in
6890       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6891       *)
6892         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6893           LD="${LD-ld} -64"
6894         fi
6895         ;;
6896       esac
6897       ;;
6898     esac
6899   fi
6900   rm -rf conftest*
6901   ;;
6902 esac
6903
6904 need_locks="$enable_libtool_lock"
6905
6906
6907   case $host_os in
6908     rhapsody* | darwin*)
6909     if test -n "$ac_tool_prefix"; then
6910   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6915   $as_echo_n "(cached) " >&6
6916 else
6917   if test -n "$DSYMUTIL"; then
6918   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925     for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932   done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6938 if test -n "$DSYMUTIL"; then
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6940 $as_echo "$DSYMUTIL" >&6; }
6941 else
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946
6947 fi
6948 if test -z "$ac_cv_prog_DSYMUTIL"; then
6949   ac_ct_DSYMUTIL=$DSYMUTIL
6950   # Extract the first word of "dsymutil", so it can be a program name with args.
6951 set dummy dsymutil; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   if test -n "$ac_ct_DSYMUTIL"; then
6958   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6978 if test -n "$ac_ct_DSYMUTIL"; then
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6980 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6981 else
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986   if test "x$ac_ct_DSYMUTIL" = x; then
6987     DSYMUTIL=":"
6988   else
6989     case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995     DSYMUTIL=$ac_ct_DSYMUTIL
6996   fi
6997 else
6998   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6999 fi
7000
7001     if test -n "$ac_tool_prefix"; then
7002   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   if test -n "$NMEDIT"; then
7010   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017     for ac_exec_ext in '' $ac_executable_extensions; do
7018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024   done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 NMEDIT=$ac_cv_prog_NMEDIT
7030 if test -n "$NMEDIT"; then
7031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7032 $as_echo "$NMEDIT" >&6; }
7033 else
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038
7039 fi
7040 if test -z "$ac_cv_prog_NMEDIT"; then
7041   ac_ct_NMEDIT=$NMEDIT
7042   # Extract the first word of "nmedit", so it can be a program name with args.
7043 set dummy nmedit; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test -n "$ac_ct_NMEDIT"; then
7050   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057     for ac_exec_ext in '' $ac_executable_extensions; do
7058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064   done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7070 if test -n "$ac_ct_NMEDIT"; then
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7072 $as_echo "$ac_ct_NMEDIT" >&6; }
7073 else
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078   if test "x$ac_ct_NMEDIT" = x; then
7079     NMEDIT=":"
7080   else
7081     case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087     NMEDIT=$ac_ct_NMEDIT
7088   fi
7089 else
7090   NMEDIT="$ac_cv_prog_NMEDIT"
7091 fi
7092
7093     if test -n "$ac_tool_prefix"; then
7094   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_LIPO+set}" = set; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   if test -n "$LIPO"; then
7102   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 LIPO=$ac_cv_prog_LIPO
7122 if test -n "$LIPO"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7124 $as_echo "$LIPO" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_LIPO"; then
7133   ac_ct_LIPO=$LIPO
7134   # Extract the first word of "lipo", so it can be a program name with args.
7135 set dummy lipo; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   if test -n "$ac_ct_LIPO"; then
7142   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_prog_ac_ct_LIPO="lipo"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7162 if test -n "$ac_ct_LIPO"; then
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7164 $as_echo "$ac_ct_LIPO" >&6; }
7165 else
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170   if test "x$ac_ct_LIPO" = x; then
7171     LIPO=":"
7172   else
7173     case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179     LIPO=$ac_ct_LIPO
7180   fi
7181 else
7182   LIPO="$ac_cv_prog_LIPO"
7183 fi
7184
7185     if test -n "$ac_tool_prefix"; then
7186   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}otool; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7191   $as_echo_n "(cached) " >&6
7192 else
7193   if test -n "$OTOOL"; then
7194   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208   done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 OTOOL=$ac_cv_prog_OTOOL
7214 if test -n "$OTOOL"; then
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7216 $as_echo "$OTOOL" >&6; }
7217 else
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222
7223 fi
7224 if test -z "$ac_cv_prog_OTOOL"; then
7225   ac_ct_OTOOL=$OTOOL
7226   # Extract the first word of "otool", so it can be a program name with args.
7227 set dummy otool; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   if test -n "$ac_ct_OTOOL"; then
7234   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241     for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_prog_ac_ct_OTOOL="otool"
7244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248   done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7254 if test -n "$ac_ct_OTOOL"; then
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7256 $as_echo "$ac_ct_OTOOL" >&6; }
7257 else
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262   if test "x$ac_ct_OTOOL" = x; then
7263     OTOOL=":"
7264   else
7265     case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271     OTOOL=$ac_ct_OTOOL
7272   fi
7273 else
7274   OTOOL="$ac_cv_prog_OTOOL"
7275 fi
7276
7277     if test -n "$ac_tool_prefix"; then
7278   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7283   $as_echo_n "(cached) " >&6
7284 else
7285   if test -n "$OTOOL64"; then
7286   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293     for ac_exec_ext in '' $ac_executable_extensions; do
7294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300   done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 OTOOL64=$ac_cv_prog_OTOOL64
7306 if test -n "$OTOOL64"; then
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7308 $as_echo "$OTOOL64" >&6; }
7309 else
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314
7315 fi
7316 if test -z "$ac_cv_prog_OTOOL64"; then
7317   ac_ct_OTOOL64=$OTOOL64
7318   # Extract the first word of "otool64", so it can be a program name with args.
7319 set dummy otool64; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   if test -n "$ac_ct_OTOOL64"; then
7326   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_prog_ac_ct_OTOOL64="otool64"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7346 if test -n "$ac_ct_OTOOL64"; then
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7348 $as_echo "$ac_ct_OTOOL64" >&6; }
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354   if test "x$ac_ct_OTOOL64" = x; then
7355     OTOOL64=":"
7356   else
7357     case $cross_compiling:$ac_tool_warned in
7358 yes:)
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7362 esac
7363     OTOOL64=$ac_ct_OTOOL64
7364   fi
7365 else
7366   OTOOL64="$ac_cv_prog_OTOOL64"
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7396 $as_echo_n "checking for -single_module linker flag... " >&6; }
7397 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   lt_cv_apple_cc_single_mod=no
7401       if test -z "${LT_MULTI_MODULE}"; then
7402         # By default we will add the -single_module flag. You can override
7403         # by either setting the environment variable LT_MULTI_MODULE
7404         # non-empty at configure time, or by adding -multi_module to the
7405         # link flags.
7406         rm -rf libconftest.dylib*
7407         echo "int foo(void){return 1;}" > conftest.c
7408         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7409 -dynamiclib -Wl,-single_module conftest.c" >&5
7410         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7411           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7412         _lt_result=$?
7413         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7414           lt_cv_apple_cc_single_mod=yes
7415         else
7416           cat conftest.err >&5
7417         fi
7418         rm -rf libconftest.dylib*
7419         rm -f conftest.*
7420       fi
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7423 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7425 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7426 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   lt_cv_ld_exported_symbols_list=no
7430       save_LDFLAGS=$LDFLAGS
7431       echo "_main" > conftest.sym
7432       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7433       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h.  */
7435
7436 int
7437 main ()
7438 {
7439
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 if ac_fn_c_try_link "$LINENO"; then :
7445   lt_cv_ld_exported_symbols_list=yes
7446 else
7447   lt_cv_ld_exported_symbols_list=no
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext \
7450     conftest$ac_exeext conftest.$ac_ext
7451         LDFLAGS="$save_LDFLAGS"
7452
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7455 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7456     case $host_os in
7457     rhapsody* | darwin1.[012])
7458       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7459     darwin1.*)
7460       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7461     darwin*) # darwin 5.x on
7462       # if running on 10.5 or later, the deployment target defaults
7463       # to the OS version, if on x86, and 10.4, the deployment
7464       # target defaults to 10.4. Don't you love it?
7465       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7466         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7467           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7468         10.[012]*)
7469           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7470         10.*)
7471           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7472       esac
7473     ;;
7474   esac
7475     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7476       _lt_dar_single_mod='$single_module'
7477     fi
7478     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7479       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7480     else
7481       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7482     fi
7483     if test "$DSYMUTIL" != ":"; then
7484       _lt_dsymutil='~$DSYMUTIL $lib || :'
7485     else
7486       _lt_dsymutil=
7487     fi
7488     ;;
7489   esac
7490
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7493 $as_echo_n "checking for ANSI C header files... " >&6; }
7494 if test "${ac_cv_header_stdc+set}" = set; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h.  */
7499 #include <stdlib.h>
7500 #include <stdarg.h>
7501 #include <string.h>
7502 #include <float.h>
7503
7504 int
7505 main ()
7506 {
7507
7508   ;
7509   return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_compile "$LINENO"; then :
7513   ac_cv_header_stdc=yes
7514 else
7515   ac_cv_header_stdc=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518
7519 if test $ac_cv_header_stdc = yes; then
7520   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h.  */
7523 #include <string.h>
7524
7525 _ACEOF
7526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7527   $EGREP "memchr" >/dev/null 2>&1; then :
7528
7529 else
7530   ac_cv_header_stdc=no
7531 fi
7532 rm -f conftest*
7533
7534 fi
7535
7536 if test $ac_cv_header_stdc = yes; then
7537   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h.  */
7540 #include <stdlib.h>
7541
7542 _ACEOF
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544   $EGREP "free" >/dev/null 2>&1; then :
7545
7546 else
7547   ac_cv_header_stdc=no
7548 fi
7549 rm -f conftest*
7550
7551 fi
7552
7553 if test $ac_cv_header_stdc = yes; then
7554   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7555   if test "$cross_compiling" = yes; then :
7556   :
7557 else
7558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h.  */
7560 #include <ctype.h>
7561 #include <stdlib.h>
7562 #if ((' ' & 0x0FF) == 0x020)
7563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7565 #else
7566 # define ISLOWER(c) \
7567                    (('a' <= (c) && (c) <= 'i') \
7568                      || ('j' <= (c) && (c) <= 'r') \
7569                      || ('s' <= (c) && (c) <= 'z'))
7570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7571 #endif
7572
7573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7574 int
7575 main ()
7576 {
7577   int i;
7578   for (i = 0; i < 256; i++)
7579     if (XOR (islower (i), ISLOWER (i))
7580         || toupper (i) != TOUPPER (i))
7581       return 2;
7582   return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_run "$LINENO"; then :
7586
7587 else
7588   ac_cv_header_stdc=no
7589 fi
7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7591   conftest.$ac_objext conftest.beam conftest.$ac_ext
7592 fi
7593
7594 fi
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7597 $as_echo "$ac_cv_header_stdc" >&6; }
7598 if test $ac_cv_header_stdc = yes; then
7599
7600 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7601
7602 fi
7603
7604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7605 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7606                   inttypes.h stdint.h unistd.h
7607 do :
7608   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7609 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7610 "
7611 eval as_val=\$$as_ac_Header
7612    if test "x$as_val" = x""yes; then :
7613   cat >>confdefs.h <<_ACEOF
7614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7615 _ACEOF
7616
7617 fi
7618
7619 done
7620
7621
7622 for ac_header in dlfcn.h
7623 do :
7624   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7625 "
7626 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7627   cat >>confdefs.h <<_ACEOF
7628 #define HAVE_DLFCN_H 1
7629 _ACEOF
7630
7631 fi
7632
7633 done
7634
7635
7636
7637 ac_ext=cpp
7638 ac_cpp='$CXXCPP $CPPFLAGS'
7639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7642 if test -z "$CXX"; then
7643   if test -n "$CCC"; then
7644     CXX=$CCC
7645   else
7646     if test -n "$ac_tool_prefix"; then
7647   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7648   do
7649     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if test "${ac_cv_prog_CXX+set}" = set; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   if test -n "$CXX"; then
7657   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662   IFS=$as_save_IFS
7663   test -z "$as_dir" && as_dir=.
7664     for ac_exec_ext in '' $ac_executable_extensions; do
7665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668     break 2
7669   fi
7670 done
7671   done
7672 IFS=$as_save_IFS
7673
7674 fi
7675 fi
7676 CXX=$ac_cv_prog_CXX
7677 if test -n "$CXX"; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7679 $as_echo "$CXX" >&6; }
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685
7686     test -n "$CXX" && break
7687   done
7688 fi
7689 if test -z "$CXX"; then
7690   ac_ct_CXX=$CXX
7691   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7692 do
7693   # Extract the first word of "$ac_prog", so it can be a program name with args.
7694 set dummy $ac_prog; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700   if test -n "$ac_ct_CXX"; then
7701   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706   IFS=$as_save_IFS
7707   test -z "$as_dir" && as_dir=.
7708     for ac_exec_ext in '' $ac_executable_extensions; do
7709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710     ac_cv_prog_ac_ct_CXX="$ac_prog"
7711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712     break 2
7713   fi
7714 done
7715   done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7721 if test -n "$ac_ct_CXX"; then
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7723 $as_echo "$ac_ct_CXX" >&6; }
7724 else
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729
7730   test -n "$ac_ct_CXX" && break
7731 done
7732
7733   if test "x$ac_ct_CXX" = x; then
7734     CXX="g++"
7735   else
7736     case $cross_compiling:$ac_tool_warned in
7737 yes:)
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7741 esac
7742     CXX=$ac_ct_CXX
7743   fi
7744 fi
7745
7746   fi
7747 fi
7748 # Provide some information about the compiler.
7749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7750 set X $ac_compile
7751 ac_compiler=$2
7752 for ac_option in --version -v -V -qversion; do
7753   { { ac_try="$ac_compiler $ac_option >&5"
7754 case "(($ac_try" in
7755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756   *) ac_try_echo=$ac_try;;
7757 esac
7758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7759 $as_echo "$ac_try_echo"; } >&5
7760   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7761   ac_status=$?
7762   if test -s conftest.err; then
7763     sed '10a\
7764 ... rest of stderr output deleted ...
7765          10q' conftest.err >conftest.er1
7766     cat conftest.er1 >&5
7767   fi
7768   rm -f conftest.er1 conftest.err
7769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7770   test $ac_status = 0; }
7771 done
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7774 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7775 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h.  */
7780
7781 int
7782 main ()
7783 {
7784 #ifndef __GNUC__
7785        choke me
7786 #endif
7787
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_cxx_try_compile "$LINENO"; then :
7793   ac_compiler_gnu=yes
7794 else
7795   ac_compiler_gnu=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7799
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7802 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7803 if test $ac_compiler_gnu = yes; then
7804   GXX=yes
7805 else
7806   GXX=
7807 fi
7808 ac_test_CXXFLAGS=${CXXFLAGS+set}
7809 ac_save_CXXFLAGS=$CXXFLAGS
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7811 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7812 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7813   $as_echo_n "(cached) " >&6
7814 else
7815   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7816    ac_cxx_werror_flag=yes
7817    ac_cv_prog_cxx_g=no
7818    CXXFLAGS="-g"
7819    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h.  */
7821
7822 int
7823 main ()
7824 {
7825
7826   ;
7827   return 0;
7828 }
7829 _ACEOF
7830 if ac_fn_cxx_try_compile "$LINENO"; then :
7831   ac_cv_prog_cxx_g=yes
7832 else
7833   CXXFLAGS=""
7834       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h.  */
7836
7837 int
7838 main ()
7839 {
7840
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_cxx_try_compile "$LINENO"; then :
7846
7847 else
7848   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7849          CXXFLAGS="-g"
7850          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h.  */
7852
7853 int
7854 main ()
7855 {
7856
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_cxx_try_compile "$LINENO"; then :
7862   ac_cv_prog_cxx_g=yes
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7872 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7873 if test "$ac_test_CXXFLAGS" = set; then
7874   CXXFLAGS=$ac_save_CXXFLAGS
7875 elif test $ac_cv_prog_cxx_g = yes; then
7876   if test "$GXX" = yes; then
7877     CXXFLAGS="-g -O2"
7878   else
7879     CXXFLAGS="-g"
7880   fi
7881 else
7882   if test "$GXX" = yes; then
7883     CXXFLAGS="-O2"
7884   else
7885     CXXFLAGS=
7886   fi
7887 fi
7888 ac_ext=cpp
7889 ac_cpp='$CXXCPP $CPPFLAGS'
7890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7893
7894 depcc="$CXX"  am_compiler_list=
7895
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7897 $as_echo_n "checking dependency style of $depcc... " >&6; }
7898 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7902   # We make a subdir and do the tests there.  Otherwise we can end up
7903   # making bogus files that we don't know about and never remove.  For
7904   # instance it was reported that on HP-UX the gcc test will end up
7905   # making a dummy file named `D' -- because `-MD' means `put the output
7906   # in D'.
7907   mkdir conftest.dir
7908   # Copy depcomp to subdir because otherwise we won't find it if we're
7909   # using a relative directory.
7910   cp "$am_depcomp" conftest.dir
7911   cd conftest.dir
7912   # We will build objects and dependencies in a subdirectory because
7913   # it helps to detect inapplicable dependency modes.  For instance
7914   # both Tru64's cc and ICC support -MD to output dependencies as a
7915   # side effect of compilation, but ICC will put the dependencies in
7916   # the current directory while Tru64 will put them in the object
7917   # directory.
7918   mkdir sub
7919
7920   am_cv_CXX_dependencies_compiler_type=none
7921   if test "$am_compiler_list" = ""; then
7922      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7923   fi
7924   am__universal=false
7925   case " $depcc " in #(
7926      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7927      esac
7928
7929   for depmode in $am_compiler_list; do
7930     # Setup a source with many dependencies, because some compilers
7931     # like to wrap large dependency lists on column 80 (with \), and
7932     # we should not choose a depcomp mode which is confused by this.
7933     #
7934     # We need to recreate these files for each test, as the compiler may
7935     # overwrite some of them when testing with obscure command lines.
7936     # This happens at least with the AIX C compiler.
7937     : > sub/conftest.c
7938     for i in 1 2 3 4 5 6; do
7939       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7940       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7941       # Solaris 8's {/usr,}/bin/sh.
7942       touch sub/conftst$i.h
7943     done
7944     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7945
7946     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7947     # mode.  It turns out that the SunPro C++ compiler does not properly
7948     # handle `-M -o', and we need to detect this.  Also, some Intel
7949     # versions had trouble with output in subdirs
7950     am__obj=sub/conftest.${OBJEXT-o}
7951     am__minus_obj="-o $am__obj"
7952     case $depmode in
7953     gcc)
7954       # This depmode causes a compiler race in universal mode.
7955       test "$am__universal" = false || continue
7956       ;;
7957     nosideeffect)
7958       # after this tag, mechanisms are not by side-effect, so they'll
7959       # only be used when explicitly requested
7960       if test "x$enable_dependency_tracking" = xyes; then
7961         continue
7962       else
7963         break
7964       fi
7965       ;;
7966     msvisualcpp | msvcmsys)
7967       # This compiler won't grok `-c -o', but also, the minuso test has
7968       # not run yet.  These depmodes are late enough in the game, and
7969       # so weak that their functioning should not be impacted.
7970       am__obj=conftest.${OBJEXT-o}
7971       am__minus_obj=
7972       ;;
7973     none) break ;;
7974     esac
7975     if depmode=$depmode \
7976        source=sub/conftest.c object=$am__obj \
7977        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7978        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7979          >/dev/null 2>conftest.err &&
7980        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7981        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7982        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7983        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7984       # icc doesn't choke on unknown options, it will just issue warnings
7985       # or remarks (even with -Werror).  So we grep stderr for any message
7986       # that says an option was ignored or not supported.
7987       # When given -MP, icc 7.0 and 7.1 complain thusly:
7988       #   icc: Command line warning: ignoring option '-M'; no argument required
7989       # The diagnosis changed in icc 8.0:
7990       #   icc: Command line remark: option '-MP' not supported
7991       if (grep 'ignoring option' conftest.err ||
7992           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7993         am_cv_CXX_dependencies_compiler_type=$depmode
7994         break
7995       fi
7996     fi
7997   done
7998
7999   cd ..
8000   rm -rf conftest.dir
8001 else
8002   am_cv_CXX_dependencies_compiler_type=none
8003 fi
8004
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8007 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8008 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8009
8010  if
8011   test "x$enable_dependency_tracking" != xno \
8012   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8013   am__fastdepCXX_TRUE=
8014   am__fastdepCXX_FALSE='#'
8015 else
8016   am__fastdepCXX_TRUE='#'
8017   am__fastdepCXX_FALSE=
8018 fi
8019
8020
8021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8022     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8023     (test "X$CXX" != "Xg++"))) ; then
8024   ac_ext=cpp
8025 ac_cpp='$CXXCPP $CPPFLAGS'
8026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8030 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8031 if test -z "$CXXCPP"; then
8032   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035       # Double quotes because CXXCPP needs to be expanded
8036     for CXXCPP in "$CXX -E" "/lib/cpp"
8037     do
8038       ac_preproc_ok=false
8039 for ac_cxx_preproc_warn_flag in '' yes
8040 do
8041   # Use a header file that comes with gcc, so configuring glibc
8042   # with a fresh cross-compiler works.
8043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8044   # <limits.h> exists even on freestanding compilers.
8045   # On the NeXT, cc -E runs the code through the compiler's parser,
8046   # not just through cpp. "Syntax error" is here to catch this case.
8047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h.  */
8049 #ifdef __STDC__
8050 # include <limits.h>
8051 #else
8052 # include <assert.h>
8053 #endif
8054                      Syntax error
8055 _ACEOF
8056 if ac_fn_cxx_try_cpp "$LINENO"; then :
8057
8058 else
8059   # Broken: fails on valid input.
8060 continue
8061 fi
8062 rm -f conftest.err conftest.$ac_ext
8063
8064   # OK, works on sane cases.  Now check whether nonexistent headers
8065   # can be detected and how.
8066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 #include <ac_nonexistent.h>
8069 _ACEOF
8070 if ac_fn_cxx_try_cpp "$LINENO"; then :
8071   # Broken: success on invalid input.
8072 continue
8073 else
8074   # Passes both tests.
8075 ac_preproc_ok=:
8076 break
8077 fi
8078 rm -f conftest.err conftest.$ac_ext
8079
8080 done
8081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8082 rm -f conftest.err conftest.$ac_ext
8083 if $ac_preproc_ok; then :
8084   break
8085 fi
8086
8087     done
8088     ac_cv_prog_CXXCPP=$CXXCPP
8089
8090 fi
8091   CXXCPP=$ac_cv_prog_CXXCPP
8092 else
8093   ac_cv_prog_CXXCPP=$CXXCPP
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8096 $as_echo "$CXXCPP" >&6; }
8097 ac_preproc_ok=false
8098 for ac_cxx_preproc_warn_flag in '' yes
8099 do
8100   # Use a header file that comes with gcc, so configuring glibc
8101   # with a fresh cross-compiler works.
8102   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8103   # <limits.h> exists even on freestanding compilers.
8104   # On the NeXT, cc -E runs the code through the compiler's parser,
8105   # not just through cpp. "Syntax error" is here to catch this case.
8106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h.  */
8108 #ifdef __STDC__
8109 # include <limits.h>
8110 #else
8111 # include <assert.h>
8112 #endif
8113                      Syntax error
8114 _ACEOF
8115 if ac_fn_cxx_try_cpp "$LINENO"; then :
8116
8117 else
8118   # Broken: fails on valid input.
8119 continue
8120 fi
8121 rm -f conftest.err conftest.$ac_ext
8122
8123   # OK, works on sane cases.  Now check whether nonexistent headers
8124   # can be detected and how.
8125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h.  */
8127 #include <ac_nonexistent.h>
8128 _ACEOF
8129 if ac_fn_cxx_try_cpp "$LINENO"; then :
8130   # Broken: success on invalid input.
8131 continue
8132 else
8133   # Passes both tests.
8134 ac_preproc_ok=:
8135 break
8136 fi
8137 rm -f conftest.err conftest.$ac_ext
8138
8139 done
8140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8141 rm -f conftest.err conftest.$ac_ext
8142 if $ac_preproc_ok; then :
8143
8144 else
8145   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8147 _lt_caught_CXX_error=yes; }
8148 fi
8149
8150 ac_ext=cpp
8151 ac_cpp='$CXXCPP $CPPFLAGS'
8152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8155
8156 else
8157   _lt_caught_CXX_error=yes
8158 fi
8159
8160
8161
8162
8163
8164 # Set options
8165
8166
8167
8168         enable_dlopen=no
8169
8170
8171   enable_win32_dll=no
8172
8173
8174             # Check whether --enable-shared was given.
8175 if test "${enable_shared+set}" = set; then :
8176   enableval=$enable_shared; p=${PACKAGE-default}
8177     case $enableval in
8178     yes) enable_shared=yes ;;
8179     no) enable_shared=no ;;
8180     *)
8181       enable_shared=no
8182       # Look at the argument we got.  We use all the common list separators.
8183       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184       for pkg in $enableval; do
8185         IFS="$lt_save_ifs"
8186         if test "X$pkg" = "X$p"; then
8187           enable_shared=yes
8188         fi
8189       done
8190       IFS="$lt_save_ifs"
8191       ;;
8192     esac
8193 else
8194   enable_shared=yes
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205   # Check whether --enable-static was given.
8206 if test "${enable_static+set}" = set; then :
8207   enableval=$enable_static; p=${PACKAGE-default}
8208     case $enableval in
8209     yes) enable_static=yes ;;
8210     no) enable_static=no ;;
8211     *)
8212      enable_static=no
8213       # Look at the argument we got.  We use all the common list separators.
8214       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215       for pkg in $enableval; do
8216         IFS="$lt_save_ifs"
8217         if test "X$pkg" = "X$p"; then
8218           enable_static=yes
8219         fi
8220       done
8221       IFS="$lt_save_ifs"
8222       ;;
8223     esac
8224 else
8225   enable_static=yes
8226 fi
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237 # Check whether --with-pic was given.
8238 if test "${with_pic+set}" = set; then :
8239   withval=$with_pic; pic_mode="$withval"
8240 else
8241   pic_mode=default
8242 fi
8243
8244
8245 test -z "$pic_mode" && pic_mode=default
8246
8247
8248
8249
8250
8251
8252
8253   # Check whether --enable-fast-install was given.
8254 if test "${enable_fast_install+set}" = set; then :
8255   enableval=$enable_fast_install; p=${PACKAGE-default}
8256     case $enableval in
8257     yes) enable_fast_install=yes ;;
8258     no) enable_fast_install=no ;;
8259     *)
8260       enable_fast_install=no
8261       # Look at the argument we got.  We use all the common list separators.
8262       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263       for pkg in $enableval; do
8264         IFS="$lt_save_ifs"
8265         if test "X$pkg" = "X$p"; then
8266           enable_fast_install=yes
8267         fi
8268       done
8269       IFS="$lt_save_ifs"
8270       ;;
8271     esac
8272 else
8273   enable_fast_install=yes
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286 # This can be used to rebuild libtool when needed
8287 LIBTOOL_DEPS="$ltmain"
8288
8289 # Always use our own libtool.
8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 test -z "$LN_S" && LN_S="ln -s"
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331 if test -n "${ZSH_VERSION+set}" ; then
8332    setopt NO_GLOB_SUBST
8333 fi
8334
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8336 $as_echo_n "checking for objdir... " >&6; }
8337 if test "${lt_cv_objdir+set}" = set; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   rm -f .libs 2>/dev/null
8341 mkdir .libs 2>/dev/null
8342 if test -d .libs; then
8343   lt_cv_objdir=.libs
8344 else
8345   # MS-DOS does not allow filenames that begin with a dot.
8346   lt_cv_objdir=_libs
8347 fi
8348 rmdir .libs 2>/dev/null
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8351 $as_echo "$lt_cv_objdir" >&6; }
8352 objdir=$lt_cv_objdir
8353
8354
8355
8356
8357
8358 cat >>confdefs.h <<_ACEOF
8359 #define LT_OBJDIR "$lt_cv_objdir/"
8360 _ACEOF
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 case $host_os in
8379 aix3*)
8380   # AIX sometimes has problems with the GCC collect2 program.  For some
8381   # reason, if we set the COLLECT_NAMES environment variable, the problems
8382   # vanish in a puff of smoke.
8383   if test "X${COLLECT_NAMES+set}" != Xset; then
8384     COLLECT_NAMES=
8385     export COLLECT_NAMES
8386   fi
8387   ;;
8388 esac
8389
8390 # Sed substitution that helps us do robust quoting.  It backslashifies
8391 # metacharacters that are still active within double-quoted strings.
8392 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8393
8394 # Same as above, but do not quote variable references.
8395 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8396
8397 # Sed substitution to delay expansion of an escaped shell variable in a
8398 # double_quote_subst'ed string.
8399 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8400
8401 # Sed substitution to delay expansion of an escaped single quote.
8402 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8403
8404 # Sed substitution to avoid accidental globbing in evaled expressions
8405 no_glob_subst='s/\*/\\\*/g'
8406
8407 # Global variables:
8408 ofile=libtool
8409 can_build_shared=yes
8410
8411 # All known linkers require a `.a' archive for static linking (except MSVC,
8412 # which needs '.lib').
8413 libext=a
8414
8415 with_gnu_ld="$lt_cv_prog_gnu_ld"
8416
8417 old_CC="$CC"
8418 old_CFLAGS="$CFLAGS"
8419
8420 # Set sane defaults for various variables
8421 test -z "$CC" && CC=cc
8422 test -z "$LTCC" && LTCC=$CC
8423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8424 test -z "$LD" && LD=ld
8425 test -z "$ac_objext" && ac_objext=o
8426
8427 for cc_temp in $compiler""; do
8428   case $cc_temp in
8429     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8430     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8431     \-*) ;;
8432     *) break;;
8433   esac
8434 done
8435 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8436
8437
8438 # Only perform the check for file, if the check method requires it
8439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8440 case $deplibs_check_method in
8441 file_magic*)
8442   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   case $MAGIC_CMD in
8449 [\\/*] |  ?:[\\/]*)
8450   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8451   ;;
8452 *)
8453   lt_save_MAGIC_CMD="$MAGIC_CMD"
8454   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8455   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8456   for ac_dir in $ac_dummy; do
8457     IFS="$lt_save_ifs"
8458     test -z "$ac_dir" && ac_dir=.
8459     if test -f $ac_dir/${ac_tool_prefix}file; then
8460       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8461       if test -n "$file_magic_test_file"; then
8462         case $deplibs_check_method in
8463         "file_magic "*)
8464           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8465           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8467             $EGREP "$file_magic_regex" > /dev/null; then
8468             :
8469           else
8470             cat <<_LT_EOF 1>&2
8471
8472 *** Warning: the command libtool uses to detect shared libraries,
8473 *** $file_magic_cmd, produces output that libtool cannot recognize.
8474 *** The result is that libtool may fail to recognize shared libraries
8475 *** as such.  This will affect the creation of libtool libraries that
8476 *** depend on shared libraries, but programs linked with such libtool
8477 *** libraries will work regardless of this problem.  Nevertheless, you
8478 *** may want to report the problem to your system manager and/or to
8479 *** bug-libtool@gnu.org
8480
8481 _LT_EOF
8482           fi ;;
8483         esac
8484       fi
8485       break
8486     fi
8487   done
8488   IFS="$lt_save_ifs"
8489   MAGIC_CMD="$lt_save_MAGIC_CMD"
8490   ;;
8491 esac
8492 fi
8493
8494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495 if test -n "$MAGIC_CMD"; then
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8497 $as_echo "$MAGIC_CMD" >&6; }
8498 else
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8501 fi
8502
8503
8504
8505
8506
8507 if test -z "$lt_cv_path_MAGIC_CMD"; then
8508   if test -n "$ac_tool_prefix"; then
8509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8510 $as_echo_n "checking for file... " >&6; }
8511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8512   $as_echo_n "(cached) " >&6
8513 else
8514   case $MAGIC_CMD in
8515 [\\/*] |  ?:[\\/]*)
8516   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8517   ;;
8518 *)
8519   lt_save_MAGIC_CMD="$MAGIC_CMD"
8520   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8521   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8522   for ac_dir in $ac_dummy; do
8523     IFS="$lt_save_ifs"
8524     test -z "$ac_dir" && ac_dir=.
8525     if test -f $ac_dir/file; then
8526       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8527       if test -n "$file_magic_test_file"; then
8528         case $deplibs_check_method in
8529         "file_magic "*)
8530           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8531           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8533             $EGREP "$file_magic_regex" > /dev/null; then
8534             :
8535           else
8536             cat <<_LT_EOF 1>&2
8537
8538 *** Warning: the command libtool uses to detect shared libraries,
8539 *** $file_magic_cmd, produces output that libtool cannot recognize.
8540 *** The result is that libtool may fail to recognize shared libraries
8541 *** as such.  This will affect the creation of libtool libraries that
8542 *** depend on shared libraries, but programs linked with such libtool
8543 *** libraries will work regardless of this problem.  Nevertheless, you
8544 *** may want to report the problem to your system manager and/or to
8545 *** bug-libtool@gnu.org
8546
8547 _LT_EOF
8548           fi ;;
8549         esac
8550       fi
8551       break
8552     fi
8553   done
8554   IFS="$lt_save_ifs"
8555   MAGIC_CMD="$lt_save_MAGIC_CMD"
8556   ;;
8557 esac
8558 fi
8559
8560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8561 if test -n "$MAGIC_CMD"; then
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8563 $as_echo "$MAGIC_CMD" >&6; }
8564 else
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 fi
8568
8569
8570   else
8571     MAGIC_CMD=:
8572   fi
8573 fi
8574
8575   fi
8576   ;;
8577 esac
8578
8579 # Use C for the default configuration in the libtool script
8580
8581 lt_save_CC="$CC"
8582 ac_ext=c
8583 ac_cpp='$CPP $CPPFLAGS'
8584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587
8588
8589 # Source file extension for C test sources.
8590 ac_ext=c
8591
8592 # Object file extension for compiled C test sources.
8593 objext=o
8594 objext=$objext
8595
8596 # Code to be used in simple compile tests
8597 lt_simple_compile_test_code="int some_variable = 0;"
8598
8599 # Code to be used in simple link tests
8600 lt_simple_link_test_code='int main(){return(0);}'
8601
8602
8603
8604
8605
8606
8607
8608 # If no C compiler was specified, use CC.
8609 LTCC=${LTCC-"$CC"}
8610
8611 # If no C compiler flags were specified, use CFLAGS.
8612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8613
8614 # Allow CC to be a program name with arguments.
8615 compiler=$CC
8616
8617 # Save the default compiler, since it gets overwritten when the other
8618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8619 compiler_DEFAULT=$CC
8620
8621 # save warnings/boilerplate of simple test code
8622 ac_outfile=conftest.$ac_objext
8623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8625 _lt_compiler_boilerplate=`cat conftest.err`
8626 $RM conftest*
8627
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8631 _lt_linker_boilerplate=`cat conftest.err`
8632 $RM -r conftest*
8633
8634
8635 ## CAVEAT EMPTOR:
8636 ## There is no encapsulation within the following macros, do not change
8637 ## the running order or otherwise move them around unless you know exactly
8638 ## what you are doing...
8639 if test -n "$compiler"; then
8640
8641 lt_prog_compiler_no_builtin_flag=
8642
8643 if test "$GCC" = yes; then
8644   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8645
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8647 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8648 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   lt_cv_prog_compiler_rtti_exceptions=no
8652    ac_outfile=conftest.$ac_objext
8653    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654    lt_compiler_flag="-fno-rtti -fno-exceptions"
8655    # Insert the option either (1) after the last *FLAGS variable, or
8656    # (2) before a word containing "conftest.", or (3) at the end.
8657    # Note that $ac_compile itself does not contain backslashes and begins
8658    # with a dollar sign (not a hyphen), so the echo should work correctly.
8659    # The option is referenced via a variable to avoid confusing sed.
8660    lt_compile=`echo "$ac_compile" | $SED \
8661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663    -e 's:$: $lt_compiler_flag:'`
8664    (eval echo "\"\$as_me:8664: $lt_compile\"" >&5)
8665    (eval "$lt_compile" 2>conftest.err)
8666    ac_status=$?
8667    cat conftest.err >&5
8668    echo "$as_me:8668: \$? = $ac_status" >&5
8669    if (exit $ac_status) && test -s "$ac_outfile"; then
8670      # The compiler can only warn and ignore the option if not recognized
8671      # So say no if there are warnings other than the usual output.
8672      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8673      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8674      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8675        lt_cv_prog_compiler_rtti_exceptions=yes
8676      fi
8677    fi
8678    $RM conftest*
8679
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8682 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8683
8684 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8685     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8686 else
8687     :
8688 fi
8689
8690 fi
8691
8692
8693
8694
8695
8696
8697   lt_prog_compiler_wl=
8698 lt_prog_compiler_pic=
8699 lt_prog_compiler_static=
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8702 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8703
8704   if test "$GCC" = yes; then
8705     lt_prog_compiler_wl='-Wl,'
8706     lt_prog_compiler_static='-static'
8707
8708     case $host_os in
8709       aix*)
8710       # All AIX code is PIC.
8711       if test "$host_cpu" = ia64; then
8712         # AIX 5 now supports IA64 processor
8713         lt_prog_compiler_static='-Bstatic'
8714       fi
8715       ;;
8716
8717     amigaos*)
8718       case $host_cpu in
8719       powerpc)
8720             # see comment about AmigaOS4 .so support
8721             lt_prog_compiler_pic='-fPIC'
8722         ;;
8723       m68k)
8724             # FIXME: we need at least 68020 code to build shared libraries, but
8725             # adding the `-m68020' flag to GCC prevents building anything better,
8726             # like `-m68040'.
8727             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8728         ;;
8729       esac
8730       ;;
8731
8732     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8733       # PIC is the default for these OSes.
8734       ;;
8735
8736     mingw* | cygwin* | pw32* | os2* | cegcc*)
8737       # This hack is so that the source file can tell whether it is being
8738       # built for inclusion in a dll (and should export symbols for example).
8739       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8740       # (--disable-auto-import) libraries
8741       lt_prog_compiler_pic='-DDLL_EXPORT'
8742       ;;
8743
8744     darwin* | rhapsody*)
8745       # PIC is the default on this platform
8746       # Common symbols not allowed in MH_DYLIB files
8747       lt_prog_compiler_pic='-fno-common'
8748       ;;
8749
8750     hpux*)
8751       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8752       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8753       # sets the default TLS model and affects inlining.
8754       case $host_cpu in
8755       hppa*64*)
8756         # +Z the default
8757         ;;
8758       *)
8759         lt_prog_compiler_pic='-fPIC'
8760         ;;
8761       esac
8762       ;;
8763
8764     interix[3-9]*)
8765       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8766       # Instead, we relocate shared libraries at runtime.
8767       ;;
8768
8769     msdosdjgpp*)
8770       # Just because we use GCC doesn't mean we suddenly get shared libraries
8771       # on systems that don't support them.
8772       lt_prog_compiler_can_build_shared=no
8773       enable_shared=no
8774       ;;
8775
8776     *nto* | *qnx*)
8777       # QNX uses GNU C++, but need to define -shared option too, otherwise
8778       # it will coredump.
8779       lt_prog_compiler_pic='-fPIC -shared'
8780       ;;
8781
8782     sysv4*MP*)
8783       if test -d /usr/nec; then
8784         lt_prog_compiler_pic=-Kconform_pic
8785       fi
8786       ;;
8787
8788     *)
8789       lt_prog_compiler_pic='-fPIC'
8790       ;;
8791     esac
8792   else
8793     # PORTME Check for flag to pass linker flags through the system compiler.
8794     case $host_os in
8795     aix*)
8796       lt_prog_compiler_wl='-Wl,'
8797       if test "$host_cpu" = ia64; then
8798         # AIX 5 now supports IA64 processor
8799         lt_prog_compiler_static='-Bstatic'
8800       else
8801         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8802       fi
8803       ;;
8804
8805     mingw* | cygwin* | pw32* | os2* | cegcc*)
8806       # This hack is so that the source file can tell whether it is being
8807       # built for inclusion in a dll (and should export symbols for example).
8808       lt_prog_compiler_pic='-DDLL_EXPORT'
8809       ;;
8810
8811     hpux9* | hpux10* | hpux11*)
8812       lt_prog_compiler_wl='-Wl,'
8813       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8814       # not for PA HP-UX.
8815       case $host_cpu in
8816       hppa*64*|ia64*)
8817         # +Z the default
8818         ;;
8819       *)
8820         lt_prog_compiler_pic='+Z'
8821         ;;
8822       esac
8823       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8824       lt_prog_compiler_static='${wl}-a ${wl}archive'
8825       ;;
8826
8827     irix5* | irix6* | nonstopux*)
8828       lt_prog_compiler_wl='-Wl,'
8829       # PIC (with -KPIC) is the default.
8830       lt_prog_compiler_static='-non_shared'
8831       ;;
8832
8833     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8834       case $cc_basename in
8835       # old Intel for x86_64 which still supported -KPIC.
8836       ecc*)
8837         lt_prog_compiler_wl='-Wl,'
8838         lt_prog_compiler_pic='-KPIC'
8839         lt_prog_compiler_static='-static'
8840         ;;
8841       # icc used to be incompatible with GCC.
8842       # ICC 10 doesn't accept -KPIC any more.
8843       icc* | ifort*)
8844         lt_prog_compiler_wl='-Wl,'
8845         lt_prog_compiler_pic='-fPIC'
8846         lt_prog_compiler_static='-static'
8847         ;;
8848       # Lahey Fortran 8.1.
8849       lf95*)
8850         lt_prog_compiler_wl='-Wl,'
8851         lt_prog_compiler_pic='--shared'
8852         lt_prog_compiler_static='--static'
8853         ;;
8854       pgcc* | pgf77* | pgf90* | pgf95*)
8855         # Portland Group compilers (*not* the Pentium gcc compiler,
8856         # which looks to be a dead project)
8857         lt_prog_compiler_wl='-Wl,'
8858         lt_prog_compiler_pic='-fpic'
8859         lt_prog_compiler_static='-Bstatic'
8860         ;;
8861       ccc*)
8862         lt_prog_compiler_wl='-Wl,'
8863         # All Alpha code is PIC.
8864         lt_prog_compiler_static='-non_shared'
8865         ;;
8866       xl*)
8867         # IBM XL C 8.0/Fortran 10.1 on PPC
8868         lt_prog_compiler_wl='-Wl,'
8869         lt_prog_compiler_pic='-qpic'
8870         lt_prog_compiler_static='-qstaticlink'
8871         ;;
8872       *)
8873         case `$CC -V 2>&1 | sed 5q` in
8874         *Sun\ C*)
8875           # Sun C 5.9
8876           lt_prog_compiler_pic='-KPIC'
8877           lt_prog_compiler_static='-Bstatic'
8878           lt_prog_compiler_wl='-Wl,'
8879           ;;
8880         *Sun\ F*)
8881           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8882           lt_prog_compiler_pic='-KPIC'
8883           lt_prog_compiler_static='-Bstatic'
8884           lt_prog_compiler_wl=''
8885           ;;
8886         esac
8887         ;;
8888       esac
8889       ;;
8890
8891     newsos6)
8892       lt_prog_compiler_pic='-KPIC'
8893       lt_prog_compiler_static='-Bstatic'
8894       ;;
8895
8896     *nto* | *qnx*)
8897       # QNX uses GNU C++, but need to define -shared option too, otherwise
8898       # it will coredump.
8899       lt_prog_compiler_pic='-fPIC -shared'
8900       ;;
8901
8902     osf3* | osf4* | osf5*)
8903       lt_prog_compiler_wl='-Wl,'
8904       # All OSF/1 code is PIC.
8905       lt_prog_compiler_static='-non_shared'
8906       ;;
8907
8908     rdos*)
8909       lt_prog_compiler_static='-non_shared'
8910       ;;
8911
8912     solaris*)
8913       lt_prog_compiler_pic='-KPIC'
8914       lt_prog_compiler_static='-Bstatic'
8915       case $cc_basename in
8916       f77* | f90* | f95*)
8917         lt_prog_compiler_wl='-Qoption ld ';;
8918       *)
8919         lt_prog_compiler_wl='-Wl,';;
8920       esac
8921       ;;
8922
8923     sunos4*)
8924       lt_prog_compiler_wl='-Qoption ld '
8925       lt_prog_compiler_pic='-PIC'
8926       lt_prog_compiler_static='-Bstatic'
8927       ;;
8928
8929     sysv4 | sysv4.2uw2* | sysv4.3*)
8930       lt_prog_compiler_wl='-Wl,'
8931       lt_prog_compiler_pic='-KPIC'
8932       lt_prog_compiler_static='-Bstatic'
8933       ;;
8934
8935     sysv4*MP*)
8936       if test -d /usr/nec ;then
8937         lt_prog_compiler_pic='-Kconform_pic'
8938         lt_prog_compiler_static='-Bstatic'
8939       fi
8940       ;;
8941
8942     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8943       lt_prog_compiler_wl='-Wl,'
8944       lt_prog_compiler_pic='-KPIC'
8945       lt_prog_compiler_static='-Bstatic'
8946       ;;
8947
8948     unicos*)
8949       lt_prog_compiler_wl='-Wl,'
8950       lt_prog_compiler_can_build_shared=no
8951       ;;
8952
8953     uts4*)
8954       lt_prog_compiler_pic='-pic'
8955       lt_prog_compiler_static='-Bstatic'
8956       ;;
8957
8958     *)
8959       lt_prog_compiler_can_build_shared=no
8960       ;;
8961     esac
8962   fi
8963
8964 case $host_os in
8965   # For platforms which do not support PIC, -DPIC is meaningless:
8966   *djgpp*)
8967     lt_prog_compiler_pic=
8968     ;;
8969   *)
8970     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8971     ;;
8972 esac
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8974 $as_echo "$lt_prog_compiler_pic" >&6; }
8975
8976
8977
8978
8979
8980
8981 #
8982 # Check to make sure the PIC flag actually works.
8983 #
8984 if test -n "$lt_prog_compiler_pic"; then
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8986 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8987 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   lt_cv_prog_compiler_pic_works=no
8991    ac_outfile=conftest.$ac_objext
8992    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8994    # Insert the option either (1) after the last *FLAGS variable, or
8995    # (2) before a word containing "conftest.", or (3) at the end.
8996    # Note that $ac_compile itself does not contain backslashes and begins
8997    # with a dollar sign (not a hyphen), so the echo should work correctly.
8998    # The option is referenced via a variable to avoid confusing sed.
8999    lt_compile=`echo "$ac_compile" | $SED \
9000    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002    -e 's:$: $lt_compiler_flag:'`
9003    (eval echo "\"\$as_me:9003: $lt_compile\"" >&5)
9004    (eval "$lt_compile" 2>conftest.err)
9005    ac_status=$?
9006    cat conftest.err >&5
9007    echo "$as_me:9007: \$? = $ac_status" >&5
9008    if (exit $ac_status) && test -s "$ac_outfile"; then
9009      # The compiler can only warn and ignore the option if not recognized
9010      # So say no if there are warnings other than the usual output.
9011      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9012      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9013      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9014        lt_cv_prog_compiler_pic_works=yes
9015      fi
9016    fi
9017    $RM conftest*
9018
9019 fi
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9021 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9022
9023 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9024     case $lt_prog_compiler_pic in
9025      "" | " "*) ;;
9026      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9027      esac
9028 else
9029     lt_prog_compiler_pic=
9030      lt_prog_compiler_can_build_shared=no
9031 fi
9032
9033 fi
9034
9035
9036
9037
9038
9039
9040 #
9041 # Check to make sure the static flag actually works.
9042 #
9043 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9045 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9046 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   lt_cv_prog_compiler_static_works=no
9050    save_LDFLAGS="$LDFLAGS"
9051    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9052    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9053    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9054      # The linker can only warn and ignore the option if not recognized
9055      # So say no if there are warnings
9056      if test -s conftest.err; then
9057        # Append any errors to the config.log.
9058        cat conftest.err 1>&5
9059        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9060        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061        if diff conftest.exp conftest.er2 >/dev/null; then
9062          lt_cv_prog_compiler_static_works=yes
9063        fi
9064      else
9065        lt_cv_prog_compiler_static_works=yes
9066      fi
9067    fi
9068    $RM -r conftest*
9069    LDFLAGS="$save_LDFLAGS"
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9073 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9074
9075 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9076     :
9077 else
9078     lt_prog_compiler_static=
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9088 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9089 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9090   $as_echo_n "(cached) " >&6
9091 else
9092   lt_cv_prog_compiler_c_o=no
9093    $RM -r conftest 2>/dev/null
9094    mkdir conftest
9095    cd conftest
9096    mkdir out
9097    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098
9099    lt_compiler_flag="-o out/conftest2.$ac_objext"
9100    # Insert the option either (1) after the last *FLAGS variable, or
9101    # (2) before a word containing "conftest.", or (3) at the end.
9102    # Note that $ac_compile itself does not contain backslashes and begins
9103    # with a dollar sign (not a hyphen), so the echo should work correctly.
9104    lt_compile=`echo "$ac_compile" | $SED \
9105    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107    -e 's:$: $lt_compiler_flag:'`
9108    (eval echo "\"\$as_me:9108: $lt_compile\"" >&5)
9109    (eval "$lt_compile" 2>out/conftest.err)
9110    ac_status=$?
9111    cat out/conftest.err >&5
9112    echo "$as_me:9112: \$? = $ac_status" >&5
9113    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9114    then
9115      # The compiler can only warn and ignore the option if not recognized
9116      # So say no if there are warnings
9117      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9118      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9119      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9120        lt_cv_prog_compiler_c_o=yes
9121      fi
9122    fi
9123    chmod u+w . 2>&5
9124    $RM conftest*
9125    # SGI C++ compiler will create directory out/ii_files/ for
9126    # template instantiation
9127    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9128    $RM out/* && rmdir out
9129    cd ..
9130    $RM -r conftest
9131    $RM conftest*
9132
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9135 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9136
9137
9138
9139
9140
9141
9142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9144 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9145   $as_echo_n "(cached) " >&6
9146 else
9147   lt_cv_prog_compiler_c_o=no
9148    $RM -r conftest 2>/dev/null
9149    mkdir conftest
9150    cd conftest
9151    mkdir out
9152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153
9154    lt_compiler_flag="-o out/conftest2.$ac_objext"
9155    # Insert the option either (1) after the last *FLAGS variable, or
9156    # (2) before a word containing "conftest.", or (3) at the end.
9157    # Note that $ac_compile itself does not contain backslashes and begins
9158    # with a dollar sign (not a hyphen), so the echo should work correctly.
9159    lt_compile=`echo "$ac_compile" | $SED \
9160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162    -e 's:$: $lt_compiler_flag:'`
9163    (eval echo "\"\$as_me:9163: $lt_compile\"" >&5)
9164    (eval "$lt_compile" 2>out/conftest.err)
9165    ac_status=$?
9166    cat out/conftest.err >&5
9167    echo "$as_me:9167: \$? = $ac_status" >&5
9168    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9169    then
9170      # The compiler can only warn and ignore the option if not recognized
9171      # So say no if there are warnings
9172      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9173      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9174      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9175        lt_cv_prog_compiler_c_o=yes
9176      fi
9177    fi
9178    chmod u+w . 2>&5
9179    $RM conftest*
9180    # SGI C++ compiler will create directory out/ii_files/ for
9181    # template instantiation
9182    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9183    $RM out/* && rmdir out
9184    cd ..
9185    $RM -r conftest
9186    $RM conftest*
9187
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9191
9192
9193
9194
9195 hard_links="nottested"
9196 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9197   # do not overwrite the value of need_locks provided by the user
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9199 $as_echo_n "checking if we can lock with hard links... " >&6; }
9200   hard_links=yes
9201   $RM conftest*
9202   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203   touch conftest.a
9204   ln conftest.a conftest.b 2>&5 || hard_links=no
9205   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9207 $as_echo "$hard_links" >&6; }
9208   if test "$hard_links" = no; then
9209     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9210 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9211     need_locks=warn
9212   fi
9213 else
9214   need_locks=no
9215 fi
9216
9217
9218
9219
9220
9221
9222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9224
9225   runpath_var=
9226   allow_undefined_flag=
9227   always_export_symbols=no
9228   archive_cmds=
9229   archive_expsym_cmds=
9230   compiler_needs_object=no
9231   enable_shared_with_static_runtimes=no
9232   export_dynamic_flag_spec=
9233   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9234   hardcode_automatic=no
9235   hardcode_direct=no
9236   hardcode_direct_absolute=no
9237   hardcode_libdir_flag_spec=
9238   hardcode_libdir_flag_spec_ld=
9239   hardcode_libdir_separator=
9240   hardcode_minus_L=no
9241   hardcode_shlibpath_var=unsupported
9242   inherit_rpath=no
9243   link_all_deplibs=unknown
9244   module_cmds=
9245   module_expsym_cmds=
9246   old_archive_from_new_cmds=
9247   old_archive_from_expsyms_cmds=
9248   thread_safe_flag_spec=
9249   whole_archive_flag_spec=
9250   # include_expsyms should be a list of space-separated symbols to be *always*
9251   # included in the symbol list
9252   include_expsyms=
9253   # exclude_expsyms can be an extended regexp of symbols to exclude
9254   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9255   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9256   # as well as any symbol that contains `d'.
9257   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9258   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9259   # platforms (ab)use it in PIC code, but their linkers get confused if
9260   # the symbol is explicitly referenced.  Since portable code cannot
9261   # rely on this symbol name, it's probably fine to never include it in
9262   # preloaded symbol tables.
9263   # Exclude shared library initialization/finalization symbols.
9264   extract_expsyms_cmds=
9265
9266   case $host_os in
9267   cygwin* | mingw* | pw32* | cegcc*)
9268     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9269     # When not using gcc, we currently assume that we are using
9270     # Microsoft Visual C++.
9271     if test "$GCC" != yes; then
9272       with_gnu_ld=no
9273     fi
9274     ;;
9275   interix*)
9276     # we just hope/assume this is gcc and not c89 (= MSVC++)
9277     with_gnu_ld=yes
9278     ;;
9279   openbsd*)
9280     with_gnu_ld=no
9281     ;;
9282   linux* | k*bsd*-gnu)
9283     link_all_deplibs=no
9284     ;;
9285   esac
9286
9287   ld_shlibs=yes
9288   if test "$with_gnu_ld" = yes; then
9289     # If archive_cmds runs LD, not CC, wlarc should be empty
9290     wlarc='${wl}'
9291
9292     # Set some defaults for GNU ld with shared library support. These
9293     # are reset later if shared libraries are not supported. Putting them
9294     # here allows them to be overridden if necessary.
9295     runpath_var=LD_RUN_PATH
9296     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297     export_dynamic_flag_spec='${wl}--export-dynamic'
9298     # ancient GNU ld didn't support --whole-archive et. al.
9299     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9300       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9301     else
9302       whole_archive_flag_spec=
9303     fi
9304     supports_anon_versioning=no
9305     case `$LD -v 2>&1` in
9306       *GNU\ gold*) supports_anon_versioning=yes ;;
9307       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9308       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9309       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9310       *\ 2.11.*) ;; # other 2.11 versions
9311       *) supports_anon_versioning=yes ;;
9312     esac
9313
9314     # See if GNU ld supports shared libraries.
9315     case $host_os in
9316     aix[3-9]*)
9317       # On AIX/PPC, the GNU linker is very broken
9318       if test "$host_cpu" != ia64; then
9319         ld_shlibs=no
9320         cat <<_LT_EOF 1>&2
9321
9322 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9323 *** to be unable to reliably create shared libraries on AIX.
9324 *** Therefore, libtool is disabling shared libraries support.  If you
9325 *** really care for shared libraries, you may want to modify your PATH
9326 *** so that a non-GNU linker is found, and then restart.
9327
9328 _LT_EOF
9329       fi
9330       ;;
9331
9332     amigaos*)
9333       case $host_cpu in
9334       powerpc)
9335             # see comment about AmigaOS4 .so support
9336             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337             archive_expsym_cmds=''
9338         ;;
9339       m68k)
9340             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)'
9341             hardcode_libdir_flag_spec='-L$libdir'
9342             hardcode_minus_L=yes
9343         ;;
9344       esac
9345       ;;
9346
9347     beos*)
9348       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349         allow_undefined_flag=unsupported
9350         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9351         # support --undefined.  This deserves some investigation.  FIXME
9352         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353       else
9354         ld_shlibs=no
9355       fi
9356       ;;
9357
9358     cygwin* | mingw* | pw32* | cegcc*)
9359       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9360       # as there is no search path for DLLs.
9361       hardcode_libdir_flag_spec='-L$libdir'
9362       allow_undefined_flag=unsupported
9363       always_export_symbols=no
9364       enable_shared_with_static_runtimes=yes
9365       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9366
9367       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9368         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9369         # If the export-symbols file already is a .def file (1st line
9370         # is EXPORTS), use it as is; otherwise, prepend...
9371         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9372           cp $export_symbols $output_objdir/$soname.def;
9373         else
9374           echo EXPORTS > $output_objdir/$soname.def;
9375           cat $export_symbols >> $output_objdir/$soname.def;
9376         fi~
9377         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9378       else
9379         ld_shlibs=no
9380       fi
9381       ;;
9382
9383     interix[3-9]*)
9384       hardcode_direct=no
9385       hardcode_shlibpath_var=no
9386       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9387       export_dynamic_flag_spec='${wl}-E'
9388       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9389       # Instead, shared libraries are loaded at an image base (0x10000000 by
9390       # default) and relocated if they conflict, which is a slow very memory
9391       # consuming and fragmenting process.  To avoid this, we pick a random,
9392       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9393       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9394       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9395       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'
9396       ;;
9397
9398     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9399       tmp_diet=no
9400       if test "$host_os" = linux-dietlibc; then
9401         case $cc_basename in
9402           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9403         esac
9404       fi
9405       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9406          && test "$tmp_diet" = no
9407       then
9408         tmp_addflag=
9409         tmp_sharedflag='-shared'
9410         case $cc_basename,$host_cpu in
9411         pgcc*)                          # Portland Group C compiler
9412           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9413           tmp_addflag=' $pic_flag'
9414           ;;
9415         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9416           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9417           tmp_addflag=' $pic_flag -Mnomain' ;;
9418         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9419           tmp_addflag=' -i_dynamic' ;;
9420         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9421           tmp_addflag=' -i_dynamic -nofor_main' ;;
9422         ifc* | ifort*)                  # Intel Fortran compiler
9423           tmp_addflag=' -nofor_main' ;;
9424         lf95*)                          # Lahey Fortran 8.1
9425           whole_archive_flag_spec=
9426           tmp_sharedflag='--shared' ;;
9427         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9428           tmp_sharedflag='-qmkshrobj'
9429           tmp_addflag= ;;
9430         esac
9431         case `$CC -V 2>&1 | sed 5q` in
9432         *Sun\ C*)                       # Sun C 5.9
9433           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9434           compiler_needs_object=yes
9435           tmp_sharedflag='-G' ;;
9436         *Sun\ F*)                       # Sun Fortran 8.3
9437           tmp_sharedflag='-G' ;;
9438         esac
9439         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440
9441         if test "x$supports_anon_versioning" = xyes; then
9442           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9443             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9444             echo "local: *; };" >> $output_objdir/$libname.ver~
9445             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9446         fi
9447
9448         case $cc_basename in
9449         xlf*)
9450           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9451           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9452           hardcode_libdir_flag_spec=
9453           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9454           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9455           if test "x$supports_anon_versioning" = xyes; then
9456             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9457               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9458               echo "local: *; };" >> $output_objdir/$libname.ver~
9459               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9460           fi
9461           ;;
9462         esac
9463       else
9464         ld_shlibs=no
9465       fi
9466       ;;
9467
9468     netbsd* | netbsdelf*-gnu)
9469       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9470         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9471         wlarc=
9472       else
9473         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475       fi
9476       ;;
9477
9478     solaris*)
9479       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9480         ld_shlibs=no
9481         cat <<_LT_EOF 1>&2
9482
9483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9484 *** create shared libraries on Solaris systems.  Therefore, libtool
9485 *** is disabling shared libraries support.  We urge you to upgrade GNU
9486 *** binutils to release 2.9.1 or newer.  Another option is to modify
9487 *** your PATH or compiler configuration so that the native linker is
9488 *** used, and then restart.
9489
9490 _LT_EOF
9491       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9494       else
9495         ld_shlibs=no
9496       fi
9497       ;;
9498
9499     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9500       case `$LD -v 2>&1` in
9501         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9502         ld_shlibs=no
9503         cat <<_LT_EOF 1>&2
9504
9505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9506 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9507 *** is disabling shared libraries support.  We urge you to upgrade GNU
9508 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9509 *** your PATH or compiler configuration so that the native linker is
9510 *** used, and then restart.
9511
9512 _LT_EOF
9513         ;;
9514         *)
9515           # For security reasons, it is highly recommended that you always
9516           # use absolute paths for naming shared libraries, and exclude the
9517           # DT_RUNPATH tag from executables and libraries.  But doing so
9518           # requires that you compile everything twice, which is a pain.
9519           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523           else
9524             ld_shlibs=no
9525           fi
9526         ;;
9527       esac
9528       ;;
9529
9530     sunos4*)
9531       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9532       wlarc=
9533       hardcode_direct=yes
9534       hardcode_shlibpath_var=no
9535       ;;
9536
9537     *)
9538       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9541       else
9542         ld_shlibs=no
9543       fi
9544       ;;
9545     esac
9546
9547     if test "$ld_shlibs" = no; then
9548       runpath_var=
9549       hardcode_libdir_flag_spec=
9550       export_dynamic_flag_spec=
9551       whole_archive_flag_spec=
9552     fi
9553   else
9554     # PORTME fill in a description of your system's linker (not GNU ld)
9555     case $host_os in
9556     aix3*)
9557       allow_undefined_flag=unsupported
9558       always_export_symbols=yes
9559       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'
9560       # Note: this linker hardcodes the directories in LIBPATH if there
9561       # are no directories specified by -L.
9562       hardcode_minus_L=yes
9563       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9564         # Neither direct hardcoding nor static linking is supported with a
9565         # broken collect2.
9566         hardcode_direct=unsupported
9567       fi
9568       ;;
9569
9570     aix[4-9]*)
9571       if test "$host_cpu" = ia64; then
9572         # On IA64, the linker does run time linking by default, so we don't
9573         # have to do anything special.
9574         aix_use_runtimelinking=no
9575         exp_sym_flag='-Bexport'
9576         no_entry_flag=""
9577       else
9578         # If we're using GNU nm, then we don't want the "-C" option.
9579         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9580         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9581           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9582         else
9583           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'
9584         fi
9585         aix_use_runtimelinking=no
9586
9587         # Test if we are trying to use run time linking or normal
9588         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9589         # need to do runtime linking.
9590         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9591           for ld_flag in $LDFLAGS; do
9592           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9593             aix_use_runtimelinking=yes
9594             break
9595           fi
9596           done
9597           ;;
9598         esac
9599
9600         exp_sym_flag='-bexport'
9601         no_entry_flag='-bnoentry'
9602       fi
9603
9604       # When large executables or shared objects are built, AIX ld can
9605       # have problems creating the table of contents.  If linking a library
9606       # or program results in "error TOC overflow" add -mminimal-toc to
9607       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9608       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9609
9610       archive_cmds=''
9611       hardcode_direct=yes
9612       hardcode_direct_absolute=yes
9613       hardcode_libdir_separator=':'
9614       link_all_deplibs=yes
9615       file_list_spec='${wl}-f,'
9616
9617       if test "$GCC" = yes; then
9618         case $host_os in aix4.[012]|aix4.[012].*)
9619         # We only want to do this on AIX 4.2 and lower, the check
9620         # below for broken collect2 doesn't work under 4.3+
9621           collect2name=`${CC} -print-prog-name=collect2`
9622           if test -f "$collect2name" &&
9623            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9624           then
9625           # We have reworked collect2
9626           :
9627           else
9628           # We have old collect2
9629           hardcode_direct=unsupported
9630           # It fails to find uninstalled libraries when the uninstalled
9631           # path is not listed in the libpath.  Setting hardcode_minus_L
9632           # to unsupported forces relinking
9633           hardcode_minus_L=yes
9634           hardcode_libdir_flag_spec='-L$libdir'
9635           hardcode_libdir_separator=
9636           fi
9637           ;;
9638         esac
9639         shared_flag='-shared'
9640         if test "$aix_use_runtimelinking" = yes; then
9641           shared_flag="$shared_flag "'${wl}-G'
9642         fi
9643         link_all_deplibs=no
9644       else
9645         # not using gcc
9646         if test "$host_cpu" = ia64; then
9647         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9648         # chokes on -Wl,-G. The following line is correct:
9649           shared_flag='-G'
9650         else
9651           if test "$aix_use_runtimelinking" = yes; then
9652             shared_flag='${wl}-G'
9653           else
9654             shared_flag='${wl}-bM:SRE'
9655           fi
9656         fi
9657       fi
9658
9659       export_dynamic_flag_spec='${wl}-bexpall'
9660       # It seems that -bexpall does not export symbols beginning with
9661       # underscore (_), so it is better to generate a list of symbols to export.
9662       always_export_symbols=yes
9663       if test "$aix_use_runtimelinking" = yes; then
9664         # Warning - without using the other runtime loading flags (-brtl),
9665         # -berok will link without error, but may produce a broken library.
9666         allow_undefined_flag='-berok'
9667         # Determine the default libpath from the value encoded in an
9668         # empty executable.
9669         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671
9672 int
9673 main ()
9674 {
9675
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 if ac_fn_c_try_link "$LINENO"; then :
9681
9682 lt_aix_libpath_sed='
9683     /Import File Strings/,/^$/ {
9684         /^0/ {
9685             s/^0  *\(.*\)$/\1/
9686             p
9687         }
9688     }'
9689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9690 # Check for a 64-bit object if we didn't find anything.
9691 if test -z "$aix_libpath"; then
9692   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693 fi
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext \
9696     conftest$ac_exeext conftest.$ac_ext
9697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9698
9699         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9700         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9701       else
9702         if test "$host_cpu" = ia64; then
9703           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9704           allow_undefined_flag="-z nodefs"
9705           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"
9706         else
9707          # Determine the default libpath from the value encoded in an
9708          # empty executable.
9709          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h.  */
9711
9712 int
9713 main ()
9714 {
9715
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 if ac_fn_c_try_link "$LINENO"; then :
9721
9722 lt_aix_libpath_sed='
9723     /Import File Strings/,/^$/ {
9724         /^0/ {
9725             s/^0  *\(.*\)$/\1/
9726             p
9727         }
9728     }'
9729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730 # Check for a 64-bit object if we didn't find anything.
9731 if test -z "$aix_libpath"; then
9732   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733 fi
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext \
9736     conftest$ac_exeext conftest.$ac_ext
9737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9738
9739          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9740           # Warning - without using the other run time loading flags,
9741           # -berok will link without error, but may produce a broken library.
9742           no_undefined_flag=' ${wl}-bernotok'
9743           allow_undefined_flag=' ${wl}-berok'
9744           # Exported symbols can be pulled into shared objects from archives
9745           whole_archive_flag_spec='$convenience'
9746           archive_cmds_need_lc=yes
9747           # This is similar to how AIX traditionally builds its shared libraries.
9748           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'
9749         fi
9750       fi
9751       ;;
9752
9753     amigaos*)
9754       case $host_cpu in
9755       powerpc)
9756             # see comment about AmigaOS4 .so support
9757             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758             archive_expsym_cmds=''
9759         ;;
9760       m68k)
9761             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)'
9762             hardcode_libdir_flag_spec='-L$libdir'
9763             hardcode_minus_L=yes
9764         ;;
9765       esac
9766       ;;
9767
9768     bsdi[45]*)
9769       export_dynamic_flag_spec=-rdynamic
9770       ;;
9771
9772     cygwin* | mingw* | pw32* | cegcc*)
9773       # When not using gcc, we currently assume that we are using
9774       # Microsoft Visual C++.
9775       # hardcode_libdir_flag_spec is actually meaningless, as there is
9776       # no search path for DLLs.
9777       hardcode_libdir_flag_spec=' '
9778       allow_undefined_flag=unsupported
9779       # Tell ltmain to make .lib files, not .a files.
9780       libext=lib
9781       # Tell ltmain to make .dll files, not .so files.
9782       shrext_cmds=".dll"
9783       # FIXME: Setting linknames here is a bad hack.
9784       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9785       # The linker will automatically build a .lib file if we build a DLL.
9786       old_archive_from_new_cmds='true'
9787       # FIXME: Should let the user specify the lib program.
9788       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9789       fix_srcfile_path='`cygpath -w "$srcfile"`'
9790       enable_shared_with_static_runtimes=yes
9791       ;;
9792
9793     darwin* | rhapsody*)
9794
9795
9796   archive_cmds_need_lc=no
9797   hardcode_direct=no
9798   hardcode_automatic=yes
9799   hardcode_shlibpath_var=unsupported
9800   whole_archive_flag_spec=''
9801   link_all_deplibs=yes
9802   allow_undefined_flag="$_lt_dar_allow_undefined"
9803   case $cc_basename in
9804      ifort*) _lt_dar_can_shared=yes ;;
9805      *) _lt_dar_can_shared=$GCC ;;
9806   esac
9807   if test "$_lt_dar_can_shared" = "yes"; then
9808     output_verbose_link_cmd=echo
9809     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9810     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9811     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}"
9812     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}"
9813
9814   else
9815   ld_shlibs=no
9816   fi
9817
9818       ;;
9819
9820     dgux*)
9821       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822       hardcode_libdir_flag_spec='-L$libdir'
9823       hardcode_shlibpath_var=no
9824       ;;
9825
9826     freebsd1*)
9827       ld_shlibs=no
9828       ;;
9829
9830     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9831     # support.  Future versions do this automatically, but an explicit c++rt0.o
9832     # does not break anything, and helps significantly (at the cost of a little
9833     # extra space).
9834     freebsd2.2*)
9835       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9836       hardcode_libdir_flag_spec='-R$libdir'
9837       hardcode_direct=yes
9838       hardcode_shlibpath_var=no
9839       ;;
9840
9841     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9842     freebsd2*)
9843       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9844       hardcode_direct=yes
9845       hardcode_minus_L=yes
9846       hardcode_shlibpath_var=no
9847       ;;
9848
9849     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9850     freebsd* | dragonfly*)
9851       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9852       hardcode_libdir_flag_spec='-R$libdir'
9853       hardcode_direct=yes
9854       hardcode_shlibpath_var=no
9855       ;;
9856
9857     hpux9*)
9858       if test "$GCC" = yes; then
9859         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9860       else
9861         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'
9862       fi
9863       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9864       hardcode_libdir_separator=:
9865       hardcode_direct=yes
9866
9867       # hardcode_minus_L: Not really in the search PATH,
9868       # but as the default location of the library.
9869       hardcode_minus_L=yes
9870       export_dynamic_flag_spec='${wl}-E'
9871       ;;
9872
9873     hpux10*)
9874       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9875         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9876       else
9877         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9878       fi
9879       if test "$with_gnu_ld" = no; then
9880         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9881         hardcode_libdir_flag_spec_ld='+b $libdir'
9882         hardcode_libdir_separator=:
9883         hardcode_direct=yes
9884         hardcode_direct_absolute=yes
9885         export_dynamic_flag_spec='${wl}-E'
9886         # hardcode_minus_L: Not really in the search PATH,
9887         # but as the default location of the library.
9888         hardcode_minus_L=yes
9889       fi
9890       ;;
9891
9892     hpux11*)
9893       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9894         case $host_cpu in
9895         hppa*64*)
9896           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9897           ;;
9898         ia64*)
9899           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9900           ;;
9901         *)
9902           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903           ;;
9904         esac
9905       else
9906         case $host_cpu in
9907         hppa*64*)
9908           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9909           ;;
9910         ia64*)
9911           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9912           ;;
9913         *)
9914           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9915           ;;
9916         esac
9917       fi
9918       if test "$with_gnu_ld" = no; then
9919         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9920         hardcode_libdir_separator=:
9921
9922         case $host_cpu in
9923         hppa*64*|ia64*)
9924           hardcode_direct=no
9925           hardcode_shlibpath_var=no
9926           ;;
9927         *)
9928           hardcode_direct=yes
9929           hardcode_direct_absolute=yes
9930           export_dynamic_flag_spec='${wl}-E'
9931
9932           # hardcode_minus_L: Not really in the search PATH,
9933           # but as the default location of the library.
9934           hardcode_minus_L=yes
9935           ;;
9936         esac
9937       fi
9938       ;;
9939
9940     irix5* | irix6* | nonstopux*)
9941       if test "$GCC" = yes; then
9942         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9943         # Try to use the -exported_symbol ld option, if it does not
9944         # work, assume that -exports_file does not work either and
9945         # implicitly export all symbols.
9946         save_LDFLAGS="$LDFLAGS"
9947         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9948         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h.  */
9950 int foo(void) {}
9951 _ACEOF
9952 if ac_fn_c_try_link "$LINENO"; then :
9953   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9954
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957     conftest$ac_exeext conftest.$ac_ext
9958         LDFLAGS="$save_LDFLAGS"
9959       else
9960         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9961         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9962       fi
9963       archive_cmds_need_lc='no'
9964       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965       hardcode_libdir_separator=:
9966       inherit_rpath=yes
9967       link_all_deplibs=yes
9968       ;;
9969
9970     netbsd* | netbsdelf*-gnu)
9971       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9972         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9973       else
9974         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9975       fi
9976       hardcode_libdir_flag_spec='-R$libdir'
9977       hardcode_direct=yes
9978       hardcode_shlibpath_var=no
9979       ;;
9980
9981     newsos6)
9982       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983       hardcode_direct=yes
9984       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985       hardcode_libdir_separator=:
9986       hardcode_shlibpath_var=no
9987       ;;
9988
9989     *nto* | *qnx*)
9990       ;;
9991
9992     openbsd*)
9993       if test -f /usr/libexec/ld.so; then
9994         hardcode_direct=yes
9995         hardcode_shlibpath_var=no
9996         hardcode_direct_absolute=yes
9997         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9998           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10000           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10001           export_dynamic_flag_spec='${wl}-E'
10002         else
10003           case $host_os in
10004            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10005              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006              hardcode_libdir_flag_spec='-R$libdir'
10007              ;;
10008            *)
10009              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10010              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10011              ;;
10012           esac
10013         fi
10014       else
10015         ld_shlibs=no
10016       fi
10017       ;;
10018
10019     os2*)
10020       hardcode_libdir_flag_spec='-L$libdir'
10021       hardcode_minus_L=yes
10022       allow_undefined_flag=unsupported
10023       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'
10024       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10025       ;;
10026
10027     osf3*)
10028       if test "$GCC" = yes; then
10029         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10030         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10031       else
10032         allow_undefined_flag=' -expect_unresolved \*'
10033         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10034       fi
10035       archive_cmds_need_lc='no'
10036       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037       hardcode_libdir_separator=:
10038       ;;
10039
10040     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10041       if test "$GCC" = yes; then
10042         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10043         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10044         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10045       else
10046         allow_undefined_flag=' -expect_unresolved \*'
10047         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10048         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~
10049         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10050
10051         # Both c and cxx compiler support -rpath directly
10052         hardcode_libdir_flag_spec='-rpath $libdir'
10053       fi
10054       archive_cmds_need_lc='no'
10055       hardcode_libdir_separator=:
10056       ;;
10057
10058     solaris*)
10059       no_undefined_flag=' -z defs'
10060       if test "$GCC" = yes; then
10061         wlarc='${wl}'
10062         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10063         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10065       else
10066         case `$CC -V 2>&1` in
10067         *"Compilers 5.0"*)
10068           wlarc=''
10069           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10072           ;;
10073         *)
10074           wlarc='${wl}'
10075           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10076           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10077           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10078           ;;
10079         esac
10080       fi
10081       hardcode_libdir_flag_spec='-R$libdir'
10082       hardcode_shlibpath_var=no
10083       case $host_os in
10084       solaris2.[0-5] | solaris2.[0-5].*) ;;
10085       *)
10086         # The compiler driver will combine and reorder linker options,
10087         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10088         # but is careful enough not to reorder.
10089         # Supported since Solaris 2.6 (maybe 2.5.1?)
10090         if test "$GCC" = yes; then
10091           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10092         else
10093           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10094         fi
10095         ;;
10096       esac
10097       link_all_deplibs=yes
10098       ;;
10099
10100     sunos4*)
10101       if test "x$host_vendor" = xsequent; then
10102         # Use $CC to link under sequent, because it throws in some extra .o
10103         # files that make .init and .fini sections work.
10104         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10105       else
10106         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10107       fi
10108       hardcode_libdir_flag_spec='-L$libdir'
10109       hardcode_direct=yes
10110       hardcode_minus_L=yes
10111       hardcode_shlibpath_var=no
10112       ;;
10113
10114     sysv4)
10115       case $host_vendor in
10116         sni)
10117           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118           hardcode_direct=yes # is this really true???
10119         ;;
10120         siemens)
10121           ## LD is ld it makes a PLAMLIB
10122           ## CC just makes a GrossModule.
10123           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10124           reload_cmds='$CC -r -o $output$reload_objs'
10125           hardcode_direct=no
10126         ;;
10127         motorola)
10128           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10130         ;;
10131       esac
10132       runpath_var='LD_RUN_PATH'
10133       hardcode_shlibpath_var=no
10134       ;;
10135
10136     sysv4.3*)
10137       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138       hardcode_shlibpath_var=no
10139       export_dynamic_flag_spec='-Bexport'
10140       ;;
10141
10142     sysv4*MP*)
10143       if test -d /usr/nec; then
10144         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145         hardcode_shlibpath_var=no
10146         runpath_var=LD_RUN_PATH
10147         hardcode_runpath_var=yes
10148         ld_shlibs=yes
10149       fi
10150       ;;
10151
10152     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10153       no_undefined_flag='${wl}-z,text'
10154       archive_cmds_need_lc=no
10155       hardcode_shlibpath_var=no
10156       runpath_var='LD_RUN_PATH'
10157
10158       if test "$GCC" = yes; then
10159         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161       else
10162         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164       fi
10165       ;;
10166
10167     sysv5* | sco3.2v5* | sco5v6*)
10168       # Note: We can NOT use -z defs as we might desire, because we do not
10169       # link with -lc, and that would cause any symbols used from libc to
10170       # always be unresolved, which means just about no library would
10171       # ever link correctly.  If we're not using GNU ld we use -z text
10172       # though, which does catch some bad symbols but isn't as heavy-handed
10173       # as -z defs.
10174       no_undefined_flag='${wl}-z,text'
10175       allow_undefined_flag='${wl}-z,nodefs'
10176       archive_cmds_need_lc=no
10177       hardcode_shlibpath_var=no
10178       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10179       hardcode_libdir_separator=':'
10180       link_all_deplibs=yes
10181       export_dynamic_flag_spec='${wl}-Bexport'
10182       runpath_var='LD_RUN_PATH'
10183
10184       if test "$GCC" = yes; then
10185         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187       else
10188         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190       fi
10191       ;;
10192
10193     uts4*)
10194       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195       hardcode_libdir_flag_spec='-L$libdir'
10196       hardcode_shlibpath_var=no
10197       ;;
10198
10199     *)
10200       ld_shlibs=no
10201       ;;
10202     esac
10203
10204     if test x$host_vendor = xsni; then
10205       case $host in
10206       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10207         export_dynamic_flag_spec='${wl}-Blargedynsym'
10208         ;;
10209       esac
10210     fi
10211   fi
10212
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10214 $as_echo "$ld_shlibs" >&6; }
10215 test "$ld_shlibs" = no && can_build_shared=no
10216
10217 with_gnu_ld=$with_gnu_ld
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233 #
10234 # Do we need to explicitly link libc?
10235 #
10236 case "x$archive_cmds_need_lc" in
10237 x|xyes)
10238   # Assume -lc should be added
10239   archive_cmds_need_lc=yes
10240
10241   if test "$enable_shared" = yes && test "$GCC" = yes; then
10242     case $archive_cmds in
10243     *'~'*)
10244       # FIXME: we may have to deal with multi-command sequences.
10245       ;;
10246     '$CC '*)
10247       # Test whether the compiler implicitly links with -lc since on some
10248       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10249       # to ld, don't add -lc before -lgcc.
10250       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10251 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10252       $RM conftest*
10253       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10254
10255       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10256   (eval $ac_compile) 2>&5
10257   ac_status=$?
10258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10259   test $ac_status = 0; } 2>conftest.err; then
10260         soname=conftest
10261         lib=conftest
10262         libobjs=conftest.$ac_objext
10263         deplibs=
10264         wl=$lt_prog_compiler_wl
10265         pic_flag=$lt_prog_compiler_pic
10266         compiler_flags=-v
10267         linker_flags=-v
10268         verstring=
10269         output_objdir=.
10270         libname=conftest
10271         lt_save_allow_undefined_flag=$allow_undefined_flag
10272         allow_undefined_flag=
10273         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10274   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10275   ac_status=$?
10276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10277   test $ac_status = 0; }
10278         then
10279           archive_cmds_need_lc=no
10280         else
10281           archive_cmds_need_lc=yes
10282         fi
10283         allow_undefined_flag=$lt_save_allow_undefined_flag
10284       else
10285         cat conftest.err 1>&5
10286       fi
10287       $RM conftest*
10288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10289 $as_echo "$archive_cmds_need_lc" >&6; }
10290       ;;
10291     esac
10292   fi
10293   ;;
10294 esac
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10454
10455 if test "$GCC" = yes; then
10456   case $host_os in
10457     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10458     *) lt_awk_arg="/^libraries:/" ;;
10459   esac
10460   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10461   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10462     # if the path contains ";" then we assume it to be the separator
10463     # otherwise default to the standard path separator (i.e. ":") - it is
10464     # assumed that no part of a normal pathname contains ";" but that should
10465     # okay in the real world where ";" in dirpaths is itself problematic.
10466     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10467   else
10468     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10469   fi
10470   # Ok, now we have the path, separated by spaces, we can step through it
10471   # and add multilib dir if necessary.
10472   lt_tmp_lt_search_path_spec=
10473   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10474   for lt_sys_path in $lt_search_path_spec; do
10475     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10476       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10477     else
10478       test -d "$lt_sys_path" && \
10479         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10480     fi
10481   done
10482   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10483 BEGIN {RS=" "; FS="/|\n";} {
10484   lt_foo="";
10485   lt_count=0;
10486   for (lt_i = NF; lt_i > 0; lt_i--) {
10487     if ($lt_i != "" && $lt_i != ".") {
10488       if ($lt_i == "..") {
10489         lt_count++;
10490       } else {
10491         if (lt_count == 0) {
10492           lt_foo="/" $lt_i lt_foo;
10493         } else {
10494           lt_count--;
10495         }
10496       }
10497     }
10498   }
10499   if (lt_foo != "") { lt_freq[lt_foo]++; }
10500   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10501 }'`
10502   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10503 else
10504   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10505 fi
10506 library_names_spec=
10507 libname_spec='lib$name'
10508 soname_spec=
10509 shrext_cmds=".so"
10510 postinstall_cmds=
10511 postuninstall_cmds=
10512 finish_cmds=
10513 finish_eval=
10514 shlibpath_var=
10515 shlibpath_overrides_runpath=unknown
10516 version_type=none
10517 dynamic_linker="$host_os ld.so"
10518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10519 need_lib_prefix=unknown
10520 hardcode_into_libs=no
10521
10522 # when you set need_version to no, make sure it does not cause -set_version
10523 # flags to be left without arguments
10524 need_version=unknown
10525
10526 case $host_os in
10527 aix3*)
10528   version_type=linux
10529   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10530   shlibpath_var=LIBPATH
10531
10532   # AIX 3 has no versioning support, so we append a major version to the name.
10533   soname_spec='${libname}${release}${shared_ext}$major'
10534   ;;
10535
10536 aix[4-9]*)
10537   version_type=linux
10538   need_lib_prefix=no
10539   need_version=no
10540   hardcode_into_libs=yes
10541   if test "$host_cpu" = ia64; then
10542     # AIX 5 supports IA64
10543     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10544     shlibpath_var=LD_LIBRARY_PATH
10545   else
10546     # With GCC up to 2.95.x, collect2 would create an import file
10547     # for dependence libraries.  The import file would start with
10548     # the line `#! .'.  This would cause the generated library to
10549     # depend on `.', always an invalid library.  This was fixed in
10550     # development snapshots of GCC prior to 3.0.
10551     case $host_os in
10552       aix4 | aix4.[01] | aix4.[01].*)
10553       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10554            echo ' yes '
10555            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10556         :
10557       else
10558         can_build_shared=no
10559       fi
10560       ;;
10561     esac
10562     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10563     # soname into executable. Probably we can add versioning support to
10564     # collect2, so additional links can be useful in future.
10565     if test "$aix_use_runtimelinking" = yes; then
10566       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10567       # instead of lib<name>.a to let people know that these are not
10568       # typical AIX shared libraries.
10569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570     else
10571       # We preserve .a as extension for shared libraries through AIX4.2
10572       # and later when we are not doing run time linking.
10573       library_names_spec='${libname}${release}.a $libname.a'
10574       soname_spec='${libname}${release}${shared_ext}$major'
10575     fi
10576     shlibpath_var=LIBPATH
10577   fi
10578   ;;
10579
10580 amigaos*)
10581   case $host_cpu in
10582   powerpc)
10583     # Since July 2007 AmigaOS4 officially supports .so libraries.
10584     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586     ;;
10587   m68k)
10588     library_names_spec='$libname.ixlibrary $libname.a'
10589     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10590     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10591     ;;
10592   esac
10593   ;;
10594
10595 beos*)
10596   library_names_spec='${libname}${shared_ext}'
10597   dynamic_linker="$host_os ld.so"
10598   shlibpath_var=LIBRARY_PATH
10599   ;;
10600
10601 bsdi[45]*)
10602   version_type=linux
10603   need_version=no
10604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605   soname_spec='${libname}${release}${shared_ext}$major'
10606   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10607   shlibpath_var=LD_LIBRARY_PATH
10608   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10609   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10610   # the default ld.so.conf also contains /usr/contrib/lib and
10611   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10612   # libtool to hard-code these into programs
10613   ;;
10614
10615 cygwin* | mingw* | pw32* | cegcc*)
10616   version_type=windows
10617   shrext_cmds=".dll"
10618   need_version=no
10619   need_lib_prefix=no
10620
10621   case $GCC,$host_os in
10622   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10623     library_names_spec='$libname.dll.a'
10624     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10625     postinstall_cmds='base_file=`basename \${file}`~
10626       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10627       dldir=$destdir/`dirname \$dlpath`~
10628       test -d \$dldir || mkdir -p \$dldir~
10629       $install_prog $dir/$dlname \$dldir/$dlname~
10630       chmod a+x \$dldir/$dlname~
10631       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10632         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10633       fi'
10634     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10635       dlpath=$dir/\$dldll~
10636        $RM \$dlpath'
10637     shlibpath_overrides_runpath=yes
10638
10639     case $host_os in
10640     cygwin*)
10641       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10642       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10643       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10644       ;;
10645     mingw* | cegcc*)
10646       # MinGW DLLs use traditional 'lib' prefix
10647       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10648       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10649       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10650         # It is most probably a Windows format PATH printed by
10651         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10652         # path with ; separators, and with drive letters. We can handle the
10653         # drive letters (cygwin fileutils understands them), so leave them,
10654         # especially as we might pass files found there to a mingw objdump,
10655         # which wouldn't understand a cygwinified path. Ahh.
10656         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10657       else
10658         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10659       fi
10660       ;;
10661     pw32*)
10662       # pw32 DLLs use 'pw' prefix rather than 'lib'
10663       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664       ;;
10665     esac
10666     ;;
10667
10668   *)
10669     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10670     ;;
10671   esac
10672   dynamic_linker='Win32 ld.exe'
10673   # FIXME: first we should search . and the directory the executable is in
10674   shlibpath_var=PATH
10675   ;;
10676
10677 darwin* | rhapsody*)
10678   dynamic_linker="$host_os dyld"
10679   version_type=darwin
10680   need_lib_prefix=no
10681   need_version=no
10682   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10683   soname_spec='${libname}${release}${major}$shared_ext'
10684   shlibpath_overrides_runpath=yes
10685   shlibpath_var=DYLD_LIBRARY_PATH
10686   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10687
10688   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10689   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10690   ;;
10691
10692 dgux*)
10693   version_type=linux
10694   need_lib_prefix=no
10695   need_version=no
10696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10697   soname_spec='${libname}${release}${shared_ext}$major'
10698   shlibpath_var=LD_LIBRARY_PATH
10699   ;;
10700
10701 freebsd1*)
10702   dynamic_linker=no
10703   ;;
10704
10705 freebsd* | dragonfly*)
10706   # DragonFly does not have aout.  When/if they implement a new
10707   # versioning mechanism, adjust this.
10708   if test -x /usr/bin/objformat; then
10709     objformat=`/usr/bin/objformat`
10710   else
10711     case $host_os in
10712     freebsd[123]*) objformat=aout ;;
10713     *) objformat=elf ;;
10714     esac
10715   fi
10716   version_type=freebsd-$objformat
10717   case $version_type in
10718     freebsd-elf*)
10719       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10720       need_version=no
10721       need_lib_prefix=no
10722       ;;
10723     freebsd-*)
10724       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10725       need_version=yes
10726       ;;
10727   esac
10728   shlibpath_var=LD_LIBRARY_PATH
10729   case $host_os in
10730   freebsd2*)
10731     shlibpath_overrides_runpath=yes
10732     ;;
10733   freebsd3.[01]* | freebsdelf3.[01]*)
10734     shlibpath_overrides_runpath=yes
10735     hardcode_into_libs=yes
10736     ;;
10737   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10738   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10739     shlibpath_overrides_runpath=no
10740     hardcode_into_libs=yes
10741     ;;
10742   *) # from 4.6 on, and DragonFly
10743     shlibpath_overrides_runpath=yes
10744     hardcode_into_libs=yes
10745     ;;
10746   esac
10747   ;;
10748
10749 gnu*)
10750   version_type=linux
10751   need_lib_prefix=no
10752   need_version=no
10753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10754   soname_spec='${libname}${release}${shared_ext}$major'
10755   shlibpath_var=LD_LIBRARY_PATH
10756   hardcode_into_libs=yes
10757   ;;
10758
10759 hpux9* | hpux10* | hpux11*)
10760   # Give a soname corresponding to the major version so that dld.sl refuses to
10761   # link against other versions.
10762   version_type=sunos
10763   need_lib_prefix=no
10764   need_version=no
10765   case $host_cpu in
10766   ia64*)
10767     shrext_cmds='.so'
10768     hardcode_into_libs=yes
10769     dynamic_linker="$host_os dld.so"
10770     shlibpath_var=LD_LIBRARY_PATH
10771     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773     soname_spec='${libname}${release}${shared_ext}$major'
10774     if test "X$HPUX_IA64_MODE" = X32; then
10775       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10776     else
10777       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10778     fi
10779     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10780     ;;
10781   hppa*64*)
10782     shrext_cmds='.sl'
10783     hardcode_into_libs=yes
10784     dynamic_linker="$host_os dld.sl"
10785     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788     soname_spec='${libname}${release}${shared_ext}$major'
10789     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10790     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10791     ;;
10792   *)
10793     shrext_cmds='.sl'
10794     dynamic_linker="$host_os dld.sl"
10795     shlibpath_var=SHLIB_PATH
10796     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798     soname_spec='${libname}${release}${shared_ext}$major'
10799     ;;
10800   esac
10801   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10802   postinstall_cmds='chmod 555 $lib'
10803   ;;
10804
10805 interix[3-9]*)
10806   version_type=linux
10807   need_lib_prefix=no
10808   need_version=no
10809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10810   soname_spec='${libname}${release}${shared_ext}$major'
10811   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10812   shlibpath_var=LD_LIBRARY_PATH
10813   shlibpath_overrides_runpath=no
10814   hardcode_into_libs=yes
10815   ;;
10816
10817 irix5* | irix6* | nonstopux*)
10818   case $host_os in
10819     nonstopux*) version_type=nonstopux ;;
10820     *)
10821         if test "$lt_cv_prog_gnu_ld" = yes; then
10822                 version_type=linux
10823         else
10824                 version_type=irix
10825         fi ;;
10826   esac
10827   need_lib_prefix=no
10828   need_version=no
10829   soname_spec='${libname}${release}${shared_ext}$major'
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10831   case $host_os in
10832   irix5* | nonstopux*)
10833     libsuff= shlibsuff=
10834     ;;
10835   *)
10836     case $LD in # libtool.m4 will add one of these switches to LD
10837     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10838       libsuff= shlibsuff= libmagic=32-bit;;
10839     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10840       libsuff=32 shlibsuff=N32 libmagic=N32;;
10841     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10842       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10843     *) libsuff= shlibsuff= libmagic=never-match;;
10844     esac
10845     ;;
10846   esac
10847   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10848   shlibpath_overrides_runpath=no
10849   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10850   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10851   hardcode_into_libs=yes
10852   ;;
10853
10854 # No shared lib support for Linux oldld, aout, or coff.
10855 linux*oldld* | linux*aout* | linux*coff*)
10856   dynamic_linker=no
10857   ;;
10858
10859 # This must be Linux ELF.
10860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10861   version_type=linux
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865   soname_spec='${libname}${release}${shared_ext}$major'
10866   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10867   shlibpath_var=LD_LIBRARY_PATH
10868   shlibpath_overrides_runpath=no
10869   # Some binutils ld are patched to set DT_RUNPATH
10870   save_LDFLAGS=$LDFLAGS
10871   save_libdir=$libdir
10872   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10873        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 int
10878 main ()
10879 {
10880
10881   ;
10882   return 0;
10883 }
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10887   shlibpath_overrides_runpath=yes
10888 fi
10889 fi
10890 rm -f core conftest.err conftest.$ac_objext \
10891     conftest$ac_exeext conftest.$ac_ext
10892   LDFLAGS=$save_LDFLAGS
10893   libdir=$save_libdir
10894
10895   # This implies no fast_install, which is unacceptable.
10896   # Some rework will be needed to allow for fast_install
10897   # before this can be enabled.
10898   hardcode_into_libs=yes
10899
10900   # Append ld.so.conf contents to the search path
10901   if test -f /etc/ld.so.conf; then
10902     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;/^$/d' | tr '\n' ' '`
10903     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10904   fi
10905
10906   # We used to test for /lib/ld.so.1 and disable shared libraries on
10907   # powerpc, because MkLinux only supported shared libraries with the
10908   # GNU dynamic linker.  Since this was broken with cross compilers,
10909   # most powerpc-linux boxes support dynamic linking these days and
10910   # people can always --disable-shared, the test was removed, and we
10911   # assume the GNU/Linux dynamic linker is in use.
10912   dynamic_linker='GNU/Linux ld.so'
10913   ;;
10914
10915 netbsdelf*-gnu)
10916   version_type=linux
10917   need_lib_prefix=no
10918   need_version=no
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10920   soname_spec='${libname}${release}${shared_ext}$major'
10921   shlibpath_var=LD_LIBRARY_PATH
10922   shlibpath_overrides_runpath=no
10923   hardcode_into_libs=yes
10924   dynamic_linker='NetBSD ld.elf_so'
10925   ;;
10926
10927 netbsd*)
10928   version_type=sunos
10929   need_lib_prefix=no
10930   need_version=no
10931   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934     dynamic_linker='NetBSD (a.out) ld.so'
10935   else
10936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10937     soname_spec='${libname}${release}${shared_ext}$major'
10938     dynamic_linker='NetBSD ld.elf_so'
10939   fi
10940   shlibpath_var=LD_LIBRARY_PATH
10941   shlibpath_overrides_runpath=yes
10942   hardcode_into_libs=yes
10943   ;;
10944
10945 newsos6)
10946   version_type=linux
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948   shlibpath_var=LD_LIBRARY_PATH
10949   shlibpath_overrides_runpath=yes
10950   ;;
10951
10952 *nto* | *qnx*)
10953   version_type=qnx
10954   need_lib_prefix=no
10955   need_version=no
10956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957   soname_spec='${libname}${release}${shared_ext}$major'
10958   shlibpath_var=LD_LIBRARY_PATH
10959   shlibpath_overrides_runpath=no
10960   hardcode_into_libs=yes
10961   dynamic_linker='ldqnx.so'
10962   ;;
10963
10964 openbsd*)
10965   version_type=sunos
10966   sys_lib_dlsearch_path_spec="/usr/lib"
10967   need_lib_prefix=no
10968   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10969   case $host_os in
10970     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10971     *)                          need_version=no  ;;
10972   esac
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10975   shlibpath_var=LD_LIBRARY_PATH
10976   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10977     case $host_os in
10978       openbsd2.[89] | openbsd2.[89].*)
10979         shlibpath_overrides_runpath=no
10980         ;;
10981       *)
10982         shlibpath_overrides_runpath=yes
10983         ;;
10984       esac
10985   else
10986     shlibpath_overrides_runpath=yes
10987   fi
10988   ;;
10989
10990 os2*)
10991   libname_spec='$name'
10992   shrext_cmds=".dll"
10993   need_lib_prefix=no
10994   library_names_spec='$libname${shared_ext} $libname.a'
10995   dynamic_linker='OS/2 ld.exe'
10996   shlibpath_var=LIBPATH
10997   ;;
10998
10999 osf3* | osf4* | osf5*)
11000   version_type=osf
11001   need_lib_prefix=no
11002   need_version=no
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005   shlibpath_var=LD_LIBRARY_PATH
11006   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11007   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11008   ;;
11009
11010 rdos*)
11011   dynamic_linker=no
11012   ;;
11013
11014 solaris*)
11015   version_type=linux
11016   need_lib_prefix=no
11017   need_version=no
11018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019   soname_spec='${libname}${release}${shared_ext}$major'
11020   shlibpath_var=LD_LIBRARY_PATH
11021   shlibpath_overrides_runpath=yes
11022   hardcode_into_libs=yes
11023   # ldd complains unless libraries are executable
11024   postinstall_cmds='chmod +x $lib'
11025   ;;
11026
11027 sunos4*)
11028   version_type=sunos
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11030   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   shlibpath_overrides_runpath=yes
11033   if test "$with_gnu_ld" = yes; then
11034     need_lib_prefix=no
11035   fi
11036   need_version=yes
11037   ;;
11038
11039 sysv4 | sysv4.3*)
11040   version_type=linux
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   shlibpath_var=LD_LIBRARY_PATH
11044   case $host_vendor in
11045     sni)
11046       shlibpath_overrides_runpath=no
11047       need_lib_prefix=no
11048       runpath_var=LD_RUN_PATH
11049       ;;
11050     siemens)
11051       need_lib_prefix=no
11052       ;;
11053     motorola)
11054       need_lib_prefix=no
11055       need_version=no
11056       shlibpath_overrides_runpath=no
11057       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11058       ;;
11059   esac
11060   ;;
11061
11062 sysv4*MP*)
11063   if test -d /usr/nec ;then
11064     version_type=linux
11065     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11066     soname_spec='$libname${shared_ext}.$major'
11067     shlibpath_var=LD_LIBRARY_PATH
11068   fi
11069   ;;
11070
11071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11072   version_type=freebsd-elf
11073   need_lib_prefix=no
11074   need_version=no
11075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11076   soname_spec='${libname}${release}${shared_ext}$major'
11077   shlibpath_var=LD_LIBRARY_PATH
11078   shlibpath_overrides_runpath=yes
11079   hardcode_into_libs=yes
11080   if test "$with_gnu_ld" = yes; then
11081     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11082   else
11083     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11084     case $host_os in
11085       sco3.2v5*)
11086         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11087         ;;
11088     esac
11089   fi
11090   sys_lib_dlsearch_path_spec='/usr/lib'
11091   ;;
11092
11093 tpf*)
11094   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11095   version_type=linux
11096   need_lib_prefix=no
11097   need_version=no
11098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099   shlibpath_var=LD_LIBRARY_PATH
11100   shlibpath_overrides_runpath=no
11101   hardcode_into_libs=yes
11102   ;;
11103
11104 uts4*)
11105   version_type=linux
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   ;;
11110
11111 *)
11112   dynamic_linker=no
11113   ;;
11114 esac
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11116 $as_echo "$dynamic_linker" >&6; }
11117 test "$dynamic_linker" = no && can_build_shared=no
11118
11119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11120 if test "$GCC" = yes; then
11121   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11122 fi
11123
11124 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11125   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11126 fi
11127 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11128   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11129 fi
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11219 hardcode_action=
11220 if test -n "$hardcode_libdir_flag_spec" ||
11221    test -n "$runpath_var" ||
11222    test "X$hardcode_automatic" = "Xyes" ; then
11223
11224   # We can hardcode non-existent directories.
11225   if test "$hardcode_direct" != no &&
11226      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11227      # have to relink, otherwise we might link with an installed library
11228      # when we should be linking with a yet-to-be-installed one
11229      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11230      test "$hardcode_minus_L" != no; then
11231     # Linking always hardcodes the temporary library directory.
11232     hardcode_action=relink
11233   else
11234     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11235     hardcode_action=immediate
11236   fi
11237 else
11238   # We cannot hardcode anything, or else we can only hardcode existing
11239   # directories.
11240   hardcode_action=unsupported
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11243 $as_echo "$hardcode_action" >&6; }
11244
11245 if test "$hardcode_action" = relink ||
11246    test "$inherit_rpath" = yes; then
11247   # Fast installation is not supported
11248   enable_fast_install=no
11249 elif test "$shlibpath_overrides_runpath" = yes ||
11250      test "$enable_shared" = no; then
11251   # Fast installation is not necessary
11252   enable_fast_install=needless
11253 fi
11254
11255
11256
11257
11258
11259
11260   if test "x$enable_dlopen" != xyes; then
11261   enable_dlopen=unknown
11262   enable_dlopen_self=unknown
11263   enable_dlopen_self_static=unknown
11264 else
11265   lt_cv_dlopen=no
11266   lt_cv_dlopen_libs=
11267
11268   case $host_os in
11269   beos*)
11270     lt_cv_dlopen="load_add_on"
11271     lt_cv_dlopen_libs=
11272     lt_cv_dlopen_self=yes
11273     ;;
11274
11275   mingw* | pw32* | cegcc*)
11276     lt_cv_dlopen="LoadLibrary"
11277     lt_cv_dlopen_libs=
11278     ;;
11279
11280   cygwin*)
11281     lt_cv_dlopen="dlopen"
11282     lt_cv_dlopen_libs=
11283     ;;
11284
11285   darwin*)
11286   # if libdl is installed we need to link against it
11287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-ldl  $LIBS"
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h.  */
11296
11297 /* Override any GCC internal prototype to avoid an error.
11298    Use char because int might match the return type of a GCC
11299    builtin and then its argument prototype would still apply.  */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 char dlopen ();
11304 int
11305 main ()
11306 {
11307 return dlopen ();
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"; then :
11313   ac_cv_lib_dl_dlopen=yes
11314 else
11315   ac_cv_lib_dl_dlopen=no
11316 fi
11317 rm -f core conftest.err conftest.$ac_objext \
11318     conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11323 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11324   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11325 else
11326
11327     lt_cv_dlopen="dyld"
11328     lt_cv_dlopen_libs=
11329     lt_cv_dlopen_self=yes
11330
11331 fi
11332
11333     ;;
11334
11335   *)
11336     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11337 if test "x$ac_cv_func_shl_load" = x""yes; then :
11338   lt_cv_dlopen="shl_load"
11339 else
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11343   $as_echo_n "(cached) " >&6
11344 else
11345   ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-ldld  $LIBS"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h.  */
11349
11350 /* Override any GCC internal prototype to avoid an error.
11351    Use char because int might match the return type of a GCC
11352    builtin and then its argument prototype would still apply.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char shl_load ();
11357 int
11358 main ()
11359 {
11360 return shl_load ();
11361   ;
11362   return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366   ac_cv_lib_dld_shl_load=yes
11367 else
11368   ac_cv_lib_dld_shl_load=no
11369 fi
11370 rm -f core conftest.err conftest.$ac_objext \
11371     conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11373 fi
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11376 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11377   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11378 else
11379   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11380 if test "x$ac_cv_func_dlopen" = x""yes; then :
11381   lt_cv_dlopen="dlopen"
11382 else
11383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldl  $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h.  */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394    Use char because int might match the return type of a GCC
11395    builtin and then its argument prototype would still apply.  */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dlopen ();
11400 int
11401 main ()
11402 {
11403 return dlopen ();
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409   ac_cv_lib_dl_dlopen=yes
11410 else
11411   ac_cv_lib_dl_dlopen=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414     conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11419 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11420   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11421 else
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427   ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-lsvld  $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h.  */
11431
11432 /* Override any GCC internal prototype to avoid an error.
11433    Use char because int might match the return type of a GCC
11434    builtin and then its argument prototype would still apply.  */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char dlopen ();
11439 int
11440 main ()
11441 {
11442 return dlopen ();
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448   ac_cv_lib_svld_dlopen=yes
11449 else
11450   ac_cv_lib_svld_dlopen=no
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext \
11453     conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11455 fi
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11458 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11459   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11460 else
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11464   $as_echo_n "(cached) " >&6
11465 else
11466   ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-ldld  $LIBS"
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h.  */
11470
11471 /* Override any GCC internal prototype to avoid an error.
11472    Use char because int might match the return type of a GCC
11473    builtin and then its argument prototype would still apply.  */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 char dld_link ();
11478 int
11479 main ()
11480 {
11481 return dld_link ();
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487   ac_cv_lib_dld_dld_link=yes
11488 else
11489   ac_cv_lib_dld_dld_link=no
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492     conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11497 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11498   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11499 fi
11500
11501
11502 fi
11503
11504
11505 fi
11506
11507
11508 fi
11509
11510
11511 fi
11512
11513
11514 fi
11515
11516     ;;
11517   esac
11518
11519   if test "x$lt_cv_dlopen" != xno; then
11520     enable_dlopen=yes
11521   else
11522     enable_dlopen=no
11523   fi
11524
11525   case $lt_cv_dlopen in
11526   dlopen)
11527     save_CPPFLAGS="$CPPFLAGS"
11528     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11529
11530     save_LDFLAGS="$LDFLAGS"
11531     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11532
11533     save_LIBS="$LIBS"
11534     LIBS="$lt_cv_dlopen_libs $LIBS"
11535
11536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11537 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11538 if test "${lt_cv_dlopen_self+set}" = set; then :
11539   $as_echo_n "(cached) " >&6
11540 else
11541           if test "$cross_compiling" = yes; then :
11542   lt_cv_dlopen_self=cross
11543 else
11544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11545   lt_status=$lt_dlunknown
11546   cat > conftest.$ac_ext <<_LT_EOF
11547 #line 11547 "configure"
11548 #include "confdefs.h"
11549
11550 #if HAVE_DLFCN_H
11551 #include <dlfcn.h>
11552 #endif
11553
11554 #include <stdio.h>
11555
11556 #ifdef RTLD_GLOBAL
11557 #  define LT_DLGLOBAL           RTLD_GLOBAL
11558 #else
11559 #  ifdef DL_GLOBAL
11560 #    define LT_DLGLOBAL         DL_GLOBAL
11561 #  else
11562 #    define LT_DLGLOBAL         0
11563 #  endif
11564 #endif
11565
11566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11567    find out it does not work in some platform. */
11568 #ifndef LT_DLLAZY_OR_NOW
11569 #  ifdef RTLD_LAZY
11570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11571 #  else
11572 #    ifdef DL_LAZY
11573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11574 #    else
11575 #      ifdef RTLD_NOW
11576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11577 #      else
11578 #        ifdef DL_NOW
11579 #          define LT_DLLAZY_OR_NOW      DL_NOW
11580 #        else
11581 #          define LT_DLLAZY_OR_NOW      0
11582 #        endif
11583 #      endif
11584 #    endif
11585 #  endif
11586 #endif
11587
11588 void fnord() { int i=42;}
11589 int main ()
11590 {
11591   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592   int status = $lt_dlunknown;
11593
11594   if (self)
11595     {
11596       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11597       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598       /* dlclose (self); */
11599     }
11600   else
11601     puts (dlerror ());
11602
11603   return status;
11604 }
11605 _LT_EOF
11606   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11607   (eval $ac_link) 2>&5
11608   ac_status=$?
11609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11610   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11611     (./conftest; exit; ) >&5 2>/dev/null
11612     lt_status=$?
11613     case x$lt_status in
11614       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11615       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11616       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11617     esac
11618   else :
11619     # compilation failed
11620     lt_cv_dlopen_self=no
11621   fi
11622 fi
11623 rm -fr conftest*
11624
11625
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11628 $as_echo "$lt_cv_dlopen_self" >&6; }
11629
11630     if test "x$lt_cv_dlopen_self" = xyes; then
11631       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11632       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11633 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11634 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11635   $as_echo_n "(cached) " >&6
11636 else
11637           if test "$cross_compiling" = yes; then :
11638   lt_cv_dlopen_self_static=cross
11639 else
11640   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11641   lt_status=$lt_dlunknown
11642   cat > conftest.$ac_ext <<_LT_EOF
11643 #line 11643 "configure"
11644 #include "confdefs.h"
11645
11646 #if HAVE_DLFCN_H
11647 #include <dlfcn.h>
11648 #endif
11649
11650 #include <stdio.h>
11651
11652 #ifdef RTLD_GLOBAL
11653 #  define LT_DLGLOBAL           RTLD_GLOBAL
11654 #else
11655 #  ifdef DL_GLOBAL
11656 #    define LT_DLGLOBAL         DL_GLOBAL
11657 #  else
11658 #    define LT_DLGLOBAL         0
11659 #  endif
11660 #endif
11661
11662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11663    find out it does not work in some platform. */
11664 #ifndef LT_DLLAZY_OR_NOW
11665 #  ifdef RTLD_LAZY
11666 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11667 #  else
11668 #    ifdef DL_LAZY
11669 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11670 #    else
11671 #      ifdef RTLD_NOW
11672 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11673 #      else
11674 #        ifdef DL_NOW
11675 #          define LT_DLLAZY_OR_NOW      DL_NOW
11676 #        else
11677 #          define LT_DLLAZY_OR_NOW      0
11678 #        endif
11679 #      endif
11680 #    endif
11681 #  endif
11682 #endif
11683
11684 void fnord() { int i=42;}
11685 int main ()
11686 {
11687   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11688   int status = $lt_dlunknown;
11689
11690   if (self)
11691     {
11692       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11693       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11694       /* dlclose (self); */
11695     }
11696   else
11697     puts (dlerror ());
11698
11699   return status;
11700 }
11701 _LT_EOF
11702   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11703   (eval $ac_link) 2>&5
11704   ac_status=$?
11705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11706   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11707     (./conftest; exit; ) >&5 2>/dev/null
11708     lt_status=$?
11709     case x$lt_status in
11710       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11711       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11712       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11713     esac
11714   else :
11715     # compilation failed
11716     lt_cv_dlopen_self_static=no
11717   fi
11718 fi
11719 rm -fr conftest*
11720
11721
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11724 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11725     fi
11726
11727     CPPFLAGS="$save_CPPFLAGS"
11728     LDFLAGS="$save_LDFLAGS"
11729     LIBS="$save_LIBS"
11730     ;;
11731   esac
11732
11733   case $lt_cv_dlopen_self in
11734   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11735   *) enable_dlopen_self=unknown ;;
11736   esac
11737
11738   case $lt_cv_dlopen_self_static in
11739   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11740   *) enable_dlopen_self_static=unknown ;;
11741   esac
11742 fi
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 striplib=
11761 old_striplib=
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11763 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11764 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11765   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11766   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769 else
11770 # FIXME - insert some real tests, host_os isn't really good enough
11771   case $host_os in
11772   darwin*)
11773     if test -n "$STRIP" ; then
11774       striplib="$STRIP -x"
11775       old_striplib="$STRIP -S"
11776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11777 $as_echo "yes" >&6; }
11778     else
11779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781     fi
11782     ;;
11783   *)
11784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11786     ;;
11787   esac
11788 fi
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801   # Report which library types will actually be built
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11803 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11805 $as_echo "$can_build_shared" >&6; }
11806
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11808 $as_echo_n "checking whether to build shared libraries... " >&6; }
11809   test "$can_build_shared" = "no" && enable_shared=no
11810
11811   # On AIX, shared libraries and static libraries use the same namespace, and
11812   # are all built from PIC.
11813   case $host_os in
11814   aix3*)
11815     test "$enable_shared" = yes && enable_static=no
11816     if test -n "$RANLIB"; then
11817       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11818       postinstall_cmds='$RANLIB $lib'
11819     fi
11820     ;;
11821
11822   aix[4-9]*)
11823     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11824       test "$enable_shared" = yes && enable_static=no
11825     fi
11826     ;;
11827   esac
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11829 $as_echo "$enable_shared" >&6; }
11830
11831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11832 $as_echo_n "checking whether to build static libraries... " >&6; }
11833   # Make sure either enable_shared or enable_static is yes.
11834   test "$enable_shared" = yes || enable_static=yes
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11836 $as_echo "$enable_static" >&6; }
11837
11838
11839
11840
11841 fi
11842 ac_ext=cpp
11843 ac_cpp='$CXXCPP $CPPFLAGS'
11844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11847
11848 CC="$lt_save_CC"
11849
11850
11851 ac_ext=cpp
11852 ac_cpp='$CXXCPP $CPPFLAGS'
11853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11856
11857 archive_cmds_need_lc_CXX=no
11858 allow_undefined_flag_CXX=
11859 always_export_symbols_CXX=no
11860 archive_expsym_cmds_CXX=
11861 compiler_needs_object_CXX=no
11862 export_dynamic_flag_spec_CXX=
11863 hardcode_direct_CXX=no
11864 hardcode_direct_absolute_CXX=no
11865 hardcode_libdir_flag_spec_CXX=
11866 hardcode_libdir_flag_spec_ld_CXX=
11867 hardcode_libdir_separator_CXX=
11868 hardcode_minus_L_CXX=no
11869 hardcode_shlibpath_var_CXX=unsupported
11870 hardcode_automatic_CXX=no
11871 inherit_rpath_CXX=no
11872 module_cmds_CXX=
11873 module_expsym_cmds_CXX=
11874 link_all_deplibs_CXX=unknown
11875 old_archive_cmds_CXX=$old_archive_cmds
11876 no_undefined_flag_CXX=
11877 whole_archive_flag_spec_CXX=
11878 enable_shared_with_static_runtimes_CXX=no
11879
11880 # Source file extension for C++ test sources.
11881 ac_ext=cpp
11882
11883 # Object file extension for compiled C++ test sources.
11884 objext=o
11885 objext_CXX=$objext
11886
11887 # No sense in running all these tests if we already determined that
11888 # the CXX compiler isn't working.  Some variables (like enable_shared)
11889 # are currently assumed to apply to all compilers on this platform,
11890 # and will be corrupted by setting them based on a non-working compiler.
11891 if test "$_lt_caught_CXX_error" != yes; then
11892   # Code to be used in simple compile tests
11893   lt_simple_compile_test_code="int some_variable = 0;"
11894
11895   # Code to be used in simple link tests
11896   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11897
11898   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11899
11900
11901
11902
11903
11904
11905 # If no C compiler was specified, use CC.
11906 LTCC=${LTCC-"$CC"}
11907
11908 # If no C compiler flags were specified, use CFLAGS.
11909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11910
11911 # Allow CC to be a program name with arguments.
11912 compiler=$CC
11913
11914
11915   # save warnings/boilerplate of simple test code
11916   ac_outfile=conftest.$ac_objext
11917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11919 _lt_compiler_boilerplate=`cat conftest.err`
11920 $RM conftest*
11921
11922   ac_outfile=conftest.$ac_objext
11923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11925 _lt_linker_boilerplate=`cat conftest.err`
11926 $RM -r conftest*
11927
11928
11929   # Allow CC to be a program name with arguments.
11930   lt_save_CC=$CC
11931   lt_save_LD=$LD
11932   lt_save_GCC=$GCC
11933   GCC=$GXX
11934   lt_save_with_gnu_ld=$with_gnu_ld
11935   lt_save_path_LD=$lt_cv_path_LD
11936   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11937     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11938   else
11939     $as_unset lt_cv_prog_gnu_ld
11940   fi
11941   if test -n "${lt_cv_path_LDCXX+set}"; then
11942     lt_cv_path_LD=$lt_cv_path_LDCXX
11943   else
11944     $as_unset lt_cv_path_LD
11945   fi
11946   test -z "${LDCXX+set}" || LD=$LDCXX
11947   CC=${CXX-"c++"}
11948   compiler=$CC
11949   compiler_CXX=$CC
11950   for cc_temp in $compiler""; do
11951   case $cc_temp in
11952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11954     \-*) ;;
11955     *) break;;
11956   esac
11957 done
11958 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11959
11960
11961   if test -n "$compiler"; then
11962     # We don't want -fno-exception when compiling C++ code, so set the
11963     # no_builtin_flag separately
11964     if test "$GXX" = yes; then
11965       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11966     else
11967       lt_prog_compiler_no_builtin_flag_CXX=
11968     fi
11969
11970     if test "$GXX" = yes; then
11971       # Set up default GNU C++ configuration
11972
11973
11974
11975 # Check whether --with-gnu-ld was given.
11976 if test "${with_gnu_ld+set}" = set; then :
11977   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11978 else
11979   with_gnu_ld=no
11980 fi
11981
11982 ac_prog=ld
11983 if test "$GCC" = yes; then
11984   # Check if gcc -print-prog-name=ld gives a path.
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11986 $as_echo_n "checking for ld used by $CC... " >&6; }
11987   case $host in
11988   *-*-mingw*)
11989     # gcc leaves a trailing carriage return which upsets mingw
11990     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11991   *)
11992     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11993   esac
11994   case $ac_prog in
11995     # Accept absolute paths.
11996     [\\/]* | ?:[\\/]*)
11997       re_direlt='/[^/][^/]*/\.\./'
11998       # Canonicalize the pathname of ld
11999       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12000       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12001         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12002       done
12003       test -z "$LD" && LD="$ac_prog"
12004       ;;
12005   "")
12006     # If it fails, then pretend we aren't using GCC.
12007     ac_prog=ld
12008     ;;
12009   *)
12010     # If it is relative, then search for the first ld in PATH.
12011     with_gnu_ld=unknown
12012     ;;
12013   esac
12014 elif test "$with_gnu_ld" = yes; then
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12016 $as_echo_n "checking for GNU ld... " >&6; }
12017 else
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12019 $as_echo_n "checking for non-GNU ld... " >&6; }
12020 fi
12021 if test "${lt_cv_path_LD+set}" = set; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   if test -z "$LD"; then
12025   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12026   for ac_dir in $PATH; do
12027     IFS="$lt_save_ifs"
12028     test -z "$ac_dir" && ac_dir=.
12029     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12030       lt_cv_path_LD="$ac_dir/$ac_prog"
12031       # Check to see if the program is GNU ld.  I'd rather use --version,
12032       # but apparently some variants of GNU ld only accept -v.
12033       # Break only if it was the GNU/non-GNU ld that we prefer.
12034       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12035       *GNU* | *'with BFD'*)
12036         test "$with_gnu_ld" != no && break
12037         ;;
12038       *)
12039         test "$with_gnu_ld" != yes && break
12040         ;;
12041       esac
12042     fi
12043   done
12044   IFS="$lt_save_ifs"
12045 else
12046   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12047 fi
12048 fi
12049
12050 LD="$lt_cv_path_LD"
12051 if test -n "$LD"; then
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12053 $as_echo "$LD" >&6; }
12054 else
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12061 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12062   $as_echo_n "(cached) " >&6
12063 else
12064   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12065 case `$LD -v 2>&1 </dev/null` in
12066 *GNU* | *'with BFD'*)
12067   lt_cv_prog_gnu_ld=yes
12068   ;;
12069 *)
12070   lt_cv_prog_gnu_ld=no
12071   ;;
12072 esac
12073 fi
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12075 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12076 with_gnu_ld=$lt_cv_prog_gnu_ld
12077
12078
12079
12080
12081
12082
12083
12084       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12085       # archiving commands below assume that GNU ld is being used.
12086       if test "$with_gnu_ld" = yes; then
12087         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12088         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12089
12090         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12091         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12092
12093         # If archive_cmds runs LD, not CC, wlarc should be empty
12094         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12095         #     investigate it a little bit more. (MM)
12096         wlarc='${wl}'
12097
12098         # ancient GNU ld didn't support --whole-archive et. al.
12099         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12100           $GREP 'no-whole-archive' > /dev/null; then
12101           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12102         else
12103           whole_archive_flag_spec_CXX=
12104         fi
12105       else
12106         with_gnu_ld=no
12107         wlarc=
12108
12109         # A generic and very simple default shared library creation
12110         # command for GNU C++ for the case where it uses the native
12111         # linker, instead of GNU ld.  If possible, this setting should
12112         # overridden to take advantage of the native linker features on
12113         # the platform it is being used on.
12114         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12115       fi
12116
12117       # Commands to make compiler produce verbose output that lists
12118       # what "hidden" libraries, object files and flags are used when
12119       # linking a shared library.
12120       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12121
12122     else
12123       GXX=no
12124       with_gnu_ld=no
12125       wlarc=
12126     fi
12127
12128     # PORTME: fill in a description of your system's C++ link characteristics
12129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12131     ld_shlibs_CXX=yes
12132     case $host_os in
12133       aix3*)
12134         # FIXME: insert proper C++ library support
12135         ld_shlibs_CXX=no
12136         ;;
12137       aix[4-9]*)
12138         if test "$host_cpu" = ia64; then
12139           # On IA64, the linker does run time linking by default, so we don't
12140           # have to do anything special.
12141           aix_use_runtimelinking=no
12142           exp_sym_flag='-Bexport'
12143           no_entry_flag=""
12144         else
12145           aix_use_runtimelinking=no
12146
12147           # Test if we are trying to use run time linking or normal
12148           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12149           # need to do runtime linking.
12150           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12151             for ld_flag in $LDFLAGS; do
12152               case $ld_flag in
12153               *-brtl*)
12154                 aix_use_runtimelinking=yes
12155                 break
12156                 ;;
12157               esac
12158             done
12159             ;;
12160           esac
12161
12162           exp_sym_flag='-bexport'
12163           no_entry_flag='-bnoentry'
12164         fi
12165
12166         # When large executables or shared objects are built, AIX ld can
12167         # have problems creating the table of contents.  If linking a library
12168         # or program results in "error TOC overflow" add -mminimal-toc to
12169         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12170         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12171
12172         archive_cmds_CXX=''
12173         hardcode_direct_CXX=yes
12174         hardcode_direct_absolute_CXX=yes
12175         hardcode_libdir_separator_CXX=':'
12176         link_all_deplibs_CXX=yes
12177         file_list_spec_CXX='${wl}-f,'
12178
12179         if test "$GXX" = yes; then
12180           case $host_os in aix4.[012]|aix4.[012].*)
12181           # We only want to do this on AIX 4.2 and lower, the check
12182           # below for broken collect2 doesn't work under 4.3+
12183           collect2name=`${CC} -print-prog-name=collect2`
12184           if test -f "$collect2name" &&
12185              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12186           then
12187             # We have reworked collect2
12188             :
12189           else
12190             # We have old collect2
12191             hardcode_direct_CXX=unsupported
12192             # It fails to find uninstalled libraries when the uninstalled
12193             # path is not listed in the libpath.  Setting hardcode_minus_L
12194             # to unsupported forces relinking
12195             hardcode_minus_L_CXX=yes
12196             hardcode_libdir_flag_spec_CXX='-L$libdir'
12197             hardcode_libdir_separator_CXX=
12198           fi
12199           esac
12200           shared_flag='-shared'
12201           if test "$aix_use_runtimelinking" = yes; then
12202             shared_flag="$shared_flag "'${wl}-G'
12203           fi
12204         else
12205           # not using gcc
12206           if test "$host_cpu" = ia64; then
12207           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12208           # chokes on -Wl,-G. The following line is correct:
12209           shared_flag='-G'
12210           else
12211             if test "$aix_use_runtimelinking" = yes; then
12212               shared_flag='${wl}-G'
12213             else
12214               shared_flag='${wl}-bM:SRE'
12215             fi
12216           fi
12217         fi
12218
12219         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12220         # It seems that -bexpall does not export symbols beginning with
12221         # underscore (_), so it is better to generate a list of symbols to
12222         # export.
12223         always_export_symbols_CXX=yes
12224         if test "$aix_use_runtimelinking" = yes; then
12225           # Warning - without using the other runtime loading flags (-brtl),
12226           # -berok will link without error, but may produce a broken library.
12227           allow_undefined_flag_CXX='-berok'
12228           # Determine the default libpath from the value encoded in an empty
12229           # executable.
12230           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h.  */
12232
12233 int
12234 main ()
12235 {
12236
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 if ac_fn_cxx_try_link "$LINENO"; then :
12242
12243 lt_aix_libpath_sed='
12244     /Import File Strings/,/^$/ {
12245         /^0/ {
12246             s/^0  *\(.*\)$/\1/
12247             p
12248         }
12249     }'
12250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12251 # Check for a 64-bit object if we didn't find anything.
12252 if test -z "$aix_libpath"; then
12253   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12254 fi
12255 fi
12256 rm -f core conftest.err conftest.$ac_objext \
12257     conftest$ac_exeext conftest.$ac_ext
12258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12259
12260           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12261
12262           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12263         else
12264           if test "$host_cpu" = ia64; then
12265             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12266             allow_undefined_flag_CXX="-z nodefs"
12267             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"
12268           else
12269             # Determine the default libpath from the value encoded in an
12270             # empty executable.
12271             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h.  */
12273
12274 int
12275 main ()
12276 {
12277
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 if ac_fn_cxx_try_link "$LINENO"; then :
12283
12284 lt_aix_libpath_sed='
12285     /Import File Strings/,/^$/ {
12286         /^0/ {
12287             s/^0  *\(.*\)$/\1/
12288             p
12289         }
12290     }'
12291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12292 # Check for a 64-bit object if we didn't find anything.
12293 if test -z "$aix_libpath"; then
12294   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12295 fi
12296 fi
12297 rm -f core conftest.err conftest.$ac_objext \
12298     conftest$ac_exeext conftest.$ac_ext
12299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12300
12301             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12302             # Warning - without using the other run time loading flags,
12303             # -berok will link without error, but may produce a broken library.
12304             no_undefined_flag_CXX=' ${wl}-bernotok'
12305             allow_undefined_flag_CXX=' ${wl}-berok'
12306             # Exported symbols can be pulled into shared objects from archives
12307             whole_archive_flag_spec_CXX='$convenience'
12308             archive_cmds_need_lc_CXX=yes
12309             # This is similar to how AIX traditionally builds its shared
12310             # libraries.
12311             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'
12312           fi
12313         fi
12314         ;;
12315
12316       beos*)
12317         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12318           allow_undefined_flag_CXX=unsupported
12319           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12320           # support --undefined.  This deserves some investigation.  FIXME
12321           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322         else
12323           ld_shlibs_CXX=no
12324         fi
12325         ;;
12326
12327       chorus*)
12328         case $cc_basename in
12329           *)
12330           # FIXME: insert proper C++ library support
12331           ld_shlibs_CXX=no
12332           ;;
12333         esac
12334         ;;
12335
12336       cygwin* | mingw* | pw32* | cegcc*)
12337         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12338         # as there is no search path for DLLs.
12339         hardcode_libdir_flag_spec_CXX='-L$libdir'
12340         allow_undefined_flag_CXX=unsupported
12341         always_export_symbols_CXX=no
12342         enable_shared_with_static_runtimes_CXX=yes
12343
12344         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12345           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'
12346           # If the export-symbols file already is a .def file (1st line
12347           # is EXPORTS), use it as is; otherwise, prepend...
12348           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12349             cp $export_symbols $output_objdir/$soname.def;
12350           else
12351             echo EXPORTS > $output_objdir/$soname.def;
12352             cat $export_symbols >> $output_objdir/$soname.def;
12353           fi~
12354           $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'
12355         else
12356           ld_shlibs_CXX=no
12357         fi
12358         ;;
12359       darwin* | rhapsody*)
12360
12361
12362   archive_cmds_need_lc_CXX=no
12363   hardcode_direct_CXX=no
12364   hardcode_automatic_CXX=yes
12365   hardcode_shlibpath_var_CXX=unsupported
12366   whole_archive_flag_spec_CXX=''
12367   link_all_deplibs_CXX=yes
12368   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12369   case $cc_basename in
12370      ifort*) _lt_dar_can_shared=yes ;;
12371      *) _lt_dar_can_shared=$GCC ;;
12372   esac
12373   if test "$_lt_dar_can_shared" = "yes"; then
12374     output_verbose_link_cmd=echo
12375     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}"
12376     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12377     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}"
12378     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}"
12379        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12380       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}"
12381       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}"
12382     fi
12383
12384   else
12385   ld_shlibs_CXX=no
12386   fi
12387
12388         ;;
12389
12390       dgux*)
12391         case $cc_basename in
12392           ec++*)
12393             # FIXME: insert proper C++ library support
12394             ld_shlibs_CXX=no
12395             ;;
12396           ghcx*)
12397             # Green Hills C++ Compiler
12398             # FIXME: insert proper C++ library support
12399             ld_shlibs_CXX=no
12400             ;;
12401           *)
12402             # FIXME: insert proper C++ library support
12403             ld_shlibs_CXX=no
12404             ;;
12405         esac
12406         ;;
12407
12408       freebsd[12]*)
12409         # C++ shared libraries reported to be fairly broken before
12410         # switch to ELF
12411         ld_shlibs_CXX=no
12412         ;;
12413
12414       freebsd-elf*)
12415         archive_cmds_need_lc_CXX=no
12416         ;;
12417
12418       freebsd* | dragonfly*)
12419         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12420         # conventions
12421         ld_shlibs_CXX=yes
12422         ;;
12423
12424       gnu*)
12425         ;;
12426
12427       hpux9*)
12428         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12429         hardcode_libdir_separator_CXX=:
12430         export_dynamic_flag_spec_CXX='${wl}-E'
12431         hardcode_direct_CXX=yes
12432         hardcode_minus_L_CXX=yes # Not in the search PATH,
12433                                              # but as the default
12434                                              # location of the library.
12435
12436         case $cc_basename in
12437           CC*)
12438             # FIXME: insert proper C++ library support
12439             ld_shlibs_CXX=no
12440             ;;
12441           aCC*)
12442             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'
12443             # Commands to make compiler produce verbose output that lists
12444             # what "hidden" libraries, object files and flags are used when
12445             # linking a shared library.
12446             #
12447             # There doesn't appear to be a way to prevent this compiler from
12448             # explicitly linking system object files so we need to strip them
12449             # from the output so that they don't get included in the library
12450             # dependencies.
12451             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; $ECHO "X$list" | $Xsed'
12452             ;;
12453           *)
12454             if test "$GXX" = yes; then
12455               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12456             else
12457               # FIXME: insert proper C++ library support
12458               ld_shlibs_CXX=no
12459             fi
12460             ;;
12461         esac
12462         ;;
12463
12464       hpux10*|hpux11*)
12465         if test $with_gnu_ld = no; then
12466           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12467           hardcode_libdir_separator_CXX=:
12468
12469           case $host_cpu in
12470             hppa*64*|ia64*)
12471               ;;
12472             *)
12473               export_dynamic_flag_spec_CXX='${wl}-E'
12474               ;;
12475           esac
12476         fi
12477         case $host_cpu in
12478           hppa*64*|ia64*)
12479             hardcode_direct_CXX=no
12480             hardcode_shlibpath_var_CXX=no
12481             ;;
12482           *)
12483             hardcode_direct_CXX=yes
12484             hardcode_direct_absolute_CXX=yes
12485             hardcode_minus_L_CXX=yes # Not in the search PATH,
12486                                                  # but as the default
12487                                                  # location of the library.
12488             ;;
12489         esac
12490
12491         case $cc_basename in
12492           CC*)
12493             # FIXME: insert proper C++ library support
12494             ld_shlibs_CXX=no
12495             ;;
12496           aCC*)
12497             case $host_cpu in
12498               hppa*64*)
12499                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12500                 ;;
12501               ia64*)
12502                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12503                 ;;
12504               *)
12505                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12506                 ;;
12507             esac
12508             # Commands to make compiler produce verbose output that lists
12509             # what "hidden" libraries, object files and flags are used when
12510             # linking a shared library.
12511             #
12512             # There doesn't appear to be a way to prevent this compiler from
12513             # explicitly linking system object files so we need to strip them
12514             # from the output so that they don't get included in the library
12515             # dependencies.
12516             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12517             ;;
12518           *)
12519             if test "$GXX" = yes; then
12520               if test $with_gnu_ld = no; then
12521                 case $host_cpu in
12522                   hppa*64*)
12523                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12524                     ;;
12525                   ia64*)
12526                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12527                     ;;
12528                   *)
12529                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12530                     ;;
12531                 esac
12532               fi
12533             else
12534               # FIXME: insert proper C++ library support
12535               ld_shlibs_CXX=no
12536             fi
12537             ;;
12538         esac
12539         ;;
12540
12541       interix[3-9]*)
12542         hardcode_direct_CXX=no
12543         hardcode_shlibpath_var_CXX=no
12544         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12545         export_dynamic_flag_spec_CXX='${wl}-E'
12546         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12547         # Instead, shared libraries are loaded at an image base (0x10000000 by
12548         # default) and relocated if they conflict, which is a slow very memory
12549         # consuming and fragmenting process.  To avoid this, we pick a random,
12550         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12551         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12552         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'
12553         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'
12554         ;;
12555       irix5* | irix6*)
12556         case $cc_basename in
12557           CC*)
12558             # SGI C++
12559             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12560
12561             # Archives containing C++ object files must be created using
12562             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12563             # necessary to make sure instantiated templates are included
12564             # in the archive.
12565             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12566             ;;
12567           *)
12568             if test "$GXX" = yes; then
12569               if test "$with_gnu_ld" = no; then
12570                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12571               else
12572                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12573               fi
12574             fi
12575             link_all_deplibs_CXX=yes
12576             ;;
12577         esac
12578         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12579         hardcode_libdir_separator_CXX=:
12580         inherit_rpath_CXX=yes
12581         ;;
12582
12583       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12584         case $cc_basename in
12585           KCC*)
12586             # Kuck and Associates, Inc. (KAI) C++ Compiler
12587
12588             # KCC will only create a shared library if the output file
12589             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12590             # to its proper name (with version) after linking.
12591             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'
12592             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'
12593             # Commands to make compiler produce verbose output that lists
12594             # what "hidden" libraries, object files and flags are used when
12595             # linking a shared library.
12596             #
12597             # There doesn't appear to be a way to prevent this compiler from
12598             # explicitly linking system object files so we need to strip them
12599             # from the output so that they don't get included in the library
12600             # dependencies.
12601             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12602
12603             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12604             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12605
12606             # Archives containing C++ object files must be created using
12607             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12608             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12609             ;;
12610           icpc* | ecpc* )
12611             # Intel C++
12612             with_gnu_ld=yes
12613             # version 8.0 and above of icpc choke on multiply defined symbols
12614             # if we add $predep_objects and $postdep_objects, however 7.1 and
12615             # earlier do not add the objects themselves.
12616             case `$CC -V 2>&1` in
12617               *"Version 7."*)
12618                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619                 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'
12620                 ;;
12621               *)  # Version 8.0 or newer
12622                 tmp_idyn=
12623                 case $host_cpu in
12624                   ia64*) tmp_idyn=' -i_dynamic';;
12625                 esac
12626                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12627                 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'
12628                 ;;
12629             esac
12630             archive_cmds_need_lc_CXX=no
12631             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12632             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12633             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12634             ;;
12635           pgCC* | pgcpp*)
12636             # Portland Group C++ compiler
12637             case `$CC -V` in
12638             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12639               prelink_cmds_CXX='tpldir=Template.dir~
12640                 rm -rf $tpldir~
12641                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12642                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12643               old_archive_cmds_CXX='tpldir=Template.dir~
12644                 rm -rf $tpldir~
12645                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12646                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12647                 $RANLIB $oldlib'
12648               archive_cmds_CXX='tpldir=Template.dir~
12649                 rm -rf $tpldir~
12650                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12651                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12652               archive_expsym_cmds_CXX='tpldir=Template.dir~
12653                 rm -rf $tpldir~
12654                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12655                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12656               ;;
12657             *) # Version 6 will use weak symbols
12658               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12659               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'
12660               ;;
12661             esac
12662
12663             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12664             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12665             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12666             ;;
12667           cxx*)
12668             # Compaq C++
12669             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670             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'
12671
12672             runpath_var=LD_RUN_PATH
12673             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12674             hardcode_libdir_separator_CXX=:
12675
12676             # Commands to make compiler produce verbose output that lists
12677             # what "hidden" libraries, object files and flags are used when
12678             # linking a shared library.
12679             #
12680             # There doesn't appear to be a way to prevent this compiler from
12681             # explicitly linking system object files so we need to strip them
12682             # from the output so that they don't get included in the library
12683             # dependencies.
12684             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12685             ;;
12686           xl*)
12687             # IBM XL 8.0 on PPC, with GNU ld
12688             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12689             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12690             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691             if test "x$supports_anon_versioning" = xyes; then
12692               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12693                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12694                 echo "local: *; };" >> $output_objdir/$libname.ver~
12695                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12696             fi
12697             ;;
12698           *)
12699             case `$CC -V 2>&1 | sed 5q` in
12700             *Sun\ C*)
12701               # Sun C++ 5.9
12702               no_undefined_flag_CXX=' -zdefs'
12703               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12704               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'
12705               hardcode_libdir_flag_spec_CXX='-R$libdir'
12706               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12707               compiler_needs_object_CXX=yes
12708
12709               # Not sure whether something based on
12710               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12711               # would be better.
12712               output_verbose_link_cmd='echo'
12713
12714               # Archives containing C++ object files must be created using
12715               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12716               # necessary to make sure instantiated templates are included
12717               # in the archive.
12718               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12719               ;;
12720             esac
12721             ;;
12722         esac
12723         ;;
12724
12725       lynxos*)
12726         # FIXME: insert proper C++ library support
12727         ld_shlibs_CXX=no
12728         ;;
12729
12730       m88k*)
12731         # FIXME: insert proper C++ library support
12732         ld_shlibs_CXX=no
12733         ;;
12734
12735       mvs*)
12736         case $cc_basename in
12737           cxx*)
12738             # FIXME: insert proper C++ library support
12739             ld_shlibs_CXX=no
12740             ;;
12741           *)
12742             # FIXME: insert proper C++ library support
12743             ld_shlibs_CXX=no
12744             ;;
12745         esac
12746         ;;
12747
12748       netbsd*)
12749         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12750           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12751           wlarc=
12752           hardcode_libdir_flag_spec_CXX='-R$libdir'
12753           hardcode_direct_CXX=yes
12754           hardcode_shlibpath_var_CXX=no
12755         fi
12756         # Workaround some broken pre-1.5 toolchains
12757         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12758         ;;
12759
12760       *nto* | *qnx*)
12761         ld_shlibs_CXX=yes
12762         ;;
12763
12764       openbsd2*)
12765         # C++ shared libraries are fairly broken
12766         ld_shlibs_CXX=no
12767         ;;
12768
12769       openbsd*)
12770         if test -f /usr/libexec/ld.so; then
12771           hardcode_direct_CXX=yes
12772           hardcode_shlibpath_var_CXX=no
12773           hardcode_direct_absolute_CXX=yes
12774           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12775           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12776           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12777             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12778             export_dynamic_flag_spec_CXX='${wl}-E'
12779             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12780           fi
12781           output_verbose_link_cmd=echo
12782         else
12783           ld_shlibs_CXX=no
12784         fi
12785         ;;
12786
12787       osf3* | osf4* | osf5*)
12788         case $cc_basename in
12789           KCC*)
12790             # Kuck and Associates, Inc. (KAI) C++ Compiler
12791
12792             # KCC will only create a shared library if the output file
12793             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12794             # to its proper name (with version) after linking.
12795             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'
12796
12797             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12798             hardcode_libdir_separator_CXX=:
12799
12800             # Archives containing C++ object files must be created using
12801             # the KAI C++ compiler.
12802             case $host in
12803               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12804               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12805             esac
12806             ;;
12807           RCC*)
12808             # Rational C++ 2.4.1
12809             # FIXME: insert proper C++ library support
12810             ld_shlibs_CXX=no
12811             ;;
12812           cxx*)
12813             case $host in
12814               osf3*)
12815                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12816                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12817                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12818                 ;;
12819               *)
12820                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12821                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12822                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12823                   echo "-hidden">> $lib.exp~
12824                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12825                   $RM $lib.exp'
12826                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12827                 ;;
12828             esac
12829
12830             hardcode_libdir_separator_CXX=:
12831
12832             # Commands to make compiler produce verbose output that lists
12833             # what "hidden" libraries, object files and flags are used when
12834             # linking a shared library.
12835             #
12836             # There doesn't appear to be a way to prevent this compiler from
12837             # explicitly linking system object files so we need to strip them
12838             # from the output so that they don't get included in the library
12839             # dependencies.
12840             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12841             ;;
12842           *)
12843             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12844               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12845               case $host in
12846                 osf3*)
12847                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12848                   ;;
12849                 *)
12850                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12851                   ;;
12852               esac
12853
12854               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12855               hardcode_libdir_separator_CXX=:
12856
12857               # Commands to make compiler produce verbose output that lists
12858               # what "hidden" libraries, object files and flags are used when
12859               # linking a shared library.
12860               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12861
12862             else
12863               # FIXME: insert proper C++ library support
12864               ld_shlibs_CXX=no
12865             fi
12866             ;;
12867         esac
12868         ;;
12869
12870       psos*)
12871         # FIXME: insert proper C++ library support
12872         ld_shlibs_CXX=no
12873         ;;
12874
12875       sunos4*)
12876         case $cc_basename in
12877           CC*)
12878             # Sun C++ 4.x
12879             # FIXME: insert proper C++ library support
12880             ld_shlibs_CXX=no
12881             ;;
12882           lcc*)
12883             # Lucid
12884             # FIXME: insert proper C++ library support
12885             ld_shlibs_CXX=no
12886             ;;
12887           *)
12888             # FIXME: insert proper C++ library support
12889             ld_shlibs_CXX=no
12890             ;;
12891         esac
12892         ;;
12893
12894       solaris*)
12895         case $cc_basename in
12896           CC*)
12897             # Sun C++ 4.2, 5.x and Centerline C++
12898             archive_cmds_need_lc_CXX=yes
12899             no_undefined_flag_CXX=' -zdefs'
12900             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12901             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12902               $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'
12903
12904             hardcode_libdir_flag_spec_CXX='-R$libdir'
12905             hardcode_shlibpath_var_CXX=no
12906             case $host_os in
12907               solaris2.[0-5] | solaris2.[0-5].*) ;;
12908               *)
12909                 # The compiler driver will combine and reorder linker options,
12910                 # but understands `-z linker_flag'.
12911                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12912                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12913                 ;;
12914             esac
12915             link_all_deplibs_CXX=yes
12916
12917             output_verbose_link_cmd='echo'
12918
12919             # Archives containing C++ object files must be created using
12920             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12921             # necessary to make sure instantiated templates are included
12922             # in the archive.
12923             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12924             ;;
12925           gcx*)
12926             # Green Hills C++ Compiler
12927             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12928
12929             # The C++ compiler must be used to create the archive.
12930             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12931             ;;
12932           *)
12933             # GNU C++ compiler with Solaris linker
12934             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12935               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12936               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12937                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12938                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12939                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12940
12941                 # Commands to make compiler produce verbose output that lists
12942                 # what "hidden" libraries, object files and flags are used when
12943                 # linking a shared library.
12944                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12945               else
12946                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12947                 # platform.
12948                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12949                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12950                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12951
12952                 # Commands to make compiler produce verbose output that lists
12953                 # what "hidden" libraries, object files and flags are used when
12954                 # linking a shared library.
12955                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12956               fi
12957
12958               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12959               case $host_os in
12960                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12961                 *)
12962                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12963                   ;;
12964               esac
12965             fi
12966             ;;
12967         esac
12968         ;;
12969
12970     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12971       no_undefined_flag_CXX='${wl}-z,text'
12972       archive_cmds_need_lc_CXX=no
12973       hardcode_shlibpath_var_CXX=no
12974       runpath_var='LD_RUN_PATH'
12975
12976       case $cc_basename in
12977         CC*)
12978           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12979           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12980           ;;
12981         *)
12982           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12983           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12984           ;;
12985       esac
12986       ;;
12987
12988       sysv5* | sco3.2v5* | sco5v6*)
12989         # Note: We can NOT use -z defs as we might desire, because we do not
12990         # link with -lc, and that would cause any symbols used from libc to
12991         # always be unresolved, which means just about no library would
12992         # ever link correctly.  If we're not using GNU ld we use -z text
12993         # though, which does catch some bad symbols but isn't as heavy-handed
12994         # as -z defs.
12995         no_undefined_flag_CXX='${wl}-z,text'
12996         allow_undefined_flag_CXX='${wl}-z,nodefs'
12997         archive_cmds_need_lc_CXX=no
12998         hardcode_shlibpath_var_CXX=no
12999         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13000         hardcode_libdir_separator_CXX=':'
13001         link_all_deplibs_CXX=yes
13002         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13003         runpath_var='LD_RUN_PATH'
13004
13005         case $cc_basename in
13006           CC*)
13007             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13008             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13009             ;;
13010           *)
13011             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13012             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13013             ;;
13014         esac
13015       ;;
13016
13017       tandem*)
13018         case $cc_basename in
13019           NCC*)
13020             # NonStop-UX NCC 3.20
13021             # FIXME: insert proper C++ library support
13022             ld_shlibs_CXX=no
13023             ;;
13024           *)
13025             # FIXME: insert proper C++ library support
13026             ld_shlibs_CXX=no
13027             ;;
13028         esac
13029         ;;
13030
13031       vxworks*)
13032         # FIXME: insert proper C++ library support
13033         ld_shlibs_CXX=no
13034         ;;
13035
13036       *)
13037         # FIXME: insert proper C++ library support
13038         ld_shlibs_CXX=no
13039         ;;
13040     esac
13041
13042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13043 $as_echo "$ld_shlibs_CXX" >&6; }
13044     test "$ld_shlibs_CXX" = no && can_build_shared=no
13045
13046     GCC_CXX="$GXX"
13047     LD_CXX="$LD"
13048
13049     ## CAVEAT EMPTOR:
13050     ## There is no encapsulation within the following macros, do not change
13051     ## the running order or otherwise move them around unless you know exactly
13052     ## what you are doing...
13053     # Dependencies to place before and after the object being linked:
13054 predep_objects_CXX=
13055 postdep_objects_CXX=
13056 predeps_CXX=
13057 postdeps_CXX=
13058 compiler_lib_search_path_CXX=
13059
13060 cat > conftest.$ac_ext <<_LT_EOF
13061 class Foo
13062 {
13063 public:
13064   Foo (void) { a = 0; }
13065 private:
13066   int a;
13067 };
13068 _LT_EOF
13069
13070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13071   (eval $ac_compile) 2>&5
13072   ac_status=$?
13073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074   test $ac_status = 0; }; then
13075   # Parse the compiler output and extract the necessary
13076   # objects, libraries and library flags.
13077
13078   # Sentinel used to keep track of whether or not we are before
13079   # the conftest object file.
13080   pre_test_object_deps_done=no
13081
13082   for p in `eval "$output_verbose_link_cmd"`; do
13083     case $p in
13084
13085     -L* | -R* | -l*)
13086        # Some compilers place space between "-{L,R}" and the path.
13087        # Remove the space.
13088        if test $p = "-L" ||
13089           test $p = "-R"; then
13090          prev=$p
13091          continue
13092        else
13093          prev=
13094        fi
13095
13096        if test "$pre_test_object_deps_done" = no; then
13097          case $p in
13098          -L* | -R*)
13099            # Internal compiler library paths should come after those
13100            # provided the user.  The postdeps already come after the
13101            # user supplied libs so there is no need to process them.
13102            if test -z "$compiler_lib_search_path_CXX"; then
13103              compiler_lib_search_path_CXX="${prev}${p}"
13104            else
13105              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13106            fi
13107            ;;
13108          # The "-l" case would never come before the object being
13109          # linked, so don't bother handling this case.
13110          esac
13111        else
13112          if test -z "$postdeps_CXX"; then
13113            postdeps_CXX="${prev}${p}"
13114          else
13115            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13116          fi
13117        fi
13118        ;;
13119
13120     *.$objext)
13121        # This assumes that the test object file only shows up
13122        # once in the compiler output.
13123        if test "$p" = "conftest.$objext"; then
13124          pre_test_object_deps_done=yes
13125          continue
13126        fi
13127
13128        if test "$pre_test_object_deps_done" = no; then
13129          if test -z "$predep_objects_CXX"; then
13130            predep_objects_CXX="$p"
13131          else
13132            predep_objects_CXX="$predep_objects_CXX $p"
13133          fi
13134        else
13135          if test -z "$postdep_objects_CXX"; then
13136            postdep_objects_CXX="$p"
13137          else
13138            postdep_objects_CXX="$postdep_objects_CXX $p"
13139          fi
13140        fi
13141        ;;
13142
13143     *) ;; # Ignore the rest.
13144
13145     esac
13146   done
13147
13148   # Clean up.
13149   rm -f a.out a.exe
13150 else
13151   echo "libtool.m4: error: problem compiling CXX test program"
13152 fi
13153
13154 $RM -f confest.$objext
13155
13156 # PORTME: override above test on systems where it is broken
13157 case $host_os in
13158 interix[3-9]*)
13159   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13160   # hack all around it, let's just trust "g++" to DTRT.
13161   predep_objects_CXX=
13162   postdep_objects_CXX=
13163   postdeps_CXX=
13164   ;;
13165
13166 linux*)
13167   case `$CC -V 2>&1 | sed 5q` in
13168   *Sun\ C*)
13169     # Sun C++ 5.9
13170
13171     # The more standards-conforming stlport4 library is
13172     # incompatible with the Cstd library. Avoid specifying
13173     # it if it's in CXXFLAGS. Ignore libCrun as
13174     # -library=stlport4 depends on it.
13175     case " $CXX $CXXFLAGS " in
13176     *" -library=stlport4 "*)
13177       solaris_use_stlport4=yes
13178       ;;
13179     esac
13180
13181     if test "$solaris_use_stlport4" != yes; then
13182       postdeps_CXX='-library=Cstd -library=Crun'
13183     fi
13184     ;;
13185   esac
13186   ;;
13187
13188 solaris*)
13189   case $cc_basename in
13190   CC*)
13191     # The more standards-conforming stlport4 library is
13192     # incompatible with the Cstd library. Avoid specifying
13193     # it if it's in CXXFLAGS. Ignore libCrun as
13194     # -library=stlport4 depends on it.
13195     case " $CXX $CXXFLAGS " in
13196     *" -library=stlport4 "*)
13197       solaris_use_stlport4=yes
13198       ;;
13199     esac
13200
13201     # Adding this requires a known-good setup of shared libraries for
13202     # Sun compiler versions before 5.6, else PIC objects from an old
13203     # archive will be linked into the output, leading to subtle bugs.
13204     if test "$solaris_use_stlport4" != yes; then
13205       postdeps_CXX='-library=Cstd -library=Crun'
13206     fi
13207     ;;
13208   esac
13209   ;;
13210 esac
13211
13212
13213 case " $postdeps_CXX " in
13214 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13215 esac
13216  compiler_lib_search_dirs_CXX=
13217 if test -n "${compiler_lib_search_path_CXX}"; then
13218  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13219 fi
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251     lt_prog_compiler_wl_CXX=
13252 lt_prog_compiler_pic_CXX=
13253 lt_prog_compiler_static_CXX=
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13256 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13257
13258   # C++ specific cases for pic, static, wl, etc.
13259   if test "$GXX" = yes; then
13260     lt_prog_compiler_wl_CXX='-Wl,'
13261     lt_prog_compiler_static_CXX='-static'
13262
13263     case $host_os in
13264     aix*)
13265       # All AIX code is PIC.
13266       if test "$host_cpu" = ia64; then
13267         # AIX 5 now supports IA64 processor
13268         lt_prog_compiler_static_CXX='-Bstatic'
13269       fi
13270       ;;
13271
13272     amigaos*)
13273       case $host_cpu in
13274       powerpc)
13275             # see comment about AmigaOS4 .so support
13276             lt_prog_compiler_pic_CXX='-fPIC'
13277         ;;
13278       m68k)
13279             # FIXME: we need at least 68020 code to build shared libraries, but
13280             # adding the `-m68020' flag to GCC prevents building anything better,
13281             # like `-m68040'.
13282             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13283         ;;
13284       esac
13285       ;;
13286
13287     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13288       # PIC is the default for these OSes.
13289       ;;
13290     mingw* | cygwin* | os2* | pw32* | cegcc*)
13291       # This hack is so that the source file can tell whether it is being
13292       # built for inclusion in a dll (and should export symbols for example).
13293       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13294       # (--disable-auto-import) libraries
13295       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13296       ;;
13297     darwin* | rhapsody*)
13298       # PIC is the default on this platform
13299       # Common symbols not allowed in MH_DYLIB files
13300       lt_prog_compiler_pic_CXX='-fno-common'
13301       ;;
13302     *djgpp*)
13303       # DJGPP does not support shared libraries at all
13304       lt_prog_compiler_pic_CXX=
13305       ;;
13306     interix[3-9]*)
13307       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13308       # Instead, we relocate shared libraries at runtime.
13309       ;;
13310     sysv4*MP*)
13311       if test -d /usr/nec; then
13312         lt_prog_compiler_pic_CXX=-Kconform_pic
13313       fi
13314       ;;
13315     hpux*)
13316       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13317       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13318       # sets the default TLS model and affects inlining.
13319       case $host_cpu in
13320       hppa*64*)
13321         ;;
13322       *)
13323         lt_prog_compiler_pic_CXX='-fPIC'
13324         ;;
13325       esac
13326       ;;
13327     *qnx* | *nto*)
13328       # QNX uses GNU C++, but need to define -shared option too, otherwise
13329       # it will coredump.
13330       lt_prog_compiler_pic_CXX='-fPIC -shared'
13331       ;;
13332     *)
13333       lt_prog_compiler_pic_CXX='-fPIC'
13334       ;;
13335     esac
13336   else
13337     case $host_os in
13338       aix[4-9]*)
13339         # All AIX code is PIC.
13340         if test "$host_cpu" = ia64; then
13341           # AIX 5 now supports IA64 processor
13342           lt_prog_compiler_static_CXX='-Bstatic'
13343         else
13344           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13345         fi
13346         ;;
13347       chorus*)
13348         case $cc_basename in
13349         cxch68*)
13350           # Green Hills C++ Compiler
13351           # _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"
13352           ;;
13353         esac
13354         ;;
13355       dgux*)
13356         case $cc_basename in
13357           ec++*)
13358             lt_prog_compiler_pic_CXX='-KPIC'
13359             ;;
13360           ghcx*)
13361             # Green Hills C++ Compiler
13362             lt_prog_compiler_pic_CXX='-pic'
13363             ;;
13364           *)
13365             ;;
13366         esac
13367         ;;
13368       freebsd* | dragonfly*)
13369         # FreeBSD uses GNU C++
13370         ;;
13371       hpux9* | hpux10* | hpux11*)
13372         case $cc_basename in
13373           CC*)
13374             lt_prog_compiler_wl_CXX='-Wl,'
13375             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13376             if test "$host_cpu" != ia64; then
13377               lt_prog_compiler_pic_CXX='+Z'
13378             fi
13379             ;;
13380           aCC*)
13381             lt_prog_compiler_wl_CXX='-Wl,'
13382             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13383             case $host_cpu in
13384             hppa*64*|ia64*)
13385               # +Z the default
13386               ;;
13387             *)
13388               lt_prog_compiler_pic_CXX='+Z'
13389               ;;
13390             esac
13391             ;;
13392           *)
13393             ;;
13394         esac
13395         ;;
13396       interix*)
13397         # This is c89, which is MS Visual C++ (no shared libs)
13398         # Anyone wants to do a port?
13399         ;;
13400       irix5* | irix6* | nonstopux*)
13401         case $cc_basename in
13402           CC*)
13403             lt_prog_compiler_wl_CXX='-Wl,'
13404             lt_prog_compiler_static_CXX='-non_shared'
13405             # CC pic flag -KPIC is the default.
13406             ;;
13407           *)
13408             ;;
13409         esac
13410         ;;
13411       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13412         case $cc_basename in
13413           KCC*)
13414             # KAI C++ Compiler
13415             lt_prog_compiler_wl_CXX='--backend -Wl,'
13416             lt_prog_compiler_pic_CXX='-fPIC'
13417             ;;
13418           ecpc* )
13419             # old Intel C++ for x86_64 which still supported -KPIC.
13420             lt_prog_compiler_wl_CXX='-Wl,'
13421             lt_prog_compiler_pic_CXX='-KPIC'
13422             lt_prog_compiler_static_CXX='-static'
13423             ;;
13424           icpc* )
13425             # Intel C++, used to be incompatible with GCC.
13426             # ICC 10 doesn't accept -KPIC any more.
13427             lt_prog_compiler_wl_CXX='-Wl,'
13428             lt_prog_compiler_pic_CXX='-fPIC'
13429             lt_prog_compiler_static_CXX='-static'
13430             ;;
13431           pgCC* | pgcpp*)
13432             # Portland Group C++ compiler
13433             lt_prog_compiler_wl_CXX='-Wl,'
13434             lt_prog_compiler_pic_CXX='-fpic'
13435             lt_prog_compiler_static_CXX='-Bstatic'
13436             ;;
13437           cxx*)
13438             # Compaq C++
13439             # Make sure the PIC flag is empty.  It appears that all Alpha
13440             # Linux and Compaq Tru64 Unix objects are PIC.
13441             lt_prog_compiler_pic_CXX=
13442             lt_prog_compiler_static_CXX='-non_shared'
13443             ;;
13444           xlc* | xlC*)
13445             # IBM XL 8.0 on PPC
13446             lt_prog_compiler_wl_CXX='-Wl,'
13447             lt_prog_compiler_pic_CXX='-qpic'
13448             lt_prog_compiler_static_CXX='-qstaticlink'
13449             ;;
13450           *)
13451             case `$CC -V 2>&1 | sed 5q` in
13452             *Sun\ C*)
13453               # Sun C++ 5.9
13454               lt_prog_compiler_pic_CXX='-KPIC'
13455               lt_prog_compiler_static_CXX='-Bstatic'
13456               lt_prog_compiler_wl_CXX='-Qoption ld '
13457               ;;
13458             esac
13459             ;;
13460         esac
13461         ;;
13462       lynxos*)
13463         ;;
13464       m88k*)
13465         ;;
13466       mvs*)
13467         case $cc_basename in
13468           cxx*)
13469             lt_prog_compiler_pic_CXX='-W c,exportall'
13470             ;;
13471           *)
13472             ;;
13473         esac
13474         ;;
13475       netbsd* | netbsdelf*-gnu)
13476         ;;
13477       *qnx* | *nto*)
13478         # QNX uses GNU C++, but need to define -shared option too, otherwise
13479         # it will coredump.
13480         lt_prog_compiler_pic_CXX='-fPIC -shared'
13481         ;;
13482       osf3* | osf4* | osf5*)
13483         case $cc_basename in
13484           KCC*)
13485             lt_prog_compiler_wl_CXX='--backend -Wl,'
13486             ;;
13487           RCC*)
13488             # Rational C++ 2.4.1
13489             lt_prog_compiler_pic_CXX='-pic'
13490             ;;
13491           cxx*)
13492             # Digital/Compaq C++
13493             lt_prog_compiler_wl_CXX='-Wl,'
13494             # Make sure the PIC flag is empty.  It appears that all Alpha
13495             # Linux and Compaq Tru64 Unix objects are PIC.
13496             lt_prog_compiler_pic_CXX=
13497             lt_prog_compiler_static_CXX='-non_shared'
13498             ;;
13499           *)
13500             ;;
13501         esac
13502         ;;
13503       psos*)
13504         ;;
13505       solaris*)
13506         case $cc_basename in
13507           CC*)
13508             # Sun C++ 4.2, 5.x and Centerline C++
13509             lt_prog_compiler_pic_CXX='-KPIC'
13510             lt_prog_compiler_static_CXX='-Bstatic'
13511             lt_prog_compiler_wl_CXX='-Qoption ld '
13512             ;;
13513           gcx*)
13514             # Green Hills C++ Compiler
13515             lt_prog_compiler_pic_CXX='-PIC'
13516             ;;
13517           *)
13518             ;;
13519         esac
13520         ;;
13521       sunos4*)
13522         case $cc_basename in
13523           CC*)
13524             # Sun C++ 4.x
13525             lt_prog_compiler_pic_CXX='-pic'
13526             lt_prog_compiler_static_CXX='-Bstatic'
13527             ;;
13528           lcc*)
13529             # Lucid
13530             lt_prog_compiler_pic_CXX='-pic'
13531             ;;
13532           *)
13533             ;;
13534         esac
13535         ;;
13536       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13537         case $cc_basename in
13538           CC*)
13539             lt_prog_compiler_wl_CXX='-Wl,'
13540             lt_prog_compiler_pic_CXX='-KPIC'
13541             lt_prog_compiler_static_CXX='-Bstatic'
13542             ;;
13543         esac
13544         ;;
13545       tandem*)
13546         case $cc_basename in
13547           NCC*)
13548             # NonStop-UX NCC 3.20
13549             lt_prog_compiler_pic_CXX='-KPIC'
13550             ;;
13551           *)
13552             ;;
13553         esac
13554         ;;
13555       vxworks*)
13556         ;;
13557       *)
13558         lt_prog_compiler_can_build_shared_CXX=no
13559         ;;
13560     esac
13561   fi
13562
13563 case $host_os in
13564   # For platforms which do not support PIC, -DPIC is meaningless:
13565   *djgpp*)
13566     lt_prog_compiler_pic_CXX=
13567     ;;
13568   *)
13569     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13570     ;;
13571 esac
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13573 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13574
13575
13576
13577 #
13578 # Check to make sure the PIC flag actually works.
13579 #
13580 if test -n "$lt_prog_compiler_pic_CXX"; then
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13583 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13584   $as_echo_n "(cached) " >&6
13585 else
13586   lt_cv_prog_compiler_pic_works_CXX=no
13587    ac_outfile=conftest.$ac_objext
13588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13589    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13590    # Insert the option either (1) after the last *FLAGS variable, or
13591    # (2) before a word containing "conftest.", or (3) at the end.
13592    # Note that $ac_compile itself does not contain backslashes and begins
13593    # with a dollar sign (not a hyphen), so the echo should work correctly.
13594    # The option is referenced via a variable to avoid confusing sed.
13595    lt_compile=`echo "$ac_compile" | $SED \
13596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13598    -e 's:$: $lt_compiler_flag:'`
13599    (eval echo "\"\$as_me:13599: $lt_compile\"" >&5)
13600    (eval "$lt_compile" 2>conftest.err)
13601    ac_status=$?
13602    cat conftest.err >&5
13603    echo "$as_me:13603: \$? = $ac_status" >&5
13604    if (exit $ac_status) && test -s "$ac_outfile"; then
13605      # The compiler can only warn and ignore the option if not recognized
13606      # So say no if there are warnings other than the usual output.
13607      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13608      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13609      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13610        lt_cv_prog_compiler_pic_works_CXX=yes
13611      fi
13612    fi
13613    $RM conftest*
13614
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13617 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13618
13619 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13620     case $lt_prog_compiler_pic_CXX in
13621      "" | " "*) ;;
13622      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13623      esac
13624 else
13625     lt_prog_compiler_pic_CXX=
13626      lt_prog_compiler_can_build_shared_CXX=no
13627 fi
13628
13629 fi
13630
13631
13632
13633 #
13634 # Check to make sure the static flag actually works.
13635 #
13636 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13639 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13640   $as_echo_n "(cached) " >&6
13641 else
13642   lt_cv_prog_compiler_static_works_CXX=no
13643    save_LDFLAGS="$LDFLAGS"
13644    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13645    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13646    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13647      # The linker can only warn and ignore the option if not recognized
13648      # So say no if there are warnings
13649      if test -s conftest.err; then
13650        # Append any errors to the config.log.
13651        cat conftest.err 1>&5
13652        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13653        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654        if diff conftest.exp conftest.er2 >/dev/null; then
13655          lt_cv_prog_compiler_static_works_CXX=yes
13656        fi
13657      else
13658        lt_cv_prog_compiler_static_works_CXX=yes
13659      fi
13660    fi
13661    $RM -r conftest*
13662    LDFLAGS="$save_LDFLAGS"
13663
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13666 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13667
13668 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13669     :
13670 else
13671     lt_prog_compiler_static_CXX=
13672 fi
13673
13674
13675
13676
13677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13679 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   lt_cv_prog_compiler_c_o_CXX=no
13683    $RM -r conftest 2>/dev/null
13684    mkdir conftest
13685    cd conftest
13686    mkdir out
13687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13688
13689    lt_compiler_flag="-o out/conftest2.$ac_objext"
13690    # Insert the option either (1) after the last *FLAGS variable, or
13691    # (2) before a word containing "conftest.", or (3) at the end.
13692    # Note that $ac_compile itself does not contain backslashes and begins
13693    # with a dollar sign (not a hyphen), so the echo should work correctly.
13694    lt_compile=`echo "$ac_compile" | $SED \
13695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13697    -e 's:$: $lt_compiler_flag:'`
13698    (eval echo "\"\$as_me:13698: $lt_compile\"" >&5)
13699    (eval "$lt_compile" 2>out/conftest.err)
13700    ac_status=$?
13701    cat out/conftest.err >&5
13702    echo "$as_me:13702: \$? = $ac_status" >&5
13703    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13704    then
13705      # The compiler can only warn and ignore the option if not recognized
13706      # So say no if there are warnings
13707      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13708      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13709      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13710        lt_cv_prog_compiler_c_o_CXX=yes
13711      fi
13712    fi
13713    chmod u+w . 2>&5
13714    $RM conftest*
13715    # SGI C++ compiler will create directory out/ii_files/ for
13716    # template instantiation
13717    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13718    $RM out/* && rmdir out
13719    cd ..
13720    $RM -r conftest
13721    $RM conftest*
13722
13723 fi
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13725 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13726
13727
13728
13729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13731 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13732   $as_echo_n "(cached) " >&6
13733 else
13734   lt_cv_prog_compiler_c_o_CXX=no
13735    $RM -r conftest 2>/dev/null
13736    mkdir conftest
13737    cd conftest
13738    mkdir out
13739    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13740
13741    lt_compiler_flag="-o out/conftest2.$ac_objext"
13742    # Insert the option either (1) after the last *FLAGS variable, or
13743    # (2) before a word containing "conftest.", or (3) at the end.
13744    # Note that $ac_compile itself does not contain backslashes and begins
13745    # with a dollar sign (not a hyphen), so the echo should work correctly.
13746    lt_compile=`echo "$ac_compile" | $SED \
13747    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13749    -e 's:$: $lt_compiler_flag:'`
13750    (eval echo "\"\$as_me:13750: $lt_compile\"" >&5)
13751    (eval "$lt_compile" 2>out/conftest.err)
13752    ac_status=$?
13753    cat out/conftest.err >&5
13754    echo "$as_me:13754: \$? = $ac_status" >&5
13755    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13756    then
13757      # The compiler can only warn and ignore the option if not recognized
13758      # So say no if there are warnings
13759      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13760      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13761      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13762        lt_cv_prog_compiler_c_o_CXX=yes
13763      fi
13764    fi
13765    chmod u+w . 2>&5
13766    $RM conftest*
13767    # SGI C++ compiler will create directory out/ii_files/ for
13768    # template instantiation
13769    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13770    $RM out/* && rmdir out
13771    cd ..
13772    $RM -r conftest
13773    $RM conftest*
13774
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13777 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13778
13779
13780
13781
13782 hard_links="nottested"
13783 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13784   # do not overwrite the value of need_locks provided by the user
13785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13786 $as_echo_n "checking if we can lock with hard links... " >&6; }
13787   hard_links=yes
13788   $RM conftest*
13789   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13790   touch conftest.a
13791   ln conftest.a conftest.b 2>&5 || hard_links=no
13792   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13794 $as_echo "$hard_links" >&6; }
13795   if test "$hard_links" = no; then
13796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13797 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13798     need_locks=warn
13799   fi
13800 else
13801   need_locks=no
13802 fi
13803
13804
13805
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13808
13809   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13810   case $host_os in
13811   aix[4-9]*)
13812     # If we're using GNU nm, then we don't want the "-C" option.
13813     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13814     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13815       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13816     else
13817       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'
13818     fi
13819     ;;
13820   pw32*)
13821     export_symbols_cmds_CXX="$ltdll_cmds"
13822   ;;
13823   cygwin* | mingw* | cegcc*)
13824     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13825   ;;
13826   linux* | k*bsd*-gnu)
13827     link_all_deplibs_CXX=no
13828   ;;
13829   *)
13830     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13831   ;;
13832   esac
13833   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13834
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13836 $as_echo "$ld_shlibs_CXX" >&6; }
13837 test "$ld_shlibs_CXX" = no && can_build_shared=no
13838
13839 with_gnu_ld_CXX=$with_gnu_ld
13840
13841
13842
13843
13844
13845
13846 #
13847 # Do we need to explicitly link libc?
13848 #
13849 case "x$archive_cmds_need_lc_CXX" in
13850 x|xyes)
13851   # Assume -lc should be added
13852   archive_cmds_need_lc_CXX=yes
13853
13854   if test "$enable_shared" = yes && test "$GCC" = yes; then
13855     case $archive_cmds_CXX in
13856     *'~'*)
13857       # FIXME: we may have to deal with multi-command sequences.
13858       ;;
13859     '$CC '*)
13860       # Test whether the compiler implicitly links with -lc since on some
13861       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13862       # to ld, don't add -lc before -lgcc.
13863       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13864 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13865       $RM conftest*
13866       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13867
13868       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13869   (eval $ac_compile) 2>&5
13870   ac_status=$?
13871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872   test $ac_status = 0; } 2>conftest.err; then
13873         soname=conftest
13874         lib=conftest
13875         libobjs=conftest.$ac_objext
13876         deplibs=
13877         wl=$lt_prog_compiler_wl_CXX
13878         pic_flag=$lt_prog_compiler_pic_CXX
13879         compiler_flags=-v
13880         linker_flags=-v
13881         verstring=
13882         output_objdir=.
13883         libname=conftest
13884         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13885         allow_undefined_flag_CXX=
13886         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13887   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13888   ac_status=$?
13889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890   test $ac_status = 0; }
13891         then
13892           archive_cmds_need_lc_CXX=no
13893         else
13894           archive_cmds_need_lc_CXX=yes
13895         fi
13896         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13897       else
13898         cat conftest.err 1>&5
13899       fi
13900       $RM conftest*
13901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13902 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13903       ;;
13904     esac
13905   fi
13906   ;;
13907 esac
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13974
13975 library_names_spec=
13976 libname_spec='lib$name'
13977 soname_spec=
13978 shrext_cmds=".so"
13979 postinstall_cmds=
13980 postuninstall_cmds=
13981 finish_cmds=
13982 finish_eval=
13983 shlibpath_var=
13984 shlibpath_overrides_runpath=unknown
13985 version_type=none
13986 dynamic_linker="$host_os ld.so"
13987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13988 need_lib_prefix=unknown
13989 hardcode_into_libs=no
13990
13991 # when you set need_version to no, make sure it does not cause -set_version
13992 # flags to be left without arguments
13993 need_version=unknown
13994
13995 case $host_os in
13996 aix3*)
13997   version_type=linux
13998   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13999   shlibpath_var=LIBPATH
14000
14001   # AIX 3 has no versioning support, so we append a major version to the name.
14002   soname_spec='${libname}${release}${shared_ext}$major'
14003   ;;
14004
14005 aix[4-9]*)
14006   version_type=linux
14007   need_lib_prefix=no
14008   need_version=no
14009   hardcode_into_libs=yes
14010   if test "$host_cpu" = ia64; then
14011     # AIX 5 supports IA64
14012     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14013     shlibpath_var=LD_LIBRARY_PATH
14014   else
14015     # With GCC up to 2.95.x, collect2 would create an import file
14016     # for dependence libraries.  The import file would start with
14017     # the line `#! .'.  This would cause the generated library to
14018     # depend on `.', always an invalid library.  This was fixed in
14019     # development snapshots of GCC prior to 3.0.
14020     case $host_os in
14021       aix4 | aix4.[01] | aix4.[01].*)
14022       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14023            echo ' yes '
14024            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14025         :
14026       else
14027         can_build_shared=no
14028       fi
14029       ;;
14030     esac
14031     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14032     # soname into executable. Probably we can add versioning support to
14033     # collect2, so additional links can be useful in future.
14034     if test "$aix_use_runtimelinking" = yes; then
14035       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14036       # instead of lib<name>.a to let people know that these are not
14037       # typical AIX shared libraries.
14038       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039     else
14040       # We preserve .a as extension for shared libraries through AIX4.2
14041       # and later when we are not doing run time linking.
14042       library_names_spec='${libname}${release}.a $libname.a'
14043       soname_spec='${libname}${release}${shared_ext}$major'
14044     fi
14045     shlibpath_var=LIBPATH
14046   fi
14047   ;;
14048
14049 amigaos*)
14050   case $host_cpu in
14051   powerpc)
14052     # Since July 2007 AmigaOS4 officially supports .so libraries.
14053     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14055     ;;
14056   m68k)
14057     library_names_spec='$libname.ixlibrary $libname.a'
14058     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14059     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14060     ;;
14061   esac
14062   ;;
14063
14064 beos*)
14065   library_names_spec='${libname}${shared_ext}'
14066   dynamic_linker="$host_os ld.so"
14067   shlibpath_var=LIBRARY_PATH
14068   ;;
14069
14070 bsdi[45]*)
14071   version_type=linux
14072   need_version=no
14073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074   soname_spec='${libname}${release}${shared_ext}$major'
14075   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14076   shlibpath_var=LD_LIBRARY_PATH
14077   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14078   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14079   # the default ld.so.conf also contains /usr/contrib/lib and
14080   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14081   # libtool to hard-code these into programs
14082   ;;
14083
14084 cygwin* | mingw* | pw32* | cegcc*)
14085   version_type=windows
14086   shrext_cmds=".dll"
14087   need_version=no
14088   need_lib_prefix=no
14089
14090   case $GCC,$host_os in
14091   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14092     library_names_spec='$libname.dll.a'
14093     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14094     postinstall_cmds='base_file=`basename \${file}`~
14095       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14096       dldir=$destdir/`dirname \$dlpath`~
14097       test -d \$dldir || mkdir -p \$dldir~
14098       $install_prog $dir/$dlname \$dldir/$dlname~
14099       chmod a+x \$dldir/$dlname~
14100       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14101         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14102       fi'
14103     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14104       dlpath=$dir/\$dldll~
14105        $RM \$dlpath'
14106     shlibpath_overrides_runpath=yes
14107
14108     case $host_os in
14109     cygwin*)
14110       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14111       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14112       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14113       ;;
14114     mingw* | cegcc*)
14115       # MinGW DLLs use traditional 'lib' prefix
14116       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14117       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14118       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14119         # It is most probably a Windows format PATH printed by
14120         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14121         # path with ; separators, and with drive letters. We can handle the
14122         # drive letters (cygwin fileutils understands them), so leave them,
14123         # especially as we might pass files found there to a mingw objdump,
14124         # which wouldn't understand a cygwinified path. Ahh.
14125         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14126       else
14127         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14128       fi
14129       ;;
14130     pw32*)
14131       # pw32 DLLs use 'pw' prefix rather than 'lib'
14132       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14133       ;;
14134     esac
14135     ;;
14136
14137   *)
14138     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14139     ;;
14140   esac
14141   dynamic_linker='Win32 ld.exe'
14142   # FIXME: first we should search . and the directory the executable is in
14143   shlibpath_var=PATH
14144   ;;
14145
14146 darwin* | rhapsody*)
14147   dynamic_linker="$host_os dyld"
14148   version_type=darwin
14149   need_lib_prefix=no
14150   need_version=no
14151   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14152   soname_spec='${libname}${release}${major}$shared_ext'
14153   shlibpath_overrides_runpath=yes
14154   shlibpath_var=DYLD_LIBRARY_PATH
14155   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14156
14157   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14158   ;;
14159
14160 dgux*)
14161   version_type=linux
14162   need_lib_prefix=no
14163   need_version=no
14164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14165   soname_spec='${libname}${release}${shared_ext}$major'
14166   shlibpath_var=LD_LIBRARY_PATH
14167   ;;
14168
14169 freebsd1*)
14170   dynamic_linker=no
14171   ;;
14172
14173 freebsd* | dragonfly*)
14174   # DragonFly does not have aout.  When/if they implement a new
14175   # versioning mechanism, adjust this.
14176   if test -x /usr/bin/objformat; then
14177     objformat=`/usr/bin/objformat`
14178   else
14179     case $host_os in
14180     freebsd[123]*) objformat=aout ;;
14181     *) objformat=elf ;;
14182     esac
14183   fi
14184   version_type=freebsd-$objformat
14185   case $version_type in
14186     freebsd-elf*)
14187       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14188       need_version=no
14189       need_lib_prefix=no
14190       ;;
14191     freebsd-*)
14192       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14193       need_version=yes
14194       ;;
14195   esac
14196   shlibpath_var=LD_LIBRARY_PATH
14197   case $host_os in
14198   freebsd2*)
14199     shlibpath_overrides_runpath=yes
14200     ;;
14201   freebsd3.[01]* | freebsdelf3.[01]*)
14202     shlibpath_overrides_runpath=yes
14203     hardcode_into_libs=yes
14204     ;;
14205   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14206   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14207     shlibpath_overrides_runpath=no
14208     hardcode_into_libs=yes
14209     ;;
14210   *) # from 4.6 on, and DragonFly
14211     shlibpath_overrides_runpath=yes
14212     hardcode_into_libs=yes
14213     ;;
14214   esac
14215   ;;
14216
14217 gnu*)
14218   version_type=linux
14219   need_lib_prefix=no
14220   need_version=no
14221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14222   soname_spec='${libname}${release}${shared_ext}$major'
14223   shlibpath_var=LD_LIBRARY_PATH
14224   hardcode_into_libs=yes
14225   ;;
14226
14227 hpux9* | hpux10* | hpux11*)
14228   # Give a soname corresponding to the major version so that dld.sl refuses to
14229   # link against other versions.
14230   version_type=sunos
14231   need_lib_prefix=no
14232   need_version=no
14233   case $host_cpu in
14234   ia64*)
14235     shrext_cmds='.so'
14236     hardcode_into_libs=yes
14237     dynamic_linker="$host_os dld.so"
14238     shlibpath_var=LD_LIBRARY_PATH
14239     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241     soname_spec='${libname}${release}${shared_ext}$major'
14242     if test "X$HPUX_IA64_MODE" = X32; then
14243       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14244     else
14245       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14246     fi
14247     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14248     ;;
14249   hppa*64*)
14250     shrext_cmds='.sl'
14251     hardcode_into_libs=yes
14252     dynamic_linker="$host_os dld.sl"
14253     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14254     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256     soname_spec='${libname}${release}${shared_ext}$major'
14257     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14258     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14259     ;;
14260   *)
14261     shrext_cmds='.sl'
14262     dynamic_linker="$host_os dld.sl"
14263     shlibpath_var=SHLIB_PATH
14264     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14266     soname_spec='${libname}${release}${shared_ext}$major'
14267     ;;
14268   esac
14269   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14270   postinstall_cmds='chmod 555 $lib'
14271   ;;
14272
14273 interix[3-9]*)
14274   version_type=linux
14275   need_lib_prefix=no
14276   need_version=no
14277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14278   soname_spec='${libname}${release}${shared_ext}$major'
14279   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14280   shlibpath_var=LD_LIBRARY_PATH
14281   shlibpath_overrides_runpath=no
14282   hardcode_into_libs=yes
14283   ;;
14284
14285 irix5* | irix6* | nonstopux*)
14286   case $host_os in
14287     nonstopux*) version_type=nonstopux ;;
14288     *)
14289         if test "$lt_cv_prog_gnu_ld" = yes; then
14290                 version_type=linux
14291         else
14292                 version_type=irix
14293         fi ;;
14294   esac
14295   need_lib_prefix=no
14296   need_version=no
14297   soname_spec='${libname}${release}${shared_ext}$major'
14298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14299   case $host_os in
14300   irix5* | nonstopux*)
14301     libsuff= shlibsuff=
14302     ;;
14303   *)
14304     case $LD in # libtool.m4 will add one of these switches to LD
14305     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14306       libsuff= shlibsuff= libmagic=32-bit;;
14307     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14308       libsuff=32 shlibsuff=N32 libmagic=N32;;
14309     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14310       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14311     *) libsuff= shlibsuff= libmagic=never-match;;
14312     esac
14313     ;;
14314   esac
14315   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14316   shlibpath_overrides_runpath=no
14317   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14318   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14319   hardcode_into_libs=yes
14320   ;;
14321
14322 # No shared lib support for Linux oldld, aout, or coff.
14323 linux*oldld* | linux*aout* | linux*coff*)
14324   dynamic_linker=no
14325   ;;
14326
14327 # This must be Linux ELF.
14328 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14329   version_type=linux
14330   need_lib_prefix=no
14331   need_version=no
14332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333   soname_spec='${libname}${release}${shared_ext}$major'
14334   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14335   shlibpath_var=LD_LIBRARY_PATH
14336   shlibpath_overrides_runpath=no
14337   # Some binutils ld are patched to set DT_RUNPATH
14338   save_LDFLAGS=$LDFLAGS
14339   save_libdir=$libdir
14340   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14341        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h.  */
14344
14345 int
14346 main ()
14347 {
14348
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_cxx_try_link "$LINENO"; then :
14354   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14355   shlibpath_overrides_runpath=yes
14356 fi
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext \
14359     conftest$ac_exeext conftest.$ac_ext
14360   LDFLAGS=$save_LDFLAGS
14361   libdir=$save_libdir
14362
14363   # This implies no fast_install, which is unacceptable.
14364   # Some rework will be needed to allow for fast_install
14365   # before this can be enabled.
14366   hardcode_into_libs=yes
14367
14368   # Append ld.so.conf contents to the search path
14369   if test -f /etc/ld.so.conf; then
14370     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;/^$/d' | tr '\n' ' '`
14371     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14372   fi
14373
14374   # We used to test for /lib/ld.so.1 and disable shared libraries on
14375   # powerpc, because MkLinux only supported shared libraries with the
14376   # GNU dynamic linker.  Since this was broken with cross compilers,
14377   # most powerpc-linux boxes support dynamic linking these days and
14378   # people can always --disable-shared, the test was removed, and we
14379   # assume the GNU/Linux dynamic linker is in use.
14380   dynamic_linker='GNU/Linux ld.so'
14381   ;;
14382
14383 netbsdelf*-gnu)
14384   version_type=linux
14385   need_lib_prefix=no
14386   need_version=no
14387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14388   soname_spec='${libname}${release}${shared_ext}$major'
14389   shlibpath_var=LD_LIBRARY_PATH
14390   shlibpath_overrides_runpath=no
14391   hardcode_into_libs=yes
14392   dynamic_linker='NetBSD ld.elf_so'
14393   ;;
14394
14395 netbsd*)
14396   version_type=sunos
14397   need_lib_prefix=no
14398   need_version=no
14399   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14401     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14402     dynamic_linker='NetBSD (a.out) ld.so'
14403   else
14404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14405     soname_spec='${libname}${release}${shared_ext}$major'
14406     dynamic_linker='NetBSD ld.elf_so'
14407   fi
14408   shlibpath_var=LD_LIBRARY_PATH
14409   shlibpath_overrides_runpath=yes
14410   hardcode_into_libs=yes
14411   ;;
14412
14413 newsos6)
14414   version_type=linux
14415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416   shlibpath_var=LD_LIBRARY_PATH
14417   shlibpath_overrides_runpath=yes
14418   ;;
14419
14420 *nto* | *qnx*)
14421   version_type=qnx
14422   need_lib_prefix=no
14423   need_version=no
14424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425   soname_spec='${libname}${release}${shared_ext}$major'
14426   shlibpath_var=LD_LIBRARY_PATH
14427   shlibpath_overrides_runpath=no
14428   hardcode_into_libs=yes
14429   dynamic_linker='ldqnx.so'
14430   ;;
14431
14432 openbsd*)
14433   version_type=sunos
14434   sys_lib_dlsearch_path_spec="/usr/lib"
14435   need_lib_prefix=no
14436   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14437   case $host_os in
14438     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14439     *)                          need_version=no  ;;
14440   esac
14441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443   shlibpath_var=LD_LIBRARY_PATH
14444   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14445     case $host_os in
14446       openbsd2.[89] | openbsd2.[89].*)
14447         shlibpath_overrides_runpath=no
14448         ;;
14449       *)
14450         shlibpath_overrides_runpath=yes
14451         ;;
14452       esac
14453   else
14454     shlibpath_overrides_runpath=yes
14455   fi
14456   ;;
14457
14458 os2*)
14459   libname_spec='$name'
14460   shrext_cmds=".dll"
14461   need_lib_prefix=no
14462   library_names_spec='$libname${shared_ext} $libname.a'
14463   dynamic_linker='OS/2 ld.exe'
14464   shlibpath_var=LIBPATH
14465   ;;
14466
14467 osf3* | osf4* | osf5*)
14468   version_type=osf
14469   need_lib_prefix=no
14470   need_version=no
14471   soname_spec='${libname}${release}${shared_ext}$major'
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14475   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14476   ;;
14477
14478 rdos*)
14479   dynamic_linker=no
14480   ;;
14481
14482 solaris*)
14483   version_type=linux
14484   need_lib_prefix=no
14485   need_version=no
14486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   shlibpath_var=LD_LIBRARY_PATH
14489   shlibpath_overrides_runpath=yes
14490   hardcode_into_libs=yes
14491   # ldd complains unless libraries are executable
14492   postinstall_cmds='chmod +x $lib'
14493   ;;
14494
14495 sunos4*)
14496   version_type=sunos
14497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14498   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14499   shlibpath_var=LD_LIBRARY_PATH
14500   shlibpath_overrides_runpath=yes
14501   if test "$with_gnu_ld" = yes; then
14502     need_lib_prefix=no
14503   fi
14504   need_version=yes
14505   ;;
14506
14507 sysv4 | sysv4.3*)
14508   version_type=linux
14509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510   soname_spec='${libname}${release}${shared_ext}$major'
14511   shlibpath_var=LD_LIBRARY_PATH
14512   case $host_vendor in
14513     sni)
14514       shlibpath_overrides_runpath=no
14515       need_lib_prefix=no
14516       runpath_var=LD_RUN_PATH
14517       ;;
14518     siemens)
14519       need_lib_prefix=no
14520       ;;
14521     motorola)
14522       need_lib_prefix=no
14523       need_version=no
14524       shlibpath_overrides_runpath=no
14525       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14526       ;;
14527   esac
14528   ;;
14529
14530 sysv4*MP*)
14531   if test -d /usr/nec ;then
14532     version_type=linux
14533     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14534     soname_spec='$libname${shared_ext}.$major'
14535     shlibpath_var=LD_LIBRARY_PATH
14536   fi
14537   ;;
14538
14539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14540   version_type=freebsd-elf
14541   need_lib_prefix=no
14542   need_version=no
14543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14544   soname_spec='${libname}${release}${shared_ext}$major'
14545   shlibpath_var=LD_LIBRARY_PATH
14546   shlibpath_overrides_runpath=yes
14547   hardcode_into_libs=yes
14548   if test "$with_gnu_ld" = yes; then
14549     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14550   else
14551     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14552     case $host_os in
14553       sco3.2v5*)
14554         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14555         ;;
14556     esac
14557   fi
14558   sys_lib_dlsearch_path_spec='/usr/lib'
14559   ;;
14560
14561 tpf*)
14562   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14563   version_type=linux
14564   need_lib_prefix=no
14565   need_version=no
14566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567   shlibpath_var=LD_LIBRARY_PATH
14568   shlibpath_overrides_runpath=no
14569   hardcode_into_libs=yes
14570   ;;
14571
14572 uts4*)
14573   version_type=linux
14574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575   soname_spec='${libname}${release}${shared_ext}$major'
14576   shlibpath_var=LD_LIBRARY_PATH
14577   ;;
14578
14579 *)
14580   dynamic_linker=no
14581   ;;
14582 esac
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14584 $as_echo "$dynamic_linker" >&6; }
14585 test "$dynamic_linker" = no && can_build_shared=no
14586
14587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14588 if test "$GCC" = yes; then
14589   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14590 fi
14591
14592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14593   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14594 fi
14595 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14596   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14597 fi
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14635 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14636 hardcode_action_CXX=
14637 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14638    test -n "$runpath_var_CXX" ||
14639    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14640
14641   # We can hardcode non-existent directories.
14642   if test "$hardcode_direct_CXX" != no &&
14643      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14644      # have to relink, otherwise we might link with an installed library
14645      # when we should be linking with a yet-to-be-installed one
14646      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14647      test "$hardcode_minus_L_CXX" != no; then
14648     # Linking always hardcodes the temporary library directory.
14649     hardcode_action_CXX=relink
14650   else
14651     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14652     hardcode_action_CXX=immediate
14653   fi
14654 else
14655   # We cannot hardcode anything, or else we can only hardcode existing
14656   # directories.
14657   hardcode_action_CXX=unsupported
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14660 $as_echo "$hardcode_action_CXX" >&6; }
14661
14662 if test "$hardcode_action_CXX" = relink ||
14663    test "$inherit_rpath_CXX" = yes; then
14664   # Fast installation is not supported
14665   enable_fast_install=no
14666 elif test "$shlibpath_overrides_runpath" = yes ||
14667      test "$enable_shared" = no; then
14668   # Fast installation is not necessary
14669   enable_fast_install=needless
14670 fi
14671
14672
14673
14674
14675
14676
14677
14678   fi # test -n "$compiler"
14679
14680   CC=$lt_save_CC
14681   LDCXX=$LD
14682   LD=$lt_save_LD
14683   GCC=$lt_save_GCC
14684   with_gnu_ld=$lt_save_with_gnu_ld
14685   lt_cv_path_LDCXX=$lt_cv_path_LD
14686   lt_cv_path_LD=$lt_save_path_LD
14687   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14688   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14689 fi # test "$_lt_caught_CXX_error" != yes
14690
14691 ac_ext=cpp
14692 ac_cpp='$CXXCPP $CPPFLAGS'
14693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709         ac_config_commands="$ac_config_commands libtool"
14710
14711
14712
14713
14714 # Only expand once:
14715
14716
14717
14718
14719 # Check whether some low-level functions/files are available
14720
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14722 $as_echo_n "checking for ANSI C header files... " >&6; }
14723 if test "${ac_cv_header_stdc+set}" = set; then :
14724   $as_echo_n "(cached) " >&6
14725 else
14726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h.  */
14728 #include <stdlib.h>
14729 #include <stdarg.h>
14730 #include <string.h>
14731 #include <float.h>
14732
14733 int
14734 main ()
14735 {
14736
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 if ac_fn_cxx_try_compile "$LINENO"; then :
14742   ac_cv_header_stdc=yes
14743 else
14744   ac_cv_header_stdc=no
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747
14748 if test $ac_cv_header_stdc = yes; then
14749   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h.  */
14752 #include <string.h>
14753
14754 _ACEOF
14755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14756   $EGREP "memchr" >/dev/null 2>&1; then :
14757
14758 else
14759   ac_cv_header_stdc=no
14760 fi
14761 rm -f conftest*
14762
14763 fi
14764
14765 if test $ac_cv_header_stdc = yes; then
14766   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h.  */
14769 #include <stdlib.h>
14770
14771 _ACEOF
14772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14773   $EGREP "free" >/dev/null 2>&1; then :
14774
14775 else
14776   ac_cv_header_stdc=no
14777 fi
14778 rm -f conftest*
14779
14780 fi
14781
14782 if test $ac_cv_header_stdc = yes; then
14783   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14784   if test "$cross_compiling" = yes; then :
14785   :
14786 else
14787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h.  */
14789 #include <ctype.h>
14790 #include <stdlib.h>
14791 #if ((' ' & 0x0FF) == 0x020)
14792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14794 #else
14795 # define ISLOWER(c) \
14796                    (('a' <= (c) && (c) <= 'i') \
14797                      || ('j' <= (c) && (c) <= 'r') \
14798                      || ('s' <= (c) && (c) <= 'z'))
14799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14800 #endif
14801
14802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14803 int
14804 main ()
14805 {
14806   int i;
14807   for (i = 0; i < 256; i++)
14808     if (XOR (islower (i), ISLOWER (i))
14809         || toupper (i) != TOUPPER (i))
14810       return 2;
14811   return 0;
14812 }
14813 _ACEOF
14814 if ac_fn_cxx_try_run "$LINENO"; then :
14815
14816 else
14817   ac_cv_header_stdc=no
14818 fi
14819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14820   conftest.$ac_objext conftest.beam conftest.$ac_ext
14821 fi
14822
14823 fi
14824 fi
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14826 $as_echo "$ac_cv_header_stdc" >&6; }
14827 if test $ac_cv_header_stdc = yes; then
14828
14829 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14830
14831 fi
14832
14833
14834 # These are tested for by AC_HEADER_STDC, but I check again to set the var
14835 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14836 if test "x$ac_cv_header_stdint_h" = x""yes; then :
14837   ac_cv_have_stdint_h=1
14838 else
14839   ac_cv_have_stdint_h=0
14840 fi
14841
14842
14843 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14844 if test "x$ac_cv_header_sys_types_h" = x""yes; then :
14845   ac_cv_have_systypes_h=1
14846 else
14847   ac_cv_have_systypes_h=0
14848 fi
14849
14850
14851 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14852 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
14853   ac_cv_have_inttypes_h=1
14854 else
14855   ac_cv_have_inttypes_h=0
14856 fi
14857
14858
14859 for ac_header in unistd.h
14860 do :
14861   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14862 if test "x$ac_cv_header_unistd_h" = x""yes; then :
14863   cat >>confdefs.h <<_ACEOF
14864 #define HAVE_UNISTD_H 1
14865 _ACEOF
14866  ac_cv_have_unistd_h=1
14867 else
14868   ac_cv_have_unistd_h=0
14869 fi
14870
14871 done
14872
14873 for ac_header in syscall.h
14874 do :
14875   ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
14876 if test "x$ac_cv_header_syscall_h" = x""yes; then :
14877   cat >>confdefs.h <<_ACEOF
14878 #define HAVE_SYSCALL_H 1
14879 _ACEOF
14880
14881 fi
14882
14883 done
14884
14885 for ac_header in sys/syscall.h
14886 do :
14887   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
14888 if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
14889   cat >>confdefs.h <<_ACEOF
14890 #define HAVE_SYS_SYSCALL_H 1
14891 _ACEOF
14892
14893 fi
14894
14895 done
14896
14897 # For backtrace with glibc.
14898 for ac_header in execinfo.h
14899 do :
14900   ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
14901 if test "x$ac_cv_header_execinfo_h" = x""yes; then :
14902   cat >>confdefs.h <<_ACEOF
14903 #define HAVE_EXECINFO_H 1
14904 _ACEOF
14905
14906 fi
14907
14908 done
14909
14910 # For backtrace with libunwind.
14911 for ac_header in libunwind.h
14912 do :
14913   ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
14914 if test "x$ac_cv_header_libunwind_h" = x""yes; then :
14915   cat >>confdefs.h <<_ACEOF
14916 #define HAVE_LIBUNWIND_H 1
14917 _ACEOF
14918  ac_cv_have_libunwind_h=1
14919 else
14920   ac_cv_have_libunwind_h=0
14921 fi
14922
14923 done
14924
14925 for ac_header in ucontext.h
14926 do :
14927   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
14928 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
14929   cat >>confdefs.h <<_ACEOF
14930 #define HAVE_UCONTEXT_H 1
14931 _ACEOF
14932
14933 fi
14934
14935 done
14936
14937 for ac_header in sys/utsname.h
14938 do :
14939   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14940 if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
14941   cat >>confdefs.h <<_ACEOF
14942 #define HAVE_SYS_UTSNAME_H 1
14943 _ACEOF
14944
14945 fi
14946
14947 done
14948
14949 for ac_header in pwd.h
14950 do :
14951   ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14952 if test "x$ac_cv_header_pwd_h" = x""yes; then :
14953   cat >>confdefs.h <<_ACEOF
14954 #define HAVE_PWD_H 1
14955 _ACEOF
14956
14957 fi
14958
14959 done
14960
14961 for ac_header in syslog.h
14962 do :
14963   ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14964 if test "x$ac_cv_header_syslog_h" = x""yes; then :
14965   cat >>confdefs.h <<_ACEOF
14966 #define HAVE_SYSLOG_H 1
14967 _ACEOF
14968
14969 fi
14970
14971 done
14972
14973 for ac_header in sys/time.h
14974 do :
14975   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14976 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
14977   cat >>confdefs.h <<_ACEOF
14978 #define HAVE_SYS_TIME_H 1
14979 _ACEOF
14980
14981 fi
14982
14983 done
14984
14985 for ac_header in glob.h
14986 do :
14987   ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
14988 if test "x$ac_cv_header_glob_h" = x""yes; then :
14989   cat >>confdefs.h <<_ACEOF
14990 #define HAVE_GLOB_H 1
14991 _ACEOF
14992
14993 fi
14994
14995 done
14996
14997
14998 # The cast to long int works around a bug in the HP C Compiler
14999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15001 # This bug is HP SR number 8606223364.
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15003 $as_echo_n "checking size of void *... " >&6; }
15004 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15005   $as_echo_n "(cached) " >&6
15006 else
15007   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15008
15009 else
15010   if test "$ac_cv_type_void_p" = yes; then
15011      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15013 { as_fn_set_status 77
15014 as_fn_error "cannot compute sizeof (void *)
15015 See \`config.log' for more details." "$LINENO" 5; }; }
15016    else
15017      ac_cv_sizeof_void_p=0
15018    fi
15019 fi
15020
15021 fi
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15023 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15024
15025
15026
15027 cat >>confdefs.h <<_ACEOF
15028 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15029 _ACEOF
15030
15031
15032
15033 # These are the types I need.  We look for them in either stdint.h,
15034 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15035 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15036 if test "x$ac_cv_type_uint16_t" = x""yes; then :
15037   ac_cv_have_uint16_t=1
15038 else
15039   ac_cv_have_uint16_t=0
15040 fi
15041
15042 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15043 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
15044   ac_cv_have_u_int16_t=1
15045 else
15046   ac_cv_have_u_int16_t=0
15047 fi
15048
15049 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15050 if test "x$ac_cv_type___uint16" = x""yes; then :
15051   ac_cv_have___uint16=1
15052 else
15053   ac_cv_have___uint16=0
15054 fi
15055
15056
15057 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15058 if test "x$ac_cv_func_sigaltstack" = x""yes; then :
15059
15060 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15061
15062 fi
15063
15064 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15065 if test "x$ac_cv_func_dladdr" = x""yes; then :
15066
15067 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15068
15069 fi
15070
15071 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15072 if test "x$ac_cv_func_fcntl" = x""yes; then :
15073
15074 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15075
15076 fi
15077
15078
15079
15080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15081 $as_echo_n "checking for __attribute__... " >&6; }
15082   if test "${ac_cv___attribute__+set}" = set; then :
15083   $as_echo_n "(cached) " >&6
15084 else
15085
15086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h.  */
15088 #include <stdlib.h>
15089        static void foo(void) __attribute__ ((unused));
15090        void foo(void) { exit(1); }
15091 int
15092 main ()
15093 {
15094
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 if ac_fn_cxx_try_compile "$LINENO"; then :
15100   ac_cv___attribute__=yes
15101 else
15102   ac_cv___attribute__=no
15103
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15106 fi
15107
15108   if test "$ac_cv___attribute__" = "yes"; then
15109
15110 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15111
15112   fi
15113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15114 $as_echo "$ac_cv___attribute__" >&6; }
15115
15116 # We only care about these two attributes.
15117 if test x"$ac_cv___attribute__" = x"yes"; then
15118   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15119   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15120 else
15121   ac_cv___attribute___noreturn=
15122   ac_cv___attribute___printf_4_5=
15123 fi
15124
15125
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15127 $as_echo_n "checking for __builtin_expect... " >&6; }
15128   if test "${ac_cv___builtin_expect+set}" = set; then :
15129   $as_echo_n "(cached) " >&6
15130 else
15131
15132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h.  */
15134 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15135 int
15136 main ()
15137 {
15138
15139   ;
15140   return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_cxx_try_compile "$LINENO"; then :
15144   ac_cv___builtin_expect=yes
15145 else
15146   ac_cv___builtin_expect=no
15147
15148 fi
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15150 fi
15151
15152   if test "$ac_cv___builtin_expect" = "yes"; then
15153
15154 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15155
15156   fi
15157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15158 $as_echo "$ac_cv___builtin_expect" >&6; }
15159
15160 if test x"$ac_cv___builtin_expect" = x"yes"; then
15161   ac_cv_have___builtin_expect=1
15162 else
15163   ac_cv_have___builtin_expect=0
15164 fi
15165
15166
15167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15168 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15169   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then :
15170   $as_echo_n "(cached) " >&6
15171 else
15172
15173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h.  */
15175
15176 int
15177 main ()
15178 {
15179 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_cxx_try_link "$LINENO"; then :
15185   ac_cv___sync_val_compare_and_swap=yes
15186 else
15187   ac_cv___sync_val_compare_and_swap=no
15188
15189 fi
15190 rm -f core conftest.err conftest.$ac_objext \
15191     conftest$ac_exeext conftest.$ac_ext
15192 fi
15193
15194   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15195
15196 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15197
15198   fi
15199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15200 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15201
15202
15203 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15204 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15205 # Check whether --enable-frame_pointers was given.
15206 if test "${enable_frame_pointers+set}" = set; then :
15207   enableval=$enable_frame_pointers;
15208 else
15209   enable_frame_pointers=no
15210 fi
15211
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h.  */
15214
15215 int
15216 main ()
15217 {
15218 return __x86_64__ == 1 ? 0 : 1
15219   ;
15220   return 0;
15221 }
15222 _ACEOF
15223 if ac_fn_cxx_try_compile "$LINENO"; then :
15224   is_x86_64=yes
15225 else
15226   is_x86_64=no
15227 fi
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229  if test "$enable_frame_pointers" = yes; then
15230   ENABLE_FRAME_POINTERS_TRUE=
15231   ENABLE_FRAME_POINTERS_FALSE='#'
15232 else
15233   ENABLE_FRAME_POINTERS_TRUE='#'
15234   ENABLE_FRAME_POINTERS_FALSE=
15235 fi
15236
15237  if test "$is_x86_64" = yes; then
15238   X86_64_TRUE=
15239   X86_64_FALSE='#'
15240 else
15241   X86_64_TRUE='#'
15242   X86_64_FALSE=
15243 fi
15244
15245
15246 # Some of the code in this directory depends on pthreads
15247
15248
15249
15250 ac_ext=c
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255
15256 acx_pthread_ok=no
15257
15258 # We used to check for pthread.h first, but this fails if pthread.h
15259 # requires special compiler flags (e.g. on True64 or Sequent).
15260 # It gets checked for in the link test anyway.
15261
15262 # First of all, check if the user has set any of the PTHREAD_LIBS,
15263 # etcetera environment variables, and if threads linking works using
15264 # them:
15265 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15266         save_CFLAGS="$CFLAGS"
15267         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15268         save_LIBS="$LIBS"
15269         LIBS="$PTHREAD_LIBS $LIBS"
15270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15271 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15272         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h.  */
15274
15275 /* Override any GCC internal prototype to avoid an error.
15276    Use char because int might match the return type of a GCC
15277    builtin and then its argument prototype would still apply.  */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 char pthread_join ();
15282 int
15283 main ()
15284 {
15285 return pthread_join ();
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 if ac_fn_c_try_link "$LINENO"; then :
15291   acx_pthread_ok=yes
15292 fi
15293 rm -f core conftest.err conftest.$ac_objext \
15294     conftest$ac_exeext conftest.$ac_ext
15295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15296 $as_echo "$acx_pthread_ok" >&6; }
15297         if test x"$acx_pthread_ok" = xno; then
15298                 PTHREAD_LIBS=""
15299                 PTHREAD_CFLAGS=""
15300         fi
15301         LIBS="$save_LIBS"
15302         CFLAGS="$save_CFLAGS"
15303 fi
15304
15305 # We must check for the threads library under a number of different
15306 # names; the ordering is very important because some systems
15307 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15308 # libraries is broken (non-POSIX).
15309
15310 # Create a list of thread flags to try.  Items starting with a "-" are
15311 # C compiler flags, and other items are library names, except for "none"
15312 # which indicates that we try without any flags at all, and "pthread-config"
15313 # which is a program returning the flags for the Pth emulation library.
15314
15315 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15316
15317 # The ordering *is* (sometimes) important.  Some notes on the
15318 # individual items follow:
15319
15320 # pthreads: AIX (must check this before -lpthread)
15321 # none: in case threads are in libc; should be tried before -Kthread and
15322 #       other compiler flags to prevent continual compiler warnings
15323 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15324 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15325 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15326 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15327 # -pthreads: Solaris/gcc
15328 # -mthreads: Mingw32/gcc, Lynx/gcc
15329 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15330 #      doesn't hurt to check since this sometimes defines pthreads too;
15331 #      also defines -D_REENTRANT)
15332 #      ... -mt is also the pthreads flag for HP/aCC
15333 # pthread: Linux, etcetera
15334 # --thread-safe: KAI C++
15335 # pthread-config: use pthread-config program (for GNU Pth library)
15336
15337 case "${host_cpu}-${host_os}" in
15338         *solaris*)
15339
15340         # On Solaris (at least, for some versions), libc contains stubbed
15341         # (non-functional) versions of the pthreads routines, so link-based
15342         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15343         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15344         # a function called by this macro, so we could check for that, but
15345         # who knows whether they'll stub that too in a future libc.)  So,
15346         # we'll just look for -pthreads and -lpthread first:
15347
15348         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15349         ;;
15350 esac
15351
15352 if test x"$acx_pthread_ok" = xno; then
15353 for flag in $acx_pthread_flags; do
15354
15355         case $flag in
15356                 none)
15357                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15358 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15359                 ;;
15360
15361                 -*)
15362                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15363 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15364                 PTHREAD_CFLAGS="$flag"
15365                 ;;
15366
15367                 pthread-config)
15368                 # Extract the first word of "pthread-config", so it can be a program name with args.
15369 set dummy pthread-config; ac_word=$2
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15371 $as_echo_n "checking for $ac_word... " >&6; }
15372 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
15373   $as_echo_n "(cached) " >&6
15374 else
15375   if test -n "$acx_pthread_config"; then
15376   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15377 else
15378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15379 for as_dir in $PATH
15380 do
15381   IFS=$as_save_IFS
15382   test -z "$as_dir" && as_dir=.
15383     for ac_exec_ext in '' $ac_executable_extensions; do
15384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15385     ac_cv_prog_acx_pthread_config="yes"
15386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15387     break 2
15388   fi
15389 done
15390   done
15391 IFS=$as_save_IFS
15392
15393   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15394 fi
15395 fi
15396 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15397 if test -n "$acx_pthread_config"; then
15398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15399 $as_echo "$acx_pthread_config" >&6; }
15400 else
15401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402 $as_echo "no" >&6; }
15403 fi
15404
15405
15406                 if test x"$acx_pthread_config" = xno; then continue; fi
15407                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15408                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15409                 ;;
15410
15411                 *)
15412                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15413 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15414                 PTHREAD_LIBS="-l$flag"
15415                 ;;
15416         esac
15417
15418         save_LIBS="$LIBS"
15419         save_CFLAGS="$CFLAGS"
15420         LIBS="$PTHREAD_LIBS $LIBS"
15421         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15422
15423         # Check for various functions.  We must include pthread.h,
15424         # since some functions may be macros.  (On the Sequent, we
15425         # need a special flag -Kthread to make this header compile.)
15426         # We check for pthread_join because it is in -lpthread on IRIX
15427         # while pthread_create is in libc.  We check for pthread_attr_init
15428         # due to DEC craziness with -lpthreads.  We check for
15429         # pthread_cleanup_push because it is one of the few pthread
15430         # functions on Solaris that doesn't have a non-functional libc stub.
15431         # We try pthread_create on general principles.
15432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h.  */
15434 #include <pthread.h>
15435 int
15436 main ()
15437 {
15438 pthread_t th; pthread_join(th, 0);
15439                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15440                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 if ac_fn_c_try_link "$LINENO"; then :
15446   acx_pthread_ok=yes
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext \
15449     conftest$ac_exeext conftest.$ac_ext
15450
15451         LIBS="$save_LIBS"
15452         CFLAGS="$save_CFLAGS"
15453
15454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15455 $as_echo "$acx_pthread_ok" >&6; }
15456         if test "x$acx_pthread_ok" = xyes; then
15457                 break;
15458         fi
15459
15460         PTHREAD_LIBS=""
15461         PTHREAD_CFLAGS=""
15462 done
15463 fi
15464
15465 # Various other checks:
15466 if test "x$acx_pthread_ok" = xyes; then
15467         save_LIBS="$LIBS"
15468         LIBS="$PTHREAD_LIBS $LIBS"
15469         save_CFLAGS="$CFLAGS"
15470         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15471
15472         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15474 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15475         attr_name=unknown
15476         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15477             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h.  */
15479 #include <pthread.h>
15480 int
15481 main ()
15482 {
15483 int attr=$attr; return attr;
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 if ac_fn_c_try_link "$LINENO"; then :
15489   attr_name=$attr; break
15490 fi
15491 rm -f core conftest.err conftest.$ac_objext \
15492     conftest$ac_exeext conftest.$ac_ext
15493         done
15494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15495 $as_echo "$attr_name" >&6; }
15496         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15497
15498 cat >>confdefs.h <<_ACEOF
15499 #define PTHREAD_CREATE_JOINABLE $attr_name
15500 _ACEOF
15501
15502         fi
15503
15504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15505 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15506         flag=no
15507         case "${host_cpu}-${host_os}" in
15508             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15509             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15510         esac
15511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15512 $as_echo "${flag}" >&6; }
15513         if test "x$flag" != xno; then
15514             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15515         fi
15516
15517         LIBS="$save_LIBS"
15518         CFLAGS="$save_CFLAGS"
15519         # More AIX lossage: must compile with xlc_r or cc_r
15520         if test x"$GCC" != xyes; then
15521           for ac_prog in xlc_r cc_r
15522 do
15523   # Extract the first word of "$ac_prog", so it can be a program name with args.
15524 set dummy $ac_prog; ac_word=$2
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526 $as_echo_n "checking for $ac_word... " >&6; }
15527 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   if test -n "$PTHREAD_CC"; then
15531   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15532 else
15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534 for as_dir in $PATH
15535 do
15536   IFS=$as_save_IFS
15537   test -z "$as_dir" && as_dir=.
15538     for ac_exec_ext in '' $ac_executable_extensions; do
15539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15540     ac_cv_prog_PTHREAD_CC="$ac_prog"
15541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15542     break 2
15543   fi
15544 done
15545   done
15546 IFS=$as_save_IFS
15547
15548 fi
15549 fi
15550 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15551 if test -n "$PTHREAD_CC"; then
15552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15553 $as_echo "$PTHREAD_CC" >&6; }
15554 else
15555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15557 fi
15558
15559
15560   test -n "$PTHREAD_CC" && break
15561 done
15562 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15563
15564         else
15565           PTHREAD_CC=$CC
15566         fi
15567
15568         # The next part tries to detect GCC inconsistency with -shared on some
15569         # architectures and systems. The problem is that in certain
15570         # configurations, when -shared is specified, GCC "forgets" to
15571         # internally use various flags which are still necessary.
15572
15573         #
15574         # Prepare the flags
15575         #
15576         save_CFLAGS="$CFLAGS"
15577         save_LIBS="$LIBS"
15578         save_CC="$CC"
15579
15580         # Try with the flags determined by the earlier checks.
15581         #
15582         # -Wl,-z,defs forces link-time symbol resolution, so that the
15583         # linking checks with -shared actually have any value
15584         #
15585         # FIXME: -fPIC is required for -shared on many architectures,
15586         # so we specify it here, but the right way would probably be to
15587         # properly detect whether it is actually required.
15588         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15589         LIBS="$PTHREAD_LIBS $LIBS"
15590         CC="$PTHREAD_CC"
15591
15592         # In order not to create several levels of indentation, we test
15593         # the value of "$done" until we find the cure or run out of ideas.
15594         done="no"
15595
15596         # First, make sure the CFLAGS we added are actually accepted by our
15597         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
15598         # then we can't do this test.
15599         if test x"$done" = xno; then
15600            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15601 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15602            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h.  */
15604
15605 int
15606 main ()
15607 {
15608
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 if ac_fn_c_try_link "$LINENO"; then :
15614
15615 else
15616   done=yes
15617 fi
15618 rm -f core conftest.err conftest.$ac_objext \
15619     conftest$ac_exeext conftest.$ac_ext
15620
15621            if test "x$done" = xyes ; then
15622               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15623 $as_echo "no" >&6; }
15624            else
15625               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15626 $as_echo "yes" >&6; }
15627            fi
15628         fi
15629
15630         if test x"$done" = xno; then
15631            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15632 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15633            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h.  */
15635 #include <pthread.h>
15636 int
15637 main ()
15638 {
15639 pthread_t th; pthread_join(th, 0);
15640               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15641               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15642   ;
15643   return 0;
15644 }
15645 _ACEOF
15646 if ac_fn_c_try_link "$LINENO"; then :
15647   done=yes
15648 fi
15649 rm -f core conftest.err conftest.$ac_objext \
15650     conftest$ac_exeext conftest.$ac_ext
15651
15652            if test "x$done" = xyes; then
15653               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15654 $as_echo "yes" >&6; }
15655            else
15656               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15657 $as_echo "no" >&6; }
15658            fi
15659         fi
15660
15661         #
15662         # Linux gcc on some architectures such as mips/mipsel forgets
15663         # about -lpthread
15664         #
15665         if test x"$done" = xno; then
15666            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15667 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15668            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15669            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h.  */
15671 #include <pthread.h>
15672 int
15673 main ()
15674 {
15675 pthread_t th; pthread_join(th, 0);
15676               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15677               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 if ac_fn_c_try_link "$LINENO"; then :
15683   done=yes
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext \
15686     conftest$ac_exeext conftest.$ac_ext
15687
15688            if test "x$done" = xyes; then
15689               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15690 $as_echo "yes" >&6; }
15691               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15692            else
15693               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15695            fi
15696         fi
15697         #
15698         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15699         #
15700         if test x"$done" = xno; then
15701            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15702 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15703            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15704            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h.  */
15706 #include <pthread.h>
15707 int
15708 main ()
15709 {
15710 pthread_t th; pthread_join(th, 0);
15711                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15712                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 if ac_fn_c_try_link "$LINENO"; then :
15718   done=yes
15719 fi
15720 rm -f core conftest.err conftest.$ac_objext \
15721     conftest$ac_exeext conftest.$ac_ext
15722
15723            if test "x$done" = xyes; then
15724               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15725 $as_echo "yes" >&6; }
15726               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15727            else
15728               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 $as_echo "no" >&6; }
15730            fi
15731         fi
15732         if test x"$done" = xno; then
15733            # OK, we have run out of ideas
15734            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15735 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15736
15737            # so it's not safe to assume that we may use pthreads
15738            acx_pthread_ok=no
15739         fi
15740
15741         CFLAGS="$save_CFLAGS"
15742         LIBS="$save_LIBS"
15743         CC="$save_CC"
15744 else
15745         PTHREAD_CC="$CC"
15746 fi
15747
15748
15749
15750
15751
15752 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15753 if test x"$acx_pthread_ok" = xyes; then
15754
15755 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15756
15757         :
15758 else
15759         acx_pthread_ok=no
15760
15761 fi
15762 ac_ext=cpp
15763 ac_cpp='$CXXCPP $CPPFLAGS'
15764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15767
15768
15769 if test x"$acx_pthread_ok" = x"yes"; then
15770   # To make libglog depend on libpthread on Linux, we need to add
15771   # -lpthread in addition to -pthread.
15772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
15773 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
15774 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
15775   $as_echo_n "(cached) " >&6
15776 else
15777   ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-lpthread  $LIBS"
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h.  */
15781
15782 /* Override any GCC internal prototype to avoid an error.
15783    Use char because int might match the return type of a GCC
15784    builtin and then its argument prototype would still apply.  */
15785 #ifdef __cplusplus
15786 extern "C"
15787 #endif
15788 char pthread_self ();
15789 int
15790 main ()
15791 {
15792 return pthread_self ();
15793   ;
15794   return 0;
15795 }
15796 _ACEOF
15797 if ac_fn_cxx_try_link "$LINENO"; then :
15798   ac_cv_lib_pthread_pthread_self=yes
15799 else
15800   ac_cv_lib_pthread_pthread_self=no
15801 fi
15802 rm -f core conftest.err conftest.$ac_objext \
15803     conftest$ac_exeext conftest.$ac_ext
15804 LIBS=$ac_check_lib_save_LIBS
15805 fi
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
15807 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
15808 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
15809   cat >>confdefs.h <<_ACEOF
15810 #define HAVE_LIBPTHREAD 1
15811 _ACEOF
15812
15813   LIBS="-lpthread $LIBS"
15814
15815 fi
15816
15817 fi
15818
15819 # Check if there is google-gflags library installed.
15820 SAVE_CFLAGS="$CFLAGS"
15821 SAVE_LIBS="$LIBS"
15822
15823 # Check whether --with-gflags was given.
15824 if test "${with_gflags+set}" = set; then :
15825   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
15826   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
15827   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
15828   LIBS="$LIBS $GFLAGS_LIBS"
15829
15830 fi
15831
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
15833 $as_echo_n "checking for main in -lgflags... " >&6; }
15834 if test "${ac_cv_lib_gflags_main+set}" = set; then :
15835   $as_echo_n "(cached) " >&6
15836 else
15837   ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lgflags  $LIBS"
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h.  */
15841
15842
15843 int
15844 main ()
15845 {
15846 return main ();
15847   ;
15848   return 0;
15849 }
15850 _ACEOF
15851 if ac_fn_cxx_try_link "$LINENO"; then :
15852   ac_cv_lib_gflags_main=yes
15853 else
15854   ac_cv_lib_gflags_main=no
15855 fi
15856 rm -f core conftest.err conftest.$ac_objext \
15857     conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15859 fi
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
15861 $as_echo "$ac_cv_lib_gflags_main" >&6; }
15862 if test "x$ac_cv_lib_gflags_main" = x""yes; then :
15863   ac_cv_have_libgflags=1
15864 else
15865   ac_cv_have_libgflags=0
15866 fi
15867
15868 if test x"$ac_cv_have_libgflags" = x"1"; then
15869
15870 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
15871
15872   if test x"$GFLAGS_LIBS" = x""; then
15873     GFLAGS_LIBS="-lgflags"
15874   fi
15875 else
15876   GFLAGS_CFLAGS=
15877   GFLAGS_LIBS=
15878 fi
15879 CFLAGS="$SAVE_CFLAGS"
15880 LIBS="$SAVE_LIBS"
15881
15882 # TODO(hamaji): Use official m4 macros provided by testing libraries
15883 #               once the m4 macro of Google Mocking becomes ready.
15884 # Check if there is Google Test library installed.
15885 # Extract the first word of "gtest-config", so it can be a program name with args.
15886 set dummy gtest-config; ac_word=$2
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15888 $as_echo_n "checking for $ac_word... " >&6; }
15889 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then :
15890   $as_echo_n "(cached) " >&6
15891 else
15892   if test -n "$GTEST_CONFIG"; then
15893   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
15894 else
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15897 do
15898   IFS=$as_save_IFS
15899   test -z "$as_dir" && as_dir=.
15900     for ac_exec_ext in '' $ac_executable_extensions; do
15901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15902     ac_cv_prog_GTEST_CONFIG=""yes""
15903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15904     break 2
15905   fi
15906 done
15907   done
15908 IFS=$as_save_IFS
15909
15910 fi
15911 fi
15912 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
15913 if test -n "$GTEST_CONFIG"; then
15914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
15915 $as_echo "$GTEST_CONFIG" >&6; }
15916 else
15917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15919 fi
15920
15921
15922 if test x"$GTEST_CONFIG" = "xyes"; then
15923   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
15924   GTEST_LIBS=`gtest-config --ldflags --libs`
15925
15926 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
15927
15928
15929   # Check if there is Google Mocking library installed.
15930   # Extract the first word of "gmock-config", so it can be a program name with args.
15931 set dummy gmock-config; ac_word=$2
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15933 $as_echo_n "checking for $ac_word... " >&6; }
15934 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then :
15935   $as_echo_n "(cached) " >&6
15936 else
15937   if test -n "$GMOCK_CONFIG"; then
15938   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
15939 else
15940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15941 for as_dir in $PATH
15942 do
15943   IFS=$as_save_IFS
15944   test -z "$as_dir" && as_dir=.
15945     for ac_exec_ext in '' $ac_executable_extensions; do
15946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15947     ac_cv_prog_GMOCK_CONFIG=""yes""
15948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15949     break 2
15950   fi
15951 done
15952   done
15953 IFS=$as_save_IFS
15954
15955 fi
15956 fi
15957 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
15958 if test -n "$GMOCK_CONFIG"; then
15959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
15960 $as_echo "$GMOCK_CONFIG" >&6; }
15961 else
15962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963 $as_echo "no" >&6; }
15964 fi
15965
15966
15967   if test x"$GMOCK_CONFIG" = "xyes"; then
15968     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
15969     GMOCK_LIBS=`gmock-config --ldflags --libs`
15970
15971 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
15972
15973   else
15974     # We don't run test cases which use Google Mocking framework.
15975     GMOCK_CFLAGS=
15976     GMOCK_LIBS=
15977   fi
15978 else
15979   # We'll use src/googletest.h for our unittests.
15980   GTEST_CFLAGS=
15981   GTEST_LIBS=
15982 fi
15983  if test x"$GMOCK_CONFIG" = "xyes"; then
15984   HAVE_GMOCK_TRUE=
15985   HAVE_GMOCK_FALSE='#'
15986 else
15987   HAVE_GMOCK_TRUE='#'
15988   HAVE_GMOCK_FALSE=
15989 fi
15990
15991
15992 # We want to link in libunwind if it exists
15993 UNWIND_LIBS=
15994 # Unfortunately, we need to check the header file in addition to the
15995 # lib file to check if libunwind is available since libunwind-0.98
15996 # doesn't install all necessary header files.
15997 if test x"$ac_cv_have_libunwind_h" = x"1"; then
15998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
15999 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16000 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
16001   $as_echo_n "(cached) " >&6
16002 else
16003   ac_check_lib_save_LIBS=$LIBS
16004 LIBS="-lunwind  $LIBS"
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h.  */
16007
16008 /* Override any GCC internal prototype to avoid an error.
16009    Use char because int might match the return type of a GCC
16010    builtin and then its argument prototype would still apply.  */
16011 #ifdef __cplusplus
16012 extern "C"
16013 #endif
16014 char backtrace ();
16015 int
16016 main ()
16017 {
16018 return backtrace ();
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_cxx_try_link "$LINENO"; then :
16024   ac_cv_lib_unwind_backtrace=yes
16025 else
16026   ac_cv_lib_unwind_backtrace=no
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext \
16029     conftest$ac_exeext conftest.$ac_ext
16030 LIBS=$ac_check_lib_save_LIBS
16031 fi
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16033 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16034 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
16035   UNWIND_LIBS=-lunwind
16036 fi
16037
16038 fi
16039
16040 if test x"$UNWIND_LIBS" != x""; then
16041
16042 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16043
16044 fi
16045
16046 # We'd like to use read/write locks in several places in the code.
16047 # See if our pthreads support extends to that.  Note: for linux, it
16048 # does as long as you define _XOPEN_SOURCE appropriately.
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16050 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16051 if test "${ac_cv_rwlock+set}" = set; then :
16052   $as_echo_n "(cached) " >&6
16053 else
16054
16055  ac_ext=c
16056 ac_cpp='$CPP $CPPFLAGS'
16057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16060
16061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h.  */
16063 #define _XOPEN_SOURCE 500
16064                  #include <pthread.h>
16065 int
16066 main ()
16067 {
16068 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16069                  pthread_rwlock_rdlock(&l);
16070                  return 0;
16071   ;
16072   return 0;
16073 }
16074 _ACEOF
16075 if ac_fn_c_try_compile "$LINENO"; then :
16076   ac_cv_rwlock=yes
16077 else
16078   ac_cv_rwlock=no
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081  ac_ext=cpp
16082 ac_cpp='$CXXCPP $CPPFLAGS'
16083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16086
16087
16088 fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16090 $as_echo "$ac_cv_rwlock" >&6; }
16091 if test "$ac_cv_rwlock" = yes; then
16092
16093 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16094
16095 fi
16096
16097
16098 # Find out what namespace 'normal' STL code lives in, and also what namespace
16099 # the user wants our classes to be defined in
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16101 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16102 if test "${ac_cv_cxx_namespaces+set}" = set; then :
16103   $as_echo_n "(cached) " >&6
16104 else
16105
16106                   ac_ext=cpp
16107 ac_cpp='$CXXCPP $CPPFLAGS'
16108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16111
16112                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h.  */
16114 namespace Outer {
16115                                     namespace Inner { int i = 0; }}
16116 int
16117 main ()
16118 {
16119 using namespace Outer::Inner; return i;
16120   ;
16121   return 0;
16122 }
16123 _ACEOF
16124 if ac_fn_cxx_try_compile "$LINENO"; then :
16125   ac_cv_cxx_namespaces=yes
16126 else
16127   ac_cv_cxx_namespaces=no
16128 fi
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130                   ac_ext=cpp
16131 ac_cpp='$CXXCPP $CPPFLAGS'
16132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16135
16136 fi
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16138 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16139   if test "$ac_cv_cxx_namespaces" = yes; then
16140
16141 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16142
16143   fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16145 $as_echo_n "checking what namespace STL code is in... " >&6; }
16146 if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
16147   $as_echo_n "(cached) " >&6
16148 else
16149
16150
16151       ac_ext=cpp
16152 ac_cpp='$CXXCPP $CPPFLAGS'
16153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16156
16157       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h.  */
16159 #include <vector>
16160 int
16161 main ()
16162 {
16163 vector<int> t; return 0;
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 if ac_fn_cxx_try_compile "$LINENO"; then :
16169   ac_cv_cxx_stl_namespace=none
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h.  */
16174 #include <vector>
16175 int
16176 main ()
16177 {
16178 std::vector<int> t; return 0;
16179   ;
16180   return 0;
16181 }
16182 _ACEOF
16183 if ac_fn_cxx_try_compile "$LINENO"; then :
16184   ac_cv_cxx_stl_namespace=std
16185 fi
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187       ac_ext=cpp
16188 ac_cpp='$CXXCPP $CPPFLAGS'
16189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16192
16193 fi
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16195 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16196    if test "$ac_cv_cxx_stl_namespace" = none; then
16197
16198 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16199
16200    fi
16201    if test "$ac_cv_cxx_stl_namespace" = std; then
16202
16203 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16204
16205    fi
16206
16207 google_namespace_default=google
16208    # Check whether --enable-namespace was given.
16209 if test "${enable_namespace+set}" = set; then :
16210   enableval=$enable_namespace; case "$enableval" in
16211                     yes) google_namespace="$google_namespace_default" ;;
16212                      no) google_namespace="" ;;
16213                       *) google_namespace="$enableval" ;;
16214                   esac
16215 else
16216   google_namespace="$google_namespace_default"
16217 fi
16218
16219    if test -n "$google_namespace"; then
16220      ac_google_namespace="$google_namespace"
16221      ac_google_start_namespace="namespace $google_namespace {"
16222      ac_google_end_namespace="}"
16223    else
16224      ac_google_namespace=""
16225      ac_google_start_namespace=""
16226      ac_google_end_namespace=""
16227    fi
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define GOOGLE_NAMESPACE $ac_google_namespace
16231 _ACEOF
16232
16233
16234 cat >>confdefs.h <<_ACEOF
16235 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16236 _ACEOF
16237
16238
16239 cat >>confdefs.h <<_ACEOF
16240 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16241 _ACEOF
16242
16243
16244
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16246 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16247 if test "${ac_cv_cxx_using_operator+set}" = set; then :
16248   $as_echo_n "(cached) " >&6
16249 else
16250
16251        ac_ext=cpp
16252 ac_cpp='$CXXCPP $CPPFLAGS'
16253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16256
16257        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h.  */
16259 #include <iostream>
16260                        std::ostream& operator<<(std::ostream&, struct s);
16261 int
16262 main ()
16263 {
16264 using ::operator<<; return 0;
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 if ac_fn_cxx_try_compile "$LINENO"; then :
16270   ac_cv_cxx_using_operator=1
16271 else
16272   ac_cv_cxx_using_operator=0
16273 fi
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275       ac_ext=cpp
16276 ac_cpp='$CXXCPP $CPPFLAGS'
16277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16280
16281 fi
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
16283 $as_echo "$ac_cv_cxx_using_operator" >&6; }
16284   if test "$ac_cv_cxx_using_operator" = 1; then
16285
16286 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
16287
16288   fi
16289
16290 for ac_header in ucontext.h
16291 do :
16292   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
16293 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
16294   cat >>confdefs.h <<_ACEOF
16295 #define HAVE_UCONTEXT_H 1
16296 _ACEOF
16297
16298 fi
16299
16300 done
16301
16302    for ac_header in sys/ucontext.h
16303 do :
16304   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
16305 if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then :
16306   cat >>confdefs.h <<_ACEOF
16307 #define HAVE_SYS_UCONTEXT_H 1
16308 _ACEOF
16309
16310 fi
16311
16312 done
16313        # ucontext on OS X 10.6 (at least)
16314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
16315 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
16316    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
16317    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
16318    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
16319    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
16320    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
16321    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
16322    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
16323    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
16324    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
16325    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
16326    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
16327    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
16328    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
16329    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
16330    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
16331    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
16332    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
16333    pc_field_found=false
16334    for pc_field in $pc_fields; do
16335      if ! $pc_field_found; then
16336        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
16337          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h.  */
16339 #define _GNU_SOURCE 1
16340                          #include <sys/ucontext.h>
16341 int
16342 main ()
16343 {
16344 ucontext_t u; return u.$pc_field == 0;
16345   ;
16346   return 0;
16347 }
16348 _ACEOF
16349 if ac_fn_cxx_try_compile "$LINENO"; then :
16350
16351 cat >>confdefs.h <<_ACEOF
16352 #define PC_FROM_UCONTEXT $pc_field
16353 _ACEOF
16354
16355                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16356 $as_echo "$pc_field" >&6; }
16357                         pc_field_found=true
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360        else
16361          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h.  */
16363 #define _GNU_SOURCE 1
16364                          #include <ucontext.h>
16365 int
16366 main ()
16367 {
16368 ucontext_t u; return u.$pc_field == 0;
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 if ac_fn_cxx_try_compile "$LINENO"; then :
16374
16375 cat >>confdefs.h <<_ACEOF
16376 #define PC_FROM_UCONTEXT $pc_field
16377 _ACEOF
16378
16379                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16380 $as_echo "$pc_field" >&6; }
16381                         pc_field_found=true
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384        fi
16385      fi
16386    done
16387    if ! $pc_field_found; then
16388      pc_fields="           sc_eip"  # OpenBSD (i386)
16389      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
16390      for pc_field in $pc_fields; do
16391        if ! $pc_field_found; then
16392          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h.  */
16394 #include <signal.h>
16395 int
16396 main ()
16397 {
16398 ucontext_t u; return u.$pc_field == 0;
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 if ac_fn_cxx_try_compile "$LINENO"; then :
16404
16405 cat >>confdefs.h <<_ACEOF
16406 #define PC_FROM_UCONTEXT $pc_field
16407 _ACEOF
16408
16409                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16410 $as_echo "$pc_field" >&6; }
16411                         pc_field_found=true
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414        fi
16415      done
16416    fi
16417    if ! $pc_field_found; then
16418      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
16419 $as_echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
16420    fi
16421
16422
16423 cat >>confdefs.h <<_ACEOF
16424 #define TEST_SRC_DIR "$srcdir"
16425 _ACEOF
16426
16427
16428 # These are what's needed by logging.h.in and raw_logging.h.in
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451 # Write generated configuration file
16452 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"
16453
16454 ac_config_files="$ac_config_files libglog.pc"
16455
16456 cat >confcache <<\_ACEOF
16457 # This file is a shell script that caches the results of configure
16458 # tests run on this system so they can be shared between configure
16459 # scripts and configure runs, see configure's option --config-cache.
16460 # It is not useful on other systems.  If it contains results you don't
16461 # want to keep, you may remove or edit it.
16462 #
16463 # config.status only pays attention to the cache file if you give it
16464 # the --recheck option to rerun configure.
16465 #
16466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16468 # following values.
16469
16470 _ACEOF
16471
16472 # The following way of writing the cache mishandles newlines in values,
16473 # but we know of no workaround that is simple, portable, and efficient.
16474 # So, we kill variables containing newlines.
16475 # Ultrix sh set writes to stderr and can't be redirected directly,
16476 # and sets the high bit in the cache file unless we assign to the vars.
16477 (
16478   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16479     eval ac_val=\$$ac_var
16480     case $ac_val in #(
16481     *${as_nl}*)
16482       case $ac_var in #(
16483       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16485       esac
16486       case $ac_var in #(
16487       _ | IFS | as_nl) ;; #(
16488       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16489       *) { eval $ac_var=; unset $ac_var;} ;;
16490       esac ;;
16491     esac
16492   done
16493
16494   (set) 2>&1 |
16495     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16496     *${as_nl}ac_space=\ *)
16497       # `set' does not quote correctly, so add quotes: double-quote
16498       # substitution turns \\\\ into \\, and sed turns \\ into \.
16499       sed -n \
16500         "s/'/'\\\\''/g;
16501           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16502       ;; #(
16503     *)
16504       # `set' quotes correctly as required by POSIX, so do not add quotes.
16505       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16506       ;;
16507     esac |
16508     sort
16509 ) |
16510   sed '
16511      /^ac_cv_env_/b end
16512      t clear
16513      :clear
16514      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16515      t end
16516      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16517      :end' >>confcache
16518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16519   if test -w "$cache_file"; then
16520     test "x$cache_file" != "x/dev/null" &&
16521       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16522 $as_echo "$as_me: updating cache $cache_file" >&6;}
16523     cat confcache >$cache_file
16524   else
16525     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16526 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16527   fi
16528 fi
16529 rm -f confcache
16530
16531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16532 # Let make expand exec_prefix.
16533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16534
16535 DEFS=-DHAVE_CONFIG_H
16536
16537 ac_libobjs=
16538 ac_ltlibobjs=
16539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16540   # 1. Remove the extension, and $U if already installed.
16541   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16542   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16543   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16544   #    will be set to the directory where LIBOBJS objects are built.
16545   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16546   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16547 done
16548 LIBOBJS=$ac_libobjs
16549
16550 LTLIBOBJS=$ac_ltlibobjs
16551
16552
16553  if test -n "$EXEEXT"; then
16554   am__EXEEXT_TRUE=
16555   am__EXEEXT_FALSE='#'
16556 else
16557   am__EXEEXT_TRUE='#'
16558   am__EXEEXT_FALSE=
16559 fi
16560
16561 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16562   as_fn_error "conditional \"AMDEP\" was never defined.
16563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16564 fi
16565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16566   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568 fi
16569 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16570   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16572 fi
16573 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
16574   as_fn_error "conditional \"GCC\" was never defined.
16575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16576 fi
16577 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16578   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16580 fi
16581 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
16582   as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
16583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16584 fi
16585 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
16586   as_fn_error "conditional \"X86_64\" was never defined.
16587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16588 fi
16589 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
16590   as_fn_error "conditional \"HAVE_GMOCK\" was never defined.
16591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16592 fi
16593
16594 : ${CONFIG_STATUS=./config.status}
16595 ac_write_fail=0
16596 ac_clean_files_save=$ac_clean_files
16597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16600 as_write_fail=0
16601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16602 #! $SHELL
16603 # Generated by $as_me.
16604 # Run this file to recreate the current configuration.
16605 # Compiler output produced by configure, useful for debugging
16606 # configure, is in config.log if it exists.
16607
16608 debug=false
16609 ac_cs_recheck=false
16610 ac_cs_silent=false
16611
16612 SHELL=\${CONFIG_SHELL-$SHELL}
16613 export SHELL
16614 _ASEOF
16615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16616 ## -------------------- ##
16617 ## M4sh Initialization. ##
16618 ## -------------------- ##
16619
16620 # Be more Bourne compatible
16621 DUALCASE=1; export DUALCASE # for MKS sh
16622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16623   emulate sh
16624   NULLCMD=:
16625   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16626   # is contrary to our usage.  Disable this feature.
16627   alias -g '${1+"$@"}'='"$@"'
16628   setopt NO_GLOB_SUBST
16629 else
16630   case `(set -o) 2>/dev/null` in #(
16631   *posix*) :
16632     set -o posix ;; #(
16633   *) :
16634      ;;
16635 esac
16636 fi
16637
16638
16639 as_nl='
16640 '
16641 export as_nl
16642 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16643 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16646 # Prefer a ksh shell builtin over an external printf program on Solaris,
16647 # but without wasting forks for bash or zsh.
16648 if test -z "$BASH_VERSION$ZSH_VERSION" \
16649     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16650   as_echo='print -r --'
16651   as_echo_n='print -rn --'
16652 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16653   as_echo='printf %s\n'
16654   as_echo_n='printf %s'
16655 else
16656   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16657     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16658     as_echo_n='/usr/ucb/echo -n'
16659   else
16660     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16661     as_echo_n_body='eval
16662       arg=$1;
16663       case $arg in #(
16664       *"$as_nl"*)
16665         expr "X$arg" : "X\\(.*\\)$as_nl";
16666         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16667       esac;
16668       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16669     '
16670     export as_echo_n_body
16671     as_echo_n='sh -c $as_echo_n_body as_echo'
16672   fi
16673   export as_echo_body
16674   as_echo='sh -c $as_echo_body as_echo'
16675 fi
16676
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679   PATH_SEPARATOR=:
16680   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16681     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16682       PATH_SEPARATOR=';'
16683   }
16684 fi
16685
16686
16687 # IFS
16688 # We need space, tab and new line, in precisely that order.  Quoting is
16689 # there to prevent editors from complaining about space-tab.
16690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16691 # splitting by setting IFS to empty value.)
16692 IFS=" ""        $as_nl"
16693
16694 # Find who we are.  Look in the path if we contain no directory separator.
16695 case $0 in #((
16696   *[\\/]* ) as_myself=$0 ;;
16697   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16698 for as_dir in $PATH
16699 do
16700   IFS=$as_save_IFS
16701   test -z "$as_dir" && as_dir=.
16702     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16703   done
16704 IFS=$as_save_IFS
16705
16706      ;;
16707 esac
16708 # We did not find ourselves, most probably we were run as `sh COMMAND'
16709 # in which case we are not to be found in the path.
16710 if test "x$as_myself" = x; then
16711   as_myself=$0
16712 fi
16713 if test ! -f "$as_myself"; then
16714   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16715   exit 1
16716 fi
16717
16718 # Unset variables that we do not need and which cause bugs (e.g. in
16719 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16720 # suppresses any "Segmentation fault" message there.  '((' could
16721 # trigger a bug in pdksh 5.2.14.
16722 for as_var in BASH_ENV ENV MAIL MAILPATH
16723 do eval test x\${$as_var+set} = xset \
16724   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16725 done
16726 PS1='$ '
16727 PS2='> '
16728 PS4='+ '
16729
16730 # NLS nuisances.
16731 LC_ALL=C
16732 export LC_ALL
16733 LANGUAGE=C
16734 export LANGUAGE
16735
16736 # CDPATH.
16737 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16738
16739
16740 # as_fn_error ERROR [LINENO LOG_FD]
16741 # ---------------------------------
16742 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16743 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16744 # script with status $?, using 1 if that was 0.
16745 as_fn_error ()
16746 {
16747   as_status=$?; test $as_status -eq 0 && as_status=1
16748   if test "$3"; then
16749     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16750     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16751   fi
16752   $as_echo "$as_me: error: $1" >&2
16753   as_fn_exit $as_status
16754 } # as_fn_error
16755
16756
16757 # as_fn_set_status STATUS
16758 # -----------------------
16759 # Set $? to STATUS, without forking.
16760 as_fn_set_status ()
16761 {
16762   return $1
16763 } # as_fn_set_status
16764
16765 # as_fn_exit STATUS
16766 # -----------------
16767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16768 as_fn_exit ()
16769 {
16770   set +e
16771   as_fn_set_status $1
16772   exit $1
16773 } # as_fn_exit
16774
16775 # as_fn_unset VAR
16776 # ---------------
16777 # Portably unset VAR.
16778 as_fn_unset ()
16779 {
16780   { eval $1=; unset $1;}
16781 }
16782 as_unset=as_fn_unset
16783 # as_fn_append VAR VALUE
16784 # ----------------------
16785 # Append the text in VALUE to the end of the definition contained in VAR. Take
16786 # advantage of any shell optimizations that allow amortized linear growth over
16787 # repeated appends, instead of the typical quadratic growth present in naive
16788 # implementations.
16789 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16790   eval 'as_fn_append ()
16791   {
16792     eval $1+=\$2
16793   }'
16794 else
16795   as_fn_append ()
16796   {
16797     eval $1=\$$1\$2
16798   }
16799 fi # as_fn_append
16800
16801 # as_fn_arith ARG...
16802 # ------------------
16803 # Perform arithmetic evaluation on the ARGs, and store the result in the
16804 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16805 # must be portable across $(()) and expr.
16806 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16807   eval 'as_fn_arith ()
16808   {
16809     as_val=$(( $* ))
16810   }'
16811 else
16812   as_fn_arith ()
16813   {
16814     as_val=`expr "$@" || test $? -eq 1`
16815   }
16816 fi # as_fn_arith
16817
16818
16819 if expr a : '\(a\)' >/dev/null 2>&1 &&
16820    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16821   as_expr=expr
16822 else
16823   as_expr=false
16824 fi
16825
16826 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16827   as_basename=basename
16828 else
16829   as_basename=false
16830 fi
16831
16832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16833   as_dirname=dirname
16834 else
16835   as_dirname=false
16836 fi
16837
16838 as_me=`$as_basename -- "$0" ||
16839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16840          X"$0" : 'X\(//\)$' \| \
16841          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16842 $as_echo X/"$0" |
16843     sed '/^.*\/\([^/][^/]*\)\/*$/{
16844             s//\1/
16845             q
16846           }
16847           /^X\/\(\/\/\)$/{
16848             s//\1/
16849             q
16850           }
16851           /^X\/\(\/\).*/{
16852             s//\1/
16853             q
16854           }
16855           s/.*/./; q'`
16856
16857 # Avoid depending upon Character Ranges.
16858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16861 as_cr_digits='0123456789'
16862 as_cr_alnum=$as_cr_Letters$as_cr_digits
16863
16864 ECHO_C= ECHO_N= ECHO_T=
16865 case `echo -n x` in #(((((
16866 -n*)
16867   case `echo 'xy\c'` in
16868   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16869   xy)  ECHO_C='\c';;
16870   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16871        ECHO_T=' ';;
16872   esac;;
16873 *)
16874   ECHO_N='-n';;
16875 esac
16876
16877 rm -f conf$$ conf$$.exe conf$$.file
16878 if test -d conf$$.dir; then
16879   rm -f conf$$.dir/conf$$.file
16880 else
16881   rm -f conf$$.dir
16882   mkdir conf$$.dir 2>/dev/null
16883 fi
16884 if (echo >conf$$.file) 2>/dev/null; then
16885   if ln -s conf$$.file conf$$ 2>/dev/null; then
16886     as_ln_s='ln -s'
16887     # ... but there are two gotchas:
16888     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16889     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16890     # In both cases, we have to default to `cp -p'.
16891     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16892       as_ln_s='cp -p'
16893   elif ln conf$$.file conf$$ 2>/dev/null; then
16894     as_ln_s=ln
16895   else
16896     as_ln_s='cp -p'
16897   fi
16898 else
16899   as_ln_s='cp -p'
16900 fi
16901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16902 rmdir conf$$.dir 2>/dev/null
16903
16904
16905 # as_fn_mkdir_p
16906 # -------------
16907 # Create "$as_dir" as a directory, including parents if necessary.
16908 as_fn_mkdir_p ()
16909 {
16910
16911   case $as_dir in #(
16912   -*) as_dir=./$as_dir;;
16913   esac
16914   test -d "$as_dir" || eval $as_mkdir_p || {
16915     as_dirs=
16916     while :; do
16917       case $as_dir in #(
16918       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16919       *) as_qdir=$as_dir;;
16920       esac
16921       as_dirs="'$as_qdir' $as_dirs"
16922       as_dir=`$as_dirname -- "$as_dir" ||
16923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16924          X"$as_dir" : 'X\(//\)[^/]' \| \
16925          X"$as_dir" : 'X\(//\)$' \| \
16926          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16927 $as_echo X"$as_dir" |
16928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16929             s//\1/
16930             q
16931           }
16932           /^X\(\/\/\)[^/].*/{
16933             s//\1/
16934             q
16935           }
16936           /^X\(\/\/\)$/{
16937             s//\1/
16938             q
16939           }
16940           /^X\(\/\).*/{
16941             s//\1/
16942             q
16943           }
16944           s/.*/./; q'`
16945       test -d "$as_dir" && break
16946     done
16947     test -z "$as_dirs" || eval "mkdir $as_dirs"
16948   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16949
16950
16951 } # as_fn_mkdir_p
16952 if mkdir -p . 2>/dev/null; then
16953   as_mkdir_p='mkdir -p "$as_dir"'
16954 else
16955   test -d ./-p && rmdir ./-p
16956   as_mkdir_p=false
16957 fi
16958
16959 if test -x / >/dev/null 2>&1; then
16960   as_test_x='test -x'
16961 else
16962   if ls -dL / >/dev/null 2>&1; then
16963     as_ls_L_option=L
16964   else
16965     as_ls_L_option=
16966   fi
16967   as_test_x='
16968     eval sh -c '\''
16969       if test -d "$1"; then
16970         test -d "$1/.";
16971       else
16972         case $1 in #(
16973         -*)set "./$1";;
16974         esac;
16975         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16976         ???[sx]*):;;*)false;;esac;fi
16977     '\'' sh
16978   '
16979 fi
16980 as_executable_p=$as_test_x
16981
16982 # Sed expression to map a string onto a valid CPP name.
16983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16984
16985 # Sed expression to map a string onto a valid variable name.
16986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16987
16988
16989 exec 6>&1
16990 ## ----------------------------------- ##
16991 ## Main body of $CONFIG_STATUS script. ##
16992 ## ----------------------------------- ##
16993 _ASEOF
16994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16995
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16997 # Save the log message, to keep $0 and so on meaningful, and to
16998 # report actual input values of CONFIG_FILES etc. instead of their
16999 # values after options handling.
17000 ac_log="
17001 This file was extended by glog $as_me 0.3.1, which was
17002 generated by GNU Autoconf 2.65.  Invocation command line was
17003
17004   CONFIG_FILES    = $CONFIG_FILES
17005   CONFIG_HEADERS  = $CONFIG_HEADERS
17006   CONFIG_LINKS    = $CONFIG_LINKS
17007   CONFIG_COMMANDS = $CONFIG_COMMANDS
17008   $ $0 $@
17009
17010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17011 "
17012
17013 _ACEOF
17014
17015 case $ac_config_files in *"
17016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17017 esac
17018
17019 case $ac_config_headers in *"
17020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17021 esac
17022
17023
17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 # Files that config.status was made for.
17026 config_files="$ac_config_files"
17027 config_headers="$ac_config_headers"
17028 config_commands="$ac_config_commands"
17029
17030 _ACEOF
17031
17032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17033 ac_cs_usage="\
17034 \`$as_me' instantiates files and other configuration actions
17035 from templates according to the current configuration.  Unless the files
17036 and actions are specified as TAGs, all are instantiated by default.
17037
17038 Usage: $0 [OPTION]... [TAG]...
17039
17040   -h, --help       print this help, then exit
17041   -V, --version    print version number and configuration settings, then exit
17042       --config     print configuration, then exit
17043   -q, --quiet, --silent
17044                    do not print progress messages
17045   -d, --debug      don't remove temporary files
17046       --recheck    update $as_me by reconfiguring in the same conditions
17047       --file=FILE[:TEMPLATE]
17048                    instantiate the configuration file FILE
17049       --header=FILE[:TEMPLATE]
17050                    instantiate the configuration header FILE
17051
17052 Configuration files:
17053 $config_files
17054
17055 Configuration headers:
17056 $config_headers
17057
17058 Configuration commands:
17059 $config_commands
17060
17061 Report bugs to <opensource@google.com>."
17062
17063 _ACEOF
17064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17065 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17066 ac_cs_version="\\
17067 glog config.status 0.3.1
17068 configured by $0, generated by GNU Autoconf 2.65,
17069   with options \\"\$ac_cs_config\\"
17070
17071 Copyright (C) 2009 Free Software Foundation, Inc.
17072 This config.status script is free software; the Free Software Foundation
17073 gives unlimited permission to copy, distribute and modify it."
17074
17075 ac_pwd='$ac_pwd'
17076 srcdir='$srcdir'
17077 INSTALL='$INSTALL'
17078 MKDIR_P='$MKDIR_P'
17079 AWK='$AWK'
17080 test -n "\$AWK" || AWK=awk
17081 _ACEOF
17082
17083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084 # The default lists apply if the user does not specify any file.
17085 ac_need_defaults=:
17086 while test $# != 0
17087 do
17088   case $1 in
17089   --*=*)
17090     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17091     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17092     ac_shift=:
17093     ;;
17094   *)
17095     ac_option=$1
17096     ac_optarg=$2
17097     ac_shift=shift
17098     ;;
17099   esac
17100
17101   case $ac_option in
17102   # Handling of the options.
17103   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17104     ac_cs_recheck=: ;;
17105   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17106     $as_echo "$ac_cs_version"; exit ;;
17107   --config | --confi | --conf | --con | --co | --c )
17108     $as_echo "$ac_cs_config"; exit ;;
17109   --debug | --debu | --deb | --de | --d | -d )
17110     debug=: ;;
17111   --file | --fil | --fi | --f )
17112     $ac_shift
17113     case $ac_optarg in
17114     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17115     esac
17116     as_fn_append CONFIG_FILES " '$ac_optarg'"
17117     ac_need_defaults=false;;
17118   --header | --heade | --head | --hea )
17119     $ac_shift
17120     case $ac_optarg in
17121     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17122     esac
17123     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17124     ac_need_defaults=false;;
17125   --he | --h)
17126     # Conflict between --help and --header
17127     as_fn_error "ambiguous option: \`$1'
17128 Try \`$0 --help' for more information.";;
17129   --help | --hel | -h )
17130     $as_echo "$ac_cs_usage"; exit ;;
17131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17133     ac_cs_silent=: ;;
17134
17135   # This is an error.
17136   -*) as_fn_error "unrecognized option: \`$1'
17137 Try \`$0 --help' for more information." ;;
17138
17139   *) as_fn_append ac_config_targets " $1"
17140      ac_need_defaults=false ;;
17141
17142   esac
17143   shift
17144 done
17145
17146 ac_configure_extra_args=
17147
17148 if $ac_cs_silent; then
17149   exec 6>/dev/null
17150   ac_configure_extra_args="$ac_configure_extra_args --silent"
17151 fi
17152
17153 _ACEOF
17154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17155 if \$ac_cs_recheck; then
17156   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17157   shift
17158   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17159   CONFIG_SHELL='$SHELL'
17160   export CONFIG_SHELL
17161   exec "\$@"
17162 fi
17163
17164 _ACEOF
17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17166 exec 5>>config.log
17167 {
17168   echo
17169   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17170 ## Running $as_me. ##
17171 _ASBOX
17172   $as_echo "$ac_log"
17173 } >&5
17174
17175 _ACEOF
17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17177 #
17178 # INIT-COMMANDS
17179 #
17180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17181
17182
17183 # The HP-UX ksh and POSIX shell print the target directory to stdout
17184 # if CDPATH is set.
17185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17186
17187 sed_quote_subst='$sed_quote_subst'
17188 double_quote_subst='$double_quote_subst'
17189 delay_variable_subst='$delay_variable_subst'
17190 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17191 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17192 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17193 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17194 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17195 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17196 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17197 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17198 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17199 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17200 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17201 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17202 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17203 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17204 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17205 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17206 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17207 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17208 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17209 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17210 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17211 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17212 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17213 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17214 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17215 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17216 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17217 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17218 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17219 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17220 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17221 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17222 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17223 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17224 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17225 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17226 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17227 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17228 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17229 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17230 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17231 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17232 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17234 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17235 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17236 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17237 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17238 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17239 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17240 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17241 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17242 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17243 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17244 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17245 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17246 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17247 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17248 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17249 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17250 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17251 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17252 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17253 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17254 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17255 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17256 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17257 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17258 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17259 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17260 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17261 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17262 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17263 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17264 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17265 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17266 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17267 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17268 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17269 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17270 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17271 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17272 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17273 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17274 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17275 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17276 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17277 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17278 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17279 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17280 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17281 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17282 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17283 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17284 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17285 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17286 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17287 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17288 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17289 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17290 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17291 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17292 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17293 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17294 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17295 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17296 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17297 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17298 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17299 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17300 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17301 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17302 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17303 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17304 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17305 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17306 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17307 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17308 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17309 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17310 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17311 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17312 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17313 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17314 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17315 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17316 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17317 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17318 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17319 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17320 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17321 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17322 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17323 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17324 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17325 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17326 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17327 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17328 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17329 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17330 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17331 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17332 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17333 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17334 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17335 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17336 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17337 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17338 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17339 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17340 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17341 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17342 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17343 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17344 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17345 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17346 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17347 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17348 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17349 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17350 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17351 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17352 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17353 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17354 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17355 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17356 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17357 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17358 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17359 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17360 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17361
17362 LTCC='$LTCC'
17363 LTCFLAGS='$LTCFLAGS'
17364 compiler='$compiler_DEFAULT'
17365
17366 # Quote evaled strings.
17367 for var in SED \
17368 GREP \
17369 EGREP \
17370 FGREP \
17371 LD \
17372 NM \
17373 LN_S \
17374 lt_SP2NL \
17375 lt_NL2SP \
17376 reload_flag \
17377 OBJDUMP \
17378 deplibs_check_method \
17379 file_magic_cmd \
17380 AR \
17381 AR_FLAGS \
17382 STRIP \
17383 RANLIB \
17384 CC \
17385 CFLAGS \
17386 compiler \
17387 lt_cv_sys_global_symbol_pipe \
17388 lt_cv_sys_global_symbol_to_cdecl \
17389 lt_cv_sys_global_symbol_to_c_name_address \
17390 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17391 SHELL \
17392 ECHO \
17393 lt_prog_compiler_no_builtin_flag \
17394 lt_prog_compiler_wl \
17395 lt_prog_compiler_pic \
17396 lt_prog_compiler_static \
17397 lt_cv_prog_compiler_c_o \
17398 need_locks \
17399 DSYMUTIL \
17400 NMEDIT \
17401 LIPO \
17402 OTOOL \
17403 OTOOL64 \
17404 shrext_cmds \
17405 export_dynamic_flag_spec \
17406 whole_archive_flag_spec \
17407 compiler_needs_object \
17408 with_gnu_ld \
17409 allow_undefined_flag \
17410 no_undefined_flag \
17411 hardcode_libdir_flag_spec \
17412 hardcode_libdir_flag_spec_ld \
17413 hardcode_libdir_separator \
17414 fix_srcfile_path \
17415 exclude_expsyms \
17416 include_expsyms \
17417 file_list_spec \
17418 variables_saved_for_relink \
17419 libname_spec \
17420 library_names_spec \
17421 soname_spec \
17422 finish_eval \
17423 old_striplib \
17424 striplib \
17425 compiler_lib_search_dirs \
17426 predep_objects \
17427 postdep_objects \
17428 predeps \
17429 postdeps \
17430 compiler_lib_search_path \
17431 LD_CXX \
17432 compiler_CXX \
17433 lt_prog_compiler_no_builtin_flag_CXX \
17434 lt_prog_compiler_wl_CXX \
17435 lt_prog_compiler_pic_CXX \
17436 lt_prog_compiler_static_CXX \
17437 lt_cv_prog_compiler_c_o_CXX \
17438 export_dynamic_flag_spec_CXX \
17439 whole_archive_flag_spec_CXX \
17440 compiler_needs_object_CXX \
17441 with_gnu_ld_CXX \
17442 allow_undefined_flag_CXX \
17443 no_undefined_flag_CXX \
17444 hardcode_libdir_flag_spec_CXX \
17445 hardcode_libdir_flag_spec_ld_CXX \
17446 hardcode_libdir_separator_CXX \
17447 fix_srcfile_path_CXX \
17448 exclude_expsyms_CXX \
17449 include_expsyms_CXX \
17450 file_list_spec_CXX \
17451 compiler_lib_search_dirs_CXX \
17452 predep_objects_CXX \
17453 postdep_objects_CXX \
17454 predeps_CXX \
17455 postdeps_CXX \
17456 compiler_lib_search_path_CXX; do
17457     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17458     *[\\\\\\\`\\"\\\$]*)
17459       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17460       ;;
17461     *)
17462       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17463       ;;
17464     esac
17465 done
17466
17467 # Double-quote double-evaled strings.
17468 for var in reload_cmds \
17469 old_postinstall_cmds \
17470 old_postuninstall_cmds \
17471 old_archive_cmds \
17472 extract_expsyms_cmds \
17473 old_archive_from_new_cmds \
17474 old_archive_from_expsyms_cmds \
17475 archive_cmds \
17476 archive_expsym_cmds \
17477 module_cmds \
17478 module_expsym_cmds \
17479 export_symbols_cmds \
17480 prelink_cmds \
17481 postinstall_cmds \
17482 postuninstall_cmds \
17483 finish_cmds \
17484 sys_lib_search_path_spec \
17485 sys_lib_dlsearch_path_spec \
17486 old_archive_cmds_CXX \
17487 old_archive_from_new_cmds_CXX \
17488 old_archive_from_expsyms_cmds_CXX \
17489 archive_cmds_CXX \
17490 archive_expsym_cmds_CXX \
17491 module_cmds_CXX \
17492 module_expsym_cmds_CXX \
17493 export_symbols_cmds_CXX \
17494 prelink_cmds_CXX; do
17495     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17496     *[\\\\\\\`\\"\\\$]*)
17497       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17498       ;;
17499     *)
17500       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17501       ;;
17502     esac
17503 done
17504
17505 # Fix-up fallback echo if it was mangled by the above quoting rules.
17506 case \$lt_ECHO in
17507 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17508   ;;
17509 esac
17510
17511 ac_aux_dir='$ac_aux_dir'
17512 xsi_shell='$xsi_shell'
17513 lt_shell_append='$lt_shell_append'
17514
17515 # See if we are running on zsh, and set the options which allow our
17516 # commands through without removal of \ escapes INIT.
17517 if test -n "\${ZSH_VERSION+set}" ; then
17518    setopt NO_GLOB_SUBST
17519 fi
17520
17521
17522     PACKAGE='$PACKAGE'
17523     VERSION='$VERSION'
17524     TIMESTAMP='$TIMESTAMP'
17525     RM='$RM'
17526     ofile='$ofile'
17527
17528
17529
17530
17531
17532
17533 _ACEOF
17534
17535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17536
17537 # Handling of arguments.
17538 for ac_config_target in $ac_config_targets
17539 do
17540   case $ac_config_target in
17541     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17542     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17543     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17544     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17545     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
17546     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
17547     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
17548     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
17549     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
17550
17551   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17552   esac
17553 done
17554
17555
17556 # If the user did not use the arguments to specify the items to instantiate,
17557 # then the envvar interface is used.  Set only those that are not.
17558 # We use the long form for the default assignment because of an extremely
17559 # bizarre bug on SunOS 4.1.3.
17560 if $ac_need_defaults; then
17561   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17562   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17563   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17564 fi
17565
17566 # Have a temporary directory for convenience.  Make it in the build tree
17567 # simply because there is no reason against having it here, and in addition,
17568 # creating and moving files from /tmp can sometimes cause problems.
17569 # Hook for its removal unless debugging.
17570 # Note that there is a small window in which the directory will not be cleaned:
17571 # after its creation but before its name has been assigned to `$tmp'.
17572 $debug ||
17573 {
17574   tmp=
17575   trap 'exit_status=$?
17576   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17577 ' 0
17578   trap 'as_fn_exit 1' 1 2 13 15
17579 }
17580 # Create a (secure) tmp directory for tmp files.
17581
17582 {
17583   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17584   test -n "$tmp" && test -d "$tmp"
17585 }  ||
17586 {
17587   tmp=./conf$$-$RANDOM
17588   (umask 077 && mkdir "$tmp")
17589 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17590
17591 # Set up the scripts for CONFIG_FILES section.
17592 # No need to generate them if there are no CONFIG_FILES.
17593 # This happens for instance with `./config.status config.h'.
17594 if test -n "$CONFIG_FILES"; then
17595
17596
17597 ac_cr=`echo X | tr X '\015'`
17598 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17599 # But we know of no other shell where ac_cr would be empty at this
17600 # point, so we can use a bashism as a fallback.
17601 if test "x$ac_cr" = x; then
17602   eval ac_cr=\$\'\\r\'
17603 fi
17604 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17605 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17606   ac_cs_awk_cr='\r'
17607 else
17608   ac_cs_awk_cr=$ac_cr
17609 fi
17610
17611 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17612 _ACEOF
17613
17614
17615 {
17616   echo "cat >conf$$subs.awk <<_ACEOF" &&
17617   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17618   echo "_ACEOF"
17619 } >conf$$subs.sh ||
17620   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17621 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17622 ac_delim='%!_!# '
17623 for ac_last_try in false false false false false :; do
17624   . ./conf$$subs.sh ||
17625     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17626
17627   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17628   if test $ac_delim_n = $ac_delim_num; then
17629     break
17630   elif $ac_last_try; then
17631     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17632   else
17633     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17634   fi
17635 done
17636 rm -f conf$$subs.sh
17637
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17639 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17640 _ACEOF
17641 sed -n '
17642 h
17643 s/^/S["/; s/!.*/"]=/
17644 p
17645 g
17646 s/^[^!]*!//
17647 :repl
17648 t repl
17649 s/'"$ac_delim"'$//
17650 t delim
17651 :nl
17652 h
17653 s/\(.\{148\}\)..*/\1/
17654 t more1
17655 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17656 p
17657 n
17658 b repl
17659 :more1
17660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17661 p
17662 g
17663 s/.\{148\}//
17664 t nl
17665 :delim
17666 h
17667 s/\(.\{148\}\)..*/\1/
17668 t more2
17669 s/["\\]/\\&/g; s/^/"/; s/$/"/
17670 p
17671 b
17672 :more2
17673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17674 p
17675 g
17676 s/.\{148\}//
17677 t delim
17678 ' <conf$$subs.awk | sed '
17679 /^[^""]/{
17680   N
17681   s/\n//
17682 }
17683 ' >>$CONFIG_STATUS || ac_write_fail=1
17684 rm -f conf$$subs.awk
17685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17686 _ACAWK
17687 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17688   for (key in S) S_is_set[key] = 1
17689   FS = "\a"
17690
17691 }
17692 {
17693   line = $ 0
17694   nfields = split(line, field, "@")
17695   substed = 0
17696   len = length(field[1])
17697   for (i = 2; i < nfields; i++) {
17698     key = field[i]
17699     keylen = length(key)
17700     if (S_is_set[key]) {
17701       value = S[key]
17702       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17703       len += length(value) + length(field[++i])
17704       substed = 1
17705     } else
17706       len += 1 + keylen
17707   }
17708
17709   print line
17710 }
17711
17712 _ACAWK
17713 _ACEOF
17714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17715 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17716   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17717 else
17718   cat
17719 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17720   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17721 _ACEOF
17722
17723 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17724 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17725 # trailing colons and then remove the whole line if VPATH becomes empty
17726 # (actually we leave an empty line to preserve line numbers).
17727 if test "x$srcdir" = x.; then
17728   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17729 s/:*\$(srcdir):*/:/
17730 s/:*\${srcdir}:*/:/
17731 s/:*@srcdir@:*/:/
17732 s/^\([^=]*=[     ]*\):*/\1/
17733 s/:*$//
17734 s/^[^=]*=[       ]*$//
17735 }'
17736 fi
17737
17738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17739 fi # test -n "$CONFIG_FILES"
17740
17741 # Set up the scripts for CONFIG_HEADERS section.
17742 # No need to generate them if there are no CONFIG_HEADERS.
17743 # This happens for instance with `./config.status Makefile'.
17744 if test -n "$CONFIG_HEADERS"; then
17745 cat >"$tmp/defines.awk" <<\_ACAWK ||
17746 BEGIN {
17747 _ACEOF
17748
17749 # Transform confdefs.h into an awk script `defines.awk', embedded as
17750 # here-document in config.status, that substitutes the proper values into
17751 # config.h.in to produce config.h.
17752
17753 # Create a delimiter string that does not exist in confdefs.h, to ease
17754 # handling of long lines.
17755 ac_delim='%!_!# '
17756 for ac_last_try in false false :; do
17757   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17758   if test -z "$ac_t"; then
17759     break
17760   elif $ac_last_try; then
17761     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17762   else
17763     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17764   fi
17765 done
17766
17767 # For the awk script, D is an array of macro values keyed by name,
17768 # likewise P contains macro parameters if any.  Preserve backslash
17769 # newline sequences.
17770
17771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17772 sed -n '
17773 s/.\{148\}/&'"$ac_delim"'/g
17774 t rset
17775 :rset
17776 s/^[     ]*#[    ]*define[       ][      ]*/ /
17777 t def
17778 d
17779 :def
17780 s/\\$//
17781 t bsnl
17782 s/["\\]/\\&/g
17783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17784 D["\1"]=" \3"/p
17785 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17786 d
17787 :bsnl
17788 s/["\\]/\\&/g
17789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17790 D["\1"]=" \3\\\\\\n"\\/p
17791 t cont
17792 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17793 t cont
17794 d
17795 :cont
17796 n
17797 s/.\{148\}/&'"$ac_delim"'/g
17798 t clear
17799 :clear
17800 s/\\$//
17801 t bsnlc
17802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17803 d
17804 :bsnlc
17805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17806 b cont
17807 ' <confdefs.h | sed '
17808 s/'"$ac_delim"'/"\\\
17809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17810
17811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17812   for (key in D) D_is_set[key] = 1
17813   FS = "\a"
17814 }
17815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17816   line = \$ 0
17817   split(line, arg, " ")
17818   if (arg[1] == "#") {
17819     defundef = arg[2]
17820     mac1 = arg[3]
17821   } else {
17822     defundef = substr(arg[1], 2)
17823     mac1 = arg[2]
17824   }
17825   split(mac1, mac2, "(") #)
17826   macro = mac2[1]
17827   prefix = substr(line, 1, index(line, defundef) - 1)
17828   if (D_is_set[macro]) {
17829     # Preserve the white space surrounding the "#".
17830     print prefix "define", macro P[macro] D[macro]
17831     next
17832   } else {
17833     # Replace #undef with comments.  This is necessary, for example,
17834     # in the case of _POSIX_SOURCE, which is predefined and required
17835     # on some systems where configure will not decide to define it.
17836     if (defundef == "undef") {
17837       print "/*", prefix defundef, macro, "*/"
17838       next
17839     }
17840   }
17841 }
17842 { print }
17843 _ACAWK
17844 _ACEOF
17845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17846   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17847 fi # test -n "$CONFIG_HEADERS"
17848
17849
17850 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17851 shift
17852 for ac_tag
17853 do
17854   case $ac_tag in
17855   :[FHLC]) ac_mode=$ac_tag; continue;;
17856   esac
17857   case $ac_mode$ac_tag in
17858   :[FHL]*:*);;
17859   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17860   :[FH]-) ac_tag=-:-;;
17861   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17862   esac
17863   ac_save_IFS=$IFS
17864   IFS=:
17865   set x $ac_tag
17866   IFS=$ac_save_IFS
17867   shift
17868   ac_file=$1
17869   shift
17870
17871   case $ac_mode in
17872   :L) ac_source=$1;;
17873   :[FH])
17874     ac_file_inputs=
17875     for ac_f
17876     do
17877       case $ac_f in
17878       -) ac_f="$tmp/stdin";;
17879       *) # Look for the file first in the build tree, then in the source tree
17880          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17881          # because $ac_f cannot contain `:'.
17882          test -f "$ac_f" ||
17883            case $ac_f in
17884            [\\/$]*) false;;
17885            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17886            esac ||
17887            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17888       esac
17889       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17890       as_fn_append ac_file_inputs " '$ac_f'"
17891     done
17892
17893     # Let's still pretend it is `configure' which instantiates (i.e., don't
17894     # use $as_me), people would be surprised to read:
17895     #    /* config.h.  Generated by config.status.  */
17896     configure_input='Generated from '`
17897           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17898         `' by configure.'
17899     if test x"$ac_file" != x-; then
17900       configure_input="$ac_file.  $configure_input"
17901       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17902 $as_echo "$as_me: creating $ac_file" >&6;}
17903     fi
17904     # Neutralize special characters interpreted by sed in replacement strings.
17905     case $configure_input in #(
17906     *\&* | *\|* | *\\* )
17907        ac_sed_conf_input=`$as_echo "$configure_input" |
17908        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17909     *) ac_sed_conf_input=$configure_input;;
17910     esac
17911
17912     case $ac_tag in
17913     *:-:* | *:-) cat >"$tmp/stdin" \
17914       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17915     esac
17916     ;;
17917   esac
17918
17919   ac_dir=`$as_dirname -- "$ac_file" ||
17920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17921          X"$ac_file" : 'X\(//\)[^/]' \| \
17922          X"$ac_file" : 'X\(//\)$' \| \
17923          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17924 $as_echo X"$ac_file" |
17925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17926             s//\1/
17927             q
17928           }
17929           /^X\(\/\/\)[^/].*/{
17930             s//\1/
17931             q
17932           }
17933           /^X\(\/\/\)$/{
17934             s//\1/
17935             q
17936           }
17937           /^X\(\/\).*/{
17938             s//\1/
17939             q
17940           }
17941           s/.*/./; q'`
17942   as_dir="$ac_dir"; as_fn_mkdir_p
17943   ac_builddir=.
17944
17945 case "$ac_dir" in
17946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17947 *)
17948   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17949   # A ".." for each directory in $ac_dir_suffix.
17950   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17951   case $ac_top_builddir_sub in
17952   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17953   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17954   esac ;;
17955 esac
17956 ac_abs_top_builddir=$ac_pwd
17957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17958 # for backward compatibility:
17959 ac_top_builddir=$ac_top_build_prefix
17960
17961 case $srcdir in
17962   .)  # We are building in place.
17963     ac_srcdir=.
17964     ac_top_srcdir=$ac_top_builddir_sub
17965     ac_abs_top_srcdir=$ac_pwd ;;
17966   [\\/]* | ?:[\\/]* )  # Absolute name.
17967     ac_srcdir=$srcdir$ac_dir_suffix;
17968     ac_top_srcdir=$srcdir
17969     ac_abs_top_srcdir=$srcdir ;;
17970   *) # Relative name.
17971     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17972     ac_top_srcdir=$ac_top_build_prefix$srcdir
17973     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17974 esac
17975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17976
17977
17978   case $ac_mode in
17979   :F)
17980   #
17981   # CONFIG_FILE
17982   #
17983
17984   case $INSTALL in
17985   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17986   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17987   esac
17988   ac_MKDIR_P=$MKDIR_P
17989   case $MKDIR_P in
17990   [\\/$]* | ?:[\\/]* ) ;;
17991   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17992   esac
17993 _ACEOF
17994
17995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996 # If the template does not know about datarootdir, expand it.
17997 # FIXME: This hack should be removed a few years after 2.60.
17998 ac_datarootdir_hack=; ac_datarootdir_seen=
17999 ac_sed_dataroot='
18000 /datarootdir/ {
18001   p
18002   q
18003 }
18004 /@datadir@/p
18005 /@docdir@/p
18006 /@infodir@/p
18007 /@localedir@/p
18008 /@mandir@/p'
18009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18010 *datarootdir*) ac_datarootdir_seen=yes;;
18011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18012   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18014 _ACEOF
18015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18016   ac_datarootdir_hack='
18017   s&@datadir@&$datadir&g
18018   s&@docdir@&$docdir&g
18019   s&@infodir@&$infodir&g
18020   s&@localedir@&$localedir&g
18021   s&@mandir@&$mandir&g
18022   s&\\\${datarootdir}&$datarootdir&g' ;;
18023 esac
18024 _ACEOF
18025
18026 # Neutralize VPATH when `$srcdir' = `.'.
18027 # Shell code in configure.ac might set extrasub.
18028 # FIXME: do we really want to maintain this feature?
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030 ac_sed_extra="$ac_vpsub
18031 $extrasub
18032 _ACEOF
18033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18034 :t
18035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18036 s|@configure_input@|$ac_sed_conf_input|;t t
18037 s&@top_builddir@&$ac_top_builddir_sub&;t t
18038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18039 s&@srcdir@&$ac_srcdir&;t t
18040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18041 s&@top_srcdir@&$ac_top_srcdir&;t t
18042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18043 s&@builddir@&$ac_builddir&;t t
18044 s&@abs_builddir@&$ac_abs_builddir&;t t
18045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18046 s&@INSTALL@&$ac_INSTALL&;t t
18047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18048 $ac_datarootdir_hack
18049 "
18050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18051   || as_fn_error "could not create $ac_file" "$LINENO" 5
18052
18053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18054   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18055   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18056   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18057 which seems to be undefined.  Please make sure it is defined." >&5
18058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18059 which seems to be undefined.  Please make sure it is defined." >&2;}
18060
18061   rm -f "$tmp/stdin"
18062   case $ac_file in
18063   -) cat "$tmp/out" && rm -f "$tmp/out";;
18064   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18065   esac \
18066   || as_fn_error "could not create $ac_file" "$LINENO" 5
18067  ;;
18068   :H)
18069   #
18070   # CONFIG_HEADER
18071   #
18072   if test x"$ac_file" != x-; then
18073     {
18074       $as_echo "/* $configure_input  */" \
18075       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18076     } >"$tmp/config.h" \
18077       || as_fn_error "could not create $ac_file" "$LINENO" 5
18078     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18079       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18081     else
18082       rm -f "$ac_file"
18083       mv "$tmp/config.h" "$ac_file" \
18084         || as_fn_error "could not create $ac_file" "$LINENO" 5
18085     fi
18086   else
18087     $as_echo "/* $configure_input  */" \
18088       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18089       || as_fn_error "could not create -" "$LINENO" 5
18090   fi
18091 # Compute "$ac_file"'s index in $config_headers.
18092 _am_arg="$ac_file"
18093 _am_stamp_count=1
18094 for _am_header in $config_headers :; do
18095   case $_am_header in
18096     $_am_arg | $_am_arg:* )
18097       break ;;
18098     * )
18099       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18100   esac
18101 done
18102 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18103 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18104          X"$_am_arg" : 'X\(//\)[^/]' \| \
18105          X"$_am_arg" : 'X\(//\)$' \| \
18106          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18107 $as_echo X"$_am_arg" |
18108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18109             s//\1/
18110             q
18111           }
18112           /^X\(\/\/\)[^/].*/{
18113             s//\1/
18114             q
18115           }
18116           /^X\(\/\/\)$/{
18117             s//\1/
18118             q
18119           }
18120           /^X\(\/\).*/{
18121             s//\1/
18122             q
18123           }
18124           s/.*/./; q'`/stamp-h$_am_stamp_count
18125  ;;
18126
18127   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18128 $as_echo "$as_me: executing $ac_file commands" >&6;}
18129  ;;
18130   esac
18131
18132
18133   case $ac_file$ac_mode in
18134     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18135   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18136   # are listed without --file.  Let's play safe and only enable the eval
18137   # if we detect the quoting.
18138   case $CONFIG_FILES in
18139   *\'*) eval set x "$CONFIG_FILES" ;;
18140   *)   set x $CONFIG_FILES ;;
18141   esac
18142   shift
18143   for mf
18144   do
18145     # Strip MF so we end up with the name of the file.
18146     mf=`echo "$mf" | sed -e 's/:.*$//'`
18147     # Check whether this is an Automake generated Makefile or not.
18148     # We used to match only the files named `Makefile.in', but
18149     # some people rename them; so instead we look at the file content.
18150     # Grep'ing the first line is not enough: some people post-process
18151     # each Makefile.in and add a new line on top of each file to say so.
18152     # Grep'ing the whole file is not good either: AIX grep has a line
18153     # limit of 2048, but all sed's we know have understand at least 4000.
18154     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18155       dirpart=`$as_dirname -- "$mf" ||
18156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157          X"$mf" : 'X\(//\)[^/]' \| \
18158          X"$mf" : 'X\(//\)$' \| \
18159          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18160 $as_echo X"$mf" |
18161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18162             s//\1/
18163             q
18164           }
18165           /^X\(\/\/\)[^/].*/{
18166             s//\1/
18167             q
18168           }
18169           /^X\(\/\/\)$/{
18170             s//\1/
18171             q
18172           }
18173           /^X\(\/\).*/{
18174             s//\1/
18175             q
18176           }
18177           s/.*/./; q'`
18178     else
18179       continue
18180     fi
18181     # Extract the definition of DEPDIR, am__include, and am__quote
18182     # from the Makefile without running `make'.
18183     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18184     test -z "$DEPDIR" && continue
18185     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18186     test -z "am__include" && continue
18187     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18188     # When using ansi2knr, U may be empty or an underscore; expand it
18189     U=`sed -n 's/^U = //p' < "$mf"`
18190     # Find all dependency output files, they are included files with
18191     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18192     # simplest approach to changing $(DEPDIR) to its actual value in the
18193     # expansion.
18194     for file in `sed -n "
18195       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18196          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18197       # Make sure the directory exists.
18198       test -f "$dirpart/$file" && continue
18199       fdir=`$as_dirname -- "$file" ||
18200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18201          X"$file" : 'X\(//\)[^/]' \| \
18202          X"$file" : 'X\(//\)$' \| \
18203          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18204 $as_echo X"$file" |
18205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18206             s//\1/
18207             q
18208           }
18209           /^X\(\/\/\)[^/].*/{
18210             s//\1/
18211             q
18212           }
18213           /^X\(\/\/\)$/{
18214             s//\1/
18215             q
18216           }
18217           /^X\(\/\).*/{
18218             s//\1/
18219             q
18220           }
18221           s/.*/./; q'`
18222       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18223       # echo "creating $dirpart/$file"
18224       echo '# dummy' > "$dirpart/$file"
18225     done
18226   done
18227 }
18228  ;;
18229     "libtool":C)
18230
18231     # See if we are running on zsh, and set the options which allow our
18232     # commands through without removal of \ escapes.
18233     if test -n "${ZSH_VERSION+set}" ; then
18234       setopt NO_GLOB_SUBST
18235     fi
18236
18237     cfgfile="${ofile}T"
18238     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18239     $RM "$cfgfile"
18240
18241     cat <<_LT_EOF >> "$cfgfile"
18242 #! $SHELL
18243
18244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18245 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18248 #
18249 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18250 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18251 #   Written by Gordon Matzigkeit, 1996
18252 #
18253 #   This file is part of GNU Libtool.
18254 #
18255 # GNU Libtool is free software; you can redistribute it and/or
18256 # modify it under the terms of the GNU General Public License as
18257 # published by the Free Software Foundation; either version 2 of
18258 # the License, or (at your option) any later version.
18259 #
18260 # As a special exception to the GNU General Public License,
18261 # if you distribute this file as part of a program or library that
18262 # is built using GNU Libtool, you may include this file under the
18263 # same distribution terms that you use for the rest of that program.
18264 #
18265 # GNU Libtool is distributed in the hope that it will be useful,
18266 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18267 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18268 # GNU General Public License for more details.
18269 #
18270 # You should have received a copy of the GNU General Public License
18271 # along with GNU Libtool; see the file COPYING.  If not, a copy
18272 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18273 # obtained by writing to the Free Software Foundation, Inc.,
18274 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18275
18276
18277 # The names of the tagged configurations supported by this script.
18278 available_tags="CXX "
18279
18280 # ### BEGIN LIBTOOL CONFIG
18281
18282 # Which release of libtool.m4 was used?
18283 macro_version=$macro_version
18284 macro_revision=$macro_revision
18285
18286 # Whether or not to build shared libraries.
18287 build_libtool_libs=$enable_shared
18288
18289 # Whether or not to build static libraries.
18290 build_old_libs=$enable_static
18291
18292 # What type of objects to build.
18293 pic_mode=$pic_mode
18294
18295 # Whether or not to optimize for fast installation.
18296 fast_install=$enable_fast_install
18297
18298 # The host system.
18299 host_alias=$host_alias
18300 host=$host
18301 host_os=$host_os
18302
18303 # The build system.
18304 build_alias=$build_alias
18305 build=$build
18306 build_os=$build_os
18307
18308 # A sed program that does not truncate output.
18309 SED=$lt_SED
18310
18311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18312 Xsed="\$SED -e 1s/^X//"
18313
18314 # A grep program that handles long lines.
18315 GREP=$lt_GREP
18316
18317 # An ERE matcher.
18318 EGREP=$lt_EGREP
18319
18320 # A literal string matcher.
18321 FGREP=$lt_FGREP
18322
18323 # A BSD- or MS-compatible name lister.
18324 NM=$lt_NM
18325
18326 # Whether we need soft or hard links.
18327 LN_S=$lt_LN_S
18328
18329 # What is the maximum length of a command?
18330 max_cmd_len=$max_cmd_len
18331
18332 # Object file suffix (normally "o").
18333 objext=$ac_objext
18334
18335 # Executable file suffix (normally "").
18336 exeext=$exeext
18337
18338 # whether the shell understands "unset".
18339 lt_unset=$lt_unset
18340
18341 # turn spaces into newlines.
18342 SP2NL=$lt_lt_SP2NL
18343
18344 # turn newlines into spaces.
18345 NL2SP=$lt_lt_NL2SP
18346
18347 # How to create reloadable object files.
18348 reload_flag=$lt_reload_flag
18349 reload_cmds=$lt_reload_cmds
18350
18351 # An object symbol dumper.
18352 OBJDUMP=$lt_OBJDUMP
18353
18354 # Method to check whether dependent libraries are shared objects.
18355 deplibs_check_method=$lt_deplibs_check_method
18356
18357 # Command to use when deplibs_check_method == "file_magic".
18358 file_magic_cmd=$lt_file_magic_cmd
18359
18360 # The archiver.
18361 AR=$lt_AR
18362 AR_FLAGS=$lt_AR_FLAGS
18363
18364 # A symbol stripping program.
18365 STRIP=$lt_STRIP
18366
18367 # Commands used to install an old-style archive.
18368 RANLIB=$lt_RANLIB
18369 old_postinstall_cmds=$lt_old_postinstall_cmds
18370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18371
18372 # A C compiler.
18373 LTCC=$lt_CC
18374
18375 # LTCC compiler flags.
18376 LTCFLAGS=$lt_CFLAGS
18377
18378 # Take the output of nm and produce a listing of raw symbols and C names.
18379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18380
18381 # Transform the output of nm in a proper C declaration.
18382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18383
18384 # Transform the output of nm in a C name address pair.
18385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18386
18387 # Transform the output of nm in a C name address pair when lib prefix is needed.
18388 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18389
18390 # The name of the directory that contains temporary libtool files.
18391 objdir=$objdir
18392
18393 # Shell to use when invoking shell scripts.
18394 SHELL=$lt_SHELL
18395
18396 # An echo program that does not interpret backslashes.
18397 ECHO=$lt_ECHO
18398
18399 # Used to examine libraries when file_magic_cmd begins with "file".
18400 MAGIC_CMD=$MAGIC_CMD
18401
18402 # Must we lock files when doing compilation?
18403 need_locks=$lt_need_locks
18404
18405 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18406 DSYMUTIL=$lt_DSYMUTIL
18407
18408 # Tool to change global to local symbols on Mac OS X.
18409 NMEDIT=$lt_NMEDIT
18410
18411 # Tool to manipulate fat objects and archives on Mac OS X.
18412 LIPO=$lt_LIPO
18413
18414 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18415 OTOOL=$lt_OTOOL
18416
18417 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18418 OTOOL64=$lt_OTOOL64
18419
18420 # Old archive suffix (normally "a").
18421 libext=$libext
18422
18423 # Shared library suffix (normally ".so").
18424 shrext_cmds=$lt_shrext_cmds
18425
18426 # The commands to extract the exported symbol list from a shared archive.
18427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18428
18429 # Variables whose values should be saved in libtool wrapper scripts and
18430 # restored at link time.
18431 variables_saved_for_relink=$lt_variables_saved_for_relink
18432
18433 # Do we need the "lib" prefix for modules?
18434 need_lib_prefix=$need_lib_prefix
18435
18436 # Do we need a version for libraries?
18437 need_version=$need_version
18438
18439 # Library versioning type.
18440 version_type=$version_type
18441
18442 # Shared library runtime path variable.
18443 runpath_var=$runpath_var
18444
18445 # Shared library path variable.
18446 shlibpath_var=$shlibpath_var
18447
18448 # Is shlibpath searched before the hard-coded library search path?
18449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18450
18451 # Format of library name prefix.
18452 libname_spec=$lt_libname_spec
18453
18454 # List of archive names.  First name is the real one, the rest are links.
18455 # The last name is the one that the linker finds with -lNAME
18456 library_names_spec=$lt_library_names_spec
18457
18458 # The coded name of the library, if different from the real name.
18459 soname_spec=$lt_soname_spec
18460
18461 # Command to use after installation of a shared archive.
18462 postinstall_cmds=$lt_postinstall_cmds
18463
18464 # Command to use after uninstallation of a shared archive.
18465 postuninstall_cmds=$lt_postuninstall_cmds
18466
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18469
18470 # As "finish_cmds", except a single script fragment to be evaled but
18471 # not shown.
18472 finish_eval=$lt_finish_eval
18473
18474 # Whether we should hardcode library paths into libraries.
18475 hardcode_into_libs=$hardcode_into_libs
18476
18477 # Compile-time system search path for libraries.
18478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18479
18480 # Run-time system search path for libraries.
18481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18482
18483 # Whether dlopen is supported.
18484 dlopen_support=$enable_dlopen
18485
18486 # Whether dlopen of programs is supported.
18487 dlopen_self=$enable_dlopen_self
18488
18489 # Whether dlopen of statically linked programs is supported.
18490 dlopen_self_static=$enable_dlopen_self_static
18491
18492 # Commands to strip libraries.
18493 old_striplib=$lt_old_striplib
18494 striplib=$lt_striplib
18495
18496
18497 # The linker used to build libraries.
18498 LD=$lt_LD
18499
18500 # Commands used to build an old-style archive.
18501 old_archive_cmds=$lt_old_archive_cmds
18502
18503 # A language specific compiler.
18504 CC=$lt_compiler
18505
18506 # Is the compiler the GNU compiler?
18507 with_gcc=$GCC
18508
18509 # Compiler flag to turn off builtin functions.
18510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18511
18512 # How to pass a linker flag through the compiler.
18513 wl=$lt_lt_prog_compiler_wl
18514
18515 # Additional compiler flags for building library objects.
18516 pic_flag=$lt_lt_prog_compiler_pic
18517
18518 # Compiler flag to prevent dynamic linking.
18519 link_static_flag=$lt_lt_prog_compiler_static
18520
18521 # Does compiler simultaneously support -c and -o options?
18522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18523
18524 # Whether or not to add -lc for building shared libraries.
18525 build_libtool_need_lc=$archive_cmds_need_lc
18526
18527 # Whether or not to disallow shared libs when runtime libs are static.
18528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18529
18530 # Compiler flag to allow reflexive dlopens.
18531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18532
18533 # Compiler flag to generate shared objects directly from archives.
18534 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18535
18536 # Whether the compiler copes with passing no objects directly.
18537 compiler_needs_object=$lt_compiler_needs_object
18538
18539 # Create an old-style archive from a shared archive.
18540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18541
18542 # Create a temporary old-style archive to link instead of a shared archive.
18543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18544
18545 # Commands used to build a shared archive.
18546 archive_cmds=$lt_archive_cmds
18547 archive_expsym_cmds=$lt_archive_expsym_cmds
18548
18549 # Commands used to build a loadable module if different from building
18550 # a shared archive.
18551 module_cmds=$lt_module_cmds
18552 module_expsym_cmds=$lt_module_expsym_cmds
18553
18554 # Whether we are building with GNU ld or not.
18555 with_gnu_ld=$lt_with_gnu_ld
18556
18557 # Flag that allows shared libraries with undefined symbols to be built.
18558 allow_undefined_flag=$lt_allow_undefined_flag
18559
18560 # Flag that enforces no undefined symbols.
18561 no_undefined_flag=$lt_no_undefined_flag
18562
18563 # Flag to hardcode \$libdir into a binary during linking.
18564 # This must work even if \$libdir does not exist
18565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18566
18567 # If ld is used when linking, flag to hardcode \$libdir into a binary
18568 # during linking.  This must work even if \$libdir does not exist.
18569 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18570
18571 # Whether we need a single "-rpath" flag with a separated argument.
18572 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18573
18574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18575 # DIR into the resulting binary.
18576 hardcode_direct=$hardcode_direct
18577
18578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18579 # DIR into the resulting binary and the resulting library dependency is
18580 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18581 # library is relocated.
18582 hardcode_direct_absolute=$hardcode_direct_absolute
18583
18584 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18585 # into the resulting binary.
18586 hardcode_minus_L=$hardcode_minus_L
18587
18588 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18589 # into the resulting binary.
18590 hardcode_shlibpath_var=$hardcode_shlibpath_var
18591
18592 # Set to "yes" if building a shared library automatically hardcodes DIR
18593 # into the library and all subsequent libraries and executables linked
18594 # against it.
18595 hardcode_automatic=$hardcode_automatic
18596
18597 # Set to yes if linker adds runtime paths of dependent libraries
18598 # to runtime path list.
18599 inherit_rpath=$inherit_rpath
18600
18601 # Whether libtool must link a program against all its dependency libraries.
18602 link_all_deplibs=$link_all_deplibs
18603
18604 # Fix the shell variable \$srcfile for the compiler.
18605 fix_srcfile_path=$lt_fix_srcfile_path
18606
18607 # Set to "yes" if exported symbols are required.
18608 always_export_symbols=$always_export_symbols
18609
18610 # The commands to list exported symbols.
18611 export_symbols_cmds=$lt_export_symbols_cmds
18612
18613 # Symbols that should not be listed in the preloaded symbols.
18614 exclude_expsyms=$lt_exclude_expsyms
18615
18616 # Symbols that must always be exported.
18617 include_expsyms=$lt_include_expsyms
18618
18619 # Commands necessary for linking programs (against libraries) with templates.
18620 prelink_cmds=$lt_prelink_cmds
18621
18622 # Specify filename containing input files.
18623 file_list_spec=$lt_file_list_spec
18624
18625 # How to hardcode a shared library path into an executable.
18626 hardcode_action=$hardcode_action
18627
18628 # The directories searched by this compiler when creating a shared library.
18629 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18630
18631 # Dependencies to place before and after the objects being linked to
18632 # create a shared library.
18633 predep_objects=$lt_predep_objects
18634 postdep_objects=$lt_postdep_objects
18635 predeps=$lt_predeps
18636 postdeps=$lt_postdeps
18637
18638 # The library search path used internally by the compiler when linking
18639 # a shared library.
18640 compiler_lib_search_path=$lt_compiler_lib_search_path
18641
18642 # ### END LIBTOOL CONFIG
18643
18644 _LT_EOF
18645
18646   case $host_os in
18647   aix3*)
18648     cat <<\_LT_EOF >> "$cfgfile"
18649 # AIX sometimes has problems with the GCC collect2 program.  For some
18650 # reason, if we set the COLLECT_NAMES environment variable, the problems
18651 # vanish in a puff of smoke.
18652 if test "X${COLLECT_NAMES+set}" != Xset; then
18653   COLLECT_NAMES=
18654   export COLLECT_NAMES
18655 fi
18656 _LT_EOF
18657     ;;
18658   esac
18659
18660
18661 ltmain="$ac_aux_dir/ltmain.sh"
18662
18663
18664   # We use sed instead of cat because bash on DJGPP gets confused if
18665   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18666   # text mode, it properly converts lines to CR/LF.  This bash problem
18667   # is reportedly fixed, but why not run on old versions too?
18668   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18669     || (rm -f "$cfgfile"; exit 1)
18670
18671   case $xsi_shell in
18672   yes)
18673     cat << \_LT_EOF >> "$cfgfile"
18674
18675 # func_dirname file append nondir_replacement
18676 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18677 # otherwise set result to NONDIR_REPLACEMENT.
18678 func_dirname ()
18679 {
18680   case ${1} in
18681     */*) func_dirname_result="${1%/*}${2}" ;;
18682     *  ) func_dirname_result="${3}" ;;
18683   esac
18684 }
18685
18686 # func_basename file
18687 func_basename ()
18688 {
18689   func_basename_result="${1##*/}"
18690 }
18691
18692 # func_dirname_and_basename file append nondir_replacement
18693 # perform func_basename and func_dirname in a single function
18694 # call:
18695 #   dirname:  Compute the dirname of FILE.  If nonempty,
18696 #             add APPEND to the result, otherwise set result
18697 #             to NONDIR_REPLACEMENT.
18698 #             value returned in "$func_dirname_result"
18699 #   basename: Compute filename of FILE.
18700 #             value retuned in "$func_basename_result"
18701 # Implementation must be kept synchronized with func_dirname
18702 # and func_basename. For efficiency, we do not delegate to
18703 # those functions but instead duplicate the functionality here.
18704 func_dirname_and_basename ()
18705 {
18706   case ${1} in
18707     */*) func_dirname_result="${1%/*}${2}" ;;
18708     *  ) func_dirname_result="${3}" ;;
18709   esac
18710   func_basename_result="${1##*/}"
18711 }
18712
18713 # func_stripname prefix suffix name
18714 # strip PREFIX and SUFFIX off of NAME.
18715 # PREFIX and SUFFIX must not contain globbing or regex special
18716 # characters, hashes, percent signs, but SUFFIX may contain a leading
18717 # dot (in which case that matches only a dot).
18718 func_stripname ()
18719 {
18720   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18721   # positional parameters, so assign one to ordinary parameter first.
18722   func_stripname_result=${3}
18723   func_stripname_result=${func_stripname_result#"${1}"}
18724   func_stripname_result=${func_stripname_result%"${2}"}
18725 }
18726
18727 # func_opt_split
18728 func_opt_split ()
18729 {
18730   func_opt_split_opt=${1%%=*}
18731   func_opt_split_arg=${1#*=}
18732 }
18733
18734 # func_lo2o object
18735 func_lo2o ()
18736 {
18737   case ${1} in
18738     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18739     *)    func_lo2o_result=${1} ;;
18740   esac
18741 }
18742
18743 # func_xform libobj-or-source
18744 func_xform ()
18745 {
18746   func_xform_result=${1%.*}.lo
18747 }
18748
18749 # func_arith arithmetic-term...
18750 func_arith ()
18751 {
18752   func_arith_result=$(( $* ))
18753 }
18754
18755 # func_len string
18756 # STRING may not start with a hyphen.
18757 func_len ()
18758 {
18759   func_len_result=${#1}
18760 }
18761
18762 _LT_EOF
18763     ;;
18764   *) # Bourne compatible functions.
18765     cat << \_LT_EOF >> "$cfgfile"
18766
18767 # func_dirname file append nondir_replacement
18768 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18769 # otherwise set result to NONDIR_REPLACEMENT.
18770 func_dirname ()
18771 {
18772   # Extract subdirectory from the argument.
18773   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18774   if test "X$func_dirname_result" = "X${1}"; then
18775     func_dirname_result="${3}"
18776   else
18777     func_dirname_result="$func_dirname_result${2}"
18778   fi
18779 }
18780
18781 # func_basename file
18782 func_basename ()
18783 {
18784   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18785 }
18786
18787
18788 # func_stripname prefix suffix name
18789 # strip PREFIX and SUFFIX off of NAME.
18790 # PREFIX and SUFFIX must not contain globbing or regex special
18791 # characters, hashes, percent signs, but SUFFIX may contain a leading
18792 # dot (in which case that matches only a dot).
18793 # func_strip_suffix prefix name
18794 func_stripname ()
18795 {
18796   case ${2} in
18797     .*) func_stripname_result=`$ECHO "X${3}" \
18798            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18799     *)  func_stripname_result=`$ECHO "X${3}" \
18800            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18801   esac
18802 }
18803
18804 # sed scripts:
18805 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18806 my_sed_long_arg='1s/^-[^=]*=//'
18807
18808 # func_opt_split
18809 func_opt_split ()
18810 {
18811   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18812   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18813 }
18814
18815 # func_lo2o object
18816 func_lo2o ()
18817 {
18818   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18819 }
18820
18821 # func_xform libobj-or-source
18822 func_xform ()
18823 {
18824   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18825 }
18826
18827 # func_arith arithmetic-term...
18828 func_arith ()
18829 {
18830   func_arith_result=`expr "$@"`
18831 }
18832
18833 # func_len string
18834 # STRING may not start with a hyphen.
18835 func_len ()
18836 {
18837   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18838 }
18839
18840 _LT_EOF
18841 esac
18842
18843 case $lt_shell_append in
18844   yes)
18845     cat << \_LT_EOF >> "$cfgfile"
18846
18847 # func_append var value
18848 # Append VALUE to the end of shell variable VAR.
18849 func_append ()
18850 {
18851   eval "$1+=\$2"
18852 }
18853 _LT_EOF
18854     ;;
18855   *)
18856     cat << \_LT_EOF >> "$cfgfile"
18857
18858 # func_append var value
18859 # Append VALUE to the end of shell variable VAR.
18860 func_append ()
18861 {
18862   eval "$1=\$$1\$2"
18863 }
18864
18865 _LT_EOF
18866     ;;
18867   esac
18868
18869
18870   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18871     || (rm -f "$cfgfile"; exit 1)
18872
18873   mv -f "$cfgfile" "$ofile" ||
18874     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18875   chmod +x "$ofile"
18876
18877
18878     cat <<_LT_EOF >> "$ofile"
18879
18880 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18881
18882 # The linker used to build libraries.
18883 LD=$lt_LD_CXX
18884
18885 # Commands used to build an old-style archive.
18886 old_archive_cmds=$lt_old_archive_cmds_CXX
18887
18888 # A language specific compiler.
18889 CC=$lt_compiler_CXX
18890
18891 # Is the compiler the GNU compiler?
18892 with_gcc=$GCC_CXX
18893
18894 # Compiler flag to turn off builtin functions.
18895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18896
18897 # How to pass a linker flag through the compiler.
18898 wl=$lt_lt_prog_compiler_wl_CXX
18899
18900 # Additional compiler flags for building library objects.
18901 pic_flag=$lt_lt_prog_compiler_pic_CXX
18902
18903 # Compiler flag to prevent dynamic linking.
18904 link_static_flag=$lt_lt_prog_compiler_static_CXX
18905
18906 # Does compiler simultaneously support -c and -o options?
18907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18908
18909 # Whether or not to add -lc for building shared libraries.
18910 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18911
18912 # Whether or not to disallow shared libs when runtime libs are static.
18913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18914
18915 # Compiler flag to allow reflexive dlopens.
18916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18917
18918 # Compiler flag to generate shared objects directly from archives.
18919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18920
18921 # Whether the compiler copes with passing no objects directly.
18922 compiler_needs_object=$lt_compiler_needs_object_CXX
18923
18924 # Create an old-style archive from a shared archive.
18925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18926
18927 # Create a temporary old-style archive to link instead of a shared archive.
18928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18929
18930 # Commands used to build a shared archive.
18931 archive_cmds=$lt_archive_cmds_CXX
18932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18933
18934 # Commands used to build a loadable module if different from building
18935 # a shared archive.
18936 module_cmds=$lt_module_cmds_CXX
18937 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18938
18939 # Whether we are building with GNU ld or not.
18940 with_gnu_ld=$lt_with_gnu_ld_CXX
18941
18942 # Flag that allows shared libraries with undefined symbols to be built.
18943 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18944
18945 # Flag that enforces no undefined symbols.
18946 no_undefined_flag=$lt_no_undefined_flag_CXX
18947
18948 # Flag to hardcode \$libdir into a binary during linking.
18949 # This must work even if \$libdir does not exist
18950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18951
18952 # If ld is used when linking, flag to hardcode \$libdir into a binary
18953 # during linking.  This must work even if \$libdir does not exist.
18954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18955
18956 # Whether we need a single "-rpath" flag with a separated argument.
18957 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18958
18959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18960 # DIR into the resulting binary.
18961 hardcode_direct=$hardcode_direct_CXX
18962
18963 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18964 # DIR into the resulting binary and the resulting library dependency is
18965 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18966 # library is relocated.
18967 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18968
18969 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18970 # into the resulting binary.
18971 hardcode_minus_L=$hardcode_minus_L_CXX
18972
18973 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18974 # into the resulting binary.
18975 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18976
18977 # Set to "yes" if building a shared library automatically hardcodes DIR
18978 # into the library and all subsequent libraries and executables linked
18979 # against it.
18980 hardcode_automatic=$hardcode_automatic_CXX
18981
18982 # Set to yes if linker adds runtime paths of dependent libraries
18983 # to runtime path list.
18984 inherit_rpath=$inherit_rpath_CXX
18985
18986 # Whether libtool must link a program against all its dependency libraries.
18987 link_all_deplibs=$link_all_deplibs_CXX
18988
18989 # Fix the shell variable \$srcfile for the compiler.
18990 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18991
18992 # Set to "yes" if exported symbols are required.
18993 always_export_symbols=$always_export_symbols_CXX
18994
18995 # The commands to list exported symbols.
18996 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18997
18998 # Symbols that should not be listed in the preloaded symbols.
18999 exclude_expsyms=$lt_exclude_expsyms_CXX
19000
19001 # Symbols that must always be exported.
19002 include_expsyms=$lt_include_expsyms_CXX
19003
19004 # Commands necessary for linking programs (against libraries) with templates.
19005 prelink_cmds=$lt_prelink_cmds_CXX
19006
19007 # Specify filename containing input files.
19008 file_list_spec=$lt_file_list_spec_CXX
19009
19010 # How to hardcode a shared library path into an executable.
19011 hardcode_action=$hardcode_action_CXX
19012
19013 # The directories searched by this compiler when creating a shared library.
19014 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19015
19016 # Dependencies to place before and after the objects being linked to
19017 # create a shared library.
19018 predep_objects=$lt_predep_objects_CXX
19019 postdep_objects=$lt_postdep_objects_CXX
19020 predeps=$lt_predeps_CXX
19021 postdeps=$lt_postdeps_CXX
19022
19023 # The library search path used internally by the compiler when linking
19024 # a shared library.
19025 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19026
19027 # ### END LIBTOOL TAG CONFIG: CXX
19028 _LT_EOF
19029
19030  ;;
19031
19032   esac
19033 done # for ac_tag
19034
19035
19036 as_fn_exit 0
19037 _ACEOF
19038 ac_clean_files=$ac_clean_files_save
19039
19040 test $ac_write_fail = 0 ||
19041   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19042
19043
19044 # configure is writing to config.log, and then calls config.status.
19045 # config.status does its own redirection, appending to config.log.
19046 # Unfortunately, on DOS this fails, as config.log is still kept open
19047 # by configure, so config.status won't be able to write to it; its
19048 # output is simply discarded.  So we exec the FD to /dev/null,
19049 # effectively closing config.log, so it can be properly (re)opened and
19050 # appended to by config.status.  When coming back to configure, we
19051 # need to make the FD available again.
19052 if test "$no_create" != yes; then
19053   ac_cs_success=:
19054   ac_config_status_args=
19055   test "$silent" = yes &&
19056     ac_config_status_args="$ac_config_status_args --quiet"
19057   exec 5>/dev/null
19058   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19059   exec 5>>config.log
19060   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19061   # would make configure fail if this is the last instruction.
19062   $ac_cs_success || as_fn_exit $?
19063 fi
19064 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19065   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19066 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19067 fi
19068