Add --disable-rtti
[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.2.
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.2'
705 PACKAGE_STRING='glog 0.3.2'
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 DISABLE_RTTI_FALSE
781 DISABLE_RTTI_TRUE
782 X86_64_FALSE
783 X86_64_TRUE
784 ENABLE_FRAME_POINTERS_FALSE
785 ENABLE_FRAME_POINTERS_TRUE
786 LIBTOOL_DEPS
787 CXXCPP
788 OTOOL64
789 OTOOL
790 LIPO
791 NMEDIT
792 DSYMUTIL
793 lt_ECHO
794 RANLIB
795 AR
796 OBJDUMP
797 LN_S
798 NM
799 ac_ct_DUMPBIN
800 DUMPBIN
801 LD
802 FGREP
803 EGREP
804 GREP
805 SED
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 LIBTOOL
815 GCC_FALSE
816 GCC_TRUE
817 am__fastdepCXX_FALSE
818 am__fastdepCXX_TRUE
819 CXXDEPMODE
820 ac_ct_CXX
821 CXXFLAGS
822 CXX
823 CPP
824 am__fastdepCC_FALSE
825 am__fastdepCC_TRUE
826 CCDEPMODE
827 AMDEPBACKSLASH
828 AMDEP_FALSE
829 AMDEP_TRUE
830 am__quote
831 am__include
832 DEPDIR
833 OBJEXT
834 EXEEXT
835 ac_ct_CC
836 CPPFLAGS
837 LDFLAGS
838 CFLAGS
839 CC
840 am__untar
841 am__tar
842 AMTAR
843 am__leading_dot
844 SET_MAKE
845 AWK
846 mkdir_p
847 MKDIR_P
848 INSTALL_STRIP_PROGRAM
849 STRIP
850 install_sh
851 MAKEINFO
852 AUTOHEADER
853 AUTOMAKE
854 AUTOCONF
855 ACLOCAL
856 VERSION
857 PACKAGE
858 CYGPATH_W
859 am__isrc
860 INSTALL_DATA
861 INSTALL_SCRIPT
862 INSTALL_PROGRAM
863 target_alias
864 host_alias
865 build_alias
866 LIBS
867 ECHO_T
868 ECHO_N
869 ECHO_C
870 DEFS
871 mandir
872 localedir
873 libdir
874 psdir
875 pdfdir
876 dvidir
877 htmldir
878 infodir
879 docdir
880 oldincludedir
881 includedir
882 localstatedir
883 sharedstatedir
884 sysconfdir
885 datadir
886 datarootdir
887 libexecdir
888 sbindir
889 bindir
890 program_transform_name
891 prefix
892 exec_prefix
893 PACKAGE_URL
894 PACKAGE_BUGREPORT
895 PACKAGE_STRING
896 PACKAGE_VERSION
897 PACKAGE_TARNAME
898 PACKAGE_NAME
899 PATH_SEPARATOR
900 SHELL'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 enable_dependency_tracking
905 enable_shared
906 enable_static
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 enable_frame_pointers
912 enable_rtti
913 with_gflags
914 enable_namespace
915 '
916       ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CPP
925 CXX
926 CXXFLAGS
927 CCC
928 CXXCPP'
929
930
931 # Initialize some variables set by options.
932 ac_init_help=
933 ac_init_version=false
934 ac_unrecognized_opts=
935 ac_unrecognized_sep=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
952
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
978
979 ac_prev=
980 ac_dashdash=
981 for ac_option
982 do
983   # If the previous option needs an argument, assign it.
984   if test -n "$ac_prev"; then
985     eval $ac_prev=\$ac_option
986     ac_prev=
987     continue
988   fi
989
990   case $ac_option in
991   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992   *)    ac_optarg=yes ;;
993   esac
994
995   # Accept the important Cygnus configure options, so we can diagnose typos.
996
997   case $ac_dashdash$ac_option in
998   --)
999     ac_dashdash=yes ;;
1000
1001   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002     ac_prev=bindir ;;
1003   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004     bindir=$ac_optarg ;;
1005
1006   -build | --build | --buil | --bui | --bu)
1007     ac_prev=build_alias ;;
1008   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009     build_alias=$ac_optarg ;;
1010
1011   -cache-file | --cache-file | --cache-fil | --cache-fi \
1012   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013     ac_prev=cache_file ;;
1014   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016     cache_file=$ac_optarg ;;
1017
1018   --config-cache | -C)
1019     cache_file=config.cache ;;
1020
1021   -datadir | --datadir | --datadi | --datad)
1022     ac_prev=datadir ;;
1023   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024     datadir=$ac_optarg ;;
1025
1026   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027   | --dataroo | --dataro | --datar)
1028     ac_prev=datarootdir ;;
1029   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031     datarootdir=$ac_optarg ;;
1032
1033   -disable-* | --disable-*)
1034     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037       as_fn_error "invalid feature name: $ac_useropt"
1038     ac_useropt_orig=$ac_useropt
1039     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040     case $ac_user_opts in
1041       *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045          ac_unrecognized_sep=', ';;
1046     esac
1047     eval enable_$ac_useropt=no ;;
1048
1049   -docdir | --docdir | --docdi | --doc | --do)
1050     ac_prev=docdir ;;
1051   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052     docdir=$ac_optarg ;;
1053
1054   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055     ac_prev=dvidir ;;
1056   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057     dvidir=$ac_optarg ;;
1058
1059   -enable-* | --enable-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error "invalid feature name: $ac_useropt"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=\$ac_optarg ;;
1074
1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077   | --exec | --exe | --ex)
1078     ac_prev=exec_prefix ;;
1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081   | --exec=* | --exe=* | --ex=*)
1082     exec_prefix=$ac_optarg ;;
1083
1084   -gas | --gas | --ga | --g)
1085     # Obsolete; use --with-gas.
1086     with_gas=yes ;;
1087
1088   -help | --help | --hel | --he | -h)
1089     ac_init_help=long ;;
1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091     ac_init_help=recursive ;;
1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093     ac_init_help=short ;;
1094
1095   -host | --host | --hos | --ho)
1096     ac_prev=host_alias ;;
1097   -host=* | --host=* | --hos=* | --ho=*)
1098     host_alias=$ac_optarg ;;
1099
1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101     ac_prev=htmldir ;;
1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103   | --ht=*)
1104     htmldir=$ac_optarg ;;
1105
1106   -includedir | --includedir | --includedi | --included | --include \
1107   | --includ | --inclu | --incl | --inc)
1108     ac_prev=includedir ;;
1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
1111     includedir=$ac_optarg ;;
1112
1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
1114     ac_prev=infodir ;;
1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116     infodir=$ac_optarg ;;
1117
1118   -libdir | --libdir | --libdi | --libd)
1119     ac_prev=libdir ;;
1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121     libdir=$ac_optarg ;;
1122
1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124   | --libexe | --libex | --libe)
1125     ac_prev=libexecdir ;;
1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127   | --libexe=* | --libex=* | --libe=*)
1128     libexecdir=$ac_optarg ;;
1129
1130   -localedir | --localedir | --localedi | --localed | --locale)
1131     ac_prev=localedir ;;
1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133     localedir=$ac_optarg ;;
1134
1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
1136   | --localstate | --localstat | --localsta | --localst | --locals)
1137     ac_prev=localstatedir ;;
1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140     localstatedir=$ac_optarg ;;
1141
1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143     ac_prev=mandir ;;
1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145     mandir=$ac_optarg ;;
1146
1147   -nfp | --nfp | --nf)
1148     # Obsolete; use --without-fp.
1149     with_fp=no ;;
1150
1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152   | --no-cr | --no-c | -n)
1153     no_create=yes ;;
1154
1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157     no_recursion=yes ;;
1158
1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161   | --oldin | --oldi | --old | --ol | --o)
1162     ac_prev=oldincludedir ;;
1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166     oldincludedir=$ac_optarg ;;
1167
1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169     ac_prev=prefix ;;
1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171     prefix=$ac_optarg ;;
1172
1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174   | --program-pre | --program-pr | --program-p)
1175     ac_prev=program_prefix ;;
1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178     program_prefix=$ac_optarg ;;
1179
1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181   | --program-suf | --program-su | --program-s)
1182     ac_prev=program_suffix ;;
1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185     program_suffix=$ac_optarg ;;
1186
1187   -program-transform-name | --program-transform-name \
1188   | --program-transform-nam | --program-transform-na \
1189   | --program-transform-n | --program-transform- \
1190   | --program-transform | --program-transfor \
1191   | --program-transfo | --program-transf \
1192   | --program-trans | --program-tran \
1193   | --progr-tra | --program-tr | --program-t)
1194     ac_prev=program_transform_name ;;
1195   -program-transform-name=* | --program-transform-name=* \
1196   | --program-transform-nam=* | --program-transform-na=* \
1197   | --program-transform-n=* | --program-transform-=* \
1198   | --program-transform=* | --program-transfor=* \
1199   | --program-transfo=* | --program-transf=* \
1200   | --program-trans=* | --program-tran=* \
1201   | --progr-tra=* | --program-tr=* | --program-t=*)
1202     program_transform_name=$ac_optarg ;;
1203
1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205     ac_prev=pdfdir ;;
1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207     pdfdir=$ac_optarg ;;
1208
1209   -psdir | --psdir | --psdi | --psd | --ps)
1210     ac_prev=psdir ;;
1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212     psdir=$ac_optarg ;;
1213
1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215   | -silent | --silent | --silen | --sile | --sil)
1216     silent=yes ;;
1217
1218   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219     ac_prev=sbindir ;;
1220   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221   | --sbi=* | --sb=*)
1222     sbindir=$ac_optarg ;;
1223
1224   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226   | --sharedst | --shareds | --shared | --share | --shar \
1227   | --sha | --sh)
1228     ac_prev=sharedstatedir ;;
1229   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232   | --sha=* | --sh=*)
1233     sharedstatedir=$ac_optarg ;;
1234
1235   -site | --site | --sit)
1236     ac_prev=site ;;
1237   -site=* | --site=* | --sit=*)
1238     site=$ac_optarg ;;
1239
1240   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241     ac_prev=srcdir ;;
1242   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243     srcdir=$ac_optarg ;;
1244
1245   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246   | --syscon | --sysco | --sysc | --sys | --sy)
1247     ac_prev=sysconfdir ;;
1248   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250     sysconfdir=$ac_optarg ;;
1251
1252   -target | --target | --targe | --targ | --tar | --ta | --t)
1253     ac_prev=target_alias ;;
1254   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255     target_alias=$ac_optarg ;;
1256
1257   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258     verbose=yes ;;
1259
1260   -version | --version | --versio | --versi | --vers | -V)
1261     ac_init_version=: ;;
1262
1263   -with-* | --with-*)
1264     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267       as_fn_error "invalid package name: $ac_useropt"
1268     ac_useropt_orig=$ac_useropt
1269     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270     case $ac_user_opts in
1271       *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275          ac_unrecognized_sep=', ';;
1276     esac
1277     eval with_$ac_useropt=\$ac_optarg ;;
1278
1279   -without-* | --without-*)
1280     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283       as_fn_error "invalid package name: $ac_useropt"
1284     ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287       *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291          ac_unrecognized_sep=', ';;
1292     esac
1293     eval with_$ac_useropt=no ;;
1294
1295   --x)
1296     # Obsolete; use --with-x.
1297     with_x=yes ;;
1298
1299   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300   | --x-incl | --x-inc | --x-in | --x-i)
1301     ac_prev=x_includes ;;
1302   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304     x_includes=$ac_optarg ;;
1305
1306   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308     ac_prev=x_libraries ;;
1309   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311     x_libraries=$ac_optarg ;;
1312
1313   -*) as_fn_error "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information."
1315     ;;
1316
1317   *=*)
1318     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319     # Reject names that are not valid shell variable names.
1320     case $ac_envvar in #(
1321       '' | [0-9]* | *[!_$as_cr_alnum]* )
1322       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1323     esac
1324     eval $ac_envvar=\$ac_optarg
1325     export $ac_envvar ;;
1326
1327   *)
1328     # FIXME: should be removed in autoconf 3.0.
1329     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333     ;;
1334
1335   esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340   as_fn_error "missing argument to $ac_option"
1341 fi
1342
1343 if test -n "$ac_unrecognized_opts"; then
1344   case $enable_option_checking in
1345     no) ;;
1346     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1347     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348   esac
1349 fi
1350
1351 # Check all directory arguments for consistency.
1352 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353                 datadir sysconfdir sharedstatedir localstatedir includedir \
1354                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355                 libdir localedir mandir
1356 do
1357   eval ac_val=\$$ac_var
1358   # Remove trailing slashes.
1359   case $ac_val in
1360     */ )
1361       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362       eval $ac_var=\$ac_val;;
1363   esac
1364   # Be sure to have absolute directory names.
1365   case $ac_val in
1366     [\\/$]* | ?:[\\/]* )  continue;;
1367     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368   esac
1369   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381   if test "x$build_alias" = x; then
1382     cross_compiling=maybe
1383     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384     If a cross compiler is detected then cross compile mode will be used." >&2
1385   elif test "x$build_alias" != "x$host_alias"; then
1386     cross_compiling=yes
1387   fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399   as_fn_error "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401   as_fn_error "pwd does not report name of working directory"
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$as_myself" : 'X\(//\)[^/]' \| \
1411          X"$as_myself" : 'X\(//\)$' \| \
1412          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1445         pwd)`
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448   srcdir=.
1449 fi
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1453 case $srcdir in
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 esac
1456 for ac_var in $ac_precious_vars; do
1457   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458   eval ac_env_${ac_var}_value=\$${ac_var}
1459   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 done
1462
1463 #
1464 # Report the --help message.
1465 #
1466 if test "$ac_init_help" = "long"; then
1467   # Omit some internal or obsolete options to make the list less imposing.
1468   # This message is too long to be a string in the A/UX 3.1 sh.
1469   cat <<_ACEOF
1470 \`configure' configures glog 0.3.2 to adapt to many kinds of systems.
1471
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE.  See below for descriptions of some of the useful variables.
1476
1477 Defaults for the options are specified in brackets.
1478
1479 Configuration:
1480   -h, --help              display this help and exit
1481       --help=short        display options specific to this package
1482       --help=recursive    display the short help of all the included packages
1483   -V, --version           display version information and exit
1484   -q, --quiet, --silent   do not print \`checking...' messages
1485       --cache-file=FILE   cache test results in FILE [disabled]
1486   -C, --config-cache      alias for \`--cache-file=config.cache'
1487   -n, --no-create         do not create output files
1488       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1489
1490 Installation directories:
1491   --prefix=PREFIX         install architecture-independent files in PREFIX
1492                           [$ac_default_prefix]
1493   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1494                           [PREFIX]
1495
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1500
1501 For better control, use the options below.
1502
1503 Fine tuning of the installation directories:
1504   --bindir=DIR            user executables [EPREFIX/bin]
1505   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1506   --libexecdir=DIR        program executables [EPREFIX/libexec]
1507   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1508   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1509   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1510   --libdir=DIR            object code libraries [EPREFIX/lib]
1511   --includedir=DIR        C header files [PREFIX/include]
1512   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1513   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1514   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1515   --infodir=DIR           info documentation [DATAROOTDIR/info]
1516   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1517   --mandir=DIR            man documentation [DATAROOTDIR/man]
1518   --docdir=DIR            documentation root [DATAROOTDIR/doc/glog]
1519   --htmldir=DIR           html documentation [DOCDIR]
1520   --dvidir=DIR            dvi documentation [DOCDIR]
1521   --pdfdir=DIR            pdf documentation [DOCDIR]
1522   --psdir=DIR             ps documentation [DOCDIR]
1523 _ACEOF
1524
1525   cat <<\_ACEOF
1526
1527 Program names:
1528   --program-prefix=PREFIX            prepend PREFIX to installed program names
1529   --program-suffix=SUFFIX            append SUFFIX to installed program names
1530   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1531
1532 System types:
1533   --build=BUILD     configure for building on BUILD [guessed]
1534   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1535 _ACEOF
1536 fi
1537
1538 if test -n "$ac_init_help"; then
1539   case $ac_init_help in
1540      short | recursive ) echo "Configuration of glog 0.3.2:";;
1541    esac
1542   cat <<\_ACEOF
1543
1544 Optional Features:
1545   --disable-option-checking  ignore unrecognized --enable/--with options
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --disable-dependency-tracking  speeds up one-time build
1549   --enable-dependency-tracking   do not reject slow dependency extractors
1550   --enable-shared[=PKGS]  build shared libraries [default=yes]
1551   --enable-static[=PKGS]  build static libraries [default=yes]
1552   --enable-fast-install[=PKGS]
1553                           optimize for fast installation [default=yes]
1554   --disable-libtool-lock  avoid locking (might break parallel builds)
1555   --enable-frame-pointers On x86_64 systems, compile with
1556                           -fno-omit-frame-pointer (see INSTALL)
1557   --disable-rtti          Disable RTTI in glog
1558   --enable-namespace=FOO to define these Google
1559                              classes in the FOO namespace. --disable-namespace
1560                              to define them in the global namespace. Default
1561                              is to define them in namespace google.
1562
1563 Optional Packages:
1564   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1565   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1566   --with-pic              try to use only PIC/non-PIC objects [default=use
1567                           both]
1568   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1569                           --with-gflags=GFLAGS_DIR
1570
1571 Some influential environment variables:
1572   CC          C compiler command
1573   CFLAGS      C compiler flags
1574   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575               nonstandard directory <lib dir>
1576   LIBS        libraries to pass to the linker, e.g. -l<library>
1577   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578               you have headers in a nonstandard directory <include dir>
1579   CPP         C preprocessor
1580   CXX         C++ compiler command
1581   CXXFLAGS    C++ compiler flags
1582   CXXCPP      C++ preprocessor
1583
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1586
1587 Report bugs to <opensource@google.com>.
1588 _ACEOF
1589 ac_status=$?
1590 fi
1591
1592 if test "$ac_init_help" = "recursive"; then
1593   # If there are subdirs, report their specific --help.
1594   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595     test -d "$ac_dir" ||
1596       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597       continue
1598     ac_builddir=.
1599
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *)
1603   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604   # A ".." for each directory in $ac_dir_suffix.
1605   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606   case $ac_top_builddir_sub in
1607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609   esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1615
1616 case $srcdir in
1617   .)  # We are building in place.
1618     ac_srcdir=.
1619     ac_top_srcdir=$ac_top_builddir_sub
1620     ac_abs_top_srcdir=$ac_pwd ;;
1621   [\\/]* | ?:[\\/]* )  # Absolute name.
1622     ac_srcdir=$srcdir$ac_dir_suffix;
1623     ac_top_srcdir=$srcdir
1624     ac_abs_top_srcdir=$srcdir ;;
1625   *) # Relative name.
1626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627     ac_top_srcdir=$ac_top_build_prefix$srcdir
1628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632     cd "$ac_dir" || { ac_status=$?; continue; }
1633     # Check for guested configure.
1634     if test -f "$ac_srcdir/configure.gnu"; then
1635       echo &&
1636       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637     elif test -f "$ac_srcdir/configure"; then
1638       echo &&
1639       $SHELL "$ac_srcdir/configure" --help=recursive
1640     else
1641       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642     fi || ac_status=$?
1643     cd "$ac_pwd" || { ac_status=$?; break; }
1644   done
1645 fi
1646
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649   cat <<\_ACEOF
1650 glog configure 0.3.2
1651 generated by GNU Autoconf 2.65
1652
1653 Copyright (C) 2009 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657   exit
1658 fi
1659
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1663
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   rm -f conftest.$ac_objext
1671   if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_compile") 2>conftest.err
1679   ac_status=$?
1680   if test -s conftest.err; then
1681     grep -v '^ *+' conftest.err >conftest.er1
1682     cat conftest.er1 >&5
1683     mv -f conftest.er1 conftest.err
1684   fi
1685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686   test $ac_status = 0; } && {
1687          test -z "$ac_c_werror_flag" ||
1688          test ! -s conftest.err
1689        } && test -s conftest.$ac_objext; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695         ac_retval=1
1696 fi
1697   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698   as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_compile
1701
1702 # ac_fn_c_try_cpp LINENO
1703 # ----------------------
1704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_cpp ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   if { { ac_try="$ac_cpp conftest.$ac_ext"
1709 case "(($ac_try" in
1710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711   *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716   ac_status=$?
1717   if test -s conftest.err; then
1718     grep -v '^ *+' conftest.err >conftest.er1
1719     cat conftest.er1 >&5
1720     mv -f conftest.er1 conftest.err
1721   fi
1722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723   test $ac_status = 0; } >/dev/null && {
1724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725          test ! -s conftest.err
1726        }; then :
1727   ac_retval=0
1728 else
1729   $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732     ac_retval=1
1733 fi
1734   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735   as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_cpp
1738
1739 # ac_fn_cxx_try_compile LINENO
1740 # ----------------------------
1741 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_cxx_try_compile ()
1743 {
1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745   rm -f conftest.$ac_objext
1746   if { { ac_try="$ac_compile"
1747 case "(($ac_try" in
1748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749   *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753   (eval "$ac_compile") 2>conftest.err
1754   ac_status=$?
1755   if test -s conftest.err; then
1756     grep -v '^ *+' conftest.err >conftest.er1
1757     cat conftest.er1 >&5
1758     mv -f conftest.er1 conftest.err
1759   fi
1760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761   test $ac_status = 0; } && {
1762          test -z "$ac_cxx_werror_flag" ||
1763          test ! -s conftest.err
1764        } && test -s conftest.$ac_objext; then :
1765   ac_retval=0
1766 else
1767   $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770         ac_retval=1
1771 fi
1772   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773   as_fn_set_status $ac_retval
1774
1775 } # ac_fn_cxx_try_compile
1776
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_link ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   rm -f conftest.$ac_objext conftest$ac_exeext
1784   if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_link") 2>conftest.err
1792   ac_status=$?
1793   if test -s conftest.err; then
1794     grep -v '^ *+' conftest.err >conftest.er1
1795     cat conftest.er1 >&5
1796     mv -f conftest.er1 conftest.err
1797   fi
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && {
1800          test -z "$ac_c_werror_flag" ||
1801          test ! -s conftest.err
1802        } && test -s conftest$ac_exeext && {
1803          test "$cross_compiling" = yes ||
1804          $as_test_x conftest$ac_exeext
1805        }; then :
1806   ac_retval=0
1807 else
1808   $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811         ac_retval=1
1812 fi
1813   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815   # interfere with the next link command; also delete a directory that is
1816   # left behind by Apple's compiler.  We do this before executing the actions.
1817   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819   as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_link
1822
1823 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists and can be compiled using the include files in
1826 # INCLUDES, setting the cache variable VAR accordingly.
1827 ac_fn_c_check_header_compile ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833   $as_echo_n "(cached) " >&6
1834 else
1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 $4
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841   eval "$3=yes"
1842 else
1843   eval "$3=no"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 fi
1847 eval ac_res=\$$3
1848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
1852 } # ac_fn_c_check_header_compile
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864   *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868   (eval "$ac_link") 2>&5
1869   ac_status=$?
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872   { { case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_try") 2>&5
1879   ac_status=$?
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; }; }; then :
1882   ac_retval=0
1883 else
1884   $as_echo "$as_me: program exited with status $ac_status" >&5
1885        $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888        ac_retval=$ac_status
1889 fi
1890   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892   as_fn_set_status $ac_retval
1893
1894 } # ac_fn_c_try_run
1895
1896 # ac_fn_c_check_func LINENO FUNC VAR
1897 # ----------------------------------
1898 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899 ac_fn_c_check_func ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905   $as_echo_n "(cached) " >&6
1906 else
1907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1911 #define $2 innocuous_$2
1912
1913 /* System header to define __stub macros and hopefully few prototypes,
1914     which can conflict with char $2 (); below.
1915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916     <limits.h> exists even on freestanding compilers.  */
1917
1918 #ifdef __STDC__
1919 # include <limits.h>
1920 #else
1921 # include <assert.h>
1922 #endif
1923
1924 #undef $2
1925
1926 /* Override any GCC internal prototype to avoid an error.
1927    Use char because int might match the return type of a GCC
1928    builtin and then its argument prototype would still apply.  */
1929 #ifdef __cplusplus
1930 extern "C"
1931 #endif
1932 char $2 ();
1933 /* The GNU C library defines this for functions which it implements
1934     to always fail with ENOSYS.  Some functions are actually named
1935     something starting with __ and the normal name is an alias.  */
1936 #if defined __stub_$2 || defined __stub___$2
1937 choke me
1938 #endif
1939
1940 int
1941 main ()
1942 {
1943 return $2 ();
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_link "$LINENO"; then :
1949   eval "$3=yes"
1950 else
1951   eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext \
1954     conftest$ac_exeext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960
1961 } # ac_fn_c_check_func
1962
1963 # ac_fn_cxx_try_cpp LINENO
1964 # ------------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_cxx_try_cpp ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977   ac_status=$?
1978   if test -s conftest.err; then
1979     grep -v '^ *+' conftest.err >conftest.er1
1980     cat conftest.er1 >&5
1981     mv -f conftest.er1 conftest.err
1982   fi
1983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984   test $ac_status = 0; } >/dev/null && {
1985          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1986          test ! -s conftest.err
1987        }; then :
1988   ac_retval=0
1989 else
1990   $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993     ac_retval=1
1994 fi
1995   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996   as_fn_set_status $ac_retval
1997
1998 } # ac_fn_cxx_try_cpp
1999
2000 # ac_fn_cxx_try_link LINENO
2001 # -------------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_link ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   rm -f conftest.$ac_objext conftest$ac_exeext
2007   if { { ac_try="$ac_link"
2008 case "(($ac_try" in
2009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010   *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014   (eval "$ac_link") 2>conftest.err
2015   ac_status=$?
2016   if test -s conftest.err; then
2017     grep -v '^ *+' conftest.err >conftest.er1
2018     cat conftest.er1 >&5
2019     mv -f conftest.er1 conftest.err
2020   fi
2021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022   test $ac_status = 0; } && {
2023          test -z "$ac_cxx_werror_flag" ||
2024          test ! -s conftest.err
2025        } && test -s conftest$ac_exeext && {
2026          test "$cross_compiling" = yes ||
2027          $as_test_x conftest$ac_exeext
2028        }; then :
2029   ac_retval=0
2030 else
2031   $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034         ac_retval=1
2035 fi
2036   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2037   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2038   # interfere with the next link command; also delete a directory that is
2039   # left behind by Apple's compiler.  We do this before executing the actions.
2040   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042   as_fn_set_status $ac_retval
2043
2044 } # ac_fn_cxx_try_link
2045
2046 # ac_fn_cxx_try_run LINENO
2047 # ------------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2049 # that executables *can* be run.
2050 ac_fn_cxx_try_run ()
2051 {
2052   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053   if { { ac_try="$ac_link"
2054 case "(($ac_try" in
2055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056   *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060   (eval "$ac_link") 2>&5
2061   ac_status=$?
2062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2064   { { case "(($ac_try" in
2065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066   *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070   (eval "$ac_try") 2>&5
2071   ac_status=$?
2072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073   test $ac_status = 0; }; }; then :
2074   ac_retval=0
2075 else
2076   $as_echo "$as_me: program exited with status $ac_status" >&5
2077        $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080        ac_retval=$ac_status
2081 fi
2082   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2083   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084   as_fn_set_status $ac_retval
2085
2086 } # ac_fn_cxx_try_run
2087
2088 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2089 # ---------------------------------------------------------
2090 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2091 # the include files in INCLUDES and setting the cache variable VAR
2092 # accordingly.
2093 ac_fn_cxx_check_header_mongrel ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100   $as_echo_n "(cached) " >&6
2101 fi
2102 eval ac_res=\$$3
2103                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 else
2106   # Is the header compilable?
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2108 $as_echo_n "checking $2 usability... " >&6; }
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 #include <$2>
2113 _ACEOF
2114 if ac_fn_cxx_try_compile "$LINENO"; then :
2115   ac_header_compiler=yes
2116 else
2117   ac_header_compiler=no
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2121 $as_echo "$ac_header_compiler" >&6; }
2122
2123 # Is the header present?
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2125 $as_echo_n "checking $2 presence... " >&6; }
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h.  */
2128 #include <$2>
2129 _ACEOF
2130 if ac_fn_cxx_try_cpp "$LINENO"; then :
2131   ac_header_preproc=yes
2132 else
2133   ac_header_preproc=no
2134 fi
2135 rm -f conftest.err conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2137 $as_echo "$ac_header_preproc" >&6; }
2138
2139 # So?  What about this header?
2140 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2141   yes:no: )
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2143 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146     ;;
2147   no:yes:* )
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2149 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2151 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2153 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2155 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2157 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158 ( cat <<\_ASBOX
2159 ## ------------------------------------ ##
2160 ## Report this to opensource@google.com ##
2161 ## ------------------------------------ ##
2162 _ASBOX
2163      ) | sed "s/^/$as_me: WARNING:     /" >&2
2164     ;;
2165 esac
2166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2169   $as_echo_n "(cached) " >&6
2170 else
2171   eval "$3=\$ac_header_compiler"
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 fi
2177   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178
2179 } # ac_fn_cxx_check_header_mongrel
2180
2181 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2182 # ----------------------------------------------
2183 # Tries to find the compile-time value of EXPR in a program that includes
2184 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2185 # computed
2186 ac_fn_cxx_compute_int ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   if test "$cross_compiling" = yes; then
2190     # Depending upon the size, compute the lo and hi bounds.
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) >= 0)];
2198 test_array [0] = 0
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2205   ac_lo=0 ac_mid=0
2206   while :; do
2207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 test_array [0] = 0
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221   ac_hi=$ac_mid; break
2222 else
2223   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2224                         if test $ac_lo -le $ac_mid; then
2225                           ac_lo= ac_hi=
2226                           break
2227                         fi
2228                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231   done
2232 else
2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $4
2236 int
2237 main ()
2238 {
2239 static int test_array [1 - 2 * !(($2) < 0)];
2240 test_array [0] = 0
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_cxx_try_compile "$LINENO"; then :
2247   ac_hi=-1 ac_mid=-1
2248   while :; do
2249     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 $4
2252 int
2253 main ()
2254 {
2255 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2256 test_array [0] = 0
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2263   ac_lo=$ac_mid; break
2264 else
2265   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2266                         if test $ac_mid -le $ac_hi; then
2267                           ac_lo= ac_hi=
2268                           break
2269                         fi
2270                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273   done
2274 else
2275   ac_lo= ac_hi=
2276 fi
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 # Binary search between lo and hi bounds.
2281 while test "x$ac_lo" != "x$ac_hi"; do
2282   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 int
2287 main ()
2288 {
2289 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2290 test_array [0] = 0
2291
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_cxx_try_compile "$LINENO"; then :
2297   ac_hi=$ac_mid
2298 else
2299   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 done
2303 case $ac_lo in #((
2304 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2305 '') ac_retval=1 ;;
2306 esac
2307   else
2308     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $4
2311 static long int longval () { return $2; }
2312 static unsigned long int ulongval () { return $2; }
2313 #include <stdio.h>
2314 #include <stdlib.h>
2315 int
2316 main ()
2317 {
2318
2319   FILE *f = fopen ("conftest.val", "w");
2320   if (! f)
2321     return 1;
2322   if (($2) < 0)
2323     {
2324       long int i = longval ();
2325       if (i != ($2))
2326         return 1;
2327       fprintf (f, "%ld", i);
2328     }
2329   else
2330     {
2331       unsigned long int i = ulongval ();
2332       if (i != ($2))
2333         return 1;
2334       fprintf (f, "%lu", i);
2335     }
2336   /* Do not output a trailing newline, as this causes \r\n confusion
2337      on some platforms.  */
2338   return ferror (f) || fclose (f) != 0;
2339
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
2344 if ac_fn_cxx_try_run "$LINENO"; then :
2345   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2346 else
2347   ac_retval=1
2348 fi
2349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2350   conftest.$ac_objext conftest.beam conftest.$ac_ext
2351 rm -f conftest.val
2352
2353   fi
2354   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355   as_fn_set_status $ac_retval
2356
2357 } # ac_fn_cxx_compute_int
2358
2359 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2360 # ---------------------------------------------
2361 # Tests whether TYPE exists after having included INCLUDES, setting cache
2362 # variable VAR accordingly.
2363 ac_fn_cxx_check_type ()
2364 {
2365   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369   $as_echo_n "(cached) " >&6
2370 else
2371   eval "$3=no"
2372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $4
2375 int
2376 main ()
2377 {
2378 if (sizeof ($2))
2379          return 0;
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_cxx_try_compile "$LINENO"; then :
2385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h.  */
2387 $4
2388 int
2389 main ()
2390 {
2391 if (sizeof (($2)))
2392             return 0;
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_cxx_try_compile "$LINENO"; then :
2398
2399 else
2400   eval "$3=yes"
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 eval ac_res=\$$3
2407                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410
2411 } # ac_fn_cxx_check_type
2412
2413 # ac_fn_cxx_check_func LINENO FUNC VAR
2414 # ------------------------------------
2415 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2416 ac_fn_cxx_check_func ()
2417 {
2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 $as_echo_n "checking for $2... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422   $as_echo_n "(cached) " >&6
2423 else
2424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2428 #define $2 innocuous_$2
2429
2430 /* System header to define __stub macros and hopefully few prototypes,
2431     which can conflict with char $2 (); below.
2432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433     <limits.h> exists even on freestanding compilers.  */
2434
2435 #ifdef __STDC__
2436 # include <limits.h>
2437 #else
2438 # include <assert.h>
2439 #endif
2440
2441 #undef $2
2442
2443 /* Override any GCC internal prototype to avoid an error.
2444    Use char because int might match the return type of a GCC
2445    builtin and then its argument prototype would still apply.  */
2446 #ifdef __cplusplus
2447 extern "C"
2448 #endif
2449 char $2 ();
2450 /* The GNU C library defines this for functions which it implements
2451     to always fail with ENOSYS.  Some functions are actually named
2452     something starting with __ and the normal name is an alias.  */
2453 #if defined __stub_$2 || defined __stub___$2
2454 choke me
2455 #endif
2456
2457 int
2458 main ()
2459 {
2460 return $2 ();
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_cxx_try_link "$LINENO"; then :
2466   eval "$3=yes"
2467 else
2468   eval "$3=no"
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext \
2471     conftest$ac_exeext conftest.$ac_ext
2472 fi
2473 eval ac_res=\$$3
2474                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477
2478 } # ac_fn_cxx_check_func
2479 cat >config.log <<_ACEOF
2480 This file contains any messages produced by compilers while
2481 running configure, to aid debugging if configure makes a mistake.
2482
2483 It was created by glog $as_me 0.3.2, which was
2484 generated by GNU Autoconf 2.65.  Invocation command line was
2485
2486   $ $0 $@
2487
2488 _ACEOF
2489 exec 5>>config.log
2490 {
2491 cat <<_ASUNAME
2492 ## --------- ##
2493 ## Platform. ##
2494 ## --------- ##
2495
2496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2501
2502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2503 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2504
2505 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2506 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2508 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2509 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2510 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2511 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2512
2513 _ASUNAME
2514
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520     $as_echo "PATH: $as_dir"
2521   done
2522 IFS=$as_save_IFS
2523
2524 } >&5
2525
2526 cat >&5 <<_ACEOF
2527
2528
2529 ## ----------- ##
2530 ## Core tests. ##
2531 ## ----------- ##
2532
2533 _ACEOF
2534
2535
2536 # Keep a trace of the command line.
2537 # Strip out --no-create and --no-recursion so they do not pile up.
2538 # Strip out --silent because we don't want to record it for future runs.
2539 # Also quote any args containing shell meta-characters.
2540 # Make two passes to allow for proper duplicate-argument suppression.
2541 ac_configure_args=
2542 ac_configure_args0=
2543 ac_configure_args1=
2544 ac_must_keep_next=false
2545 for ac_pass in 1 2
2546 do
2547   for ac_arg
2548   do
2549     case $ac_arg in
2550     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2551     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2552     | -silent | --silent | --silen | --sile | --sil)
2553       continue ;;
2554     *\'*)
2555       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2556     esac
2557     case $ac_pass in
2558     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2559     2)
2560       as_fn_append ac_configure_args1 " '$ac_arg'"
2561       if test $ac_must_keep_next = true; then
2562         ac_must_keep_next=false # Got value, back to normal.
2563       else
2564         case $ac_arg in
2565           *=* | --config-cache | -C | -disable-* | --disable-* \
2566           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2567           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2568           | -with-* | --with-* | -without-* | --without-* | --x)
2569             case "$ac_configure_args0 " in
2570               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2571             esac
2572             ;;
2573           -* ) ac_must_keep_next=true ;;
2574         esac
2575       fi
2576       as_fn_append ac_configure_args " '$ac_arg'"
2577       ;;
2578     esac
2579   done
2580 done
2581 { ac_configure_args0=; unset ac_configure_args0;}
2582 { ac_configure_args1=; unset ac_configure_args1;}
2583
2584 # When interrupted or exit'd, cleanup temporary files, and complete
2585 # config.log.  We remove comments because anyway the quotes in there
2586 # would cause problems or look ugly.
2587 # WARNING: Use '\'' to represent an apostrophe within the trap.
2588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2589 trap 'exit_status=$?
2590   # Save into config.log some information that might help in debugging.
2591   {
2592     echo
2593
2594     cat <<\_ASBOX
2595 ## ---------------- ##
2596 ## Cache variables. ##
2597 ## ---------------- ##
2598 _ASBOX
2599     echo
2600     # The following way of writing the cache mishandles newlines in values,
2601 (
2602   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603     eval ac_val=\$$ac_var
2604     case $ac_val in #(
2605     *${as_nl}*)
2606       case $ac_var in #(
2607       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2609       esac
2610       case $ac_var in #(
2611       _ | IFS | as_nl) ;; #(
2612       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613       *) { eval $ac_var=; unset $ac_var;} ;;
2614       esac ;;
2615     esac
2616   done
2617   (set) 2>&1 |
2618     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619     *${as_nl}ac_space=\ *)
2620       sed -n \
2621         "s/'\''/'\''\\\\'\'''\''/g;
2622           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2623       ;; #(
2624     *)
2625       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2626       ;;
2627     esac |
2628     sort
2629 )
2630     echo
2631
2632     cat <<\_ASBOX
2633 ## ----------------- ##
2634 ## Output variables. ##
2635 ## ----------------- ##
2636 _ASBOX
2637     echo
2638     for ac_var in $ac_subst_vars
2639     do
2640       eval ac_val=\$$ac_var
2641       case $ac_val in
2642       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2643       esac
2644       $as_echo "$ac_var='\''$ac_val'\''"
2645     done | sort
2646     echo
2647
2648     if test -n "$ac_subst_files"; then
2649       cat <<\_ASBOX
2650 ## ------------------- ##
2651 ## File substitutions. ##
2652 ## ------------------- ##
2653 _ASBOX
2654       echo
2655       for ac_var in $ac_subst_files
2656       do
2657         eval ac_val=\$$ac_var
2658         case $ac_val in
2659         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2660         esac
2661         $as_echo "$ac_var='\''$ac_val'\''"
2662       done | sort
2663       echo
2664     fi
2665
2666     if test -s confdefs.h; then
2667       cat <<\_ASBOX
2668 ## ----------- ##
2669 ## confdefs.h. ##
2670 ## ----------- ##
2671 _ASBOX
2672       echo
2673       cat confdefs.h
2674       echo
2675     fi
2676     test "$ac_signal" != 0 &&
2677       $as_echo "$as_me: caught signal $ac_signal"
2678     $as_echo "$as_me: exit $exit_status"
2679   } >&5
2680   rm -f core *.core core.conftest.* &&
2681     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2682     exit $exit_status
2683 ' 0
2684 for ac_signal in 1 2 13 15; do
2685   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2686 done
2687 ac_signal=0
2688
2689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2690 rm -f -r conftest* confdefs.h
2691
2692 $as_echo "/* confdefs.h */" > confdefs.h
2693
2694 # Predefined preprocessor variables.
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_NAME "$PACKAGE_NAME"
2698 _ACEOF
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2702 _ACEOF
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2706 _ACEOF
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_STRING "$PACKAGE_STRING"
2710 _ACEOF
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2714 _ACEOF
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_URL "$PACKAGE_URL"
2718 _ACEOF
2719
2720
2721 # Let the site file select an alternate cache file if it wants to.
2722 # Prefer an explicitly selected file to automatically selected ones.
2723 ac_site_file1=NONE
2724 ac_site_file2=NONE
2725 if test -n "$CONFIG_SITE"; then
2726   ac_site_file1=$CONFIG_SITE
2727 elif test "x$prefix" != xNONE; then
2728   ac_site_file1=$prefix/share/config.site
2729   ac_site_file2=$prefix/etc/config.site
2730 else
2731   ac_site_file1=$ac_default_prefix/share/config.site
2732   ac_site_file2=$ac_default_prefix/etc/config.site
2733 fi
2734 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2735 do
2736   test "x$ac_site_file" = xNONE && continue
2737   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2738     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2739 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2740     sed 's/^/| /' "$ac_site_file" >&5
2741     . "$ac_site_file"
2742   fi
2743 done
2744
2745 if test -r "$cache_file"; then
2746   # Some versions of bash will fail to source /dev/null (special files
2747   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2748   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2749     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2750 $as_echo "$as_me: loading cache $cache_file" >&6;}
2751     case $cache_file in
2752       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2753       *)                      . "./$cache_file";;
2754     esac
2755   fi
2756 else
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2758 $as_echo "$as_me: creating cache $cache_file" >&6;}
2759   >$cache_file
2760 fi
2761
2762 # Check that the precious variables saved in the cache have kept the same
2763 # value.
2764 ac_cache_corrupted=false
2765 for ac_var in $ac_precious_vars; do
2766   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2767   eval ac_new_set=\$ac_env_${ac_var}_set
2768   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2769   eval ac_new_val=\$ac_env_${ac_var}_value
2770   case $ac_old_set,$ac_new_set in
2771     set,)
2772       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2774       ac_cache_corrupted=: ;;
2775     ,set)
2776       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2777 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2778       ac_cache_corrupted=: ;;
2779     ,);;
2780     *)
2781       if test "x$ac_old_val" != "x$ac_new_val"; then
2782         # differences in whitespace do not lead to failure.
2783         ac_old_val_w=`echo x $ac_old_val`
2784         ac_new_val_w=`echo x $ac_new_val`
2785         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2786           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2787 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2788           ac_cache_corrupted=:
2789         else
2790           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2791 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2792           eval $ac_var=\$ac_old_val
2793         fi
2794         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2795 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2796         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2797 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2798       fi;;
2799   esac
2800   # Pass precious variables to config.status.
2801   if test "$ac_new_set" = set; then
2802     case $ac_new_val in
2803     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2804     *) ac_arg=$ac_var=$ac_new_val ;;
2805     esac
2806     case " $ac_configure_args " in
2807       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2808       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2809     esac
2810   fi
2811 done
2812 if $ac_cache_corrupted; then
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2816 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2817   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2818 fi
2819 ## -------------------- ##
2820 ## Main body of script. ##
2821 ## -------------------- ##
2822
2823 ac_ext=c
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828
2829
2830 # The argument here is just something that should be in the current directory
2831 # (for sanity checking)
2832
2833
2834 am__api_version='1.11'
2835
2836 ac_aux_dir=
2837 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2838   for ac_t in install-sh install.sh shtool; do
2839     if test -f "$ac_dir/$ac_t"; then
2840       ac_aux_dir=$ac_dir
2841       ac_install_sh="$ac_aux_dir/$ac_t -c"
2842       break 2
2843     fi
2844   done
2845 done
2846 if test -z "$ac_aux_dir"; then
2847   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2848 fi
2849
2850 # These three variables are undocumented and unsupported,
2851 # and are intended to be withdrawn in a future Autoconf release.
2852 # They can cause serious problems if a builder's source tree is in a directory
2853 # whose full name contains unusual characters.
2854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2856 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2857
2858
2859 # Find a good install program.  We prefer a C program (faster),
2860 # so one script is as good as another.  But avoid the broken or
2861 # incompatible versions:
2862 # SysV /etc/install, /usr/sbin/install
2863 # SunOS /usr/etc/install
2864 # IRIX /sbin/install
2865 # AIX /bin/install
2866 # AmigaOS /C/install, which installs bootblocks on floppy discs
2867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2870 # OS/2's system install, which has a completely different semantic
2871 # ./install, which can be erroneously created by make from ./install.sh.
2872 # Reject install programs that cannot install multiple files.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2874 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2875 if test -z "$INSTALL"; then
2876 if test "${ac_cv_path_install+set}" = set; then :
2877   $as_echo_n "(cached) " >&6
2878 else
2879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884     # Account for people who put trailing slashes in PATH elements.
2885 case $as_dir/ in #((
2886   ./ | .// | /[cC]/* | \
2887   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2888   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2889   /usr/ucb/* ) ;;
2890   *)
2891     # OSF1 and SCO ODT 3.0 have their own names for install.
2892     # Don't use installbsd from OSF since it installs stuff as root
2893     # by default.
2894     for ac_prog in ginstall scoinst install; do
2895       for ac_exec_ext in '' $ac_executable_extensions; do
2896         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2897           if test $ac_prog = install &&
2898             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899             # AIX install.  It has an incompatible calling convention.
2900             :
2901           elif test $ac_prog = install &&
2902             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903             # program-specific install script used by HP pwplus--don't use.
2904             :
2905           else
2906             rm -rf conftest.one conftest.two conftest.dir
2907             echo one > conftest.one
2908             echo two > conftest.two
2909             mkdir conftest.dir
2910             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2911               test -s conftest.one && test -s conftest.two &&
2912               test -s conftest.dir/conftest.one &&
2913               test -s conftest.dir/conftest.two
2914             then
2915               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2916               break 3
2917             fi
2918           fi
2919         fi
2920       done
2921     done
2922     ;;
2923 esac
2924
2925   done
2926 IFS=$as_save_IFS
2927
2928 rm -rf conftest.one conftest.two conftest.dir
2929
2930 fi
2931   if test "${ac_cv_path_install+set}" = set; then
2932     INSTALL=$ac_cv_path_install
2933   else
2934     # As a last resort, use the slow shell script.  Don't cache a
2935     # value for INSTALL within a source directory, because that will
2936     # break other packages using the cache if that directory is
2937     # removed, or if the value is a relative name.
2938     INSTALL=$ac_install_sh
2939   fi
2940 fi
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2942 $as_echo "$INSTALL" >&6; }
2943
2944 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2945 # It thinks the first close brace ends the variable substitution.
2946 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2947
2948 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2949
2950 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2951
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2953 $as_echo_n "checking whether build environment is sane... " >&6; }
2954 # Just in case
2955 sleep 1
2956 echo timestamp > conftest.file
2957 # Reject unsafe characters in $srcdir or the absolute working directory
2958 # name.  Accept space and tab only in the latter.
2959 am_lf='
2960 '
2961 case `pwd` in
2962   *[\\\"\#\$\&\'\`$am_lf]*)
2963     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2964 esac
2965 case $srcdir in
2966   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2967     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2968 esac
2969
2970 # Do `set' in a subshell so we don't clobber the current shell's
2971 # arguments.  Must try -L first in case configure is actually a
2972 # symlink; some systems play weird games with the mod time of symlinks
2973 # (eg FreeBSD returns the mod time of the symlink's containing
2974 # directory).
2975 if (
2976    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2977    if test "$*" = "X"; then
2978       # -L didn't work.
2979       set X `ls -t "$srcdir/configure" conftest.file`
2980    fi
2981    rm -f conftest.file
2982    if test "$*" != "X $srcdir/configure conftest.file" \
2983       && test "$*" != "X conftest.file $srcdir/configure"; then
2984
2985       # If neither matched, then we have a broken ls.  This can happen
2986       # if, for instance, CONFIG_SHELL is bash and it inherits a
2987       # broken ls alias from the environment.  This has actually
2988       # happened.  Such a system could not be considered "sane".
2989       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2990 alias in your environment" "$LINENO" 5
2991    fi
2992
2993    test "$2" = conftest.file
2994    )
2995 then
2996    # Ok.
2997    :
2998 else
2999    as_fn_error "newly created file is older than distributed files!
3000 Check your system clock" "$LINENO" 5
3001 fi
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 $as_echo "yes" >&6; }
3004 test "$program_prefix" != NONE &&
3005   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3006 # Use a double $ so make ignores it.
3007 test "$program_suffix" != NONE &&
3008   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3009 # Double any \ or $.
3010 # By default was `s,x,x', remove it if useless.
3011 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3012 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3013
3014 # expand $ac_aux_dir to an absolute path
3015 am_aux_dir=`cd $ac_aux_dir && pwd`
3016
3017 if test x"${MISSING+set}" != xset; then
3018   case $am_aux_dir in
3019   *\ * | *\     *)
3020     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3021   *)
3022     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3023   esac
3024 fi
3025 # Use eval to expand $SHELL
3026 if eval "$MISSING --run true"; then
3027   am_missing_run="$MISSING --run "
3028 else
3029   am_missing_run=
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3031 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3032 fi
3033
3034 if test x"${install_sh}" != xset; then
3035   case $am_aux_dir in
3036   *\ * | *\     *)
3037     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3038   *)
3039     install_sh="\${SHELL} $am_aux_dir/install-sh"
3040   esac
3041 fi
3042
3043 # Installed binaries are usually stripped using `strip' when the user
3044 # run `make install-strip'.  However `strip' might not be the right
3045 # tool to use in cross-compilation environments, therefore Automake
3046 # will honor the `STRIP' environment variable to overrule this program.
3047 if test "$cross_compiling" != no; then
3048   if test -n "$ac_tool_prefix"; then
3049   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}strip; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_STRIP+set}" = set; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$STRIP"; then
3057   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 STRIP=$ac_cv_prog_STRIP
3077 if test -n "$STRIP"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3079 $as_echo "$STRIP" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086 fi
3087 if test -z "$ac_cv_prog_STRIP"; then
3088   ac_ct_STRIP=$STRIP
3089   # Extract the first word of "strip", so it can be a program name with args.
3090 set dummy strip; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   if test -n "$ac_ct_STRIP"; then
3097   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104     for ac_exec_ext in '' $ac_executable_extensions; do
3105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106     ac_cv_prog_ac_ct_STRIP="strip"
3107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3117 if test -n "$ac_ct_STRIP"; then
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3119 $as_echo "$ac_ct_STRIP" >&6; }
3120 else
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125   if test "x$ac_ct_STRIP" = x; then
3126     STRIP=":"
3127   else
3128     case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134     STRIP=$ac_ct_STRIP
3135   fi
3136 else
3137   STRIP="$ac_cv_prog_STRIP"
3138 fi
3139
3140 fi
3141 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3144 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3145 if test -z "$MKDIR_P"; then
3146   if test "${ac_cv_path_mkdir+set}" = set; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154     for ac_prog in mkdir gmkdir; do
3155          for ac_exec_ext in '' $ac_executable_extensions; do
3156            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3157            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3158              'mkdir (GNU coreutils) '* | \
3159              'mkdir (coreutils) '* | \
3160              'mkdir (fileutils) '4.1*)
3161                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3162                break 3;;
3163            esac
3164          done
3165        done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170
3171   test -d ./--version && rmdir ./--version
3172   if test "${ac_cv_path_mkdir+set}" = set; then
3173     MKDIR_P="$ac_cv_path_mkdir -p"
3174   else
3175     # As a last resort, use the slow shell script.  Don't cache a
3176     # value for MKDIR_P within a source directory, because that will
3177     # break other packages using the cache if that directory is
3178     # removed, or if the value is a relative name.
3179     MKDIR_P="$ac_install_sh -d"
3180   fi
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3183 $as_echo "$MKDIR_P" >&6; }
3184
3185 mkdir_p="$MKDIR_P"
3186 case $mkdir_p in
3187   [\\/$]* | ?:[\\/]*) ;;
3188   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3189 esac
3190
3191 for ac_prog in gawk mawk nawk awk
3192 do
3193   # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_AWK+set}" = set; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$AWK"; then
3201   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208     for ac_exec_ext in '' $ac_executable_extensions; do
3209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210     ac_cv_prog_AWK="$ac_prog"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 AWK=$ac_cv_prog_AWK
3221 if test -n "$AWK"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3223 $as_echo "$AWK" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230   test -n "$AWK" && break
3231 done
3232
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3234 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3235 set x ${MAKE-make}
3236 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3237 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   cat >conftest.make <<\_ACEOF
3241 SHELL = /bin/sh
3242 all:
3243         @echo '@@@%%%=$(MAKE)=@@@%%%'
3244 _ACEOF
3245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3246 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3247   *@@@%%%=?*=@@@%%%*)
3248     eval ac_cv_prog_make_${ac_make}_set=yes;;
3249   *)
3250     eval ac_cv_prog_make_${ac_make}_set=no;;
3251 esac
3252 rm -f conftest.make
3253 fi
3254 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3257   SET_MAKE=
3258 else
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261   SET_MAKE="MAKE=${MAKE-make}"
3262 fi
3263
3264 rm -rf .tst 2>/dev/null
3265 mkdir .tst 2>/dev/null
3266 if test -d .tst; then
3267   am__leading_dot=.
3268 else
3269   am__leading_dot=_
3270 fi
3271 rmdir .tst 2>/dev/null
3272
3273 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3274   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3275   # is not polluted with repeated "-I."
3276   am__isrc=' -I$(srcdir)'
3277   # test to see if srcdir already configured
3278   if test -f $srcdir/config.status; then
3279     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3280   fi
3281 fi
3282
3283 # test whether we have cygpath
3284 if test -z "$CYGPATH_W"; then
3285   if (cygpath --version) >/dev/null 2>/dev/null; then
3286     CYGPATH_W='cygpath -w'
3287   else
3288     CYGPATH_W=echo
3289   fi
3290 fi
3291
3292
3293 # Define the identity of the package.
3294  PACKAGE='glog'
3295  VERSION='0.3.2'
3296
3297
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE "$PACKAGE"
3300 _ACEOF
3301
3302
3303 cat >>confdefs.h <<_ACEOF
3304 #define VERSION "$VERSION"
3305 _ACEOF
3306
3307 # Some tools Automake needs.
3308
3309 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3310
3311
3312 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3313
3314
3315 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3316
3317
3318 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3319
3320
3321 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3322
3323 # We need awk for the "check" target.  The system "awk" is bad on
3324 # some platforms.
3325 # Always define AMTAR for backward compatibility.
3326
3327 AMTAR=${AMTAR-"${am_missing_run}tar"}
3328
3329 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3330
3331
3332
3333
3334
3335 ac_config_headers="$ac_config_headers src/config.h"
3336
3337
3338 ac_ext=cpp
3339 ac_cpp='$CXXCPP $CPPFLAGS'
3340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3343
3344
3345 # Checks for programs.
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 if test -n "$ac_tool_prefix"; then
3352   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   if test -n "$CC"; then
3360   ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367     for ac_exec_ext in '' $ac_executable_extensions; do
3368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374   done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 fi
3390 if test -z "$ac_cv_prog_CC"; then
3391   ac_ct_CC=$CC
3392   # Extract the first word of "gcc", so it can be a program name with args.
3393 set dummy gcc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$ac_ct_CC"; then
3400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409     ac_cv_prog_ac_ct_CC="gcc"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3423 else
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428   if test "x$ac_ct_CC" = x; then
3429     CC=""
3430   else
3431     case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437     CC=$ac_ct_CC
3438   fi
3439 else
3440   CC="$ac_cv_prog_CC"
3441 fi
3442
3443 if test -z "$CC"; then
3444           if test -n "$ac_tool_prefix"; then
3445     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}cc; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   if test -n "$CC"; then
3453   ac_cv_prog_CC="$CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462     ac_cv_prog_CC="${ac_tool_prefix}cc"
3463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467   done
3468 IFS=$as_save_IFS
3469
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481
3482   fi
3483 fi
3484 if test -z "$CC"; then
3485   # Extract the first word of "cc", so it can be a program name with args.
3486 set dummy cc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if test "${ac_cv_prog_CC+set}" = set; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   if test -n "$CC"; then
3493   ac_cv_prog_CC="$CC" # Let the user override the test.
3494 else
3495   ac_prog_rejected=no
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499   IFS=$as_save_IFS
3500   test -z "$as_dir" && as_dir=.
3501     for ac_exec_ext in '' $ac_executable_extensions; do
3502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3504        ac_prog_rejected=yes
3505        continue
3506      fi
3507     ac_cv_prog_CC="cc"
3508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 if test $ac_prog_rejected = yes; then
3516   # We found a bogon in the path, so make sure we never use it.
3517   set dummy $ac_cv_prog_CC
3518   shift
3519   if test $# != 0; then
3520     # We chose a different compiler from the bogus one.
3521     # However, it has the same basename, so the bogon will be chosen
3522     # first if we set CC to just the basename; use the full file name.
3523     shift
3524     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3525   fi
3526 fi
3527 fi
3528 fi
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3533 else
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$CC"; then
3541   if test -n "$ac_tool_prefix"; then
3542   for ac_prog in cl.exe
3543   do
3544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_CC+set}" = set; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   if test -n "$CC"; then
3552   ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559     for ac_exec_ext in '' $ac_executable_extensions; do
3560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563     break 2
3564   fi
3565 done
3566   done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 $as_echo "$CC" >&6; }
3575 else
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580
3581     test -n "$CC" && break
3582   done
3583 fi
3584 if test -z "$CC"; then
3585   ac_ct_CC=$CC
3586   for ac_prog in cl.exe
3587 do
3588   # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$ac_ct_CC"; then
3596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605     ac_cv_prog_ac_ct_CC="$ac_prog"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625   test -n "$ac_ct_CC" && break
3626 done
3627
3628   if test "x$ac_ct_CC" = x; then
3629     CC=""
3630   else
3631     case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637     CC=$ac_ct_CC
3638   fi
3639 fi
3640
3641 fi
3642
3643
3644 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error "no acceptable C compiler found in \$PATH
3647 See \`config.log' for more details." "$LINENO" 5; }
3648
3649 # Provide some information about the compiler.
3650 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3651 set X $ac_compile
3652 ac_compiler=$2
3653 for ac_option in --version -v -V -qversion; do
3654   { { ac_try="$ac_compiler $ac_option >&5"
3655 case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3662   ac_status=$?
3663   if test -s conftest.err; then
3664     sed '10a\
3665 ... rest of stderr output deleted ...
3666          10q' conftest.err >conftest.er1
3667     cat conftest.er1 >&5
3668   fi
3669   rm -f conftest.er1 conftest.err
3670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671   test $ac_status = 0; }
3672 done
3673
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h.  */
3676
3677 int
3678 main ()
3679 {
3680
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 ac_clean_files_save=$ac_clean_files
3686 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3687 # Try to create an executable without -o first, disregard a.out.
3688 # It will help us diagnose broken compilers, and finding out an intuition
3689 # of exeext.
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3691 $as_echo_n "checking whether the C compiler works... " >&6; }
3692 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3693
3694 # The possible output files:
3695 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3696
3697 ac_rmfiles=
3698 for ac_file in $ac_files
3699 do
3700   case $ac_file in
3701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3703   esac
3704 done
3705 rm -f $ac_rmfiles
3706
3707 if { { ac_try="$ac_link_default"
3708 case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714   (eval "$ac_link_default") 2>&5
3715   ac_status=$?
3716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717   test $ac_status = 0; }; then :
3718   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3719 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3720 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3721 # so that the user can short-circuit this test for compilers unknown to
3722 # Autoconf.
3723 for ac_file in $ac_files ''
3724 do
3725   test -f "$ac_file" || continue
3726   case $ac_file in
3727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3728         ;;
3729     [ab].out )
3730         # We found the default executable, but exeext='' is most
3731         # certainly right.
3732         break;;
3733     *.* )
3734         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3735         then :; else
3736            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3737         fi
3738         # We set ac_cv_exeext here because the later test for it is not
3739         # safe: cross compilers may not add the suffix if given an `-o'
3740         # argument, so we may need to know it at that point already.
3741         # Even if this section looks crufty: it has the advantage of
3742         # actually working.
3743         break;;
3744     * )
3745         break;;
3746   esac
3747 done
3748 test "$ac_cv_exeext" = no && ac_cv_exeext=
3749
3750 else
3751   ac_file=''
3752 fi
3753 if test -z "$ac_file"; then :
3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 $as_echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 { as_fn_set_status 77
3762 as_fn_error "C compiler cannot create executables
3763 See \`config.log' for more details." "$LINENO" 5; }; }
3764 else
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766 $as_echo "yes" >&6; }
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3769 $as_echo_n "checking for C compiler default output file name... " >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3771 $as_echo "$ac_file" >&6; }
3772 ac_exeext=$ac_cv_exeext
3773
3774 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3775 ac_clean_files=$ac_clean_files_save
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3777 $as_echo_n "checking for suffix of executables... " >&6; }
3778 if { { ac_try="$ac_link"
3779 case "(($ac_try" in
3780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781   *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785   (eval "$ac_link") 2>&5
3786   ac_status=$?
3787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788   test $ac_status = 0; }; then :
3789   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3790 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3791 # work properly (i.e., refer to `conftest.exe'), while it won't with
3792 # `rm'.
3793 for ac_file in conftest.exe conftest conftest.*; do
3794   test -f "$ac_file" || continue
3795   case $ac_file in
3796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3797     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798           break;;
3799     * ) break;;
3800   esac
3801 done
3802 else
3803   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error "cannot compute suffix of executables: cannot compile and link
3806 See \`config.log' for more details." "$LINENO" 5; }
3807 fi
3808 rm -f conftest conftest$ac_cv_exeext
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3810 $as_echo "$ac_cv_exeext" >&6; }
3811
3812 rm -f conftest.$ac_ext
3813 EXEEXT=$ac_cv_exeext
3814 ac_exeext=$EXEEXT
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h.  */
3817 #include <stdio.h>
3818 int
3819 main ()
3820 {
3821 FILE *f = fopen ("conftest.out", "w");
3822  return ferror (f) || fclose (f) != 0;
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files="$ac_clean_files conftest.out"
3829 # Check that the compiler produces executables we can run.  If not, either
3830 # the compiler is broken, or we cross compile.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3832 $as_echo_n "checking whether we are cross compiling... " >&6; }
3833 if test "$cross_compiling" != yes; then
3834   { { ac_try="$ac_link"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841   (eval "$ac_link") 2>&5
3842   ac_status=$?
3843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844   test $ac_status = 0; }
3845   if { ac_try='./conftest$ac_cv_exeext'
3846   { { case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852   (eval "$ac_try") 2>&5
3853   ac_status=$?
3854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855   test $ac_status = 0; }; }; then
3856     cross_compiling=no
3857   else
3858     if test "$cross_compiling" = maybe; then
3859         cross_compiling=yes
3860     else
3861         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error "cannot run C compiled programs.
3864 If you meant to cross compile, use \`--host'.
3865 See \`config.log' for more details." "$LINENO" 5; }
3866     fi
3867   fi
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3870 $as_echo "$cross_compiling" >&6; }
3871
3872 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3873 ac_clean_files=$ac_clean_files_save
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3875 $as_echo_n "checking for suffix of object files... " >&6; }
3876 if test "${ac_cv_objext+set}" = set; then :
3877   $as_echo_n "(cached) " >&6
3878 else
3879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h.  */
3881
3882 int
3883 main ()
3884 {
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.o conftest.obj
3891 if { { ac_try="$ac_compile"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898   (eval "$ac_compile") 2>&5
3899   ac_status=$?
3900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901   test $ac_status = 0; }; then :
3902   for ac_file in conftest.o conftest.obj conftest.*; do
3903   test -f "$ac_file" || continue;
3904   case $ac_file in
3905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3906     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3907        break;;
3908   esac
3909 done
3910 else
3911   $as_echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error "cannot compute suffix of object files: cannot compile
3917 See \`config.log' for more details." "$LINENO" 5; }
3918 fi
3919 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3922 $as_echo "$ac_cv_objext" >&6; }
3923 OBJEXT=$ac_cv_objext
3924 ac_objext=$OBJEXT
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3927 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3928   $as_echo_n "(cached) " >&6
3929 else
3930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h.  */
3932
3933 int
3934 main ()
3935 {
3936 #ifndef __GNUC__
3937        choke me
3938 #endif
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945   ac_compiler_gnu=yes
3946 else
3947   ac_compiler_gnu=no
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3951
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3955 if test $ac_compiler_gnu = yes; then
3956   GCC=yes
3957 else
3958   GCC=
3959 fi
3960 ac_test_CFLAGS=${CFLAGS+set}
3961 ac_save_CFLAGS=$CFLAGS
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3964 if test "${ac_cv_prog_cc_g+set}" = set; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   ac_save_c_werror_flag=$ac_c_werror_flag
3968    ac_c_werror_flag=yes
3969    ac_cv_prog_cc_g=no
3970    CFLAGS="-g"
3971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h.  */
3973
3974 int
3975 main ()
3976 {
3977
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983   ac_cv_prog_cc_g=yes
3984 else
3985   CFLAGS=""
3986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998
3999 else
4000   ac_c_werror_flag=$ac_save_c_werror_flag
4001          CFLAGS="-g"
4002          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004
4005 int
4006 main ()
4007 {
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014   ac_cv_prog_cc_g=yes
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 fi
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021    ac_c_werror_flag=$ac_save_c_werror_flag
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4024 $as_echo "$ac_cv_prog_cc_g" >&6; }
4025 if test "$ac_test_CFLAGS" = set; then
4026   CFLAGS=$ac_save_CFLAGS
4027 elif test $ac_cv_prog_cc_g = yes; then
4028   if test "$GCC" = yes; then
4029     CFLAGS="-g -O2"
4030   else
4031     CFLAGS="-g"
4032   fi
4033 else
4034   if test "$GCC" = yes; then
4035     CFLAGS="-O2"
4036   else
4037     CFLAGS=
4038   fi
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4042 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   ac_cv_prog_cc_c89=no
4046 ac_save_CC=$CC
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049 #include <stdarg.h>
4050 #include <stdio.h>
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4057      char **p;
4058      int i;
4059 {
4060   return p[i];
4061 }
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4063 {
4064   char *s;
4065   va_list v;
4066   va_start (v,p);
4067   s = g (p, va_arg (v,int));
4068   va_end (v);
4069   return s;
4070 }
4071
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4073    function prototypes and stuff, but not '\xHH' hex character constants.
4074    These don't provoke an error unfortunately, instead are silently treated
4075    as 'x'.  The following induces an error, until -std is added to get
4076    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4077    array size at least.  It's necessary to write '\x00'==0 to get something
4078    that's true only with -std.  */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082    inside strings and character constants.  */
4083 #define FOO(x) 'x'
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 int argc;
4091 char **argv;
4092 int
4093 main ()
4094 {
4095 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 do
4103   CC="$ac_save_CC $ac_arg"
4104   if ac_fn_c_try_compile "$LINENO"; then :
4105   ac_cv_prog_cc_c89=$ac_arg
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext
4108   test "x$ac_cv_prog_cc_c89" != "xno" && break
4109 done
4110 rm -f conftest.$ac_ext
4111 CC=$ac_save_CC
4112
4113 fi
4114 # AC_CACHE_VAL
4115 case "x$ac_cv_prog_cc_c89" in
4116   x)
4117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4118 $as_echo "none needed" >&6; } ;;
4119   xno)
4120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;;
4122   *)
4123     CC="$CC $ac_cv_prog_cc_c89"
4124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4126 esac
4127 if test "x$ac_cv_prog_cc_c89" != xno; then :
4128
4129 fi
4130
4131 ac_ext=cpp
4132 ac_cpp='$CXXCPP $CPPFLAGS'
4133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4136 DEPDIR="${am__leading_dot}deps"
4137
4138 ac_config_commands="$ac_config_commands depfiles"
4139
4140
4141 am_make=${MAKE-make}
4142 cat > confinc << 'END'
4143 am__doit:
4144         @echo this is the am__doit target
4145 .PHONY: am__doit
4146 END
4147 # If we don't find an include directive, just comment out the code.
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4149 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4150 am__include="#"
4151 am__quote=
4152 _am_result=none
4153 # First try GNU make style include.
4154 echo "include confinc" > confmf
4155 # Ignore all kinds of additional output from `make'.
4156 case `$am_make -s -f confmf 2> /dev/null` in #(
4157 *the\ am__doit\ target*)
4158   am__include=include
4159   am__quote=
4160   _am_result=GNU
4161   ;;
4162 esac
4163 # Now try BSD make style include.
4164 if test "$am__include" = "#"; then
4165    echo '.include "confinc"' > confmf
4166    case `$am_make -s -f confmf 2> /dev/null` in #(
4167    *the\ am__doit\ target*)
4168      am__include=.include
4169      am__quote="\""
4170      _am_result=BSD
4171      ;;
4172    esac
4173 fi
4174
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4177 $as_echo "$_am_result" >&6; }
4178 rm -f confinc confmf
4179
4180 # Check whether --enable-dependency-tracking was given.
4181 if test "${enable_dependency_tracking+set}" = set; then :
4182   enableval=$enable_dependency_tracking;
4183 fi
4184
4185 if test "x$enable_dependency_tracking" != xno; then
4186   am_depcomp="$ac_aux_dir/depcomp"
4187   AMDEPBACKSLASH='\'
4188 fi
4189  if test "x$enable_dependency_tracking" != xno; then
4190   AMDEP_TRUE=
4191   AMDEP_FALSE='#'
4192 else
4193   AMDEP_TRUE='#'
4194   AMDEP_FALSE=
4195 fi
4196
4197
4198
4199 depcc="$CC"   am_compiler_list=
4200
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4202 $as_echo_n "checking dependency style of $depcc... " >&6; }
4203 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4204   $as_echo_n "(cached) " >&6
4205 else
4206   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4207   # We make a subdir and do the tests there.  Otherwise we can end up
4208   # making bogus files that we don't know about and never remove.  For
4209   # instance it was reported that on HP-UX the gcc test will end up
4210   # making a dummy file named `D' -- because `-MD' means `put the output
4211   # in D'.
4212   mkdir conftest.dir
4213   # Copy depcomp to subdir because otherwise we won't find it if we're
4214   # using a relative directory.
4215   cp "$am_depcomp" conftest.dir
4216   cd conftest.dir
4217   # We will build objects and dependencies in a subdirectory because
4218   # it helps to detect inapplicable dependency modes.  For instance
4219   # both Tru64's cc and ICC support -MD to output dependencies as a
4220   # side effect of compilation, but ICC will put the dependencies in
4221   # the current directory while Tru64 will put them in the object
4222   # directory.
4223   mkdir sub
4224
4225   am_cv_CC_dependencies_compiler_type=none
4226   if test "$am_compiler_list" = ""; then
4227      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4228   fi
4229   am__universal=false
4230   case " $depcc " in #(
4231      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4232      esac
4233
4234   for depmode in $am_compiler_list; do
4235     # Setup a source with many dependencies, because some compilers
4236     # like to wrap large dependency lists on column 80 (with \), and
4237     # we should not choose a depcomp mode which is confused by this.
4238     #
4239     # We need to recreate these files for each test, as the compiler may
4240     # overwrite some of them when testing with obscure command lines.
4241     # This happens at least with the AIX C compiler.
4242     : > sub/conftest.c
4243     for i in 1 2 3 4 5 6; do
4244       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4245       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4246       # Solaris 8's {/usr,}/bin/sh.
4247       touch sub/conftst$i.h
4248     done
4249     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4250
4251     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4252     # mode.  It turns out that the SunPro C++ compiler does not properly
4253     # handle `-M -o', and we need to detect this.  Also, some Intel
4254     # versions had trouble with output in subdirs
4255     am__obj=sub/conftest.${OBJEXT-o}
4256     am__minus_obj="-o $am__obj"
4257     case $depmode in
4258     gcc)
4259       # This depmode causes a compiler race in universal mode.
4260       test "$am__universal" = false || continue
4261       ;;
4262     nosideeffect)
4263       # after this tag, mechanisms are not by side-effect, so they'll
4264       # only be used when explicitly requested
4265       if test "x$enable_dependency_tracking" = xyes; then
4266         continue
4267       else
4268         break
4269       fi
4270       ;;
4271     msvisualcpp | msvcmsys)
4272       # This compiler won't grok `-c -o', but also, the minuso test has
4273       # not run yet.  These depmodes are late enough in the game, and
4274       # so weak that their functioning should not be impacted.
4275       am__obj=conftest.${OBJEXT-o}
4276       am__minus_obj=
4277       ;;
4278     none) break ;;
4279     esac
4280     if depmode=$depmode \
4281        source=sub/conftest.c object=$am__obj \
4282        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4283        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4284          >/dev/null 2>conftest.err &&
4285        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4286        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4287        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4288        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4289       # icc doesn't choke on unknown options, it will just issue warnings
4290       # or remarks (even with -Werror).  So we grep stderr for any message
4291       # that says an option was ignored or not supported.
4292       # When given -MP, icc 7.0 and 7.1 complain thusly:
4293       #   icc: Command line warning: ignoring option '-M'; no argument required
4294       # The diagnosis changed in icc 8.0:
4295       #   icc: Command line remark: option '-MP' not supported
4296       if (grep 'ignoring option' conftest.err ||
4297           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4298         am_cv_CC_dependencies_compiler_type=$depmode
4299         break
4300       fi
4301     fi
4302   done
4303
4304   cd ..
4305   rm -rf conftest.dir
4306 else
4307   am_cv_CC_dependencies_compiler_type=none
4308 fi
4309
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4312 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4313 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4314
4315  if
4316   test "x$enable_dependency_tracking" != xno \
4317   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4318   am__fastdepCC_TRUE=
4319   am__fastdepCC_FALSE='#'
4320 else
4321   am__fastdepCC_TRUE='#'
4322   am__fastdepCC_FALSE=
4323 fi
4324
4325
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4333 # On Suns, sometimes $CPP names a directory.
4334 if test -n "$CPP" && test -d "$CPP"; then
4335   CPP=
4336 fi
4337 if test -z "$CPP"; then
4338   if test "${ac_cv_prog_CPP+set}" = set; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341       # Double quotes because CPP needs to be expanded
4342     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4343     do
4344       ac_preproc_ok=false
4345 for ac_c_preproc_warn_flag in '' yes
4346 do
4347   # Use a header file that comes with gcc, so configuring glibc
4348   # with a fresh cross-compiler works.
4349   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350   # <limits.h> exists even on freestanding compilers.
4351   # On the NeXT, cc -E runs the code through the compiler's parser,
4352   # not just through cpp. "Syntax error" is here to catch this case.
4353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h.  */
4355 #ifdef __STDC__
4356 # include <limits.h>
4357 #else
4358 # include <assert.h>
4359 #endif
4360                      Syntax error
4361 _ACEOF
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363
4364 else
4365   # Broken: fails on valid input.
4366 continue
4367 fi
4368 rm -f conftest.err conftest.$ac_ext
4369
4370   # OK, works on sane cases.  Now check whether nonexistent headers
4371   # can be detected and how.
4372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h.  */
4374 #include <ac_nonexistent.h>
4375 _ACEOF
4376 if ac_fn_c_try_cpp "$LINENO"; then :
4377   # Broken: success on invalid input.
4378 continue
4379 else
4380   # Passes both tests.
4381 ac_preproc_ok=:
4382 break
4383 fi
4384 rm -f conftest.err conftest.$ac_ext
4385
4386 done
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then :
4390   break
4391 fi
4392
4393     done
4394     ac_cv_prog_CPP=$CPP
4395
4396 fi
4397   CPP=$ac_cv_prog_CPP
4398 else
4399   ac_cv_prog_CPP=$CPP
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4402 $as_echo "$CPP" >&6; }
4403 ac_preproc_ok=false
4404 for ac_c_preproc_warn_flag in '' yes
4405 do
4406   # Use a header file that comes with gcc, so configuring glibc
4407   # with a fresh cross-compiler works.
4408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4409   # <limits.h> exists even on freestanding compilers.
4410   # On the NeXT, cc -E runs the code through the compiler's parser,
4411   # not just through cpp. "Syntax error" is here to catch this case.
4412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414 #ifdef __STDC__
4415 # include <limits.h>
4416 #else
4417 # include <assert.h>
4418 #endif
4419                      Syntax error
4420 _ACEOF
4421 if ac_fn_c_try_cpp "$LINENO"; then :
4422
4423 else
4424   # Broken: fails on valid input.
4425 continue
4426 fi
4427 rm -f conftest.err conftest.$ac_ext
4428
4429   # OK, works on sane cases.  Now check whether nonexistent headers
4430   # can be detected and how.
4431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h.  */
4433 #include <ac_nonexistent.h>
4434 _ACEOF
4435 if ac_fn_c_try_cpp "$LINENO"; then :
4436   # Broken: success on invalid input.
4437 continue
4438 else
4439   # Passes both tests.
4440 ac_preproc_ok=:
4441 break
4442 fi
4443 rm -f conftest.err conftest.$ac_ext
4444
4445 done
4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4447 rm -f conftest.err conftest.$ac_ext
4448 if $ac_preproc_ok; then :
4449
4450 else
4451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4454 See \`config.log' for more details." "$LINENO" 5; }
4455 fi
4456
4457 ac_ext=cpp
4458 ac_cpp='$CXXCPP $CPPFLAGS'
4459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4462
4463 ac_ext=cpp
4464 ac_cpp='$CXXCPP $CPPFLAGS'
4465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4468 if test -z "$CXX"; then
4469   if test -n "$CCC"; then
4470     CXX=$CCC
4471   else
4472     if test -n "$ac_tool_prefix"; then
4473   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4474   do
4475     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_CXX+set}" = set; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   if test -n "$CXX"; then
4483   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490     for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497   done
4498 IFS=$as_save_IFS
4499
4500 fi
4501 fi
4502 CXX=$ac_cv_prog_CXX
4503 if test -n "$CXX"; then
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4505 $as_echo "$CXX" >&6; }
4506 else
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4509 fi
4510
4511
4512     test -n "$CXX" && break
4513   done
4514 fi
4515 if test -z "$CXX"; then
4516   ac_ct_CXX=$CXX
4517   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4518 do
4519   # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy $ac_prog; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526   if test -n "$ac_ct_CXX"; then
4527   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534     for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_prog_ac_ct_CXX="$ac_prog"
4537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541   done
4542 IFS=$as_save_IFS
4543
4544 fi
4545 fi
4546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4547 if test -n "$ac_ct_CXX"; then
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4549 $as_echo "$ac_ct_CXX" >&6; }
4550 else
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4554
4555
4556   test -n "$ac_ct_CXX" && break
4557 done
4558
4559   if test "x$ac_ct_CXX" = x; then
4560     CXX="g++"
4561   else
4562     case $cross_compiling:$ac_tool_warned in
4563 yes:)
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568     CXX=$ac_ct_CXX
4569   fi
4570 fi
4571
4572   fi
4573 fi
4574 # Provide some information about the compiler.
4575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4576 set X $ac_compile
4577 ac_compiler=$2
4578 for ac_option in --version -v -V -qversion; do
4579   { { ac_try="$ac_compiler $ac_option >&5"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4587   ac_status=$?
4588   if test -s conftest.err; then
4589     sed '10a\
4590 ... rest of stderr output deleted ...
4591          10q' conftest.err >conftest.er1
4592     cat conftest.er1 >&5
4593   fi
4594   rm -f conftest.er1 conftest.err
4595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596   test $ac_status = 0; }
4597 done
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4600 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4601 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606
4607 int
4608 main ()
4609 {
4610 #ifndef __GNUC__
4611        choke me
4612 #endif
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619   ac_compiler_gnu=yes
4620 else
4621   ac_compiler_gnu=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4625
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4628 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4629 if test $ac_compiler_gnu = yes; then
4630   GXX=yes
4631 else
4632   GXX=
4633 fi
4634 ac_test_CXXFLAGS=${CXXFLAGS+set}
4635 ac_save_CXXFLAGS=$CXXFLAGS
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4637 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4638 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4642    ac_cxx_werror_flag=yes
4643    ac_cv_prog_cxx_g=no
4644    CXXFLAGS="-g"
4645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h.  */
4647
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_cxx_try_compile "$LINENO"; then :
4657   ac_cv_prog_cxx_g=yes
4658 else
4659   CXXFLAGS=""
4660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_cxx_try_compile "$LINENO"; then :
4672
4673 else
4674   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4675          CXXFLAGS="-g"
4676          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h.  */
4678
4679 int
4680 main ()
4681 {
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_cxx_try_compile "$LINENO"; then :
4688   ac_cv_prog_cxx_g=yes
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4698 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4699 if test "$ac_test_CXXFLAGS" = set; then
4700   CXXFLAGS=$ac_save_CXXFLAGS
4701 elif test $ac_cv_prog_cxx_g = yes; then
4702   if test "$GXX" = yes; then
4703     CXXFLAGS="-g -O2"
4704   else
4705     CXXFLAGS="-g"
4706   fi
4707 else
4708   if test "$GXX" = yes; then
4709     CXXFLAGS="-O2"
4710   else
4711     CXXFLAGS=
4712   fi
4713 fi
4714 ac_ext=cpp
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719
4720 depcc="$CXX"  am_compiler_list=
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4723 $as_echo_n "checking dependency style of $depcc... " >&6; }
4724 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4728   # We make a subdir and do the tests there.  Otherwise we can end up
4729   # making bogus files that we don't know about and never remove.  For
4730   # instance it was reported that on HP-UX the gcc test will end up
4731   # making a dummy file named `D' -- because `-MD' means `put the output
4732   # in D'.
4733   mkdir conftest.dir
4734   # Copy depcomp to subdir because otherwise we won't find it if we're
4735   # using a relative directory.
4736   cp "$am_depcomp" conftest.dir
4737   cd conftest.dir
4738   # We will build objects and dependencies in a subdirectory because
4739   # it helps to detect inapplicable dependency modes.  For instance
4740   # both Tru64's cc and ICC support -MD to output dependencies as a
4741   # side effect of compilation, but ICC will put the dependencies in
4742   # the current directory while Tru64 will put them in the object
4743   # directory.
4744   mkdir sub
4745
4746   am_cv_CXX_dependencies_compiler_type=none
4747   if test "$am_compiler_list" = ""; then
4748      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4749   fi
4750   am__universal=false
4751   case " $depcc " in #(
4752      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4753      esac
4754
4755   for depmode in $am_compiler_list; do
4756     # Setup a source with many dependencies, because some compilers
4757     # like to wrap large dependency lists on column 80 (with \), and
4758     # we should not choose a depcomp mode which is confused by this.
4759     #
4760     # We need to recreate these files for each test, as the compiler may
4761     # overwrite some of them when testing with obscure command lines.
4762     # This happens at least with the AIX C compiler.
4763     : > sub/conftest.c
4764     for i in 1 2 3 4 5 6; do
4765       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4766       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4767       # Solaris 8's {/usr,}/bin/sh.
4768       touch sub/conftst$i.h
4769     done
4770     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4771
4772     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4773     # mode.  It turns out that the SunPro C++ compiler does not properly
4774     # handle `-M -o', and we need to detect this.  Also, some Intel
4775     # versions had trouble with output in subdirs
4776     am__obj=sub/conftest.${OBJEXT-o}
4777     am__minus_obj="-o $am__obj"
4778     case $depmode in
4779     gcc)
4780       # This depmode causes a compiler race in universal mode.
4781       test "$am__universal" = false || continue
4782       ;;
4783     nosideeffect)
4784       # after this tag, mechanisms are not by side-effect, so they'll
4785       # only be used when explicitly requested
4786       if test "x$enable_dependency_tracking" = xyes; then
4787         continue
4788       else
4789         break
4790       fi
4791       ;;
4792     msvisualcpp | msvcmsys)
4793       # This compiler won't grok `-c -o', but also, the minuso test has
4794       # not run yet.  These depmodes are late enough in the game, and
4795       # so weak that their functioning should not be impacted.
4796       am__obj=conftest.${OBJEXT-o}
4797       am__minus_obj=
4798       ;;
4799     none) break ;;
4800     esac
4801     if depmode=$depmode \
4802        source=sub/conftest.c object=$am__obj \
4803        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4805          >/dev/null 2>conftest.err &&
4806        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4807        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4809        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810       # icc doesn't choke on unknown options, it will just issue warnings
4811       # or remarks (even with -Werror).  So we grep stderr for any message
4812       # that says an option was ignored or not supported.
4813       # When given -MP, icc 7.0 and 7.1 complain thusly:
4814       #   icc: Command line warning: ignoring option '-M'; no argument required
4815       # The diagnosis changed in icc 8.0:
4816       #   icc: Command line remark: option '-MP' not supported
4817       if (grep 'ignoring option' conftest.err ||
4818           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4819         am_cv_CXX_dependencies_compiler_type=$depmode
4820         break
4821       fi
4822     fi
4823   done
4824
4825   cd ..
4826   rm -rf conftest.dir
4827 else
4828   am_cv_CXX_dependencies_compiler_type=none
4829 fi
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4833 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4835
4836  if
4837   test "x$enable_dependency_tracking" != xno \
4838   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4839   am__fastdepCXX_TRUE=
4840   am__fastdepCXX_FALSE='#'
4841 else
4842   am__fastdepCXX_TRUE='#'
4843   am__fastdepCXX_FALSE=
4844 fi
4845
4846
4847  if test "$GCC" = yes; then
4848   GCC_TRUE=
4849   GCC_FALSE='#'
4850 else
4851   GCC_TRUE='#'
4852   GCC_FALSE=
4853 fi
4854    # let the Makefile know if we're gcc
4855
4856 case `pwd` in
4857   *\ * | *\     *)
4858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4859 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4860 esac
4861
4862
4863
4864 macro_version='2.2.6b'
4865 macro_revision='1.3017'
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 ltmain="$ac_aux_dir/ltmain.sh"
4880
4881 # Make sure we can run config.sub.
4882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4883   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4886 $as_echo_n "checking build system type... " >&6; }
4887 if test "${ac_cv_build+set}" = set; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   ac_build_alias=$build_alias
4891 test "x$ac_build_alias" = x &&
4892   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4893 test "x$ac_build_alias" = x &&
4894   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4896   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4897
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4900 $as_echo "$ac_cv_build" >&6; }
4901 case $ac_cv_build in
4902 *-*-*) ;;
4903 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4904 esac
4905 build=$ac_cv_build
4906 ac_save_IFS=$IFS; IFS='-'
4907 set x $ac_cv_build
4908 shift
4909 build_cpu=$1
4910 build_vendor=$2
4911 shift; shift
4912 # Remember, the first character of IFS is used to create $*,
4913 # except with old shells:
4914 build_os=$*
4915 IFS=$ac_save_IFS
4916 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4920 $as_echo_n "checking host system type... " >&6; }
4921 if test "${ac_cv_host+set}" = set; then :
4922   $as_echo_n "(cached) " >&6
4923 else
4924   if test "x$host_alias" = x; then
4925   ac_cv_host=$ac_cv_build
4926 else
4927   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4928     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4929 fi
4930
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4933 $as_echo "$ac_cv_host" >&6; }
4934 case $ac_cv_host in
4935 *-*-*) ;;
4936 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4937 esac
4938 host=$ac_cv_host
4939 ac_save_IFS=$IFS; IFS='-'
4940 set x $ac_cv_host
4941 shift
4942 host_cpu=$1
4943 host_vendor=$2
4944 shift; shift
4945 # Remember, the first character of IFS is used to create $*,
4946 # except with old shells:
4947 host_os=$*
4948 IFS=$ac_save_IFS
4949 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4950
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4953 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4954 if test "${ac_cv_path_SED+set}" = set; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4958      for ac_i in 1 2 3 4 5 6 7; do
4959        ac_script="$ac_script$as_nl$ac_script"
4960      done
4961      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4962      { ac_script=; unset ac_script;}
4963      if test -z "$SED"; then
4964   ac_path_SED_found=false
4965   # Loop through the user's path and test for each of PROGNAME-LIST
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_prog in sed gsed; do
4972     for ac_exec_ext in '' $ac_executable_extensions; do
4973       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4974       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4975 # Check for GNU ac_path_SED and select it if it is found.
4976   # Check for GNU $ac_path_SED
4977 case `"$ac_path_SED" --version 2>&1` in
4978 *GNU*)
4979   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4980 *)
4981   ac_count=0
4982   $as_echo_n 0123456789 >"conftest.in"
4983   while :
4984   do
4985     cat "conftest.in" "conftest.in" >"conftest.tmp"
4986     mv "conftest.tmp" "conftest.in"
4987     cp "conftest.in" "conftest.nl"
4988     $as_echo '' >> "conftest.nl"
4989     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4990     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4991     as_fn_arith $ac_count + 1 && ac_count=$as_val
4992     if test $ac_count -gt ${ac_path_SED_max-0}; then
4993       # Best one so far, save it but keep looking for a better one
4994       ac_cv_path_SED="$ac_path_SED"
4995       ac_path_SED_max=$ac_count
4996     fi
4997     # 10*(2^10) chars as input seems more than enough
4998     test $ac_count -gt 10 && break
4999   done
5000   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5001 esac
5002
5003       $ac_path_SED_found && break 3
5004     done
5005   done
5006   done
5007 IFS=$as_save_IFS
5008   if test -z "$ac_cv_path_SED"; then
5009     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5010   fi
5011 else
5012   ac_cv_path_SED=$SED
5013 fi
5014
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5017 $as_echo "$ac_cv_path_SED" >&6; }
5018  SED="$ac_cv_path_SED"
5019   rm -f conftest.sed
5020
5021 test -z "$SED" && SED=sed
5022 Xsed="$SED -e 1s/^X//"
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5035 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5036 if test "${ac_cv_path_GREP+set}" = set; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   if test -z "$GREP"; then
5040   ac_path_GREP_found=false
5041   # Loop through the user's path and test for each of PROGNAME-LIST
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_prog in grep ggrep; do
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5050       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5051 # Check for GNU ac_path_GREP and select it if it is found.
5052   # Check for GNU $ac_path_GREP
5053 case `"$ac_path_GREP" --version 2>&1` in
5054 *GNU*)
5055   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5056 *)
5057   ac_count=0
5058   $as_echo_n 0123456789 >"conftest.in"
5059   while :
5060   do
5061     cat "conftest.in" "conftest.in" >"conftest.tmp"
5062     mv "conftest.tmp" "conftest.in"
5063     cp "conftest.in" "conftest.nl"
5064     $as_echo 'GREP' >> "conftest.nl"
5065     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067     as_fn_arith $ac_count + 1 && ac_count=$as_val
5068     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5069       # Best one so far, save it but keep looking for a better one
5070       ac_cv_path_GREP="$ac_path_GREP"
5071       ac_path_GREP_max=$ac_count
5072     fi
5073     # 10*(2^10) chars as input seems more than enough
5074     test $ac_count -gt 10 && break
5075   done
5076   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5077 esac
5078
5079       $ac_path_GREP_found && break 3
5080     done
5081   done
5082   done
5083 IFS=$as_save_IFS
5084   if test -z "$ac_cv_path_GREP"; then
5085     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5086   fi
5087 else
5088   ac_cv_path_GREP=$GREP
5089 fi
5090
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5093 $as_echo "$ac_cv_path_GREP" >&6; }
5094  GREP="$ac_cv_path_GREP"
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5098 $as_echo_n "checking for egrep... " >&6; }
5099 if test "${ac_cv_path_EGREP+set}" = set; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5103    then ac_cv_path_EGREP="$GREP -E"
5104    else
5105      if test -z "$EGREP"; then
5106   ac_path_EGREP_found=false
5107   # Loop through the user's path and test for each of PROGNAME-LIST
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_prog in egrep; do
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5116       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5117 # Check for GNU ac_path_EGREP and select it if it is found.
5118   # Check for GNU $ac_path_EGREP
5119 case `"$ac_path_EGREP" --version 2>&1` in
5120 *GNU*)
5121   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5122 *)
5123   ac_count=0
5124   $as_echo_n 0123456789 >"conftest.in"
5125   while :
5126   do
5127     cat "conftest.in" "conftest.in" >"conftest.tmp"
5128     mv "conftest.tmp" "conftest.in"
5129     cp "conftest.in" "conftest.nl"
5130     $as_echo 'EGREP' >> "conftest.nl"
5131     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133     as_fn_arith $ac_count + 1 && ac_count=$as_val
5134     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5135       # Best one so far, save it but keep looking for a better one
5136       ac_cv_path_EGREP="$ac_path_EGREP"
5137       ac_path_EGREP_max=$ac_count
5138     fi
5139     # 10*(2^10) chars as input seems more than enough
5140     test $ac_count -gt 10 && break
5141   done
5142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145       $ac_path_EGREP_found && break 3
5146     done
5147   done
5148   done
5149 IFS=$as_save_IFS
5150   if test -z "$ac_cv_path_EGREP"; then
5151     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152   fi
5153 else
5154   ac_cv_path_EGREP=$EGREP
5155 fi
5156
5157    fi
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5160 $as_echo "$ac_cv_path_EGREP" >&6; }
5161  EGREP="$ac_cv_path_EGREP"
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5165 $as_echo_n "checking for fgrep... " >&6; }
5166 if test "${ac_cv_path_FGREP+set}" = set; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5170    then ac_cv_path_FGREP="$GREP -F"
5171    else
5172      if test -z "$FGREP"; then
5173   ac_path_FGREP_found=false
5174   # Loop through the user's path and test for each of PROGNAME-LIST
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_prog in fgrep; do
5181     for ac_exec_ext in '' $ac_executable_extensions; do
5182       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5183       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5184 # Check for GNU ac_path_FGREP and select it if it is found.
5185   # Check for GNU $ac_path_FGREP
5186 case `"$ac_path_FGREP" --version 2>&1` in
5187 *GNU*)
5188   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5189 *)
5190   ac_count=0
5191   $as_echo_n 0123456789 >"conftest.in"
5192   while :
5193   do
5194     cat "conftest.in" "conftest.in" >"conftest.tmp"
5195     mv "conftest.tmp" "conftest.in"
5196     cp "conftest.in" "conftest.nl"
5197     $as_echo 'FGREP' >> "conftest.nl"
5198     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200     as_fn_arith $ac_count + 1 && ac_count=$as_val
5201     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5202       # Best one so far, save it but keep looking for a better one
5203       ac_cv_path_FGREP="$ac_path_FGREP"
5204       ac_path_FGREP_max=$ac_count
5205     fi
5206     # 10*(2^10) chars as input seems more than enough
5207     test $ac_count -gt 10 && break
5208   done
5209   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212       $ac_path_FGREP_found && break 3
5213     done
5214   done
5215   done
5216 IFS=$as_save_IFS
5217   if test -z "$ac_cv_path_FGREP"; then
5218     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219   fi
5220 else
5221   ac_cv_path_FGREP=$FGREP
5222 fi
5223
5224    fi
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5227 $as_echo "$ac_cv_path_FGREP" >&6; }
5228  FGREP="$ac_cv_path_FGREP"
5229
5230
5231 test -z "$GREP" && GREP=grep
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 # Check whether --with-gnu-ld was given.
5252 if test "${with_gnu_ld+set}" = set; then :
5253   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5254 else
5255   with_gnu_ld=no
5256 fi
5257
5258 ac_prog=ld
5259 if test "$GCC" = yes; then
5260   # Check if gcc -print-prog-name=ld gives a path.
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5262 $as_echo_n "checking for ld used by $CC... " >&6; }
5263   case $host in
5264   *-*-mingw*)
5265     # gcc leaves a trailing carriage return which upsets mingw
5266     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5267   *)
5268     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5269   esac
5270   case $ac_prog in
5271     # Accept absolute paths.
5272     [\\/]* | ?:[\\/]*)
5273       re_direlt='/[^/][^/]*/\.\./'
5274       # Canonicalize the pathname of ld
5275       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5276       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5277         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5278       done
5279       test -z "$LD" && LD="$ac_prog"
5280       ;;
5281   "")
5282     # If it fails, then pretend we aren't using GCC.
5283     ac_prog=ld
5284     ;;
5285   *)
5286     # If it is relative, then search for the first ld in PATH.
5287     with_gnu_ld=unknown
5288     ;;
5289   esac
5290 elif test "$with_gnu_ld" = yes; then
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5292 $as_echo_n "checking for GNU ld... " >&6; }
5293 else
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5295 $as_echo_n "checking for non-GNU ld... " >&6; }
5296 fi
5297 if test "${lt_cv_path_LD+set}" = set; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   if test -z "$LD"; then
5301   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5302   for ac_dir in $PATH; do
5303     IFS="$lt_save_ifs"
5304     test -z "$ac_dir" && ac_dir=.
5305     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5306       lt_cv_path_LD="$ac_dir/$ac_prog"
5307       # Check to see if the program is GNU ld.  I'd rather use --version,
5308       # but apparently some variants of GNU ld only accept -v.
5309       # Break only if it was the GNU/non-GNU ld that we prefer.
5310       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5311       *GNU* | *'with BFD'*)
5312         test "$with_gnu_ld" != no && break
5313         ;;
5314       *)
5315         test "$with_gnu_ld" != yes && break
5316         ;;
5317       esac
5318     fi
5319   done
5320   IFS="$lt_save_ifs"
5321 else
5322   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5323 fi
5324 fi
5325
5326 LD="$lt_cv_path_LD"
5327 if test -n "$LD"; then
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5329 $as_echo "$LD" >&6; }
5330 else
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5336 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5337 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5341 case `$LD -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343   lt_cv_prog_gnu_ld=yes
5344   ;;
5345 *)
5346   lt_cv_prog_gnu_ld=no
5347   ;;
5348 esac
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5351 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5352 with_gnu_ld=$lt_cv_prog_gnu_ld
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5363 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5364 if test "${lt_cv_path_NM+set}" = set; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   if test -n "$NM"; then
5368   # Let the user override the test.
5369   lt_cv_path_NM="$NM"
5370 else
5371   lt_nm_to_check="${ac_tool_prefix}nm"
5372   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5373     lt_nm_to_check="$lt_nm_to_check nm"
5374   fi
5375   for lt_tmp_nm in $lt_nm_to_check; do
5376     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5377     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5378       IFS="$lt_save_ifs"
5379       test -z "$ac_dir" && ac_dir=.
5380       tmp_nm="$ac_dir/$lt_tmp_nm"
5381       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5382         # Check to see if the nm accepts a BSD-compat flag.
5383         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5384         #   nm: unknown option "B" ignored
5385         # Tru64's nm complains that /dev/null is an invalid object file
5386         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5387         */dev/null* | *'Invalid file or object type'*)
5388           lt_cv_path_NM="$tmp_nm -B"
5389           break
5390           ;;
5391         *)
5392           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5393           */dev/null*)
5394             lt_cv_path_NM="$tmp_nm -p"
5395             break
5396             ;;
5397           *)
5398             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5399             continue # so that we can try to find one that supports BSD flags
5400             ;;
5401           esac
5402           ;;
5403         esac
5404       fi
5405     done
5406     IFS="$lt_save_ifs"
5407   done
5408   : ${lt_cv_path_NM=no}
5409 fi
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5412 $as_echo "$lt_cv_path_NM" >&6; }
5413 if test "$lt_cv_path_NM" != "no"; then
5414   NM="$lt_cv_path_NM"
5415 else
5416   # Didn't find any BSD compatible name lister, look for dumpbin.
5417   if test -n "$ac_tool_prefix"; then
5418   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5419   do
5420     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   if test -n "$DUMPBIN"; then
5428   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435     for ac_exec_ext in '' $ac_executable_extensions; do
5436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442   done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 DUMPBIN=$ac_cv_prog_DUMPBIN
5448 if test -n "$DUMPBIN"; then
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5450 $as_echo "$DUMPBIN" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457     test -n "$DUMPBIN" && break
5458   done
5459 fi
5460 if test -z "$DUMPBIN"; then
5461   ac_ct_DUMPBIN=$DUMPBIN
5462   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5463 do
5464   # Extract the first word of "$ac_prog", so it can be a program name with args.
5465 set dummy $ac_prog; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   if test -n "$ac_ct_DUMPBIN"; then
5472   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486   done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5492 if test -n "$ac_ct_DUMPBIN"; then
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5494 $as_echo "$ac_ct_DUMPBIN" >&6; }
5495 else
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500
5501   test -n "$ac_ct_DUMPBIN" && break
5502 done
5503
5504   if test "x$ac_ct_DUMPBIN" = x; then
5505     DUMPBIN=":"
5506   else
5507     case $cross_compiling:$ac_tool_warned in
5508 yes:)
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5512 esac
5513     DUMPBIN=$ac_ct_DUMPBIN
5514   fi
5515 fi
5516
5517
5518   if test "$DUMPBIN" != ":"; then
5519     NM="$DUMPBIN"
5520   fi
5521 fi
5522 test -z "$NM" && NM=nm
5523
5524
5525
5526
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5530 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5531 if test "${lt_cv_nm_interface+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   lt_cv_nm_interface="BSD nm"
5535   echo "int some_variable = 0;" > conftest.$ac_ext
5536   (eval echo "\"\$as_me:5536: $ac_compile\"" >&5)
5537   (eval "$ac_compile" 2>conftest.err)
5538   cat conftest.err >&5
5539   (eval echo "\"\$as_me:5539: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5540   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5541   cat conftest.err >&5
5542   (eval echo "\"\$as_me:5542: output\"" >&5)
5543   cat conftest.out >&5
5544   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5545     lt_cv_nm_interface="MS dumpbin"
5546   fi
5547   rm -f conftest*
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5550 $as_echo "$lt_cv_nm_interface" >&6; }
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5553 $as_echo_n "checking whether ln -s works... " >&6; }
5554 LN_S=$as_ln_s
5555 if test "$LN_S" = "ln -s"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5560 $as_echo "no, using $LN_S" >&6; }
5561 fi
5562
5563 # find the maximum length of command line arguments
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5565 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569     i=0
5570   teststring="ABCD"
5571
5572   case $build_os in
5573   msdosdjgpp*)
5574     # On DJGPP, this test can blow up pretty badly due to problems in libc
5575     # (any single argument exceeding 2000 bytes causes a buffer overrun
5576     # during glob expansion).  Even if it were fixed, the result of this
5577     # check would be larger than it should be.
5578     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5579     ;;
5580
5581   gnu*)
5582     # Under GNU Hurd, this test is not required because there is
5583     # no limit to the length of command line arguments.
5584     # Libtool will interpret -1 as no limit whatsoever
5585     lt_cv_sys_max_cmd_len=-1;
5586     ;;
5587
5588   cygwin* | mingw* | cegcc*)
5589     # On Win9x/ME, this test blows up -- it succeeds, but takes
5590     # about 5 minutes as the teststring grows exponentially.
5591     # Worse, since 9x/ME are not pre-emptively multitasking,
5592     # you end up with a "frozen" computer, even though with patience
5593     # the test eventually succeeds (with a max line length of 256k).
5594     # Instead, let's just punt: use the minimum linelength reported by
5595     # all of the supported platforms: 8192 (on NT/2K/XP).
5596     lt_cv_sys_max_cmd_len=8192;
5597     ;;
5598
5599   amigaos*)
5600     # On AmigaOS with pdksh, this test takes hours, literally.
5601     # So we just punt and use a minimum line length of 8192.
5602     lt_cv_sys_max_cmd_len=8192;
5603     ;;
5604
5605   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5606     # This has been around since 386BSD, at least.  Likely further.
5607     if test -x /sbin/sysctl; then
5608       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5609     elif test -x /usr/sbin/sysctl; then
5610       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5611     else
5612       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5613     fi
5614     # And add a safety zone
5615     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5616     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5617     ;;
5618
5619   interix*)
5620     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5621     lt_cv_sys_max_cmd_len=196608
5622     ;;
5623
5624   osf*)
5625     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5626     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5627     # nice to cause kernel panics so lets avoid the loop below.
5628     # First set a reasonable default.
5629     lt_cv_sys_max_cmd_len=16384
5630     #
5631     if test -x /sbin/sysconfig; then
5632       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5633         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5634       esac
5635     fi
5636     ;;
5637   sco3.2v5*)
5638     lt_cv_sys_max_cmd_len=102400
5639     ;;
5640   sysv5* | sco5v6* | sysv4.2uw2*)
5641     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5642     if test -n "$kargmax"; then
5643       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5644     else
5645       lt_cv_sys_max_cmd_len=32768
5646     fi
5647     ;;
5648   *)
5649     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5650     if test -n "$lt_cv_sys_max_cmd_len"; then
5651       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5652       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5653     else
5654       # Make teststring a little bigger before we do anything with it.
5655       # a 1K string should be a reasonable start.
5656       for i in 1 2 3 4 5 6 7 8 ; do
5657         teststring=$teststring$teststring
5658       done
5659       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5660       # If test is not a shell built-in, we'll probably end up computing a
5661       # maximum length that is only half of the actual maximum length, but
5662       # we can't tell.
5663       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5664                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5665               test $i != 17 # 1/2 MB should be enough
5666       do
5667         i=`expr $i + 1`
5668         teststring=$teststring$teststring
5669       done
5670       # Only check the string length outside the loop.
5671       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5672       teststring=
5673       # Add a significant safety factor because C++ compilers can tack on
5674       # massive amounts of additional arguments before passing them to the
5675       # linker.  It appears as though 1/2 is a usable value.
5676       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5677     fi
5678     ;;
5679   esac
5680
5681 fi
5682
5683 if test -n $lt_cv_sys_max_cmd_len ; then
5684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5685 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5686 else
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5688 $as_echo "none" >&6; }
5689 fi
5690 max_cmd_len=$lt_cv_sys_max_cmd_len
5691
5692
5693
5694
5695
5696
5697 : ${CP="cp -f"}
5698 : ${MV="mv -f"}
5699 : ${RM="rm -f"}
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5702 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5703 # Try some XSI features
5704 xsi_shell=no
5705 ( _lt_dummy="a/b/c"
5706   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5707       = c,a/b,, \
5708     && eval 'test $(( 1 + 1 )) -eq 2 \
5709     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5710   && xsi_shell=yes
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5712 $as_echo "$xsi_shell" >&6; }
5713
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5716 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5717 lt_shell_append=no
5718 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5719     >/dev/null 2>&1 \
5720   && lt_shell_append=yes
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5722 $as_echo "$lt_shell_append" >&6; }
5723
5724
5725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5726   lt_unset=unset
5727 else
5728   lt_unset=false
5729 fi
5730
5731
5732
5733
5734
5735 # test EBCDIC or ASCII
5736 case `echo X|tr X '\101'` in
5737  A) # ASCII based system
5738     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5739   lt_SP2NL='tr \040 \012'
5740   lt_NL2SP='tr \015\012 \040\040'
5741   ;;
5742  *) # EBCDIC based system
5743   lt_SP2NL='tr \100 \n'
5744   lt_NL2SP='tr \r\n \100\100'
5745   ;;
5746 esac
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5757 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5758 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   lt_cv_ld_reload_flag='-r'
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5764 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5765 reload_flag=$lt_cv_ld_reload_flag
5766 case $reload_flag in
5767 "" | " "*) ;;
5768 *) reload_flag=" $reload_flag" ;;
5769 esac
5770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5771 case $host_os in
5772   darwin*)
5773     if test "$GCC" = yes; then
5774       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5775     else
5776       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5777     fi
5778     ;;
5779 esac
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 if test -n "$ac_tool_prefix"; then
5790   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5795   $as_echo_n "(cached) " >&6
5796 else
5797   if test -n "$OBJDUMP"; then
5798   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805     for ac_exec_ext in '' $ac_executable_extensions; do
5806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812   done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 OBJDUMP=$ac_cv_prog_OBJDUMP
5818 if test -n "$OBJDUMP"; then
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5820 $as_echo "$OBJDUMP" >&6; }
5821 else
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826
5827 fi
5828 if test -z "$ac_cv_prog_OBJDUMP"; then
5829   ac_ct_OBJDUMP=$OBJDUMP
5830   # Extract the first word of "objdump", so it can be a program name with args.
5831 set dummy objdump; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   if test -n "$ac_ct_OBJDUMP"; then
5838   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852   done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5858 if test -n "$ac_ct_OBJDUMP"; then
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5860 $as_echo "$ac_ct_OBJDUMP" >&6; }
5861 else
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866   if test "x$ac_ct_OBJDUMP" = x; then
5867     OBJDUMP="false"
5868   else
5869     case $cross_compiling:$ac_tool_warned in
5870 yes:)
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873 ac_tool_warned=yes ;;
5874 esac
5875     OBJDUMP=$ac_ct_OBJDUMP
5876   fi
5877 else
5878   OBJDUMP="$ac_cv_prog_OBJDUMP"
5879 fi
5880
5881 test -z "$OBJDUMP" && OBJDUMP=objdump
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5892 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5893 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   lt_cv_file_magic_cmd='$MAGIC_CMD'
5897 lt_cv_file_magic_test_file=
5898 lt_cv_deplibs_check_method='unknown'
5899 # Need to set the preceding variable on all platforms that support
5900 # interlibrary dependencies.
5901 # 'none' -- dependencies not supported.
5902 # `unknown' -- same as none, but documents that we really don't know.
5903 # 'pass_all' -- all dependencies passed with no checks.
5904 # 'test_compile' -- check by making test program.
5905 # 'file_magic [[regex]]' -- check by looking for files in library path
5906 # which responds to the $file_magic_cmd with a given extended regex.
5907 # If you have `file' or equivalent on your system and you're not sure
5908 # whether `pass_all' will *always* work, you probably want this one.
5909
5910 case $host_os in
5911 aix[4-9]*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 beos*)
5916   lt_cv_deplibs_check_method=pass_all
5917   ;;
5918
5919 bsdi[45]*)
5920   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5921   lt_cv_file_magic_cmd='/usr/bin/file -L'
5922   lt_cv_file_magic_test_file=/shlib/libc.so
5923   ;;
5924
5925 cygwin*)
5926   # func_win32_libid is a shell function defined in ltmain.sh
5927   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5928   lt_cv_file_magic_cmd='func_win32_libid'
5929   ;;
5930
5931 mingw* | pw32*)
5932   # Base MSYS/MinGW do not provide the 'file' command needed by
5933   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5934   # unless we find 'file', for example because we are cross-compiling.
5935   if ( file / ) >/dev/null 2>&1; then
5936     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5937     lt_cv_file_magic_cmd='func_win32_libid'
5938   else
5939     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5940     lt_cv_file_magic_cmd='$OBJDUMP -f'
5941   fi
5942   ;;
5943
5944 cegcc)
5945   # use the weaker test based on 'objdump'. See mingw*.
5946   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5947   lt_cv_file_magic_cmd='$OBJDUMP -f'
5948   ;;
5949
5950 darwin* | rhapsody*)
5951   lt_cv_deplibs_check_method=pass_all
5952   ;;
5953
5954 freebsd* | dragonfly*)
5955   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5956     case $host_cpu in
5957     i*86 )
5958       # Not sure whether the presence of OpenBSD here was a mistake.
5959       # Let's accept both of them until this is cleared up.
5960       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5961       lt_cv_file_magic_cmd=/usr/bin/file
5962       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5963       ;;
5964     esac
5965   else
5966     lt_cv_deplibs_check_method=pass_all
5967   fi
5968   ;;
5969
5970 gnu*)
5971   lt_cv_deplibs_check_method=pass_all
5972   ;;
5973
5974 hpux10.20* | hpux11*)
5975   lt_cv_file_magic_cmd=/usr/bin/file
5976   case $host_cpu in
5977   ia64*)
5978     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5979     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5980     ;;
5981   hppa*64*)
5982     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]'
5983     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5984     ;;
5985   *)
5986     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5987     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5988     ;;
5989   esac
5990   ;;
5991
5992 interix[3-9]*)
5993   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5994   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5995   ;;
5996
5997 irix5* | irix6* | nonstopux*)
5998   case $LD in
5999   *-32|*"-32 ") libmagic=32-bit;;
6000   *-n32|*"-n32 ") libmagic=N32;;
6001   *-64|*"-64 ") libmagic=64-bit;;
6002   *) libmagic=never-match;;
6003   esac
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006
6007 # This must be Linux ELF.
6008 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6009   lt_cv_deplibs_check_method=pass_all
6010   ;;
6011
6012 netbsd* | netbsdelf*-gnu)
6013   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6014     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6015   else
6016     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6017   fi
6018   ;;
6019
6020 newos6*)
6021   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6022   lt_cv_file_magic_cmd=/usr/bin/file
6023   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6024   ;;
6025
6026 *nto* | *qnx*)
6027   lt_cv_deplibs_check_method=pass_all
6028   ;;
6029
6030 openbsd*)
6031   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6032     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6033   else
6034     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6035   fi
6036   ;;
6037
6038 osf3* | osf4* | osf5*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041
6042 rdos*)
6043   lt_cv_deplibs_check_method=pass_all
6044   ;;
6045
6046 solaris*)
6047   lt_cv_deplibs_check_method=pass_all
6048   ;;
6049
6050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6051   lt_cv_deplibs_check_method=pass_all
6052   ;;
6053
6054 sysv4 | sysv4.3*)
6055   case $host_vendor in
6056   motorola)
6057     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]'
6058     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6059     ;;
6060   ncr)
6061     lt_cv_deplibs_check_method=pass_all
6062     ;;
6063   sequent)
6064     lt_cv_file_magic_cmd='/bin/file'
6065     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6066     ;;
6067   sni)
6068     lt_cv_file_magic_cmd='/bin/file'
6069     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6070     lt_cv_file_magic_test_file=/lib/libc.so
6071     ;;
6072   siemens)
6073     lt_cv_deplibs_check_method=pass_all
6074     ;;
6075   pc)
6076     lt_cv_deplibs_check_method=pass_all
6077     ;;
6078   esac
6079   ;;
6080
6081 tpf*)
6082   lt_cv_deplibs_check_method=pass_all
6083   ;;
6084 esac
6085
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6088 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6089 file_magic_cmd=$lt_cv_file_magic_cmd
6090 deplibs_check_method=$lt_cv_deplibs_check_method
6091 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104 if test -n "$ac_tool_prefix"; then
6105   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}ar; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if test "${ac_cv_prog_AR+set}" = set; then :
6110   $as_echo_n "(cached) " >&6
6111 else
6112   if test -n "$AR"; then
6113   ac_cv_prog_AR="$AR" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120     for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_prog_AR="${ac_tool_prefix}ar"
6123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127   done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 AR=$ac_cv_prog_AR
6133 if test -n "$AR"; then
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6135 $as_echo "$AR" >&6; }
6136 else
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6139 fi
6140
6141
6142 fi
6143 if test -z "$ac_cv_prog_AR"; then
6144   ac_ct_AR=$AR
6145   # Extract the first word of "ar", so it can be a program name with args.
6146 set dummy ar; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   if test -n "$ac_ct_AR"; then
6153   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160     for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_ac_ct_AR="ar"
6163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167   done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6173 if test -n "$ac_ct_AR"; then
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6175 $as_echo "$ac_ct_AR" >&6; }
6176 else
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181   if test "x$ac_ct_AR" = x; then
6182     AR="false"
6183   else
6184     case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190     AR=$ac_ct_AR
6191   fi
6192 else
6193   AR="$ac_cv_prog_AR"
6194 fi
6195
6196 test -z "$AR" && AR=ar
6197 test -z "$AR_FLAGS" && AR_FLAGS=cru
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209 if test -n "$ac_tool_prefix"; then
6210   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}strip; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_STRIP+set}" = set; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -n "$STRIP"; then
6218   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 STRIP=$ac_cv_prog_STRIP
6238 if test -n "$STRIP"; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6240 $as_echo "$STRIP" >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246
6247 fi
6248 if test -z "$ac_cv_prog_STRIP"; then
6249   ac_ct_STRIP=$STRIP
6250   # Extract the first word of "strip", so it can be a program name with args.
6251 set dummy strip; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if test -n "$ac_ct_STRIP"; then
6258   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265     for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_ac_ct_STRIP="strip"
6268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272   done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6278 if test -n "$ac_ct_STRIP"; then
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6280 $as_echo "$ac_ct_STRIP" >&6; }
6281 else
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286   if test "x$ac_ct_STRIP" = x; then
6287     STRIP=":"
6288   else
6289     case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295     STRIP=$ac_ct_STRIP
6296   fi
6297 else
6298   STRIP="$ac_cv_prog_STRIP"
6299 fi
6300
6301 test -z "$STRIP" && STRIP=:
6302
6303
6304
6305
6306
6307
6308 if test -n "$ac_tool_prefix"; then
6309   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316   if test -n "$RANLIB"; then
6317   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324     for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331   done
6332 IFS=$as_save_IFS
6333
6334 fi
6335 fi
6336 RANLIB=$ac_cv_prog_RANLIB
6337 if test -n "$RANLIB"; then
6338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6339 $as_echo "$RANLIB" >&6; }
6340 else
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344
6345
6346 fi
6347 if test -z "$ac_cv_prog_RANLIB"; then
6348   ac_ct_RANLIB=$RANLIB
6349   # Extract the first word of "ranlib", so it can be a program name with args.
6350 set dummy ranlib; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   if test -n "$ac_ct_RANLIB"; then
6357   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_prog_ac_ct_RANLIB="ranlib"
6367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371   done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6377 if test -n "$ac_ct_RANLIB"; then
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6379 $as_echo "$ac_ct_RANLIB" >&6; }
6380 else
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385   if test "x$ac_ct_RANLIB" = x; then
6386     RANLIB=":"
6387   else
6388     case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394     RANLIB=$ac_ct_RANLIB
6395   fi
6396 else
6397   RANLIB="$ac_cv_prog_RANLIB"
6398 fi
6399
6400 test -z "$RANLIB" && RANLIB=:
6401
6402
6403
6404
6405
6406
6407 # Determine commands to create old-style static archives.
6408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6409 old_postinstall_cmds='chmod 644 $oldlib'
6410 old_postuninstall_cmds=
6411
6412 if test -n "$RANLIB"; then
6413   case $host_os in
6414   openbsd*)
6415     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6416     ;;
6417   *)
6418     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6419     ;;
6420   esac
6421   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6422 fi
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
6454
6455
6456
6457 # If no C compiler was specified, use CC.
6458 LTCC=${LTCC-"$CC"}
6459
6460 # If no C compiler flags were specified, use CFLAGS.
6461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6462
6463 # Allow CC to be a program name with arguments.
6464 compiler=$CC
6465
6466
6467 # Check for command to grab the raw symbol name followed by C symbol from nm.
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6469 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6470 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473
6474 # These are sane defaults that work on at least a few old systems.
6475 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6476
6477 # Character class describing NM global symbol codes.
6478 symcode='[BCDEGRST]'
6479
6480 # Regexp to match symbols that can be accessed directly from C.
6481 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6482
6483 # Define system-specific variables.
6484 case $host_os in
6485 aix*)
6486   symcode='[BCDT]'
6487   ;;
6488 cygwin* | mingw* | pw32* | cegcc*)
6489   symcode='[ABCDGISTW]'
6490   ;;
6491 hpux*)
6492   if test "$host_cpu" = ia64; then
6493     symcode='[ABCDEGRST]'
6494   fi
6495   ;;
6496 irix* | nonstopux*)
6497   symcode='[BCDEGRST]'
6498   ;;
6499 osf*)
6500   symcode='[BCDEGQRST]'
6501   ;;
6502 solaris*)
6503   symcode='[BDRT]'
6504   ;;
6505 sco3.2v5*)
6506   symcode='[DT]'
6507   ;;
6508 sysv4.2uw2*)
6509   symcode='[DT]'
6510   ;;
6511 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6512   symcode='[ABDT]'
6513   ;;
6514 sysv4)
6515   symcode='[DFNSTU]'
6516   ;;
6517 esac
6518
6519 # If we're using GNU nm, then use its standard symbol codes.
6520 case `$NM -V 2>&1` in
6521 *GNU* | *'with BFD'*)
6522   symcode='[ABCDGIRSTW]' ;;
6523 esac
6524
6525 # Transform an extracted symbol line into a proper C declaration.
6526 # Some systems (esp. on ia64) link data and code symbols differently,
6527 # so use this general approach.
6528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6529
6530 # Transform an extracted symbol line into symbol name and symbol address
6531 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6532 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'"
6533
6534 # Handle CRLF in mingw tool chain
6535 opt_cr=
6536 case $build_os in
6537 mingw*)
6538   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6539   ;;
6540 esac
6541
6542 # Try without a prefix underscore, then with it.
6543 for ac_symprfx in "" "_"; do
6544
6545   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6546   symxfrm="\\1 $ac_symprfx\\2 \\2"
6547
6548   # Write the raw and C identifiers.
6549   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6550     # Fake it for dumpbin and say T for any non-static function
6551     # and D for any global variable.
6552     # Also find C++ and __fastcall symbols from MSVC++,
6553     # which start with @ or ?.
6554     lt_cv_sys_global_symbol_pipe="$AWK '"\
6555 "     {last_section=section; section=\$ 3};"\
6556 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6557 "     \$ 0!~/External *\|/{next};"\
6558 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6559 "     {if(hide[section]) next};"\
6560 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6561 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6562 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6563 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6564 "     ' prfx=^$ac_symprfx"
6565   else
6566     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6567   fi
6568
6569   # Check to see that the pipe works correctly.
6570   pipe_works=no
6571
6572   rm -f conftest*
6573   cat > conftest.$ac_ext <<_LT_EOF
6574 #ifdef __cplusplus
6575 extern "C" {
6576 #endif
6577 char nm_test_var;
6578 void nm_test_func(void);
6579 void nm_test_func(void){}
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 _LT_EOF
6585
6586   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587   (eval $ac_compile) 2>&5
6588   ac_status=$?
6589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590   test $ac_status = 0; }; then
6591     # Now try to grab the symbols.
6592     nlist=conftest.nm
6593     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6594   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6595   ac_status=$?
6596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597   test $ac_status = 0; } && test -s "$nlist"; then
6598       # Try sorting and uniquifying the output.
6599       if sort "$nlist" | uniq > "$nlist"T; then
6600         mv -f "$nlist"T "$nlist"
6601       else
6602         rm -f "$nlist"T
6603       fi
6604
6605       # Make sure that we snagged all the symbols we need.
6606       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6607         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6608           cat <<_LT_EOF > conftest.$ac_ext
6609 #ifdef __cplusplus
6610 extern "C" {
6611 #endif
6612
6613 _LT_EOF
6614           # Now generate the symbol file.
6615           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6616
6617           cat <<_LT_EOF >> conftest.$ac_ext
6618
6619 /* The mapping between symbol names and symbols.  */
6620 const struct {
6621   const char *name;
6622   void       *address;
6623 }
6624 lt__PROGRAM__LTX_preloaded_symbols[] =
6625 {
6626   { "@PROGRAM@", (void *) 0 },
6627 _LT_EOF
6628           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6629           cat <<\_LT_EOF >> conftest.$ac_ext
6630   {0, (void *) 0}
6631 };
6632
6633 /* This works around a problem in FreeBSD linker */
6634 #ifdef FREEBSD_WORKAROUND
6635 static const void *lt_preloaded_setup() {
6636   return lt__PROGRAM__LTX_preloaded_symbols;
6637 }
6638 #endif
6639
6640 #ifdef __cplusplus
6641 }
6642 #endif
6643 _LT_EOF
6644           # Now try linking the two files.
6645           mv conftest.$ac_objext conftstm.$ac_objext
6646           lt_save_LIBS="$LIBS"
6647           lt_save_CFLAGS="$CFLAGS"
6648           LIBS="conftstm.$ac_objext"
6649           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6650           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6651   (eval $ac_link) 2>&5
6652   ac_status=$?
6653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6655             pipe_works=yes
6656           fi
6657           LIBS="$lt_save_LIBS"
6658           CFLAGS="$lt_save_CFLAGS"
6659         else
6660           echo "cannot find nm_test_func in $nlist" >&5
6661         fi
6662       else
6663         echo "cannot find nm_test_var in $nlist" >&5
6664       fi
6665     else
6666       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6667     fi
6668   else
6669     echo "$progname: failed program was:" >&5
6670     cat conftest.$ac_ext >&5
6671   fi
6672   rm -rf conftest* conftst*
6673
6674   # Do not use the global_symbol_pipe unless it works.
6675   if test "$pipe_works" = yes; then
6676     break
6677   else
6678     lt_cv_sys_global_symbol_pipe=
6679   fi
6680 done
6681
6682 fi
6683
6684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6685   lt_cv_sys_global_symbol_to_cdecl=
6686 fi
6687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6689 $as_echo "failed" >&6; }
6690 else
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6692 $as_echo "ok" >&6; }
6693 fi
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717 # Check whether --enable-libtool-lock was given.
6718 if test "${enable_libtool_lock+set}" = set; then :
6719   enableval=$enable_libtool_lock;
6720 fi
6721
6722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6723
6724 # Some flags need to be propagated to the compiler or linker for good
6725 # libtool support.
6726 case $host in
6727 ia64-*-hpux*)
6728   # Find out which ABI we are using.
6729   echo 'int i;' > conftest.$ac_ext
6730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731   (eval $ac_compile) 2>&5
6732   ac_status=$?
6733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734   test $ac_status = 0; }; then
6735     case `/usr/bin/file conftest.$ac_objext` in
6736       *ELF-32*)
6737         HPUX_IA64_MODE="32"
6738         ;;
6739       *ELF-64*)
6740         HPUX_IA64_MODE="64"
6741         ;;
6742     esac
6743   fi
6744   rm -rf conftest*
6745   ;;
6746 *-*-irix6*)
6747   # Find out which ABI we are using.
6748   echo '#line 6748 "configure"' > conftest.$ac_ext
6749   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750   (eval $ac_compile) 2>&5
6751   ac_status=$?
6752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753   test $ac_status = 0; }; then
6754     if test "$lt_cv_prog_gnu_ld" = yes; then
6755       case `/usr/bin/file conftest.$ac_objext` in
6756         *32-bit*)
6757           LD="${LD-ld} -melf32bsmip"
6758           ;;
6759         *N32*)
6760           LD="${LD-ld} -melf32bmipn32"
6761           ;;
6762         *64-bit*)
6763           LD="${LD-ld} -melf64bmip"
6764         ;;
6765       esac
6766     else
6767       case `/usr/bin/file conftest.$ac_objext` in
6768         *32-bit*)
6769           LD="${LD-ld} -32"
6770           ;;
6771         *N32*)
6772           LD="${LD-ld} -n32"
6773           ;;
6774         *64-bit*)
6775           LD="${LD-ld} -64"
6776           ;;
6777       esac
6778     fi
6779   fi
6780   rm -rf conftest*
6781   ;;
6782
6783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6785   # Find out which ABI we are using.
6786   echo 'int i;' > conftest.$ac_ext
6787   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788   (eval $ac_compile) 2>&5
6789   ac_status=$?
6790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791   test $ac_status = 0; }; then
6792     case `/usr/bin/file conftest.o` in
6793       *32-bit*)
6794         case $host in
6795           x86_64-*kfreebsd*-gnu)
6796             LD="${LD-ld} -m elf_i386_fbsd"
6797             ;;
6798           x86_64-*linux*)
6799             LD="${LD-ld} -m elf_i386"
6800             ;;
6801           ppc64-*linux*|powerpc64-*linux*)
6802             LD="${LD-ld} -m elf32ppclinux"
6803             ;;
6804           s390x-*linux*)
6805             LD="${LD-ld} -m elf_s390"
6806             ;;
6807           sparc64-*linux*)
6808             LD="${LD-ld} -m elf32_sparc"
6809             ;;
6810         esac
6811         ;;
6812       *64-bit*)
6813         case $host in
6814           x86_64-*kfreebsd*-gnu)
6815             LD="${LD-ld} -m elf_x86_64_fbsd"
6816             ;;
6817           x86_64-*linux*)
6818             LD="${LD-ld} -m elf_x86_64"
6819             ;;
6820           ppc*-*linux*|powerpc*-*linux*)
6821             LD="${LD-ld} -m elf64ppc"
6822             ;;
6823           s390*-*linux*|s390*-*tpf*)
6824             LD="${LD-ld} -m elf64_s390"
6825             ;;
6826           sparc*-*linux*)
6827             LD="${LD-ld} -m elf64_sparc"
6828             ;;
6829         esac
6830         ;;
6831     esac
6832   fi
6833   rm -rf conftest*
6834   ;;
6835
6836 *-*-sco3.2v5*)
6837   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6838   SAVE_CFLAGS="$CFLAGS"
6839   CFLAGS="$CFLAGS -belf"
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6841 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6842 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   ac_ext=c
6846 ac_cpp='$CPP $CPPFLAGS'
6847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850
6851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853
6854 int
6855 main ()
6856 {
6857
6858   ;
6859   return 0;
6860 }
6861 _ACEOF
6862 if ac_fn_c_try_link "$LINENO"; then :
6863   lt_cv_cc_needs_belf=yes
6864 else
6865   lt_cv_cc_needs_belf=no
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext \
6868     conftest$ac_exeext conftest.$ac_ext
6869      ac_ext=c
6870 ac_cpp='$CPP $CPPFLAGS'
6871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6877 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6878   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6879     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6880     CFLAGS="$SAVE_CFLAGS"
6881   fi
6882   ;;
6883 sparc*-*solaris*)
6884   # Find out which ABI we are using.
6885   echo 'int i;' > conftest.$ac_ext
6886   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887   (eval $ac_compile) 2>&5
6888   ac_status=$?
6889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890   test $ac_status = 0; }; then
6891     case `/usr/bin/file conftest.o` in
6892     *64-bit*)
6893       case $lt_cv_prog_gnu_ld in
6894       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6895       *)
6896         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6897           LD="${LD-ld} -64"
6898         fi
6899         ;;
6900       esac
6901       ;;
6902     esac
6903   fi
6904   rm -rf conftest*
6905   ;;
6906 esac
6907
6908 need_locks="$enable_libtool_lock"
6909
6910
6911   case $host_os in
6912     rhapsody* | darwin*)
6913     if test -n "$ac_tool_prefix"; then
6914   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6919   $as_echo_n "(cached) " >&6
6920 else
6921   if test -n "$DSYMUTIL"; then
6922   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927   IFS=$as_save_IFS
6928   test -z "$as_dir" && as_dir=.
6929     for ac_exec_ext in '' $ac_executable_extensions; do
6930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933     break 2
6934   fi
6935 done
6936   done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6942 if test -n "$DSYMUTIL"; then
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6944 $as_echo "$DSYMUTIL" >&6; }
6945 else
6946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950
6951 fi
6952 if test -z "$ac_cv_prog_DSYMUTIL"; then
6953   ac_ct_DSYMUTIL=$DSYMUTIL
6954   # Extract the first word of "dsymutil", so it can be a program name with args.
6955 set dummy dsymutil; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   if test -n "$ac_ct_DSYMUTIL"; then
6962   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969     for ac_exec_ext in '' $ac_executable_extensions; do
6970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976   done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6982 if test -n "$ac_ct_DSYMUTIL"; then
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6984 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6985 else
6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990   if test "x$ac_ct_DSYMUTIL" = x; then
6991     DSYMUTIL=":"
6992   else
6993     case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999     DSYMUTIL=$ac_ct_DSYMUTIL
7000   fi
7001 else
7002   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7003 fi
7004
7005     if test -n "$ac_tool_prefix"; then
7006   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7011   $as_echo_n "(cached) " >&6
7012 else
7013   if test -n "$NMEDIT"; then
7014   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021     for ac_exec_ext in '' $ac_executable_extensions; do
7022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028   done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 NMEDIT=$ac_cv_prog_NMEDIT
7034 if test -n "$NMEDIT"; then
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7036 $as_echo "$NMEDIT" >&6; }
7037 else
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_NMEDIT"; then
7045   ac_ct_NMEDIT=$NMEDIT
7046   # Extract the first word of "nmedit", so it can be a program name with args.
7047 set dummy nmedit; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   if test -n "$ac_ct_NMEDIT"; then
7054   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061     for ac_exec_ext in '' $ac_executable_extensions; do
7062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068   done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7074 if test -n "$ac_ct_NMEDIT"; then
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7076 $as_echo "$ac_ct_NMEDIT" >&6; }
7077 else
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082   if test "x$ac_ct_NMEDIT" = x; then
7083     NMEDIT=":"
7084   else
7085     case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091     NMEDIT=$ac_ct_NMEDIT
7092   fi
7093 else
7094   NMEDIT="$ac_cv_prog_NMEDIT"
7095 fi
7096
7097     if test -n "$ac_tool_prefix"; then
7098   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_LIPO+set}" = set; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   if test -n "$LIPO"; then
7106   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113     for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120   done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 LIPO=$ac_cv_prog_LIPO
7126 if test -n "$LIPO"; then
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7128 $as_echo "$LIPO" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134
7135 fi
7136 if test -z "$ac_cv_prog_LIPO"; then
7137   ac_ct_LIPO=$LIPO
7138   # Extract the first word of "lipo", so it can be a program name with args.
7139 set dummy lipo; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test -n "$ac_ct_LIPO"; then
7146   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_prog_ac_ct_LIPO="lipo"
7156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160   done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7166 if test -n "$ac_ct_LIPO"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7168 $as_echo "$ac_ct_LIPO" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174   if test "x$ac_ct_LIPO" = x; then
7175     LIPO=":"
7176   else
7177     case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183     LIPO=$ac_ct_LIPO
7184   fi
7185 else
7186   LIPO="$ac_cv_prog_LIPO"
7187 fi
7188
7189     if test -n "$ac_tool_prefix"; then
7190   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}otool; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7195   $as_echo_n "(cached) " >&6
7196 else
7197   if test -n "$OTOOL"; then
7198   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205     for ac_exec_ext in '' $ac_executable_extensions; do
7206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212   done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 OTOOL=$ac_cv_prog_OTOOL
7218 if test -n "$OTOOL"; then
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7220 $as_echo "$OTOOL" >&6; }
7221 else
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225
7226
7227 fi
7228 if test -z "$ac_cv_prog_OTOOL"; then
7229   ac_ct_OTOOL=$OTOOL
7230   # Extract the first word of "otool", so it can be a program name with args.
7231 set dummy otool; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   if test -n "$ac_ct_OTOOL"; then
7238   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245     for ac_exec_ext in '' $ac_executable_extensions; do
7246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247     ac_cv_prog_ac_ct_OTOOL="otool"
7248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252   done
7253 IFS=$as_save_IFS
7254
7255 fi
7256 fi
7257 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7258 if test -n "$ac_ct_OTOOL"; then
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7260 $as_echo "$ac_ct_OTOOL" >&6; }
7261 else
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7264 fi
7265
7266   if test "x$ac_ct_OTOOL" = x; then
7267     OTOOL=":"
7268   else
7269     case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7273 ac_tool_warned=yes ;;
7274 esac
7275     OTOOL=$ac_ct_OTOOL
7276   fi
7277 else
7278   OTOOL="$ac_cv_prog_OTOOL"
7279 fi
7280
7281     if test -n "$ac_tool_prefix"; then
7282   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7283 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7287   $as_echo_n "(cached) " >&6
7288 else
7289   if test -n "$OTOOL64"; then
7290   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297     for ac_exec_ext in '' $ac_executable_extensions; do
7298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304   done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 OTOOL64=$ac_cv_prog_OTOOL64
7310 if test -n "$OTOOL64"; then
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7312 $as_echo "$OTOOL64" >&6; }
7313 else
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318
7319 fi
7320 if test -z "$ac_cv_prog_OTOOL64"; then
7321   ac_ct_OTOOL64=$OTOOL64
7322   # Extract the first word of "otool64", so it can be a program name with args.
7323 set dummy otool64; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7327   $as_echo_n "(cached) " >&6
7328 else
7329   if test -n "$ac_ct_OTOOL64"; then
7330   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335   IFS=$as_save_IFS
7336   test -z "$as_dir" && as_dir=.
7337     for ac_exec_ext in '' $ac_executable_extensions; do
7338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339     ac_cv_prog_ac_ct_OTOOL64="otool64"
7340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341     break 2
7342   fi
7343 done
7344   done
7345 IFS=$as_save_IFS
7346
7347 fi
7348 fi
7349 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7350 if test -n "$ac_ct_OTOOL64"; then
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7352 $as_echo "$ac_ct_OTOOL64" >&6; }
7353 else
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357
7358   if test "x$ac_ct_OTOOL64" = x; then
7359     OTOOL64=":"
7360   else
7361     case $cross_compiling:$ac_tool_warned in
7362 yes:)
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365 ac_tool_warned=yes ;;
7366 esac
7367     OTOOL64=$ac_ct_OTOOL64
7368   fi
7369 else
7370   OTOOL64="$ac_cv_prog_OTOOL64"
7371 fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7400 $as_echo_n "checking for -single_module linker flag... " >&6; }
7401 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   lt_cv_apple_cc_single_mod=no
7405       if test -z "${LT_MULTI_MODULE}"; then
7406         # By default we will add the -single_module flag. You can override
7407         # by either setting the environment variable LT_MULTI_MODULE
7408         # non-empty at configure time, or by adding -multi_module to the
7409         # link flags.
7410         rm -rf libconftest.dylib*
7411         echo "int foo(void){return 1;}" > conftest.c
7412         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7413 -dynamiclib -Wl,-single_module conftest.c" >&5
7414         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7415           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7416         _lt_result=$?
7417         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7418           lt_cv_apple_cc_single_mod=yes
7419         else
7420           cat conftest.err >&5
7421         fi
7422         rm -rf libconftest.dylib*
7423         rm -f conftest.*
7424       fi
7425 fi
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7427 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7429 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7430 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   lt_cv_ld_exported_symbols_list=no
7434       save_LDFLAGS=$LDFLAGS
7435       echo "_main" > conftest.sym
7436       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7437       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h.  */
7439
7440 int
7441 main ()
7442 {
7443
7444   ;
7445   return 0;
7446 }
7447 _ACEOF
7448 if ac_fn_c_try_link "$LINENO"; then :
7449   lt_cv_ld_exported_symbols_list=yes
7450 else
7451   lt_cv_ld_exported_symbols_list=no
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext \
7454     conftest$ac_exeext conftest.$ac_ext
7455         LDFLAGS="$save_LDFLAGS"
7456
7457 fi
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7459 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7460     case $host_os in
7461     rhapsody* | darwin1.[012])
7462       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7463     darwin1.*)
7464       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7465     darwin*) # darwin 5.x on
7466       # if running on 10.5 or later, the deployment target defaults
7467       # to the OS version, if on x86, and 10.4, the deployment
7468       # target defaults to 10.4. Don't you love it?
7469       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7470         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7471           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7472         10.[012]*)
7473           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7474         10.*)
7475           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7476       esac
7477     ;;
7478   esac
7479     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7480       _lt_dar_single_mod='$single_module'
7481     fi
7482     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7483       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7484     else
7485       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7486     fi
7487     if test "$DSYMUTIL" != ":"; then
7488       _lt_dsymutil='~$DSYMUTIL $lib || :'
7489     else
7490       _lt_dsymutil=
7491     fi
7492     ;;
7493   esac
7494
7495
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7497 $as_echo_n "checking for ANSI C header files... " >&6; }
7498 if test "${ac_cv_header_stdc+set}" = set; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h.  */
7503 #include <stdlib.h>
7504 #include <stdarg.h>
7505 #include <string.h>
7506 #include <float.h>
7507
7508 int
7509 main ()
7510 {
7511
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517   ac_cv_header_stdc=yes
7518 else
7519   ac_cv_header_stdc=no
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522
7523 if test $ac_cv_header_stdc = yes; then
7524   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h.  */
7527 #include <string.h>
7528
7529 _ACEOF
7530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7531   $EGREP "memchr" >/dev/null 2>&1; then :
7532
7533 else
7534   ac_cv_header_stdc=no
7535 fi
7536 rm -f conftest*
7537
7538 fi
7539
7540 if test $ac_cv_header_stdc = yes; then
7541   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h.  */
7544 #include <stdlib.h>
7545
7546 _ACEOF
7547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7548   $EGREP "free" >/dev/null 2>&1; then :
7549
7550 else
7551   ac_cv_header_stdc=no
7552 fi
7553 rm -f conftest*
7554
7555 fi
7556
7557 if test $ac_cv_header_stdc = yes; then
7558   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7559   if test "$cross_compiling" = yes; then :
7560   :
7561 else
7562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h.  */
7564 #include <ctype.h>
7565 #include <stdlib.h>
7566 #if ((' ' & 0x0FF) == 0x020)
7567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7569 #else
7570 # define ISLOWER(c) \
7571                    (('a' <= (c) && (c) <= 'i') \
7572                      || ('j' <= (c) && (c) <= 'r') \
7573                      || ('s' <= (c) && (c) <= 'z'))
7574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7575 #endif
7576
7577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7578 int
7579 main ()
7580 {
7581   int i;
7582   for (i = 0; i < 256; i++)
7583     if (XOR (islower (i), ISLOWER (i))
7584         || toupper (i) != TOUPPER (i))
7585       return 2;
7586   return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_run "$LINENO"; then :
7590
7591 else
7592   ac_cv_header_stdc=no
7593 fi
7594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7595   conftest.$ac_objext conftest.beam conftest.$ac_ext
7596 fi
7597
7598 fi
7599 fi
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7601 $as_echo "$ac_cv_header_stdc" >&6; }
7602 if test $ac_cv_header_stdc = yes; then
7603
7604 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7605
7606 fi
7607
7608 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7610                   inttypes.h stdint.h unistd.h
7611 do :
7612   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7614 "
7615 eval as_val=\$$as_ac_Header
7616    if test "x$as_val" = x""yes; then :
7617   cat >>confdefs.h <<_ACEOF
7618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7619 _ACEOF
7620
7621 fi
7622
7623 done
7624
7625
7626 for ac_header in dlfcn.h
7627 do :
7628   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7629 "
7630 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7631   cat >>confdefs.h <<_ACEOF
7632 #define HAVE_DLFCN_H 1
7633 _ACEOF
7634
7635 fi
7636
7637 done
7638
7639
7640
7641 ac_ext=cpp
7642 ac_cpp='$CXXCPP $CPPFLAGS'
7643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7646 if test -z "$CXX"; then
7647   if test -n "$CCC"; then
7648     CXX=$CCC
7649   else
7650     if test -n "$ac_tool_prefix"; then
7651   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7652   do
7653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_CXX+set}" = set; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   if test -n "$CXX"; then
7661   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668     for ac_exec_ext in '' $ac_executable_extensions; do
7669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675   done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 CXX=$ac_cv_prog_CXX
7681 if test -n "$CXX"; then
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7683 $as_echo "$CXX" >&6; }
7684 else
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689
7690     test -n "$CXX" && break
7691   done
7692 fi
7693 if test -z "$CXX"; then
7694   ac_ct_CXX=$CXX
7695   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7696 do
7697   # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7702   $as_echo_n "(cached) " >&6
7703 else
7704   if test -n "$ac_ct_CXX"; then
7705   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712     for ac_exec_ext in '' $ac_executable_extensions; do
7713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714     ac_cv_prog_ac_ct_CXX="$ac_prog"
7715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719   done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7725 if test -n "$ac_ct_CXX"; then
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7727 $as_echo "$ac_ct_CXX" >&6; }
7728 else
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733
7734   test -n "$ac_ct_CXX" && break
7735 done
7736
7737   if test "x$ac_ct_CXX" = x; then
7738     CXX="g++"
7739   else
7740     case $cross_compiling:$ac_tool_warned in
7741 yes:)
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744 ac_tool_warned=yes ;;
7745 esac
7746     CXX=$ac_ct_CXX
7747   fi
7748 fi
7749
7750   fi
7751 fi
7752 # Provide some information about the compiler.
7753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7754 set X $ac_compile
7755 ac_compiler=$2
7756 for ac_option in --version -v -V -qversion; do
7757   { { ac_try="$ac_compiler $ac_option >&5"
7758 case "(($ac_try" in
7759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760   *) ac_try_echo=$ac_try;;
7761 esac
7762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7763 $as_echo "$ac_try_echo"; } >&5
7764   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7765   ac_status=$?
7766   if test -s conftest.err; then
7767     sed '10a\
7768 ... rest of stderr output deleted ...
7769          10q' conftest.err >conftest.er1
7770     cat conftest.er1 >&5
7771   fi
7772   rm -f conftest.er1 conftest.err
7773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774   test $ac_status = 0; }
7775 done
7776
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7778 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7779 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h.  */
7784
7785 int
7786 main ()
7787 {
7788 #ifndef __GNUC__
7789        choke me
7790 #endif
7791
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_cxx_try_compile "$LINENO"; then :
7797   ac_compiler_gnu=yes
7798 else
7799   ac_compiler_gnu=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7803
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7806 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7807 if test $ac_compiler_gnu = yes; then
7808   GXX=yes
7809 else
7810   GXX=
7811 fi
7812 ac_test_CXXFLAGS=${CXXFLAGS+set}
7813 ac_save_CXXFLAGS=$CXXFLAGS
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7815 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7816 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7820    ac_cxx_werror_flag=yes
7821    ac_cv_prog_cxx_g=no
7822    CXXFLAGS="-g"
7823    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h.  */
7825
7826 int
7827 main ()
7828 {
7829
7830   ;
7831   return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_cxx_try_compile "$LINENO"; then :
7835   ac_cv_prog_cxx_g=yes
7836 else
7837   CXXFLAGS=""
7838       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h.  */
7840
7841 int
7842 main ()
7843 {
7844
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 if ac_fn_cxx_try_compile "$LINENO"; then :
7850
7851 else
7852   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7853          CXXFLAGS="-g"
7854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h.  */
7856
7857 int
7858 main ()
7859 {
7860
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_cxx_try_compile "$LINENO"; then :
7866   ac_cv_prog_cxx_g=yes
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7876 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7877 if test "$ac_test_CXXFLAGS" = set; then
7878   CXXFLAGS=$ac_save_CXXFLAGS
7879 elif test $ac_cv_prog_cxx_g = yes; then
7880   if test "$GXX" = yes; then
7881     CXXFLAGS="-g -O2"
7882   else
7883     CXXFLAGS="-g"
7884   fi
7885 else
7886   if test "$GXX" = yes; then
7887     CXXFLAGS="-O2"
7888   else
7889     CXXFLAGS=
7890   fi
7891 fi
7892 ac_ext=cpp
7893 ac_cpp='$CXXCPP $CPPFLAGS'
7894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7897
7898 depcc="$CXX"  am_compiler_list=
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7901 $as_echo_n "checking dependency style of $depcc... " >&6; }
7902 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7906   # We make a subdir and do the tests there.  Otherwise we can end up
7907   # making bogus files that we don't know about and never remove.  For
7908   # instance it was reported that on HP-UX the gcc test will end up
7909   # making a dummy file named `D' -- because `-MD' means `put the output
7910   # in D'.
7911   mkdir conftest.dir
7912   # Copy depcomp to subdir because otherwise we won't find it if we're
7913   # using a relative directory.
7914   cp "$am_depcomp" conftest.dir
7915   cd conftest.dir
7916   # We will build objects and dependencies in a subdirectory because
7917   # it helps to detect inapplicable dependency modes.  For instance
7918   # both Tru64's cc and ICC support -MD to output dependencies as a
7919   # side effect of compilation, but ICC will put the dependencies in
7920   # the current directory while Tru64 will put them in the object
7921   # directory.
7922   mkdir sub
7923
7924   am_cv_CXX_dependencies_compiler_type=none
7925   if test "$am_compiler_list" = ""; then
7926      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7927   fi
7928   am__universal=false
7929   case " $depcc " in #(
7930      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7931      esac
7932
7933   for depmode in $am_compiler_list; do
7934     # Setup a source with many dependencies, because some compilers
7935     # like to wrap large dependency lists on column 80 (with \), and
7936     # we should not choose a depcomp mode which is confused by this.
7937     #
7938     # We need to recreate these files for each test, as the compiler may
7939     # overwrite some of them when testing with obscure command lines.
7940     # This happens at least with the AIX C compiler.
7941     : > sub/conftest.c
7942     for i in 1 2 3 4 5 6; do
7943       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7944       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7945       # Solaris 8's {/usr,}/bin/sh.
7946       touch sub/conftst$i.h
7947     done
7948     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7949
7950     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7951     # mode.  It turns out that the SunPro C++ compiler does not properly
7952     # handle `-M -o', and we need to detect this.  Also, some Intel
7953     # versions had trouble with output in subdirs
7954     am__obj=sub/conftest.${OBJEXT-o}
7955     am__minus_obj="-o $am__obj"
7956     case $depmode in
7957     gcc)
7958       # This depmode causes a compiler race in universal mode.
7959       test "$am__universal" = false || continue
7960       ;;
7961     nosideeffect)
7962       # after this tag, mechanisms are not by side-effect, so they'll
7963       # only be used when explicitly requested
7964       if test "x$enable_dependency_tracking" = xyes; then
7965         continue
7966       else
7967         break
7968       fi
7969       ;;
7970     msvisualcpp | msvcmsys)
7971       # This compiler won't grok `-c -o', but also, the minuso test has
7972       # not run yet.  These depmodes are late enough in the game, and
7973       # so weak that their functioning should not be impacted.
7974       am__obj=conftest.${OBJEXT-o}
7975       am__minus_obj=
7976       ;;
7977     none) break ;;
7978     esac
7979     if depmode=$depmode \
7980        source=sub/conftest.c object=$am__obj \
7981        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7982        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7983          >/dev/null 2>conftest.err &&
7984        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7985        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7986        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7987        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7988       # icc doesn't choke on unknown options, it will just issue warnings
7989       # or remarks (even with -Werror).  So we grep stderr for any message
7990       # that says an option was ignored or not supported.
7991       # When given -MP, icc 7.0 and 7.1 complain thusly:
7992       #   icc: Command line warning: ignoring option '-M'; no argument required
7993       # The diagnosis changed in icc 8.0:
7994       #   icc: Command line remark: option '-MP' not supported
7995       if (grep 'ignoring option' conftest.err ||
7996           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7997         am_cv_CXX_dependencies_compiler_type=$depmode
7998         break
7999       fi
8000     fi
8001   done
8002
8003   cd ..
8004   rm -rf conftest.dir
8005 else
8006   am_cv_CXX_dependencies_compiler_type=none
8007 fi
8008
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8011 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8012 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8013
8014  if
8015   test "x$enable_dependency_tracking" != xno \
8016   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8017   am__fastdepCXX_TRUE=
8018   am__fastdepCXX_FALSE='#'
8019 else
8020   am__fastdepCXX_TRUE='#'
8021   am__fastdepCXX_FALSE=
8022 fi
8023
8024
8025 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8026     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8027     (test "X$CXX" != "Xg++"))) ; then
8028   ac_ext=cpp
8029 ac_cpp='$CXXCPP $CPPFLAGS'
8030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8034 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8035 if test -z "$CXXCPP"; then
8036   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039       # Double quotes because CXXCPP needs to be expanded
8040     for CXXCPP in "$CXX -E" "/lib/cpp"
8041     do
8042       ac_preproc_ok=false
8043 for ac_cxx_preproc_warn_flag in '' yes
8044 do
8045   # Use a header file that comes with gcc, so configuring glibc
8046   # with a fresh cross-compiler works.
8047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8048   # <limits.h> exists even on freestanding compilers.
8049   # On the NeXT, cc -E runs the code through the compiler's parser,
8050   # not just through cpp. "Syntax error" is here to catch this case.
8051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h.  */
8053 #ifdef __STDC__
8054 # include <limits.h>
8055 #else
8056 # include <assert.h>
8057 #endif
8058                      Syntax error
8059 _ACEOF
8060 if ac_fn_cxx_try_cpp "$LINENO"; then :
8061
8062 else
8063   # Broken: fails on valid input.
8064 continue
8065 fi
8066 rm -f conftest.err conftest.$ac_ext
8067
8068   # OK, works on sane cases.  Now check whether nonexistent headers
8069   # can be detected and how.
8070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h.  */
8072 #include <ac_nonexistent.h>
8073 _ACEOF
8074 if ac_fn_cxx_try_cpp "$LINENO"; then :
8075   # Broken: success on invalid input.
8076 continue
8077 else
8078   # Passes both tests.
8079 ac_preproc_ok=:
8080 break
8081 fi
8082 rm -f conftest.err conftest.$ac_ext
8083
8084 done
8085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8086 rm -f conftest.err conftest.$ac_ext
8087 if $ac_preproc_ok; then :
8088   break
8089 fi
8090
8091     done
8092     ac_cv_prog_CXXCPP=$CXXCPP
8093
8094 fi
8095   CXXCPP=$ac_cv_prog_CXXCPP
8096 else
8097   ac_cv_prog_CXXCPP=$CXXCPP
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8100 $as_echo "$CXXCPP" >&6; }
8101 ac_preproc_ok=false
8102 for ac_cxx_preproc_warn_flag in '' yes
8103 do
8104   # Use a header file that comes with gcc, so configuring glibc
8105   # with a fresh cross-compiler works.
8106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8107   # <limits.h> exists even on freestanding compilers.
8108   # On the NeXT, cc -E runs the code through the compiler's parser,
8109   # not just through cpp. "Syntax error" is here to catch this case.
8110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h.  */
8112 #ifdef __STDC__
8113 # include <limits.h>
8114 #else
8115 # include <assert.h>
8116 #endif
8117                      Syntax error
8118 _ACEOF
8119 if ac_fn_cxx_try_cpp "$LINENO"; then :
8120
8121 else
8122   # Broken: fails on valid input.
8123 continue
8124 fi
8125 rm -f conftest.err conftest.$ac_ext
8126
8127   # OK, works on sane cases.  Now check whether nonexistent headers
8128   # can be detected and how.
8129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h.  */
8131 #include <ac_nonexistent.h>
8132 _ACEOF
8133 if ac_fn_cxx_try_cpp "$LINENO"; then :
8134   # Broken: success on invalid input.
8135 continue
8136 else
8137   # Passes both tests.
8138 ac_preproc_ok=:
8139 break
8140 fi
8141 rm -f conftest.err conftest.$ac_ext
8142
8143 done
8144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8145 rm -f conftest.err conftest.$ac_ext
8146 if $ac_preproc_ok; then :
8147
8148 else
8149   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8151 _lt_caught_CXX_error=yes; }
8152 fi
8153
8154 ac_ext=cpp
8155 ac_cpp='$CXXCPP $CPPFLAGS'
8156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8159
8160 else
8161   _lt_caught_CXX_error=yes
8162 fi
8163
8164
8165
8166
8167
8168 # Set options
8169
8170
8171
8172         enable_dlopen=no
8173
8174
8175   enable_win32_dll=no
8176
8177
8178             # Check whether --enable-shared was given.
8179 if test "${enable_shared+set}" = set; then :
8180   enableval=$enable_shared; p=${PACKAGE-default}
8181     case $enableval in
8182     yes) enable_shared=yes ;;
8183     no) enable_shared=no ;;
8184     *)
8185       enable_shared=no
8186       # Look at the argument we got.  We use all the common list separators.
8187       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8188       for pkg in $enableval; do
8189         IFS="$lt_save_ifs"
8190         if test "X$pkg" = "X$p"; then
8191           enable_shared=yes
8192         fi
8193       done
8194       IFS="$lt_save_ifs"
8195       ;;
8196     esac
8197 else
8198   enable_shared=yes
8199 fi
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209   # Check whether --enable-static was given.
8210 if test "${enable_static+set}" = set; then :
8211   enableval=$enable_static; p=${PACKAGE-default}
8212     case $enableval in
8213     yes) enable_static=yes ;;
8214     no) enable_static=no ;;
8215     *)
8216      enable_static=no
8217       # Look at the argument we got.  We use all the common list separators.
8218       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219       for pkg in $enableval; do
8220         IFS="$lt_save_ifs"
8221         if test "X$pkg" = "X$p"; then
8222           enable_static=yes
8223         fi
8224       done
8225       IFS="$lt_save_ifs"
8226       ;;
8227     esac
8228 else
8229   enable_static=yes
8230 fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241 # Check whether --with-pic was given.
8242 if test "${with_pic+set}" = set; then :
8243   withval=$with_pic; pic_mode="$withval"
8244 else
8245   pic_mode=default
8246 fi
8247
8248
8249 test -z "$pic_mode" && pic_mode=default
8250
8251
8252
8253
8254
8255
8256
8257   # Check whether --enable-fast-install was given.
8258 if test "${enable_fast_install+set}" = set; then :
8259   enableval=$enable_fast_install; p=${PACKAGE-default}
8260     case $enableval in
8261     yes) enable_fast_install=yes ;;
8262     no) enable_fast_install=no ;;
8263     *)
8264       enable_fast_install=no
8265       # Look at the argument we got.  We use all the common list separators.
8266       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267       for pkg in $enableval; do
8268         IFS="$lt_save_ifs"
8269         if test "X$pkg" = "X$p"; then
8270           enable_fast_install=yes
8271         fi
8272       done
8273       IFS="$lt_save_ifs"
8274       ;;
8275     esac
8276 else
8277   enable_fast_install=yes
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 # This can be used to rebuild libtool when needed
8291 LIBTOOL_DEPS="$ltmain"
8292
8293 # Always use our own libtool.
8294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 test -z "$LN_S" && LN_S="ln -s"
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335 if test -n "${ZSH_VERSION+set}" ; then
8336    setopt NO_GLOB_SUBST
8337 fi
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8340 $as_echo_n "checking for objdir... " >&6; }
8341 if test "${lt_cv_objdir+set}" = set; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   rm -f .libs 2>/dev/null
8345 mkdir .libs 2>/dev/null
8346 if test -d .libs; then
8347   lt_cv_objdir=.libs
8348 else
8349   # MS-DOS does not allow filenames that begin with a dot.
8350   lt_cv_objdir=_libs
8351 fi
8352 rmdir .libs 2>/dev/null
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8355 $as_echo "$lt_cv_objdir" >&6; }
8356 objdir=$lt_cv_objdir
8357
8358
8359
8360
8361
8362 cat >>confdefs.h <<_ACEOF
8363 #define LT_OBJDIR "$lt_cv_objdir/"
8364 _ACEOF
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382 case $host_os in
8383 aix3*)
8384   # AIX sometimes has problems with the GCC collect2 program.  For some
8385   # reason, if we set the COLLECT_NAMES environment variable, the problems
8386   # vanish in a puff of smoke.
8387   if test "X${COLLECT_NAMES+set}" != Xset; then
8388     COLLECT_NAMES=
8389     export COLLECT_NAMES
8390   fi
8391   ;;
8392 esac
8393
8394 # Sed substitution that helps us do robust quoting.  It backslashifies
8395 # metacharacters that are still active within double-quoted strings.
8396 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8397
8398 # Same as above, but do not quote variable references.
8399 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8400
8401 # Sed substitution to delay expansion of an escaped shell variable in a
8402 # double_quote_subst'ed string.
8403 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8404
8405 # Sed substitution to delay expansion of an escaped single quote.
8406 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8407
8408 # Sed substitution to avoid accidental globbing in evaled expressions
8409 no_glob_subst='s/\*/\\\*/g'
8410
8411 # Global variables:
8412 ofile=libtool
8413 can_build_shared=yes
8414
8415 # All known linkers require a `.a' archive for static linking (except MSVC,
8416 # which needs '.lib').
8417 libext=a
8418
8419 with_gnu_ld="$lt_cv_prog_gnu_ld"
8420
8421 old_CC="$CC"
8422 old_CFLAGS="$CFLAGS"
8423
8424 # Set sane defaults for various variables
8425 test -z "$CC" && CC=cc
8426 test -z "$LTCC" && LTCC=$CC
8427 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8428 test -z "$LD" && LD=ld
8429 test -z "$ac_objext" && ac_objext=o
8430
8431 for cc_temp in $compiler""; do
8432   case $cc_temp in
8433     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8435     \-*) ;;
8436     *) break;;
8437   esac
8438 done
8439 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8440
8441
8442 # Only perform the check for file, if the check method requires it
8443 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8444 case $deplibs_check_method in
8445 file_magic*)
8446   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8448 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   case $MAGIC_CMD in
8453 [\\/*] |  ?:[\\/]*)
8454   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8455   ;;
8456 *)
8457   lt_save_MAGIC_CMD="$MAGIC_CMD"
8458   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8459   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460   for ac_dir in $ac_dummy; do
8461     IFS="$lt_save_ifs"
8462     test -z "$ac_dir" && ac_dir=.
8463     if test -f $ac_dir/${ac_tool_prefix}file; then
8464       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8465       if test -n "$file_magic_test_file"; then
8466         case $deplibs_check_method in
8467         "file_magic "*)
8468           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471             $EGREP "$file_magic_regex" > /dev/null; then
8472             :
8473           else
8474             cat <<_LT_EOF 1>&2
8475
8476 *** Warning: the command libtool uses to detect shared libraries,
8477 *** $file_magic_cmd, produces output that libtool cannot recognize.
8478 *** The result is that libtool may fail to recognize shared libraries
8479 *** as such.  This will affect the creation of libtool libraries that
8480 *** depend on shared libraries, but programs linked with such libtool
8481 *** libraries will work regardless of this problem.  Nevertheless, you
8482 *** may want to report the problem to your system manager and/or to
8483 *** bug-libtool@gnu.org
8484
8485 _LT_EOF
8486           fi ;;
8487         esac
8488       fi
8489       break
8490     fi
8491   done
8492   IFS="$lt_save_ifs"
8493   MAGIC_CMD="$lt_save_MAGIC_CMD"
8494   ;;
8495 esac
8496 fi
8497
8498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8499 if test -n "$MAGIC_CMD"; then
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8501 $as_echo "$MAGIC_CMD" >&6; }
8502 else
8503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508
8509
8510
8511 if test -z "$lt_cv_path_MAGIC_CMD"; then
8512   if test -n "$ac_tool_prefix"; then
8513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8514 $as_echo_n "checking for file... " >&6; }
8515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   case $MAGIC_CMD in
8519 [\\/*] |  ?:[\\/]*)
8520   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8521   ;;
8522 *)
8523   lt_save_MAGIC_CMD="$MAGIC_CMD"
8524   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8525   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8526   for ac_dir in $ac_dummy; do
8527     IFS="$lt_save_ifs"
8528     test -z "$ac_dir" && ac_dir=.
8529     if test -f $ac_dir/file; then
8530       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8531       if test -n "$file_magic_test_file"; then
8532         case $deplibs_check_method in
8533         "file_magic "*)
8534           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8535           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8537             $EGREP "$file_magic_regex" > /dev/null; then
8538             :
8539           else
8540             cat <<_LT_EOF 1>&2
8541
8542 *** Warning: the command libtool uses to detect shared libraries,
8543 *** $file_magic_cmd, produces output that libtool cannot recognize.
8544 *** The result is that libtool may fail to recognize shared libraries
8545 *** as such.  This will affect the creation of libtool libraries that
8546 *** depend on shared libraries, but programs linked with such libtool
8547 *** libraries will work regardless of this problem.  Nevertheless, you
8548 *** may want to report the problem to your system manager and/or to
8549 *** bug-libtool@gnu.org
8550
8551 _LT_EOF
8552           fi ;;
8553         esac
8554       fi
8555       break
8556     fi
8557   done
8558   IFS="$lt_save_ifs"
8559   MAGIC_CMD="$lt_save_MAGIC_CMD"
8560   ;;
8561 esac
8562 fi
8563
8564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8565 if test -n "$MAGIC_CMD"; then
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8567 $as_echo "$MAGIC_CMD" >&6; }
8568 else
8569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574   else
8575     MAGIC_CMD=:
8576   fi
8577 fi
8578
8579   fi
8580   ;;
8581 esac
8582
8583 # Use C for the default configuration in the libtool script
8584
8585 lt_save_CC="$CC"
8586 ac_ext=c
8587 ac_cpp='$CPP $CPPFLAGS'
8588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8591
8592
8593 # Source file extension for C test sources.
8594 ac_ext=c
8595
8596 # Object file extension for compiled C test sources.
8597 objext=o
8598 objext=$objext
8599
8600 # Code to be used in simple compile tests
8601 lt_simple_compile_test_code="int some_variable = 0;"
8602
8603 # Code to be used in simple link tests
8604 lt_simple_link_test_code='int main(){return(0);}'
8605
8606
8607
8608
8609
8610
8611
8612 # If no C compiler was specified, use CC.
8613 LTCC=${LTCC-"$CC"}
8614
8615 # If no C compiler flags were specified, use CFLAGS.
8616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8617
8618 # Allow CC to be a program name with arguments.
8619 compiler=$CC
8620
8621 # Save the default compiler, since it gets overwritten when the other
8622 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8623 compiler_DEFAULT=$CC
8624
8625 # save warnings/boilerplate of simple test code
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_compiler_boilerplate=`cat conftest.err`
8630 $RM conftest*
8631
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8635 _lt_linker_boilerplate=`cat conftest.err`
8636 $RM -r conftest*
8637
8638
8639 ## CAVEAT EMPTOR:
8640 ## There is no encapsulation within the following macros, do not change
8641 ## the running order or otherwise move them around unless you know exactly
8642 ## what you are doing...
8643 if test -n "$compiler"; then
8644
8645 lt_prog_compiler_no_builtin_flag=
8646
8647 if test "$GCC" = yes; then
8648   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8649
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   lt_cv_prog_compiler_rtti_exceptions=no
8656    ac_outfile=conftest.$ac_objext
8657    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8658    lt_compiler_flag="-fno-rtti -fno-exceptions"
8659    # Insert the option either (1) after the last *FLAGS variable, or
8660    # (2) before a word containing "conftest.", or (3) at the end.
8661    # Note that $ac_compile itself does not contain backslashes and begins
8662    # with a dollar sign (not a hyphen), so the echo should work correctly.
8663    # The option is referenced via a variable to avoid confusing sed.
8664    lt_compile=`echo "$ac_compile" | $SED \
8665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667    -e 's:$: $lt_compiler_flag:'`
8668    (eval echo "\"\$as_me:8668: $lt_compile\"" >&5)
8669    (eval "$lt_compile" 2>conftest.err)
8670    ac_status=$?
8671    cat conftest.err >&5
8672    echo "$as_me:8672: \$? = $ac_status" >&5
8673    if (exit $ac_status) && test -s "$ac_outfile"; then
8674      # The compiler can only warn and ignore the option if not recognized
8675      # So say no if there are warnings other than the usual output.
8676      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8677      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8678      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8679        lt_cv_prog_compiler_rtti_exceptions=yes
8680      fi
8681    fi
8682    $RM conftest*
8683
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8687
8688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8689     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8690 else
8691     :
8692 fi
8693
8694 fi
8695
8696
8697
8698
8699
8700
8701   lt_prog_compiler_wl=
8702 lt_prog_compiler_pic=
8703 lt_prog_compiler_static=
8704
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8707
8708   if test "$GCC" = yes; then
8709     lt_prog_compiler_wl='-Wl,'
8710     lt_prog_compiler_static='-static'
8711
8712     case $host_os in
8713       aix*)
8714       # All AIX code is PIC.
8715       if test "$host_cpu" = ia64; then
8716         # AIX 5 now supports IA64 processor
8717         lt_prog_compiler_static='-Bstatic'
8718       fi
8719       ;;
8720
8721     amigaos*)
8722       case $host_cpu in
8723       powerpc)
8724             # see comment about AmigaOS4 .so support
8725             lt_prog_compiler_pic='-fPIC'
8726         ;;
8727       m68k)
8728             # FIXME: we need at least 68020 code to build shared libraries, but
8729             # adding the `-m68020' flag to GCC prevents building anything better,
8730             # like `-m68040'.
8731             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8732         ;;
8733       esac
8734       ;;
8735
8736     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8737       # PIC is the default for these OSes.
8738       ;;
8739
8740     mingw* | cygwin* | pw32* | os2* | cegcc*)
8741       # This hack is so that the source file can tell whether it is being
8742       # built for inclusion in a dll (and should export symbols for example).
8743       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8744       # (--disable-auto-import) libraries
8745       lt_prog_compiler_pic='-DDLL_EXPORT'
8746       ;;
8747
8748     darwin* | rhapsody*)
8749       # PIC is the default on this platform
8750       # Common symbols not allowed in MH_DYLIB files
8751       lt_prog_compiler_pic='-fno-common'
8752       ;;
8753
8754     hpux*)
8755       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8756       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8757       # sets the default TLS model and affects inlining.
8758       case $host_cpu in
8759       hppa*64*)
8760         # +Z the default
8761         ;;
8762       *)
8763         lt_prog_compiler_pic='-fPIC'
8764         ;;
8765       esac
8766       ;;
8767
8768     interix[3-9]*)
8769       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8770       # Instead, we relocate shared libraries at runtime.
8771       ;;
8772
8773     msdosdjgpp*)
8774       # Just because we use GCC doesn't mean we suddenly get shared libraries
8775       # on systems that don't support them.
8776       lt_prog_compiler_can_build_shared=no
8777       enable_shared=no
8778       ;;
8779
8780     *nto* | *qnx*)
8781       # QNX uses GNU C++, but need to define -shared option too, otherwise
8782       # it will coredump.
8783       lt_prog_compiler_pic='-fPIC -shared'
8784       ;;
8785
8786     sysv4*MP*)
8787       if test -d /usr/nec; then
8788         lt_prog_compiler_pic=-Kconform_pic
8789       fi
8790       ;;
8791
8792     *)
8793       lt_prog_compiler_pic='-fPIC'
8794       ;;
8795     esac
8796   else
8797     # PORTME Check for flag to pass linker flags through the system compiler.
8798     case $host_os in
8799     aix*)
8800       lt_prog_compiler_wl='-Wl,'
8801       if test "$host_cpu" = ia64; then
8802         # AIX 5 now supports IA64 processor
8803         lt_prog_compiler_static='-Bstatic'
8804       else
8805         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8806       fi
8807       ;;
8808
8809     mingw* | cygwin* | pw32* | os2* | cegcc*)
8810       # This hack is so that the source file can tell whether it is being
8811       # built for inclusion in a dll (and should export symbols for example).
8812       lt_prog_compiler_pic='-DDLL_EXPORT'
8813       ;;
8814
8815     hpux9* | hpux10* | hpux11*)
8816       lt_prog_compiler_wl='-Wl,'
8817       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8818       # not for PA HP-UX.
8819       case $host_cpu in
8820       hppa*64*|ia64*)
8821         # +Z the default
8822         ;;
8823       *)
8824         lt_prog_compiler_pic='+Z'
8825         ;;
8826       esac
8827       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8828       lt_prog_compiler_static='${wl}-a ${wl}archive'
8829       ;;
8830
8831     irix5* | irix6* | nonstopux*)
8832       lt_prog_compiler_wl='-Wl,'
8833       # PIC (with -KPIC) is the default.
8834       lt_prog_compiler_static='-non_shared'
8835       ;;
8836
8837     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8838       case $cc_basename in
8839       # old Intel for x86_64 which still supported -KPIC.
8840       ecc*)
8841         lt_prog_compiler_wl='-Wl,'
8842         lt_prog_compiler_pic='-KPIC'
8843         lt_prog_compiler_static='-static'
8844         ;;
8845       # icc used to be incompatible with GCC.
8846       # ICC 10 doesn't accept -KPIC any more.
8847       icc* | ifort*)
8848         lt_prog_compiler_wl='-Wl,'
8849         lt_prog_compiler_pic='-fPIC'
8850         lt_prog_compiler_static='-static'
8851         ;;
8852       # Lahey Fortran 8.1.
8853       lf95*)
8854         lt_prog_compiler_wl='-Wl,'
8855         lt_prog_compiler_pic='--shared'
8856         lt_prog_compiler_static='--static'
8857         ;;
8858       pgcc* | pgf77* | pgf90* | pgf95*)
8859         # Portland Group compilers (*not* the Pentium gcc compiler,
8860         # which looks to be a dead project)
8861         lt_prog_compiler_wl='-Wl,'
8862         lt_prog_compiler_pic='-fpic'
8863         lt_prog_compiler_static='-Bstatic'
8864         ;;
8865       ccc*)
8866         lt_prog_compiler_wl='-Wl,'
8867         # All Alpha code is PIC.
8868         lt_prog_compiler_static='-non_shared'
8869         ;;
8870       xl*)
8871         # IBM XL C 8.0/Fortran 10.1 on PPC
8872         lt_prog_compiler_wl='-Wl,'
8873         lt_prog_compiler_pic='-qpic'
8874         lt_prog_compiler_static='-qstaticlink'
8875         ;;
8876       *)
8877         case `$CC -V 2>&1 | sed 5q` in
8878         *Sun\ C*)
8879           # Sun C 5.9
8880           lt_prog_compiler_pic='-KPIC'
8881           lt_prog_compiler_static='-Bstatic'
8882           lt_prog_compiler_wl='-Wl,'
8883           ;;
8884         *Sun\ F*)
8885           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8886           lt_prog_compiler_pic='-KPIC'
8887           lt_prog_compiler_static='-Bstatic'
8888           lt_prog_compiler_wl=''
8889           ;;
8890         esac
8891         ;;
8892       esac
8893       ;;
8894
8895     newsos6)
8896       lt_prog_compiler_pic='-KPIC'
8897       lt_prog_compiler_static='-Bstatic'
8898       ;;
8899
8900     *nto* | *qnx*)
8901       # QNX uses GNU C++, but need to define -shared option too, otherwise
8902       # it will coredump.
8903       lt_prog_compiler_pic='-fPIC -shared'
8904       ;;
8905
8906     osf3* | osf4* | osf5*)
8907       lt_prog_compiler_wl='-Wl,'
8908       # All OSF/1 code is PIC.
8909       lt_prog_compiler_static='-non_shared'
8910       ;;
8911
8912     rdos*)
8913       lt_prog_compiler_static='-non_shared'
8914       ;;
8915
8916     solaris*)
8917       lt_prog_compiler_pic='-KPIC'
8918       lt_prog_compiler_static='-Bstatic'
8919       case $cc_basename in
8920       f77* | f90* | f95*)
8921         lt_prog_compiler_wl='-Qoption ld ';;
8922       *)
8923         lt_prog_compiler_wl='-Wl,';;
8924       esac
8925       ;;
8926
8927     sunos4*)
8928       lt_prog_compiler_wl='-Qoption ld '
8929       lt_prog_compiler_pic='-PIC'
8930       lt_prog_compiler_static='-Bstatic'
8931       ;;
8932
8933     sysv4 | sysv4.2uw2* | sysv4.3*)
8934       lt_prog_compiler_wl='-Wl,'
8935       lt_prog_compiler_pic='-KPIC'
8936       lt_prog_compiler_static='-Bstatic'
8937       ;;
8938
8939     sysv4*MP*)
8940       if test -d /usr/nec ;then
8941         lt_prog_compiler_pic='-Kconform_pic'
8942         lt_prog_compiler_static='-Bstatic'
8943       fi
8944       ;;
8945
8946     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8947       lt_prog_compiler_wl='-Wl,'
8948       lt_prog_compiler_pic='-KPIC'
8949       lt_prog_compiler_static='-Bstatic'
8950       ;;
8951
8952     unicos*)
8953       lt_prog_compiler_wl='-Wl,'
8954       lt_prog_compiler_can_build_shared=no
8955       ;;
8956
8957     uts4*)
8958       lt_prog_compiler_pic='-pic'
8959       lt_prog_compiler_static='-Bstatic'
8960       ;;
8961
8962     *)
8963       lt_prog_compiler_can_build_shared=no
8964       ;;
8965     esac
8966   fi
8967
8968 case $host_os in
8969   # For platforms which do not support PIC, -DPIC is meaningless:
8970   *djgpp*)
8971     lt_prog_compiler_pic=
8972     ;;
8973   *)
8974     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8975     ;;
8976 esac
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8978 $as_echo "$lt_prog_compiler_pic" >&6; }
8979
8980
8981
8982
8983
8984
8985 #
8986 # Check to make sure the PIC flag actually works.
8987 #
8988 if test -n "$lt_prog_compiler_pic"; then
8989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8990 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8991 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   lt_cv_prog_compiler_pic_works=no
8995    ac_outfile=conftest.$ac_objext
8996    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8998    # Insert the option either (1) after the last *FLAGS variable, or
8999    # (2) before a word containing "conftest.", or (3) at the end.
9000    # Note that $ac_compile itself does not contain backslashes and begins
9001    # with a dollar sign (not a hyphen), so the echo should work correctly.
9002    # The option is referenced via a variable to avoid confusing sed.
9003    lt_compile=`echo "$ac_compile" | $SED \
9004    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006    -e 's:$: $lt_compiler_flag:'`
9007    (eval echo "\"\$as_me:9007: $lt_compile\"" >&5)
9008    (eval "$lt_compile" 2>conftest.err)
9009    ac_status=$?
9010    cat conftest.err >&5
9011    echo "$as_me:9011: \$? = $ac_status" >&5
9012    if (exit $ac_status) && test -s "$ac_outfile"; then
9013      # The compiler can only warn and ignore the option if not recognized
9014      # So say no if there are warnings other than the usual output.
9015      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9016      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9018        lt_cv_prog_compiler_pic_works=yes
9019      fi
9020    fi
9021    $RM conftest*
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9025 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9026
9027 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9028     case $lt_prog_compiler_pic in
9029      "" | " "*) ;;
9030      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9031      esac
9032 else
9033     lt_prog_compiler_pic=
9034      lt_prog_compiler_can_build_shared=no
9035 fi
9036
9037 fi
9038
9039
9040
9041
9042
9043
9044 #
9045 # Check to make sure the static flag actually works.
9046 #
9047 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9049 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9050 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9051   $as_echo_n "(cached) " >&6
9052 else
9053   lt_cv_prog_compiler_static_works=no
9054    save_LDFLAGS="$LDFLAGS"
9055    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9056    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9057    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9058      # The linker can only warn and ignore the option if not recognized
9059      # So say no if there are warnings
9060      if test -s conftest.err; then
9061        # Append any errors to the config.log.
9062        cat conftest.err 1>&5
9063        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9064        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9065        if diff conftest.exp conftest.er2 >/dev/null; then
9066          lt_cv_prog_compiler_static_works=yes
9067        fi
9068      else
9069        lt_cv_prog_compiler_static_works=yes
9070      fi
9071    fi
9072    $RM -r conftest*
9073    LDFLAGS="$save_LDFLAGS"
9074
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9077 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9078
9079 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9080     :
9081 else
9082     lt_prog_compiler_static=
9083 fi
9084
9085
9086
9087
9088
9089
9090
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9092 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9093 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9094   $as_echo_n "(cached) " >&6
9095 else
9096   lt_cv_prog_compiler_c_o=no
9097    $RM -r conftest 2>/dev/null
9098    mkdir conftest
9099    cd conftest
9100    mkdir out
9101    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9102
9103    lt_compiler_flag="-o out/conftest2.$ac_objext"
9104    # Insert the option either (1) after the last *FLAGS variable, or
9105    # (2) before a word containing "conftest.", or (3) at the end.
9106    # Note that $ac_compile itself does not contain backslashes and begins
9107    # with a dollar sign (not a hyphen), so the echo should work correctly.
9108    lt_compile=`echo "$ac_compile" | $SED \
9109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111    -e 's:$: $lt_compiler_flag:'`
9112    (eval echo "\"\$as_me:9112: $lt_compile\"" >&5)
9113    (eval "$lt_compile" 2>out/conftest.err)
9114    ac_status=$?
9115    cat out/conftest.err >&5
9116    echo "$as_me:9116: \$? = $ac_status" >&5
9117    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9118    then
9119      # The compiler can only warn and ignore the option if not recognized
9120      # So say no if there are warnings
9121      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9122      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9123      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9124        lt_cv_prog_compiler_c_o=yes
9125      fi
9126    fi
9127    chmod u+w . 2>&5
9128    $RM conftest*
9129    # SGI C++ compiler will create directory out/ii_files/ for
9130    # template instantiation
9131    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9132    $RM out/* && rmdir out
9133    cd ..
9134    $RM -r conftest
9135    $RM conftest*
9136
9137 fi
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9139 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9140
9141
9142
9143
9144
9145
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9147 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9148 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9149   $as_echo_n "(cached) " >&6
9150 else
9151   lt_cv_prog_compiler_c_o=no
9152    $RM -r conftest 2>/dev/null
9153    mkdir conftest
9154    cd conftest
9155    mkdir out
9156    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9157
9158    lt_compiler_flag="-o out/conftest2.$ac_objext"
9159    # Insert the option either (1) after the last *FLAGS variable, or
9160    # (2) before a word containing "conftest.", or (3) at the end.
9161    # Note that $ac_compile itself does not contain backslashes and begins
9162    # with a dollar sign (not a hyphen), so the echo should work correctly.
9163    lt_compile=`echo "$ac_compile" | $SED \
9164    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9165    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9166    -e 's:$: $lt_compiler_flag:'`
9167    (eval echo "\"\$as_me:9167: $lt_compile\"" >&5)
9168    (eval "$lt_compile" 2>out/conftest.err)
9169    ac_status=$?
9170    cat out/conftest.err >&5
9171    echo "$as_me:9171: \$? = $ac_status" >&5
9172    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9173    then
9174      # The compiler can only warn and ignore the option if not recognized
9175      # So say no if there are warnings
9176      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9177      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9178      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9179        lt_cv_prog_compiler_c_o=yes
9180      fi
9181    fi
9182    chmod u+w . 2>&5
9183    $RM conftest*
9184    # SGI C++ compiler will create directory out/ii_files/ for
9185    # template instantiation
9186    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9187    $RM out/* && rmdir out
9188    cd ..
9189    $RM -r conftest
9190    $RM conftest*
9191
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9194 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9195
9196
9197
9198
9199 hard_links="nottested"
9200 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9201   # do not overwrite the value of need_locks provided by the user
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9203 $as_echo_n "checking if we can lock with hard links... " >&6; }
9204   hard_links=yes
9205   $RM conftest*
9206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9207   touch conftest.a
9208   ln conftest.a conftest.b 2>&5 || hard_links=no
9209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9211 $as_echo "$hard_links" >&6; }
9212   if test "$hard_links" = no; then
9213     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9214 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9215     need_locks=warn
9216   fi
9217 else
9218   need_locks=no
9219 fi
9220
9221
9222
9223
9224
9225
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9228
9229   runpath_var=
9230   allow_undefined_flag=
9231   always_export_symbols=no
9232   archive_cmds=
9233   archive_expsym_cmds=
9234   compiler_needs_object=no
9235   enable_shared_with_static_runtimes=no
9236   export_dynamic_flag_spec=
9237   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9238   hardcode_automatic=no
9239   hardcode_direct=no
9240   hardcode_direct_absolute=no
9241   hardcode_libdir_flag_spec=
9242   hardcode_libdir_flag_spec_ld=
9243   hardcode_libdir_separator=
9244   hardcode_minus_L=no
9245   hardcode_shlibpath_var=unsupported
9246   inherit_rpath=no
9247   link_all_deplibs=unknown
9248   module_cmds=
9249   module_expsym_cmds=
9250   old_archive_from_new_cmds=
9251   old_archive_from_expsyms_cmds=
9252   thread_safe_flag_spec=
9253   whole_archive_flag_spec=
9254   # include_expsyms should be a list of space-separated symbols to be *always*
9255   # included in the symbol list
9256   include_expsyms=
9257   # exclude_expsyms can be an extended regexp of symbols to exclude
9258   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9259   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9260   # as well as any symbol that contains `d'.
9261   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9262   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9263   # platforms (ab)use it in PIC code, but their linkers get confused if
9264   # the symbol is explicitly referenced.  Since portable code cannot
9265   # rely on this symbol name, it's probably fine to never include it in
9266   # preloaded symbol tables.
9267   # Exclude shared library initialization/finalization symbols.
9268   extract_expsyms_cmds=
9269
9270   case $host_os in
9271   cygwin* | mingw* | pw32* | cegcc*)
9272     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9273     # When not using gcc, we currently assume that we are using
9274     # Microsoft Visual C++.
9275     if test "$GCC" != yes; then
9276       with_gnu_ld=no
9277     fi
9278     ;;
9279   interix*)
9280     # we just hope/assume this is gcc and not c89 (= MSVC++)
9281     with_gnu_ld=yes
9282     ;;
9283   openbsd*)
9284     with_gnu_ld=no
9285     ;;
9286   linux* | k*bsd*-gnu)
9287     link_all_deplibs=no
9288     ;;
9289   esac
9290
9291   ld_shlibs=yes
9292   if test "$with_gnu_ld" = yes; then
9293     # If archive_cmds runs LD, not CC, wlarc should be empty
9294     wlarc='${wl}'
9295
9296     # Set some defaults for GNU ld with shared library support. These
9297     # are reset later if shared libraries are not supported. Putting them
9298     # here allows them to be overridden if necessary.
9299     runpath_var=LD_RUN_PATH
9300     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301     export_dynamic_flag_spec='${wl}--export-dynamic'
9302     # ancient GNU ld didn't support --whole-archive et. al.
9303     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9304       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9305     else
9306       whole_archive_flag_spec=
9307     fi
9308     supports_anon_versioning=no
9309     case `$LD -v 2>&1` in
9310       *GNU\ gold*) supports_anon_versioning=yes ;;
9311       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9312       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9313       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9314       *\ 2.11.*) ;; # other 2.11 versions
9315       *) supports_anon_versioning=yes ;;
9316     esac
9317
9318     # See if GNU ld supports shared libraries.
9319     case $host_os in
9320     aix[3-9]*)
9321       # On AIX/PPC, the GNU linker is very broken
9322       if test "$host_cpu" != ia64; then
9323         ld_shlibs=no
9324         cat <<_LT_EOF 1>&2
9325
9326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9327 *** to be unable to reliably create shared libraries on AIX.
9328 *** Therefore, libtool is disabling shared libraries support.  If you
9329 *** really care for shared libraries, you may want to modify your PATH
9330 *** so that a non-GNU linker is found, and then restart.
9331
9332 _LT_EOF
9333       fi
9334       ;;
9335
9336     amigaos*)
9337       case $host_cpu in
9338       powerpc)
9339             # see comment about AmigaOS4 .so support
9340             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341             archive_expsym_cmds=''
9342         ;;
9343       m68k)
9344             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)'
9345             hardcode_libdir_flag_spec='-L$libdir'
9346             hardcode_minus_L=yes
9347         ;;
9348       esac
9349       ;;
9350
9351     beos*)
9352       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9353         allow_undefined_flag=unsupported
9354         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9355         # support --undefined.  This deserves some investigation.  FIXME
9356         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357       else
9358         ld_shlibs=no
9359       fi
9360       ;;
9361
9362     cygwin* | mingw* | pw32* | cegcc*)
9363       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9364       # as there is no search path for DLLs.
9365       hardcode_libdir_flag_spec='-L$libdir'
9366       allow_undefined_flag=unsupported
9367       always_export_symbols=no
9368       enable_shared_with_static_runtimes=yes
9369       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9370
9371       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9372         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9373         # If the export-symbols file already is a .def file (1st line
9374         # is EXPORTS), use it as is; otherwise, prepend...
9375         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9376           cp $export_symbols $output_objdir/$soname.def;
9377         else
9378           echo EXPORTS > $output_objdir/$soname.def;
9379           cat $export_symbols >> $output_objdir/$soname.def;
9380         fi~
9381         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9382       else
9383         ld_shlibs=no
9384       fi
9385       ;;
9386
9387     interix[3-9]*)
9388       hardcode_direct=no
9389       hardcode_shlibpath_var=no
9390       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391       export_dynamic_flag_spec='${wl}-E'
9392       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9393       # Instead, shared libraries are loaded at an image base (0x10000000 by
9394       # default) and relocated if they conflict, which is a slow very memory
9395       # consuming and fragmenting process.  To avoid this, we pick a random,
9396       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9397       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9398       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9399       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'
9400       ;;
9401
9402     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9403       tmp_diet=no
9404       if test "$host_os" = linux-dietlibc; then
9405         case $cc_basename in
9406           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9407         esac
9408       fi
9409       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9410          && test "$tmp_diet" = no
9411       then
9412         tmp_addflag=
9413         tmp_sharedflag='-shared'
9414         case $cc_basename,$host_cpu in
9415         pgcc*)                          # Portland Group C compiler
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'
9418           ;;
9419         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9420           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'
9421           tmp_addflag=' $pic_flag -Mnomain' ;;
9422         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9423           tmp_addflag=' -i_dynamic' ;;
9424         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9425           tmp_addflag=' -i_dynamic -nofor_main' ;;
9426         ifc* | ifort*)                  # Intel Fortran compiler
9427           tmp_addflag=' -nofor_main' ;;
9428         lf95*)                          # Lahey Fortran 8.1
9429           whole_archive_flag_spec=
9430           tmp_sharedflag='--shared' ;;
9431         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9432           tmp_sharedflag='-qmkshrobj'
9433           tmp_addflag= ;;
9434         esac
9435         case `$CC -V 2>&1 | sed 5q` in
9436         *Sun\ C*)                       # Sun C 5.9
9437           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'
9438           compiler_needs_object=yes
9439           tmp_sharedflag='-G' ;;
9440         *Sun\ F*)                       # Sun Fortran 8.3
9441           tmp_sharedflag='-G' ;;
9442         esac
9443         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444
9445         if test "x$supports_anon_versioning" = xyes; then
9446           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9447             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9448             echo "local: *; };" >> $output_objdir/$libname.ver~
9449             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9450         fi
9451
9452         case $cc_basename in
9453         xlf*)
9454           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9455           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9456           hardcode_libdir_flag_spec=
9457           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9458           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9459           if test "x$supports_anon_versioning" = xyes; then
9460             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9461               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9462               echo "local: *; };" >> $output_objdir/$libname.ver~
9463               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9464           fi
9465           ;;
9466         esac
9467       else
9468         ld_shlibs=no
9469       fi
9470       ;;
9471
9472     netbsd* | netbsdelf*-gnu)
9473       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9474         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9475         wlarc=
9476       else
9477         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479       fi
9480       ;;
9481
9482     solaris*)
9483       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9484         ld_shlibs=no
9485         cat <<_LT_EOF 1>&2
9486
9487 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9488 *** create shared libraries on Solaris systems.  Therefore, libtool
9489 *** is disabling shared libraries support.  We urge you to upgrade GNU
9490 *** binutils to release 2.9.1 or newer.  Another option is to modify
9491 *** your PATH or compiler configuration so that the native linker is
9492 *** used, and then restart.
9493
9494 _LT_EOF
9495       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9498       else
9499         ld_shlibs=no
9500       fi
9501       ;;
9502
9503     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9504       case `$LD -v 2>&1` in
9505         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9506         ld_shlibs=no
9507         cat <<_LT_EOF 1>&2
9508
9509 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9510 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9511 *** is disabling shared libraries support.  We urge you to upgrade GNU
9512 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9513 *** your PATH or compiler configuration so that the native linker is
9514 *** used, and then restart.
9515
9516 _LT_EOF
9517         ;;
9518         *)
9519           # For security reasons, it is highly recommended that you always
9520           # use absolute paths for naming shared libraries, and exclude the
9521           # DT_RUNPATH tag from executables and libraries.  But doing so
9522           # requires that you compile everything twice, which is a pain.
9523           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9527           else
9528             ld_shlibs=no
9529           fi
9530         ;;
9531       esac
9532       ;;
9533
9534     sunos4*)
9535       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9536       wlarc=
9537       hardcode_direct=yes
9538       hardcode_shlibpath_var=no
9539       ;;
9540
9541     *)
9542       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9543         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9545       else
9546         ld_shlibs=no
9547       fi
9548       ;;
9549     esac
9550
9551     if test "$ld_shlibs" = no; then
9552       runpath_var=
9553       hardcode_libdir_flag_spec=
9554       export_dynamic_flag_spec=
9555       whole_archive_flag_spec=
9556     fi
9557   else
9558     # PORTME fill in a description of your system's linker (not GNU ld)
9559     case $host_os in
9560     aix3*)
9561       allow_undefined_flag=unsupported
9562       always_export_symbols=yes
9563       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'
9564       # Note: this linker hardcodes the directories in LIBPATH if there
9565       # are no directories specified by -L.
9566       hardcode_minus_L=yes
9567       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9568         # Neither direct hardcoding nor static linking is supported with a
9569         # broken collect2.
9570         hardcode_direct=unsupported
9571       fi
9572       ;;
9573
9574     aix[4-9]*)
9575       if test "$host_cpu" = ia64; then
9576         # On IA64, the linker does run time linking by default, so we don't
9577         # have to do anything special.
9578         aix_use_runtimelinking=no
9579         exp_sym_flag='-Bexport'
9580         no_entry_flag=""
9581       else
9582         # If we're using GNU nm, then we don't want the "-C" option.
9583         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9584         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9585           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'
9586         else
9587           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'
9588         fi
9589         aix_use_runtimelinking=no
9590
9591         # Test if we are trying to use run time linking or normal
9592         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9593         # need to do runtime linking.
9594         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9595           for ld_flag in $LDFLAGS; do
9596           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9597             aix_use_runtimelinking=yes
9598             break
9599           fi
9600           done
9601           ;;
9602         esac
9603
9604         exp_sym_flag='-bexport'
9605         no_entry_flag='-bnoentry'
9606       fi
9607
9608       # When large executables or shared objects are built, AIX ld can
9609       # have problems creating the table of contents.  If linking a library
9610       # or program results in "error TOC overflow" add -mminimal-toc to
9611       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9612       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9613
9614       archive_cmds=''
9615       hardcode_direct=yes
9616       hardcode_direct_absolute=yes
9617       hardcode_libdir_separator=':'
9618       link_all_deplibs=yes
9619       file_list_spec='${wl}-f,'
9620
9621       if test "$GCC" = yes; then
9622         case $host_os in aix4.[012]|aix4.[012].*)
9623         # We only want to do this on AIX 4.2 and lower, the check
9624         # below for broken collect2 doesn't work under 4.3+
9625           collect2name=`${CC} -print-prog-name=collect2`
9626           if test -f "$collect2name" &&
9627            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9628           then
9629           # We have reworked collect2
9630           :
9631           else
9632           # We have old collect2
9633           hardcode_direct=unsupported
9634           # It fails to find uninstalled libraries when the uninstalled
9635           # path is not listed in the libpath.  Setting hardcode_minus_L
9636           # to unsupported forces relinking
9637           hardcode_minus_L=yes
9638           hardcode_libdir_flag_spec='-L$libdir'
9639           hardcode_libdir_separator=
9640           fi
9641           ;;
9642         esac
9643         shared_flag='-shared'
9644         if test "$aix_use_runtimelinking" = yes; then
9645           shared_flag="$shared_flag "'${wl}-G'
9646         fi
9647         link_all_deplibs=no
9648       else
9649         # not using gcc
9650         if test "$host_cpu" = ia64; then
9651         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9652         # chokes on -Wl,-G. The following line is correct:
9653           shared_flag='-G'
9654         else
9655           if test "$aix_use_runtimelinking" = yes; then
9656             shared_flag='${wl}-G'
9657           else
9658             shared_flag='${wl}-bM:SRE'
9659           fi
9660         fi
9661       fi
9662
9663       export_dynamic_flag_spec='${wl}-bexpall'
9664       # It seems that -bexpall does not export symbols beginning with
9665       # underscore (_), so it is better to generate a list of symbols to export.
9666       always_export_symbols=yes
9667       if test "$aix_use_runtimelinking" = yes; then
9668         # Warning - without using the other runtime loading flags (-brtl),
9669         # -berok will link without error, but may produce a broken library.
9670         allow_undefined_flag='-berok'
9671         # Determine the default libpath from the value encoded in an
9672         # empty executable.
9673         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h.  */
9675
9676 int
9677 main ()
9678 {
9679
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9685
9686 lt_aix_libpath_sed='
9687     /Import File Strings/,/^$/ {
9688         /^0/ {
9689             s/^0  *\(.*\)$/\1/
9690             p
9691         }
9692     }'
9693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 # Check for a 64-bit object if we didn't find anything.
9695 if test -z "$aix_libpath"; then
9696   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697 fi
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9702
9703         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9704         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"
9705       else
9706         if test "$host_cpu" = ia64; then
9707           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9708           allow_undefined_flag="-z nodefs"
9709           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"
9710         else
9711          # Determine the default libpath from the value encoded in an
9712          # empty executable.
9713          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h.  */
9715
9716 int
9717 main ()
9718 {
9719
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725
9726 lt_aix_libpath_sed='
9727     /Import File Strings/,/^$/ {
9728         /^0/ {
9729             s/^0  *\(.*\)$/\1/
9730             p
9731         }
9732     }'
9733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9734 # Check for a 64-bit object if we didn't find anything.
9735 if test -z "$aix_libpath"; then
9736   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9737 fi
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext \
9740     conftest$ac_exeext conftest.$ac_ext
9741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9742
9743          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744           # Warning - without using the other run time loading flags,
9745           # -berok will link without error, but may produce a broken library.
9746           no_undefined_flag=' ${wl}-bernotok'
9747           allow_undefined_flag=' ${wl}-berok'
9748           # Exported symbols can be pulled into shared objects from archives
9749           whole_archive_flag_spec='$convenience'
9750           archive_cmds_need_lc=yes
9751           # This is similar to how AIX traditionally builds its shared libraries.
9752           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'
9753         fi
9754       fi
9755       ;;
9756
9757     amigaos*)
9758       case $host_cpu in
9759       powerpc)
9760             # see comment about AmigaOS4 .so support
9761             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762             archive_expsym_cmds=''
9763         ;;
9764       m68k)
9765             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)'
9766             hardcode_libdir_flag_spec='-L$libdir'
9767             hardcode_minus_L=yes
9768         ;;
9769       esac
9770       ;;
9771
9772     bsdi[45]*)
9773       export_dynamic_flag_spec=-rdynamic
9774       ;;
9775
9776     cygwin* | mingw* | pw32* | cegcc*)
9777       # When not using gcc, we currently assume that we are using
9778       # Microsoft Visual C++.
9779       # hardcode_libdir_flag_spec is actually meaningless, as there is
9780       # no search path for DLLs.
9781       hardcode_libdir_flag_spec=' '
9782       allow_undefined_flag=unsupported
9783       # Tell ltmain to make .lib files, not .a files.
9784       libext=lib
9785       # Tell ltmain to make .dll files, not .so files.
9786       shrext_cmds=".dll"
9787       # FIXME: Setting linknames here is a bad hack.
9788       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9789       # The linker will automatically build a .lib file if we build a DLL.
9790       old_archive_from_new_cmds='true'
9791       # FIXME: Should let the user specify the lib program.
9792       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9793       fix_srcfile_path='`cygpath -w "$srcfile"`'
9794       enable_shared_with_static_runtimes=yes
9795       ;;
9796
9797     darwin* | rhapsody*)
9798
9799
9800   archive_cmds_need_lc=no
9801   hardcode_direct=no
9802   hardcode_automatic=yes
9803   hardcode_shlibpath_var=unsupported
9804   whole_archive_flag_spec=''
9805   link_all_deplibs=yes
9806   allow_undefined_flag="$_lt_dar_allow_undefined"
9807   case $cc_basename in
9808      ifort*) _lt_dar_can_shared=yes ;;
9809      *) _lt_dar_can_shared=$GCC ;;
9810   esac
9811   if test "$_lt_dar_can_shared" = "yes"; then
9812     output_verbose_link_cmd=echo
9813     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9814     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9815     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}"
9816     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}"
9817
9818   else
9819   ld_shlibs=no
9820   fi
9821
9822       ;;
9823
9824     dgux*)
9825       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826       hardcode_libdir_flag_spec='-L$libdir'
9827       hardcode_shlibpath_var=no
9828       ;;
9829
9830     freebsd1*)
9831       ld_shlibs=no
9832       ;;
9833
9834     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9835     # support.  Future versions do this automatically, but an explicit c++rt0.o
9836     # does not break anything, and helps significantly (at the cost of a little
9837     # extra space).
9838     freebsd2.2*)
9839       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9840       hardcode_libdir_flag_spec='-R$libdir'
9841       hardcode_direct=yes
9842       hardcode_shlibpath_var=no
9843       ;;
9844
9845     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9846     freebsd2*)
9847       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9848       hardcode_direct=yes
9849       hardcode_minus_L=yes
9850       hardcode_shlibpath_var=no
9851       ;;
9852
9853     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9854     freebsd* | dragonfly*)
9855       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9856       hardcode_libdir_flag_spec='-R$libdir'
9857       hardcode_direct=yes
9858       hardcode_shlibpath_var=no
9859       ;;
9860
9861     hpux9*)
9862       if test "$GCC" = yes; then
9863         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'
9864       else
9865         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'
9866       fi
9867       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9868       hardcode_libdir_separator=:
9869       hardcode_direct=yes
9870
9871       # hardcode_minus_L: Not really in the search PATH,
9872       # but as the default location of the library.
9873       hardcode_minus_L=yes
9874       export_dynamic_flag_spec='${wl}-E'
9875       ;;
9876
9877     hpux10*)
9878       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9879         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9880       else
9881         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9882       fi
9883       if test "$with_gnu_ld" = no; then
9884         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9885         hardcode_libdir_flag_spec_ld='+b $libdir'
9886         hardcode_libdir_separator=:
9887         hardcode_direct=yes
9888         hardcode_direct_absolute=yes
9889         export_dynamic_flag_spec='${wl}-E'
9890         # hardcode_minus_L: Not really in the search PATH,
9891         # but as the default location of the library.
9892         hardcode_minus_L=yes
9893       fi
9894       ;;
9895
9896     hpux11*)
9897       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9898         case $host_cpu in
9899         hppa*64*)
9900           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9901           ;;
9902         ia64*)
9903           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9904           ;;
9905         *)
9906           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907           ;;
9908         esac
9909       else
9910         case $host_cpu in
9911         hppa*64*)
9912           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9913           ;;
9914         ia64*)
9915           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9916           ;;
9917         *)
9918           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9919           ;;
9920         esac
9921       fi
9922       if test "$with_gnu_ld" = no; then
9923         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9924         hardcode_libdir_separator=:
9925
9926         case $host_cpu in
9927         hppa*64*|ia64*)
9928           hardcode_direct=no
9929           hardcode_shlibpath_var=no
9930           ;;
9931         *)
9932           hardcode_direct=yes
9933           hardcode_direct_absolute=yes
9934           export_dynamic_flag_spec='${wl}-E'
9935
9936           # hardcode_minus_L: Not really in the search PATH,
9937           # but as the default location of the library.
9938           hardcode_minus_L=yes
9939           ;;
9940         esac
9941       fi
9942       ;;
9943
9944     irix5* | irix6* | nonstopux*)
9945       if test "$GCC" = yes; then
9946         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'
9947         # Try to use the -exported_symbol ld option, if it does not
9948         # work, assume that -exports_file does not work either and
9949         # implicitly export all symbols.
9950         save_LDFLAGS="$LDFLAGS"
9951         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9952         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h.  */
9954 int foo(void) {}
9955 _ACEOF
9956 if ac_fn_c_try_link "$LINENO"; then :
9957   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'
9958
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext \
9961     conftest$ac_exeext conftest.$ac_ext
9962         LDFLAGS="$save_LDFLAGS"
9963       else
9964         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'
9965         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'
9966       fi
9967       archive_cmds_need_lc='no'
9968       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969       hardcode_libdir_separator=:
9970       inherit_rpath=yes
9971       link_all_deplibs=yes
9972       ;;
9973
9974     netbsd* | netbsdelf*-gnu)
9975       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9977       else
9978         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9979       fi
9980       hardcode_libdir_flag_spec='-R$libdir'
9981       hardcode_direct=yes
9982       hardcode_shlibpath_var=no
9983       ;;
9984
9985     newsos6)
9986       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987       hardcode_direct=yes
9988       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989       hardcode_libdir_separator=:
9990       hardcode_shlibpath_var=no
9991       ;;
9992
9993     *nto* | *qnx*)
9994       ;;
9995
9996     openbsd*)
9997       if test -f /usr/libexec/ld.so; then
9998         hardcode_direct=yes
9999         hardcode_shlibpath_var=no
10000         hardcode_direct_absolute=yes
10001         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10002           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10004           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005           export_dynamic_flag_spec='${wl}-E'
10006         else
10007           case $host_os in
10008            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10009              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10010              hardcode_libdir_flag_spec='-R$libdir'
10011              ;;
10012            *)
10013              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10015              ;;
10016           esac
10017         fi
10018       else
10019         ld_shlibs=no
10020       fi
10021       ;;
10022
10023     os2*)
10024       hardcode_libdir_flag_spec='-L$libdir'
10025       hardcode_minus_L=yes
10026       allow_undefined_flag=unsupported
10027       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'
10028       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10029       ;;
10030
10031     osf3*)
10032       if test "$GCC" = yes; then
10033         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034         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'
10035       else
10036         allow_undefined_flag=' -expect_unresolved \*'
10037         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'
10038       fi
10039       archive_cmds_need_lc='no'
10040       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10041       hardcode_libdir_separator=:
10042       ;;
10043
10044     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10045       if test "$GCC" = yes; then
10046         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10047         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'
10048         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10049       else
10050         allow_undefined_flag=' -expect_unresolved \*'
10051         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'
10052         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~
10053         $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'
10054
10055         # Both c and cxx compiler support -rpath directly
10056         hardcode_libdir_flag_spec='-rpath $libdir'
10057       fi
10058       archive_cmds_need_lc='no'
10059       hardcode_libdir_separator=:
10060       ;;
10061
10062     solaris*)
10063       no_undefined_flag=' -z defs'
10064       if test "$GCC" = yes; then
10065         wlarc='${wl}'
10066         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10067         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10069       else
10070         case `$CC -V 2>&1` in
10071         *"Compilers 5.0"*)
10072           wlarc=''
10073           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10076           ;;
10077         *)
10078           wlarc='${wl}'
10079           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10081           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10082           ;;
10083         esac
10084       fi
10085       hardcode_libdir_flag_spec='-R$libdir'
10086       hardcode_shlibpath_var=no
10087       case $host_os in
10088       solaris2.[0-5] | solaris2.[0-5].*) ;;
10089       *)
10090         # The compiler driver will combine and reorder linker options,
10091         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10092         # but is careful enough not to reorder.
10093         # Supported since Solaris 2.6 (maybe 2.5.1?)
10094         if test "$GCC" = yes; then
10095           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10096         else
10097           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10098         fi
10099         ;;
10100       esac
10101       link_all_deplibs=yes
10102       ;;
10103
10104     sunos4*)
10105       if test "x$host_vendor" = xsequent; then
10106         # Use $CC to link under sequent, because it throws in some extra .o
10107         # files that make .init and .fini sections work.
10108         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10109       else
10110         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10111       fi
10112       hardcode_libdir_flag_spec='-L$libdir'
10113       hardcode_direct=yes
10114       hardcode_minus_L=yes
10115       hardcode_shlibpath_var=no
10116       ;;
10117
10118     sysv4)
10119       case $host_vendor in
10120         sni)
10121           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122           hardcode_direct=yes # is this really true???
10123         ;;
10124         siemens)
10125           ## LD is ld it makes a PLAMLIB
10126           ## CC just makes a GrossModule.
10127           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10128           reload_cmds='$CC -r -o $output$reload_objs'
10129           hardcode_direct=no
10130         ;;
10131         motorola)
10132           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10134         ;;
10135       esac
10136       runpath_var='LD_RUN_PATH'
10137       hardcode_shlibpath_var=no
10138       ;;
10139
10140     sysv4.3*)
10141       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142       hardcode_shlibpath_var=no
10143       export_dynamic_flag_spec='-Bexport'
10144       ;;
10145
10146     sysv4*MP*)
10147       if test -d /usr/nec; then
10148         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149         hardcode_shlibpath_var=no
10150         runpath_var=LD_RUN_PATH
10151         hardcode_runpath_var=yes
10152         ld_shlibs=yes
10153       fi
10154       ;;
10155
10156     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10157       no_undefined_flag='${wl}-z,text'
10158       archive_cmds_need_lc=no
10159       hardcode_shlibpath_var=no
10160       runpath_var='LD_RUN_PATH'
10161
10162       if test "$GCC" = yes; then
10163         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165       else
10166         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168       fi
10169       ;;
10170
10171     sysv5* | sco3.2v5* | sco5v6*)
10172       # Note: We can NOT use -z defs as we might desire, because we do not
10173       # link with -lc, and that would cause any symbols used from libc to
10174       # always be unresolved, which means just about no library would
10175       # ever link correctly.  If we're not using GNU ld we use -z text
10176       # though, which does catch some bad symbols but isn't as heavy-handed
10177       # as -z defs.
10178       no_undefined_flag='${wl}-z,text'
10179       allow_undefined_flag='${wl}-z,nodefs'
10180       archive_cmds_need_lc=no
10181       hardcode_shlibpath_var=no
10182       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10183       hardcode_libdir_separator=':'
10184       link_all_deplibs=yes
10185       export_dynamic_flag_spec='${wl}-Bexport'
10186       runpath_var='LD_RUN_PATH'
10187
10188       if test "$GCC" = yes; then
10189         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191       else
10192         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194       fi
10195       ;;
10196
10197     uts4*)
10198       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199       hardcode_libdir_flag_spec='-L$libdir'
10200       hardcode_shlibpath_var=no
10201       ;;
10202
10203     *)
10204       ld_shlibs=no
10205       ;;
10206     esac
10207
10208     if test x$host_vendor = xsni; then
10209       case $host in
10210       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10211         export_dynamic_flag_spec='${wl}-Blargedynsym'
10212         ;;
10213       esac
10214     fi
10215   fi
10216
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10218 $as_echo "$ld_shlibs" >&6; }
10219 test "$ld_shlibs" = no && can_build_shared=no
10220
10221 with_gnu_ld=$with_gnu_ld
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237 #
10238 # Do we need to explicitly link libc?
10239 #
10240 case "x$archive_cmds_need_lc" in
10241 x|xyes)
10242   # Assume -lc should be added
10243   archive_cmds_need_lc=yes
10244
10245   if test "$enable_shared" = yes && test "$GCC" = yes; then
10246     case $archive_cmds in
10247     *'~'*)
10248       # FIXME: we may have to deal with multi-command sequences.
10249       ;;
10250     '$CC '*)
10251       # Test whether the compiler implicitly links with -lc since on some
10252       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10253       # to ld, don't add -lc before -lgcc.
10254       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10255 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10256       $RM conftest*
10257       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10258
10259       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10260   (eval $ac_compile) 2>&5
10261   ac_status=$?
10262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10263   test $ac_status = 0; } 2>conftest.err; then
10264         soname=conftest
10265         lib=conftest
10266         libobjs=conftest.$ac_objext
10267         deplibs=
10268         wl=$lt_prog_compiler_wl
10269         pic_flag=$lt_prog_compiler_pic
10270         compiler_flags=-v
10271         linker_flags=-v
10272         verstring=
10273         output_objdir=.
10274         libname=conftest
10275         lt_save_allow_undefined_flag=$allow_undefined_flag
10276         allow_undefined_flag=
10277         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10278   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10279   ac_status=$?
10280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281   test $ac_status = 0; }
10282         then
10283           archive_cmds_need_lc=no
10284         else
10285           archive_cmds_need_lc=yes
10286         fi
10287         allow_undefined_flag=$lt_save_allow_undefined_flag
10288       else
10289         cat conftest.err 1>&5
10290       fi
10291       $RM conftest*
10292       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10293 $as_echo "$archive_cmds_need_lc" >&6; }
10294       ;;
10295     esac
10296   fi
10297   ;;
10298 esac
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
10453
10454
10455
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10457 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10458
10459 if test "$GCC" = yes; then
10460   case $host_os in
10461     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10462     *) lt_awk_arg="/^libraries:/" ;;
10463   esac
10464   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10465   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10466     # if the path contains ";" then we assume it to be the separator
10467     # otherwise default to the standard path separator (i.e. ":") - it is
10468     # assumed that no part of a normal pathname contains ";" but that should
10469     # okay in the real world where ";" in dirpaths is itself problematic.
10470     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10471   else
10472     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10473   fi
10474   # Ok, now we have the path, separated by spaces, we can step through it
10475   # and add multilib dir if necessary.
10476   lt_tmp_lt_search_path_spec=
10477   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10478   for lt_sys_path in $lt_search_path_spec; do
10479     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10480       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10481     else
10482       test -d "$lt_sys_path" && \
10483         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10484     fi
10485   done
10486   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10487 BEGIN {RS=" "; FS="/|\n";} {
10488   lt_foo="";
10489   lt_count=0;
10490   for (lt_i = NF; lt_i > 0; lt_i--) {
10491     if ($lt_i != "" && $lt_i != ".") {
10492       if ($lt_i == "..") {
10493         lt_count++;
10494       } else {
10495         if (lt_count == 0) {
10496           lt_foo="/" $lt_i lt_foo;
10497         } else {
10498           lt_count--;
10499         }
10500       }
10501     }
10502   }
10503   if (lt_foo != "") { lt_freq[lt_foo]++; }
10504   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10505 }'`
10506   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10507 else
10508   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10509 fi
10510 library_names_spec=
10511 libname_spec='lib$name'
10512 soname_spec=
10513 shrext_cmds=".so"
10514 postinstall_cmds=
10515 postuninstall_cmds=
10516 finish_cmds=
10517 finish_eval=
10518 shlibpath_var=
10519 shlibpath_overrides_runpath=unknown
10520 version_type=none
10521 dynamic_linker="$host_os ld.so"
10522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10523 need_lib_prefix=unknown
10524 hardcode_into_libs=no
10525
10526 # when you set need_version to no, make sure it does not cause -set_version
10527 # flags to be left without arguments
10528 need_version=unknown
10529
10530 case $host_os in
10531 aix3*)
10532   version_type=linux
10533   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10534   shlibpath_var=LIBPATH
10535
10536   # AIX 3 has no versioning support, so we append a major version to the name.
10537   soname_spec='${libname}${release}${shared_ext}$major'
10538   ;;
10539
10540 aix[4-9]*)
10541   version_type=linux
10542   need_lib_prefix=no
10543   need_version=no
10544   hardcode_into_libs=yes
10545   if test "$host_cpu" = ia64; then
10546     # AIX 5 supports IA64
10547     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10548     shlibpath_var=LD_LIBRARY_PATH
10549   else
10550     # With GCC up to 2.95.x, collect2 would create an import file
10551     # for dependence libraries.  The import file would start with
10552     # the line `#! .'.  This would cause the generated library to
10553     # depend on `.', always an invalid library.  This was fixed in
10554     # development snapshots of GCC prior to 3.0.
10555     case $host_os in
10556       aix4 | aix4.[01] | aix4.[01].*)
10557       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10558            echo ' yes '
10559            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10560         :
10561       else
10562         can_build_shared=no
10563       fi
10564       ;;
10565     esac
10566     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10567     # soname into executable. Probably we can add versioning support to
10568     # collect2, so additional links can be useful in future.
10569     if test "$aix_use_runtimelinking" = yes; then
10570       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10571       # instead of lib<name>.a to let people know that these are not
10572       # typical AIX shared libraries.
10573       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574     else
10575       # We preserve .a as extension for shared libraries through AIX4.2
10576       # and later when we are not doing run time linking.
10577       library_names_spec='${libname}${release}.a $libname.a'
10578       soname_spec='${libname}${release}${shared_ext}$major'
10579     fi
10580     shlibpath_var=LIBPATH
10581   fi
10582   ;;
10583
10584 amigaos*)
10585   case $host_cpu in
10586   powerpc)
10587     # Since July 2007 AmigaOS4 officially supports .so libraries.
10588     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590     ;;
10591   m68k)
10592     library_names_spec='$libname.ixlibrary $libname.a'
10593     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10594     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'
10595     ;;
10596   esac
10597   ;;
10598
10599 beos*)
10600   library_names_spec='${libname}${shared_ext}'
10601   dynamic_linker="$host_os ld.so"
10602   shlibpath_var=LIBRARY_PATH
10603   ;;
10604
10605 bsdi[45]*)
10606   version_type=linux
10607   need_version=no
10608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609   soname_spec='${libname}${release}${shared_ext}$major'
10610   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10611   shlibpath_var=LD_LIBRARY_PATH
10612   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10613   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10614   # the default ld.so.conf also contains /usr/contrib/lib and
10615   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10616   # libtool to hard-code these into programs
10617   ;;
10618
10619 cygwin* | mingw* | pw32* | cegcc*)
10620   version_type=windows
10621   shrext_cmds=".dll"
10622   need_version=no
10623   need_lib_prefix=no
10624
10625   case $GCC,$host_os in
10626   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10627     library_names_spec='$libname.dll.a'
10628     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10629     postinstall_cmds='base_file=`basename \${file}`~
10630       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10631       dldir=$destdir/`dirname \$dlpath`~
10632       test -d \$dldir || mkdir -p \$dldir~
10633       $install_prog $dir/$dlname \$dldir/$dlname~
10634       chmod a+x \$dldir/$dlname~
10635       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10636         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10637       fi'
10638     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10639       dlpath=$dir/\$dldll~
10640        $RM \$dlpath'
10641     shlibpath_overrides_runpath=yes
10642
10643     case $host_os in
10644     cygwin*)
10645       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10646       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10648       ;;
10649     mingw* | cegcc*)
10650       # MinGW DLLs use traditional 'lib' prefix
10651       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10652       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10653       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10654         # It is most probably a Windows format PATH printed by
10655         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10656         # path with ; separators, and with drive letters. We can handle the
10657         # drive letters (cygwin fileutils understands them), so leave them,
10658         # especially as we might pass files found there to a mingw objdump,
10659         # which wouldn't understand a cygwinified path. Ahh.
10660         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10661       else
10662         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10663       fi
10664       ;;
10665     pw32*)
10666       # pw32 DLLs use 'pw' prefix rather than 'lib'
10667       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10668       ;;
10669     esac
10670     ;;
10671
10672   *)
10673     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10674     ;;
10675   esac
10676   dynamic_linker='Win32 ld.exe'
10677   # FIXME: first we should search . and the directory the executable is in
10678   shlibpath_var=PATH
10679   ;;
10680
10681 darwin* | rhapsody*)
10682   dynamic_linker="$host_os dyld"
10683   version_type=darwin
10684   need_lib_prefix=no
10685   need_version=no
10686   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10687   soname_spec='${libname}${release}${major}$shared_ext'
10688   shlibpath_overrides_runpath=yes
10689   shlibpath_var=DYLD_LIBRARY_PATH
10690   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10691
10692   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10693   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10694   ;;
10695
10696 dgux*)
10697   version_type=linux
10698   need_lib_prefix=no
10699   need_version=no
10700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10701   soname_spec='${libname}${release}${shared_ext}$major'
10702   shlibpath_var=LD_LIBRARY_PATH
10703   ;;
10704
10705 freebsd1*)
10706   dynamic_linker=no
10707   ;;
10708
10709 freebsd* | dragonfly*)
10710   # DragonFly does not have aout.  When/if they implement a new
10711   # versioning mechanism, adjust this.
10712   if test -x /usr/bin/objformat; then
10713     objformat=`/usr/bin/objformat`
10714   else
10715     case $host_os in
10716     freebsd[123]*) objformat=aout ;;
10717     *) objformat=elf ;;
10718     esac
10719   fi
10720   version_type=freebsd-$objformat
10721   case $version_type in
10722     freebsd-elf*)
10723       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10724       need_version=no
10725       need_lib_prefix=no
10726       ;;
10727     freebsd-*)
10728       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10729       need_version=yes
10730       ;;
10731   esac
10732   shlibpath_var=LD_LIBRARY_PATH
10733   case $host_os in
10734   freebsd2*)
10735     shlibpath_overrides_runpath=yes
10736     ;;
10737   freebsd3.[01]* | freebsdelf3.[01]*)
10738     shlibpath_overrides_runpath=yes
10739     hardcode_into_libs=yes
10740     ;;
10741   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10742   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10743     shlibpath_overrides_runpath=no
10744     hardcode_into_libs=yes
10745     ;;
10746   *) # from 4.6 on, and DragonFly
10747     shlibpath_overrides_runpath=yes
10748     hardcode_into_libs=yes
10749     ;;
10750   esac
10751   ;;
10752
10753 gnu*)
10754   version_type=linux
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   hardcode_into_libs=yes
10761   ;;
10762
10763 hpux9* | hpux10* | hpux11*)
10764   # Give a soname corresponding to the major version so that dld.sl refuses to
10765   # link against other versions.
10766   version_type=sunos
10767   need_lib_prefix=no
10768   need_version=no
10769   case $host_cpu in
10770   ia64*)
10771     shrext_cmds='.so'
10772     hardcode_into_libs=yes
10773     dynamic_linker="$host_os dld.so"
10774     shlibpath_var=LD_LIBRARY_PATH
10775     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777     soname_spec='${libname}${release}${shared_ext}$major'
10778     if test "X$HPUX_IA64_MODE" = X32; then
10779       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10780     else
10781       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10782     fi
10783     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10784     ;;
10785   hppa*64*)
10786     shrext_cmds='.sl'
10787     hardcode_into_libs=yes
10788     dynamic_linker="$host_os dld.sl"
10789     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792     soname_spec='${libname}${release}${shared_ext}$major'
10793     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10794     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10795     ;;
10796   *)
10797     shrext_cmds='.sl'
10798     dynamic_linker="$host_os dld.sl"
10799     shlibpath_var=SHLIB_PATH
10800     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802     soname_spec='${libname}${release}${shared_ext}$major'
10803     ;;
10804   esac
10805   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10806   postinstall_cmds='chmod 555 $lib'
10807   ;;
10808
10809 interix[3-9]*)
10810   version_type=linux
10811   need_lib_prefix=no
10812   need_version=no
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10816   shlibpath_var=LD_LIBRARY_PATH
10817   shlibpath_overrides_runpath=no
10818   hardcode_into_libs=yes
10819   ;;
10820
10821 irix5* | irix6* | nonstopux*)
10822   case $host_os in
10823     nonstopux*) version_type=nonstopux ;;
10824     *)
10825         if test "$lt_cv_prog_gnu_ld" = yes; then
10826                 version_type=linux
10827         else
10828                 version_type=irix
10829         fi ;;
10830   esac
10831   need_lib_prefix=no
10832   need_version=no
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10835   case $host_os in
10836   irix5* | nonstopux*)
10837     libsuff= shlibsuff=
10838     ;;
10839   *)
10840     case $LD in # libtool.m4 will add one of these switches to LD
10841     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10842       libsuff= shlibsuff= libmagic=32-bit;;
10843     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10844       libsuff=32 shlibsuff=N32 libmagic=N32;;
10845     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10846       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10847     *) libsuff= shlibsuff= libmagic=never-match;;
10848     esac
10849     ;;
10850   esac
10851   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10852   shlibpath_overrides_runpath=no
10853   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10854   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10855   hardcode_into_libs=yes
10856   ;;
10857
10858 # No shared lib support for Linux oldld, aout, or coff.
10859 linux*oldld* | linux*aout* | linux*coff*)
10860   dynamic_linker=no
10861   ;;
10862
10863 # This must be Linux ELF.
10864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10865   version_type=linux
10866   need_lib_prefix=no
10867   need_version=no
10868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869   soname_spec='${libname}${release}${shared_ext}$major'
10870   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10871   shlibpath_var=LD_LIBRARY_PATH
10872   shlibpath_overrides_runpath=no
10873   # Some binutils ld are patched to set DT_RUNPATH
10874   save_LDFLAGS=$LDFLAGS
10875   save_libdir=$libdir
10876   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10877        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h.  */
10880
10881 int
10882 main ()
10883 {
10884
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10891   shlibpath_overrides_runpath=yes
10892 fi
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext \
10895     conftest$ac_exeext conftest.$ac_ext
10896   LDFLAGS=$save_LDFLAGS
10897   libdir=$save_libdir
10898
10899   # This implies no fast_install, which is unacceptable.
10900   # Some rework will be needed to allow for fast_install
10901   # before this can be enabled.
10902   hardcode_into_libs=yes
10903
10904   # Append ld.so.conf contents to the search path
10905   if test -f /etc/ld.so.conf; then
10906     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' ' '`
10907     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10908   fi
10909
10910   # We used to test for /lib/ld.so.1 and disable shared libraries on
10911   # powerpc, because MkLinux only supported shared libraries with the
10912   # GNU dynamic linker.  Since this was broken with cross compilers,
10913   # most powerpc-linux boxes support dynamic linking these days and
10914   # people can always --disable-shared, the test was removed, and we
10915   # assume the GNU/Linux dynamic linker is in use.
10916   dynamic_linker='GNU/Linux ld.so'
10917   ;;
10918
10919 netbsdelf*-gnu)
10920   version_type=linux
10921   need_lib_prefix=no
10922   need_version=no
10923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10924   soname_spec='${libname}${release}${shared_ext}$major'
10925   shlibpath_var=LD_LIBRARY_PATH
10926   shlibpath_overrides_runpath=no
10927   hardcode_into_libs=yes
10928   dynamic_linker='NetBSD ld.elf_so'
10929   ;;
10930
10931 netbsd*)
10932   version_type=sunos
10933   need_lib_prefix=no
10934   need_version=no
10935   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10938     dynamic_linker='NetBSD (a.out) ld.so'
10939   else
10940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941     soname_spec='${libname}${release}${shared_ext}$major'
10942     dynamic_linker='NetBSD ld.elf_so'
10943   fi
10944   shlibpath_var=LD_LIBRARY_PATH
10945   shlibpath_overrides_runpath=yes
10946   hardcode_into_libs=yes
10947   ;;
10948
10949 newsos6)
10950   version_type=linux
10951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952   shlibpath_var=LD_LIBRARY_PATH
10953   shlibpath_overrides_runpath=yes
10954   ;;
10955
10956 *nto* | *qnx*)
10957   version_type=qnx
10958   need_lib_prefix=no
10959   need_version=no
10960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961   soname_spec='${libname}${release}${shared_ext}$major'
10962   shlibpath_var=LD_LIBRARY_PATH
10963   shlibpath_overrides_runpath=no
10964   hardcode_into_libs=yes
10965   dynamic_linker='ldqnx.so'
10966   ;;
10967
10968 openbsd*)
10969   version_type=sunos
10970   sys_lib_dlsearch_path_spec="/usr/lib"
10971   need_lib_prefix=no
10972   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10973   case $host_os in
10974     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10975     *)                          need_version=no  ;;
10976   esac
10977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979   shlibpath_var=LD_LIBRARY_PATH
10980   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10981     case $host_os in
10982       openbsd2.[89] | openbsd2.[89].*)
10983         shlibpath_overrides_runpath=no
10984         ;;
10985       *)
10986         shlibpath_overrides_runpath=yes
10987         ;;
10988       esac
10989   else
10990     shlibpath_overrides_runpath=yes
10991   fi
10992   ;;
10993
10994 os2*)
10995   libname_spec='$name'
10996   shrext_cmds=".dll"
10997   need_lib_prefix=no
10998   library_names_spec='$libname${shared_ext} $libname.a'
10999   dynamic_linker='OS/2 ld.exe'
11000   shlibpath_var=LIBPATH
11001   ;;
11002
11003 osf3* | osf4* | osf5*)
11004   version_type=osf
11005   need_lib_prefix=no
11006   need_version=no
11007   soname_spec='${libname}${release}${shared_ext}$major'
11008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009   shlibpath_var=LD_LIBRARY_PATH
11010   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11011   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11012   ;;
11013
11014 rdos*)
11015   dynamic_linker=no
11016   ;;
11017
11018 solaris*)
11019   version_type=linux
11020   need_lib_prefix=no
11021   need_version=no
11022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023   soname_spec='${libname}${release}${shared_ext}$major'
11024   shlibpath_var=LD_LIBRARY_PATH
11025   shlibpath_overrides_runpath=yes
11026   hardcode_into_libs=yes
11027   # ldd complains unless libraries are executable
11028   postinstall_cmds='chmod +x $lib'
11029   ;;
11030
11031 sunos4*)
11032   version_type=sunos
11033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035   shlibpath_var=LD_LIBRARY_PATH
11036   shlibpath_overrides_runpath=yes
11037   if test "$with_gnu_ld" = yes; then
11038     need_lib_prefix=no
11039   fi
11040   need_version=yes
11041   ;;
11042
11043 sysv4 | sysv4.3*)
11044   version_type=linux
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   shlibpath_var=LD_LIBRARY_PATH
11048   case $host_vendor in
11049     sni)
11050       shlibpath_overrides_runpath=no
11051       need_lib_prefix=no
11052       runpath_var=LD_RUN_PATH
11053       ;;
11054     siemens)
11055       need_lib_prefix=no
11056       ;;
11057     motorola)
11058       need_lib_prefix=no
11059       need_version=no
11060       shlibpath_overrides_runpath=no
11061       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11062       ;;
11063   esac
11064   ;;
11065
11066 sysv4*MP*)
11067   if test -d /usr/nec ;then
11068     version_type=linux
11069     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11070     soname_spec='$libname${shared_ext}.$major'
11071     shlibpath_var=LD_LIBRARY_PATH
11072   fi
11073   ;;
11074
11075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11076   version_type=freebsd-elf
11077   need_lib_prefix=no
11078   need_version=no
11079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11080   soname_spec='${libname}${release}${shared_ext}$major'
11081   shlibpath_var=LD_LIBRARY_PATH
11082   shlibpath_overrides_runpath=yes
11083   hardcode_into_libs=yes
11084   if test "$with_gnu_ld" = yes; then
11085     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11086   else
11087     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11088     case $host_os in
11089       sco3.2v5*)
11090         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11091         ;;
11092     esac
11093   fi
11094   sys_lib_dlsearch_path_spec='/usr/lib'
11095   ;;
11096
11097 tpf*)
11098   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11099   version_type=linux
11100   need_lib_prefix=no
11101   need_version=no
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103   shlibpath_var=LD_LIBRARY_PATH
11104   shlibpath_overrides_runpath=no
11105   hardcode_into_libs=yes
11106   ;;
11107
11108 uts4*)
11109   version_type=linux
11110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111   soname_spec='${libname}${release}${shared_ext}$major'
11112   shlibpath_var=LD_LIBRARY_PATH
11113   ;;
11114
11115 *)
11116   dynamic_linker=no
11117   ;;
11118 esac
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120 $as_echo "$dynamic_linker" >&6; }
11121 test "$dynamic_linker" = no && can_build_shared=no
11122
11123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11124 if test "$GCC" = yes; then
11125   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11126 fi
11127
11128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11129   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11130 fi
11131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11132   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11133 fi
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
11218
11219
11220
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11223 hardcode_action=
11224 if test -n "$hardcode_libdir_flag_spec" ||
11225    test -n "$runpath_var" ||
11226    test "X$hardcode_automatic" = "Xyes" ; then
11227
11228   # We can hardcode non-existent directories.
11229   if test "$hardcode_direct" != no &&
11230      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11231      # have to relink, otherwise we might link with an installed library
11232      # when we should be linking with a yet-to-be-installed one
11233      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11234      test "$hardcode_minus_L" != no; then
11235     # Linking always hardcodes the temporary library directory.
11236     hardcode_action=relink
11237   else
11238     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11239     hardcode_action=immediate
11240   fi
11241 else
11242   # We cannot hardcode anything, or else we can only hardcode existing
11243   # directories.
11244   hardcode_action=unsupported
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11247 $as_echo "$hardcode_action" >&6; }
11248
11249 if test "$hardcode_action" = relink ||
11250    test "$inherit_rpath" = yes; then
11251   # Fast installation is not supported
11252   enable_fast_install=no
11253 elif test "$shlibpath_overrides_runpath" = yes ||
11254      test "$enable_shared" = no; then
11255   # Fast installation is not necessary
11256   enable_fast_install=needless
11257 fi
11258
11259
11260
11261
11262
11263
11264   if test "x$enable_dlopen" != xyes; then
11265   enable_dlopen=unknown
11266   enable_dlopen_self=unknown
11267   enable_dlopen_self_static=unknown
11268 else
11269   lt_cv_dlopen=no
11270   lt_cv_dlopen_libs=
11271
11272   case $host_os in
11273   beos*)
11274     lt_cv_dlopen="load_add_on"
11275     lt_cv_dlopen_libs=
11276     lt_cv_dlopen_self=yes
11277     ;;
11278
11279   mingw* | pw32* | cegcc*)
11280     lt_cv_dlopen="LoadLibrary"
11281     lt_cv_dlopen_libs=
11282     ;;
11283
11284   cygwin*)
11285     lt_cv_dlopen="dlopen"
11286     lt_cv_dlopen_libs=
11287     ;;
11288
11289   darwin*)
11290   # if libdl is installed we need to link against it
11291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11293 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11294   $as_echo_n "(cached) " >&6
11295 else
11296   ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-ldl  $LIBS"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h.  */
11300
11301 /* Override any GCC internal prototype to avoid an error.
11302    Use char because int might match the return type of a GCC
11303    builtin and then its argument prototype would still apply.  */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char dlopen ();
11308 int
11309 main ()
11310 {
11311 return dlopen ();
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317   ac_cv_lib_dl_dlopen=yes
11318 else
11319   ac_cv_lib_dl_dlopen=no
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext \
11322     conftest$ac_exeext conftest.$ac_ext
11323 LIBS=$ac_check_lib_save_LIBS
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11327 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11328   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11329 else
11330
11331     lt_cv_dlopen="dyld"
11332     lt_cv_dlopen_libs=
11333     lt_cv_dlopen_self=yes
11334
11335 fi
11336
11337     ;;
11338
11339   *)
11340     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11341 if test "x$ac_cv_func_shl_load" = x""yes; then :
11342   lt_cv_dlopen="shl_load"
11343 else
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11345 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11346 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11347   $as_echo_n "(cached) " >&6
11348 else
11349   ac_check_lib_save_LIBS=$LIBS
11350 LIBS="-ldld  $LIBS"
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h.  */
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355    Use char because int might match the return type of a GCC
11356    builtin and then its argument prototype would still apply.  */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char shl_load ();
11361 int
11362 main ()
11363 {
11364 return shl_load ();
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370   ac_cv_lib_dld_shl_load=yes
11371 else
11372   ac_cv_lib_dld_shl_load=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext \
11375     conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11379 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11380 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11381   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11382 else
11383   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11384 if test "x$ac_cv_func_dlopen" = x""yes; then :
11385   lt_cv_dlopen="dlopen"
11386 else
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11390   $as_echo_n "(cached) " >&6
11391 else
11392   ac_check_lib_save_LIBS=$LIBS
11393 LIBS="-ldl  $LIBS"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h.  */
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398    Use char because int might match the return type of a GCC
11399    builtin and then its argument prototype would still apply.  */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char dlopen ();
11404 int
11405 main ()
11406 {
11407 return dlopen ();
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413   ac_cv_lib_dl_dlopen=yes
11414 else
11415   ac_cv_lib_dl_dlopen=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418     conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11423 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11424   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11425 else
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11427 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11428 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11429   $as_echo_n "(cached) " >&6
11430 else
11431   ac_check_lib_save_LIBS=$LIBS
11432 LIBS="-lsvld  $LIBS"
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h.  */
11435
11436 /* Override any GCC internal prototype to avoid an error.
11437    Use char because int might match the return type of a GCC
11438    builtin and then its argument prototype would still apply.  */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char dlopen ();
11443 int
11444 main ()
11445 {
11446 return dlopen ();
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_link "$LINENO"; then :
11452   ac_cv_lib_svld_dlopen=yes
11453 else
11454   ac_cv_lib_svld_dlopen=no
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext \
11457     conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11461 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11462 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11463   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11464 else
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11466 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11467 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldld  $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h.  */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476    Use char because int might match the return type of a GCC
11477    builtin and then its argument prototype would still apply.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char dld_link ();
11482 int
11483 main ()
11484 {
11485 return dld_link ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491   ac_cv_lib_dld_dld_link=yes
11492 else
11493   ac_cv_lib_dld_dld_link=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496     conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11500 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11501 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11502   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11503 fi
11504
11505
11506 fi
11507
11508
11509 fi
11510
11511
11512 fi
11513
11514
11515 fi
11516
11517
11518 fi
11519
11520     ;;
11521   esac
11522
11523   if test "x$lt_cv_dlopen" != xno; then
11524     enable_dlopen=yes
11525   else
11526     enable_dlopen=no
11527   fi
11528
11529   case $lt_cv_dlopen in
11530   dlopen)
11531     save_CPPFLAGS="$CPPFLAGS"
11532     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11533
11534     save_LDFLAGS="$LDFLAGS"
11535     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11536
11537     save_LIBS="$LIBS"
11538     LIBS="$lt_cv_dlopen_libs $LIBS"
11539
11540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11541 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11542 if test "${lt_cv_dlopen_self+set}" = set; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545           if test "$cross_compiling" = yes; then :
11546   lt_cv_dlopen_self=cross
11547 else
11548   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11549   lt_status=$lt_dlunknown
11550   cat > conftest.$ac_ext <<_LT_EOF
11551 #line 11551 "configure"
11552 #include "confdefs.h"
11553
11554 #if HAVE_DLFCN_H
11555 #include <dlfcn.h>
11556 #endif
11557
11558 #include <stdio.h>
11559
11560 #ifdef RTLD_GLOBAL
11561 #  define LT_DLGLOBAL           RTLD_GLOBAL
11562 #else
11563 #  ifdef DL_GLOBAL
11564 #    define LT_DLGLOBAL         DL_GLOBAL
11565 #  else
11566 #    define LT_DLGLOBAL         0
11567 #  endif
11568 #endif
11569
11570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11571    find out it does not work in some platform. */
11572 #ifndef LT_DLLAZY_OR_NOW
11573 #  ifdef RTLD_LAZY
11574 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11575 #  else
11576 #    ifdef DL_LAZY
11577 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11578 #    else
11579 #      ifdef RTLD_NOW
11580 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11581 #      else
11582 #        ifdef DL_NOW
11583 #          define LT_DLLAZY_OR_NOW      DL_NOW
11584 #        else
11585 #          define LT_DLLAZY_OR_NOW      0
11586 #        endif
11587 #      endif
11588 #    endif
11589 #  endif
11590 #endif
11591
11592 void fnord() { int i=42;}
11593 int main ()
11594 {
11595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11596   int status = $lt_dlunknown;
11597
11598   if (self)
11599     {
11600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602       /* dlclose (self); */
11603     }
11604   else
11605     puts (dlerror ());
11606
11607   return status;
11608 }
11609 _LT_EOF
11610   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11611   (eval $ac_link) 2>&5
11612   ac_status=$?
11613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11615     (./conftest; exit; ) >&5 2>/dev/null
11616     lt_status=$?
11617     case x$lt_status in
11618       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11619       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11620       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11621     esac
11622   else :
11623     # compilation failed
11624     lt_cv_dlopen_self=no
11625   fi
11626 fi
11627 rm -fr conftest*
11628
11629
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11632 $as_echo "$lt_cv_dlopen_self" >&6; }
11633
11634     if test "x$lt_cv_dlopen_self" = xyes; then
11635       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11636       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11637 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11638 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11639   $as_echo_n "(cached) " >&6
11640 else
11641           if test "$cross_compiling" = yes; then :
11642   lt_cv_dlopen_self_static=cross
11643 else
11644   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11645   lt_status=$lt_dlunknown
11646   cat > conftest.$ac_ext <<_LT_EOF
11647 #line 11647 "configure"
11648 #include "confdefs.h"
11649
11650 #if HAVE_DLFCN_H
11651 #include <dlfcn.h>
11652 #endif
11653
11654 #include <stdio.h>
11655
11656 #ifdef RTLD_GLOBAL
11657 #  define LT_DLGLOBAL           RTLD_GLOBAL
11658 #else
11659 #  ifdef DL_GLOBAL
11660 #    define LT_DLGLOBAL         DL_GLOBAL
11661 #  else
11662 #    define LT_DLGLOBAL         0
11663 #  endif
11664 #endif
11665
11666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11667    find out it does not work in some platform. */
11668 #ifndef LT_DLLAZY_OR_NOW
11669 #  ifdef RTLD_LAZY
11670 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11671 #  else
11672 #    ifdef DL_LAZY
11673 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11674 #    else
11675 #      ifdef RTLD_NOW
11676 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11677 #      else
11678 #        ifdef DL_NOW
11679 #          define LT_DLLAZY_OR_NOW      DL_NOW
11680 #        else
11681 #          define LT_DLLAZY_OR_NOW      0
11682 #        endif
11683 #      endif
11684 #    endif
11685 #  endif
11686 #endif
11687
11688 void fnord() { int i=42;}
11689 int main ()
11690 {
11691   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11692   int status = $lt_dlunknown;
11693
11694   if (self)
11695     {
11696       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11697       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11698       /* dlclose (self); */
11699     }
11700   else
11701     puts (dlerror ());
11702
11703   return status;
11704 }
11705 _LT_EOF
11706   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11707   (eval $ac_link) 2>&5
11708   ac_status=$?
11709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11711     (./conftest; exit; ) >&5 2>/dev/null
11712     lt_status=$?
11713     case x$lt_status in
11714       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11715       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11716       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11717     esac
11718   else :
11719     # compilation failed
11720     lt_cv_dlopen_self_static=no
11721   fi
11722 fi
11723 rm -fr conftest*
11724
11725
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11728 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11729     fi
11730
11731     CPPFLAGS="$save_CPPFLAGS"
11732     LDFLAGS="$save_LDFLAGS"
11733     LIBS="$save_LIBS"
11734     ;;
11735   esac
11736
11737   case $lt_cv_dlopen_self in
11738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11739   *) enable_dlopen_self=unknown ;;
11740   esac
11741
11742   case $lt_cv_dlopen_self_static in
11743   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11744   *) enable_dlopen_self_static=unknown ;;
11745   esac
11746 fi
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764 striplib=
11765 old_striplib=
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11767 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11768 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11769   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11770   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11773 else
11774 # FIXME - insert some real tests, host_os isn't really good enough
11775   case $host_os in
11776   darwin*)
11777     if test -n "$STRIP" ; then
11778       striplib="$STRIP -x"
11779       old_striplib="$STRIP -S"
11780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781 $as_echo "yes" >&6; }
11782     else
11783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785     fi
11786     ;;
11787   *)
11788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11790     ;;
11791   esac
11792 fi
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805   # Report which library types will actually be built
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11807 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11809 $as_echo "$can_build_shared" >&6; }
11810
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11812 $as_echo_n "checking whether to build shared libraries... " >&6; }
11813   test "$can_build_shared" = "no" && enable_shared=no
11814
11815   # On AIX, shared libraries and static libraries use the same namespace, and
11816   # are all built from PIC.
11817   case $host_os in
11818   aix3*)
11819     test "$enable_shared" = yes && enable_static=no
11820     if test -n "$RANLIB"; then
11821       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11822       postinstall_cmds='$RANLIB $lib'
11823     fi
11824     ;;
11825
11826   aix[4-9]*)
11827     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11828       test "$enable_shared" = yes && enable_static=no
11829     fi
11830     ;;
11831   esac
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11833 $as_echo "$enable_shared" >&6; }
11834
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11836 $as_echo_n "checking whether to build static libraries... " >&6; }
11837   # Make sure either enable_shared or enable_static is yes.
11838   test "$enable_shared" = yes || enable_static=yes
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11840 $as_echo "$enable_static" >&6; }
11841
11842
11843
11844
11845 fi
11846 ac_ext=cpp
11847 ac_cpp='$CXXCPP $CPPFLAGS'
11848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11851
11852 CC="$lt_save_CC"
11853
11854
11855 ac_ext=cpp
11856 ac_cpp='$CXXCPP $CPPFLAGS'
11857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11860
11861 archive_cmds_need_lc_CXX=no
11862 allow_undefined_flag_CXX=
11863 always_export_symbols_CXX=no
11864 archive_expsym_cmds_CXX=
11865 compiler_needs_object_CXX=no
11866 export_dynamic_flag_spec_CXX=
11867 hardcode_direct_CXX=no
11868 hardcode_direct_absolute_CXX=no
11869 hardcode_libdir_flag_spec_CXX=
11870 hardcode_libdir_flag_spec_ld_CXX=
11871 hardcode_libdir_separator_CXX=
11872 hardcode_minus_L_CXX=no
11873 hardcode_shlibpath_var_CXX=unsupported
11874 hardcode_automatic_CXX=no
11875 inherit_rpath_CXX=no
11876 module_cmds_CXX=
11877 module_expsym_cmds_CXX=
11878 link_all_deplibs_CXX=unknown
11879 old_archive_cmds_CXX=$old_archive_cmds
11880 no_undefined_flag_CXX=
11881 whole_archive_flag_spec_CXX=
11882 enable_shared_with_static_runtimes_CXX=no
11883
11884 # Source file extension for C++ test sources.
11885 ac_ext=cpp
11886
11887 # Object file extension for compiled C++ test sources.
11888 objext=o
11889 objext_CXX=$objext
11890
11891 # No sense in running all these tests if we already determined that
11892 # the CXX compiler isn't working.  Some variables (like enable_shared)
11893 # are currently assumed to apply to all compilers on this platform,
11894 # and will be corrupted by setting them based on a non-working compiler.
11895 if test "$_lt_caught_CXX_error" != yes; then
11896   # Code to be used in simple compile tests
11897   lt_simple_compile_test_code="int some_variable = 0;"
11898
11899   # Code to be used in simple link tests
11900   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11901
11902   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11903
11904
11905
11906
11907
11908
11909 # If no C compiler was specified, use CC.
11910 LTCC=${LTCC-"$CC"}
11911
11912 # If no C compiler flags were specified, use CFLAGS.
11913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11914
11915 # Allow CC to be a program name with arguments.
11916 compiler=$CC
11917
11918
11919   # save warnings/boilerplate of simple test code
11920   ac_outfile=conftest.$ac_objext
11921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11923 _lt_compiler_boilerplate=`cat conftest.err`
11924 $RM conftest*
11925
11926   ac_outfile=conftest.$ac_objext
11927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11929 _lt_linker_boilerplate=`cat conftest.err`
11930 $RM -r conftest*
11931
11932
11933   # Allow CC to be a program name with arguments.
11934   lt_save_CC=$CC
11935   lt_save_LD=$LD
11936   lt_save_GCC=$GCC
11937   GCC=$GXX
11938   lt_save_with_gnu_ld=$with_gnu_ld
11939   lt_save_path_LD=$lt_cv_path_LD
11940   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11941     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11942   else
11943     $as_unset lt_cv_prog_gnu_ld
11944   fi
11945   if test -n "${lt_cv_path_LDCXX+set}"; then
11946     lt_cv_path_LD=$lt_cv_path_LDCXX
11947   else
11948     $as_unset lt_cv_path_LD
11949   fi
11950   test -z "${LDCXX+set}" || LD=$LDCXX
11951   CC=${CXX-"c++"}
11952   compiler=$CC
11953   compiler_CXX=$CC
11954   for cc_temp in $compiler""; do
11955   case $cc_temp in
11956     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11957     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11958     \-*) ;;
11959     *) break;;
11960   esac
11961 done
11962 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11963
11964
11965   if test -n "$compiler"; then
11966     # We don't want -fno-exception when compiling C++ code, so set the
11967     # no_builtin_flag separately
11968     if test "$GXX" = yes; then
11969       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11970     else
11971       lt_prog_compiler_no_builtin_flag_CXX=
11972     fi
11973
11974     if test "$GXX" = yes; then
11975       # Set up default GNU C++ configuration
11976
11977
11978
11979 # Check whether --with-gnu-ld was given.
11980 if test "${with_gnu_ld+set}" = set; then :
11981   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11982 else
11983   with_gnu_ld=no
11984 fi
11985
11986 ac_prog=ld
11987 if test "$GCC" = yes; then
11988   # Check if gcc -print-prog-name=ld gives a path.
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11990 $as_echo_n "checking for ld used by $CC... " >&6; }
11991   case $host in
11992   *-*-mingw*)
11993     # gcc leaves a trailing carriage return which upsets mingw
11994     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11995   *)
11996     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11997   esac
11998   case $ac_prog in
11999     # Accept absolute paths.
12000     [\\/]* | ?:[\\/]*)
12001       re_direlt='/[^/][^/]*/\.\./'
12002       # Canonicalize the pathname of ld
12003       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12004       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12005         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12006       done
12007       test -z "$LD" && LD="$ac_prog"
12008       ;;
12009   "")
12010     # If it fails, then pretend we aren't using GCC.
12011     ac_prog=ld
12012     ;;
12013   *)
12014     # If it is relative, then search for the first ld in PATH.
12015     with_gnu_ld=unknown
12016     ;;
12017   esac
12018 elif test "$with_gnu_ld" = yes; then
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12020 $as_echo_n "checking for GNU ld... " >&6; }
12021 else
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12023 $as_echo_n "checking for non-GNU ld... " >&6; }
12024 fi
12025 if test "${lt_cv_path_LD+set}" = set; then :
12026   $as_echo_n "(cached) " >&6
12027 else
12028   if test -z "$LD"; then
12029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12030   for ac_dir in $PATH; do
12031     IFS="$lt_save_ifs"
12032     test -z "$ac_dir" && ac_dir=.
12033     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12034       lt_cv_path_LD="$ac_dir/$ac_prog"
12035       # Check to see if the program is GNU ld.  I'd rather use --version,
12036       # but apparently some variants of GNU ld only accept -v.
12037       # Break only if it was the GNU/non-GNU ld that we prefer.
12038       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12039       *GNU* | *'with BFD'*)
12040         test "$with_gnu_ld" != no && break
12041         ;;
12042       *)
12043         test "$with_gnu_ld" != yes && break
12044         ;;
12045       esac
12046     fi
12047   done
12048   IFS="$lt_save_ifs"
12049 else
12050   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12051 fi
12052 fi
12053
12054 LD="$lt_cv_path_LD"
12055 if test -n "$LD"; then
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12057 $as_echo "$LD" >&6; }
12058 else
12059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12061 fi
12062 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12064 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12065 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12069 case `$LD -v 2>&1 </dev/null` in
12070 *GNU* | *'with BFD'*)
12071   lt_cv_prog_gnu_ld=yes
12072   ;;
12073 *)
12074   lt_cv_prog_gnu_ld=no
12075   ;;
12076 esac
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12079 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12080 with_gnu_ld=$lt_cv_prog_gnu_ld
12081
12082
12083
12084
12085
12086
12087
12088       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12089       # archiving commands below assume that GNU ld is being used.
12090       if test "$with_gnu_ld" = yes; then
12091         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12092         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'
12093
12094         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12095         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12096
12097         # If archive_cmds runs LD, not CC, wlarc should be empty
12098         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12099         #     investigate it a little bit more. (MM)
12100         wlarc='${wl}'
12101
12102         # ancient GNU ld didn't support --whole-archive et. al.
12103         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12104           $GREP 'no-whole-archive' > /dev/null; then
12105           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12106         else
12107           whole_archive_flag_spec_CXX=
12108         fi
12109       else
12110         with_gnu_ld=no
12111         wlarc=
12112
12113         # A generic and very simple default shared library creation
12114         # command for GNU C++ for the case where it uses the native
12115         # linker, instead of GNU ld.  If possible, this setting should
12116         # overridden to take advantage of the native linker features on
12117         # the platform it is being used on.
12118         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12119       fi
12120
12121       # Commands to make compiler produce verbose output that lists
12122       # what "hidden" libraries, object files and flags are used when
12123       # linking a shared library.
12124       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12125
12126     else
12127       GXX=no
12128       with_gnu_ld=no
12129       wlarc=
12130     fi
12131
12132     # PORTME: fill in a description of your system's C++ link characteristics
12133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12134 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12135     ld_shlibs_CXX=yes
12136     case $host_os in
12137       aix3*)
12138         # FIXME: insert proper C++ library support
12139         ld_shlibs_CXX=no
12140         ;;
12141       aix[4-9]*)
12142         if test "$host_cpu" = ia64; then
12143           # On IA64, the linker does run time linking by default, so we don't
12144           # have to do anything special.
12145           aix_use_runtimelinking=no
12146           exp_sym_flag='-Bexport'
12147           no_entry_flag=""
12148         else
12149           aix_use_runtimelinking=no
12150
12151           # Test if we are trying to use run time linking or normal
12152           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12153           # need to do runtime linking.
12154           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12155             for ld_flag in $LDFLAGS; do
12156               case $ld_flag in
12157               *-brtl*)
12158                 aix_use_runtimelinking=yes
12159                 break
12160                 ;;
12161               esac
12162             done
12163             ;;
12164           esac
12165
12166           exp_sym_flag='-bexport'
12167           no_entry_flag='-bnoentry'
12168         fi
12169
12170         # When large executables or shared objects are built, AIX ld can
12171         # have problems creating the table of contents.  If linking a library
12172         # or program results in "error TOC overflow" add -mminimal-toc to
12173         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12174         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12175
12176         archive_cmds_CXX=''
12177         hardcode_direct_CXX=yes
12178         hardcode_direct_absolute_CXX=yes
12179         hardcode_libdir_separator_CXX=':'
12180         link_all_deplibs_CXX=yes
12181         file_list_spec_CXX='${wl}-f,'
12182
12183         if test "$GXX" = yes; then
12184           case $host_os in aix4.[012]|aix4.[012].*)
12185           # We only want to do this on AIX 4.2 and lower, the check
12186           # below for broken collect2 doesn't work under 4.3+
12187           collect2name=`${CC} -print-prog-name=collect2`
12188           if test -f "$collect2name" &&
12189              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12190           then
12191             # We have reworked collect2
12192             :
12193           else
12194             # We have old collect2
12195             hardcode_direct_CXX=unsupported
12196             # It fails to find uninstalled libraries when the uninstalled
12197             # path is not listed in the libpath.  Setting hardcode_minus_L
12198             # to unsupported forces relinking
12199             hardcode_minus_L_CXX=yes
12200             hardcode_libdir_flag_spec_CXX='-L$libdir'
12201             hardcode_libdir_separator_CXX=
12202           fi
12203           esac
12204           shared_flag='-shared'
12205           if test "$aix_use_runtimelinking" = yes; then
12206             shared_flag="$shared_flag "'${wl}-G'
12207           fi
12208         else
12209           # not using gcc
12210           if test "$host_cpu" = ia64; then
12211           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12212           # chokes on -Wl,-G. The following line is correct:
12213           shared_flag='-G'
12214           else
12215             if test "$aix_use_runtimelinking" = yes; then
12216               shared_flag='${wl}-G'
12217             else
12218               shared_flag='${wl}-bM:SRE'
12219             fi
12220           fi
12221         fi
12222
12223         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12224         # It seems that -bexpall does not export symbols beginning with
12225         # underscore (_), so it is better to generate a list of symbols to
12226         # export.
12227         always_export_symbols_CXX=yes
12228         if test "$aix_use_runtimelinking" = yes; then
12229           # Warning - without using the other runtime loading flags (-brtl),
12230           # -berok will link without error, but may produce a broken library.
12231           allow_undefined_flag_CXX='-berok'
12232           # Determine the default libpath from the value encoded in an empty
12233           # executable.
12234           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h.  */
12236
12237 int
12238 main ()
12239 {
12240
12241   ;
12242   return 0;
12243 }
12244 _ACEOF
12245 if ac_fn_cxx_try_link "$LINENO"; then :
12246
12247 lt_aix_libpath_sed='
12248     /Import File Strings/,/^$/ {
12249         /^0/ {
12250             s/^0  *\(.*\)$/\1/
12251             p
12252         }
12253     }'
12254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12255 # Check for a 64-bit object if we didn't find anything.
12256 if test -z "$aix_libpath"; then
12257   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12258 fi
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext \
12261     conftest$ac_exeext conftest.$ac_ext
12262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12263
12264           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12265
12266           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"
12267         else
12268           if test "$host_cpu" = ia64; then
12269             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12270             allow_undefined_flag_CXX="-z nodefs"
12271             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"
12272           else
12273             # Determine the default libpath from the value encoded in an
12274             # empty executable.
12275             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h.  */
12277
12278 int
12279 main ()
12280 {
12281
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_cxx_try_link "$LINENO"; then :
12287
12288 lt_aix_libpath_sed='
12289     /Import File Strings/,/^$/ {
12290         /^0/ {
12291             s/^0  *\(.*\)$/\1/
12292             p
12293         }
12294     }'
12295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12296 # Check for a 64-bit object if we didn't find anything.
12297 if test -z "$aix_libpath"; then
12298   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12299 fi
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302     conftest$ac_exeext conftest.$ac_ext
12303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12304
12305             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12306             # Warning - without using the other run time loading flags,
12307             # -berok will link without error, but may produce a broken library.
12308             no_undefined_flag_CXX=' ${wl}-bernotok'
12309             allow_undefined_flag_CXX=' ${wl}-berok'
12310             # Exported symbols can be pulled into shared objects from archives
12311             whole_archive_flag_spec_CXX='$convenience'
12312             archive_cmds_need_lc_CXX=yes
12313             # This is similar to how AIX traditionally builds its shared
12314             # libraries.
12315             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'
12316           fi
12317         fi
12318         ;;
12319
12320       beos*)
12321         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12322           allow_undefined_flag_CXX=unsupported
12323           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12324           # support --undefined.  This deserves some investigation.  FIXME
12325           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326         else
12327           ld_shlibs_CXX=no
12328         fi
12329         ;;
12330
12331       chorus*)
12332         case $cc_basename in
12333           *)
12334           # FIXME: insert proper C++ library support
12335           ld_shlibs_CXX=no
12336           ;;
12337         esac
12338         ;;
12339
12340       cygwin* | mingw* | pw32* | cegcc*)
12341         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12342         # as there is no search path for DLLs.
12343         hardcode_libdir_flag_spec_CXX='-L$libdir'
12344         allow_undefined_flag_CXX=unsupported
12345         always_export_symbols_CXX=no
12346         enable_shared_with_static_runtimes_CXX=yes
12347
12348         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12349           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'
12350           # If the export-symbols file already is a .def file (1st line
12351           # is EXPORTS), use it as is; otherwise, prepend...
12352           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12353             cp $export_symbols $output_objdir/$soname.def;
12354           else
12355             echo EXPORTS > $output_objdir/$soname.def;
12356             cat $export_symbols >> $output_objdir/$soname.def;
12357           fi~
12358           $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'
12359         else
12360           ld_shlibs_CXX=no
12361         fi
12362         ;;
12363       darwin* | rhapsody*)
12364
12365
12366   archive_cmds_need_lc_CXX=no
12367   hardcode_direct_CXX=no
12368   hardcode_automatic_CXX=yes
12369   hardcode_shlibpath_var_CXX=unsupported
12370   whole_archive_flag_spec_CXX=''
12371   link_all_deplibs_CXX=yes
12372   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12373   case $cc_basename in
12374      ifort*) _lt_dar_can_shared=yes ;;
12375      *) _lt_dar_can_shared=$GCC ;;
12376   esac
12377   if test "$_lt_dar_can_shared" = "yes"; then
12378     output_verbose_link_cmd=echo
12379     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}"
12380     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12381     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}"
12382     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}"
12383        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12384       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}"
12385       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}"
12386     fi
12387
12388   else
12389   ld_shlibs_CXX=no
12390   fi
12391
12392         ;;
12393
12394       dgux*)
12395         case $cc_basename in
12396           ec++*)
12397             # FIXME: insert proper C++ library support
12398             ld_shlibs_CXX=no
12399             ;;
12400           ghcx*)
12401             # Green Hills C++ Compiler
12402             # FIXME: insert proper C++ library support
12403             ld_shlibs_CXX=no
12404             ;;
12405           *)
12406             # FIXME: insert proper C++ library support
12407             ld_shlibs_CXX=no
12408             ;;
12409         esac
12410         ;;
12411
12412       freebsd[12]*)
12413         # C++ shared libraries reported to be fairly broken before
12414         # switch to ELF
12415         ld_shlibs_CXX=no
12416         ;;
12417
12418       freebsd-elf*)
12419         archive_cmds_need_lc_CXX=no
12420         ;;
12421
12422       freebsd* | dragonfly*)
12423         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12424         # conventions
12425         ld_shlibs_CXX=yes
12426         ;;
12427
12428       gnu*)
12429         ;;
12430
12431       hpux9*)
12432         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12433         hardcode_libdir_separator_CXX=:
12434         export_dynamic_flag_spec_CXX='${wl}-E'
12435         hardcode_direct_CXX=yes
12436         hardcode_minus_L_CXX=yes # Not in the search PATH,
12437                                              # but as the default
12438                                              # location of the library.
12439
12440         case $cc_basename in
12441           CC*)
12442             # FIXME: insert proper C++ library support
12443             ld_shlibs_CXX=no
12444             ;;
12445           aCC*)
12446             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'
12447             # Commands to make compiler produce verbose output that lists
12448             # what "hidden" libraries, object files and flags are used when
12449             # linking a shared library.
12450             #
12451             # There doesn't appear to be a way to prevent this compiler from
12452             # explicitly linking system object files so we need to strip them
12453             # from the output so that they don't get included in the library
12454             # dependencies.
12455             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'
12456             ;;
12457           *)
12458             if test "$GXX" = yes; then
12459               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'
12460             else
12461               # FIXME: insert proper C++ library support
12462               ld_shlibs_CXX=no
12463             fi
12464             ;;
12465         esac
12466         ;;
12467
12468       hpux10*|hpux11*)
12469         if test $with_gnu_ld = no; then
12470           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12471           hardcode_libdir_separator_CXX=:
12472
12473           case $host_cpu in
12474             hppa*64*|ia64*)
12475               ;;
12476             *)
12477               export_dynamic_flag_spec_CXX='${wl}-E'
12478               ;;
12479           esac
12480         fi
12481         case $host_cpu in
12482           hppa*64*|ia64*)
12483             hardcode_direct_CXX=no
12484             hardcode_shlibpath_var_CXX=no
12485             ;;
12486           *)
12487             hardcode_direct_CXX=yes
12488             hardcode_direct_absolute_CXX=yes
12489             hardcode_minus_L_CXX=yes # Not in the search PATH,
12490                                                  # but as the default
12491                                                  # location of the library.
12492             ;;
12493         esac
12494
12495         case $cc_basename in
12496           CC*)
12497             # FIXME: insert proper C++ library support
12498             ld_shlibs_CXX=no
12499             ;;
12500           aCC*)
12501             case $host_cpu in
12502               hppa*64*)
12503                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12504                 ;;
12505               ia64*)
12506                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12507                 ;;
12508               *)
12509                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12510                 ;;
12511             esac
12512             # Commands to make compiler produce verbose output that lists
12513             # what "hidden" libraries, object files and flags are used when
12514             # linking a shared library.
12515             #
12516             # There doesn't appear to be a way to prevent this compiler from
12517             # explicitly linking system object files so we need to strip them
12518             # from the output so that they don't get included in the library
12519             # dependencies.
12520             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'
12521             ;;
12522           *)
12523             if test "$GXX" = yes; then
12524               if test $with_gnu_ld = no; then
12525                 case $host_cpu in
12526                   hppa*64*)
12527                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12528                     ;;
12529                   ia64*)
12530                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12531                     ;;
12532                   *)
12533                     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'
12534                     ;;
12535                 esac
12536               fi
12537             else
12538               # FIXME: insert proper C++ library support
12539               ld_shlibs_CXX=no
12540             fi
12541             ;;
12542         esac
12543         ;;
12544
12545       interix[3-9]*)
12546         hardcode_direct_CXX=no
12547         hardcode_shlibpath_var_CXX=no
12548         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12549         export_dynamic_flag_spec_CXX='${wl}-E'
12550         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12551         # Instead, shared libraries are loaded at an image base (0x10000000 by
12552         # default) and relocated if they conflict, which is a slow very memory
12553         # consuming and fragmenting process.  To avoid this, we pick a random,
12554         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12555         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12556         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'
12557         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'
12558         ;;
12559       irix5* | irix6*)
12560         case $cc_basename in
12561           CC*)
12562             # SGI C++
12563             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'
12564
12565             # Archives containing C++ object files must be created using
12566             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12567             # necessary to make sure instantiated templates are included
12568             # in the archive.
12569             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12570             ;;
12571           *)
12572             if test "$GXX" = yes; then
12573               if test "$with_gnu_ld" = no; then
12574                 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'
12575               else
12576                 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'
12577               fi
12578             fi
12579             link_all_deplibs_CXX=yes
12580             ;;
12581         esac
12582         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12583         hardcode_libdir_separator_CXX=:
12584         inherit_rpath_CXX=yes
12585         ;;
12586
12587       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12588         case $cc_basename in
12589           KCC*)
12590             # Kuck and Associates, Inc. (KAI) C++ Compiler
12591
12592             # KCC will only create a shared library if the output file
12593             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12594             # to its proper name (with version) after linking.
12595             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'
12596             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'
12597             # Commands to make compiler produce verbose output that lists
12598             # what "hidden" libraries, object files and flags are used when
12599             # linking a shared library.
12600             #
12601             # There doesn't appear to be a way to prevent this compiler from
12602             # explicitly linking system object files so we need to strip them
12603             # from the output so that they don't get included in the library
12604             # dependencies.
12605             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'
12606
12607             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12608             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12609
12610             # Archives containing C++ object files must be created using
12611             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12612             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12613             ;;
12614           icpc* | ecpc* )
12615             # Intel C++
12616             with_gnu_ld=yes
12617             # version 8.0 and above of icpc choke on multiply defined symbols
12618             # if we add $predep_objects and $postdep_objects, however 7.1 and
12619             # earlier do not add the objects themselves.
12620             case `$CC -V 2>&1` in
12621               *"Version 7."*)
12622                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12623                 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'
12624                 ;;
12625               *)  # Version 8.0 or newer
12626                 tmp_idyn=
12627                 case $host_cpu in
12628                   ia64*) tmp_idyn=' -i_dynamic';;
12629                 esac
12630                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12631                 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'
12632                 ;;
12633             esac
12634             archive_cmds_need_lc_CXX=no
12635             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12636             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12637             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12638             ;;
12639           pgCC* | pgcpp*)
12640             # Portland Group C++ compiler
12641             case `$CC -V` in
12642             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12643               prelink_cmds_CXX='tpldir=Template.dir~
12644                 rm -rf $tpldir~
12645                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12646                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12647               old_archive_cmds_CXX='tpldir=Template.dir~
12648                 rm -rf $tpldir~
12649                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12650                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12651                 $RANLIB $oldlib'
12652               archive_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 -o $lib'
12656               archive_expsym_cmds_CXX='tpldir=Template.dir~
12657                 rm -rf $tpldir~
12658                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12659                 $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'
12660               ;;
12661             *) # Version 6 will use weak symbols
12662               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12663               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'
12664               ;;
12665             esac
12666
12667             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12668             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669             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'
12670             ;;
12671           cxx*)
12672             # Compaq C++
12673             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674             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'
12675
12676             runpath_var=LD_RUN_PATH
12677             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12678             hardcode_libdir_separator_CXX=:
12679
12680             # Commands to make compiler produce verbose output that lists
12681             # what "hidden" libraries, object files and flags are used when
12682             # linking a shared library.
12683             #
12684             # There doesn't appear to be a way to prevent this compiler from
12685             # explicitly linking system object files so we need to strip them
12686             # from the output so that they don't get included in the library
12687             # dependencies.
12688             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'
12689             ;;
12690           xl*)
12691             # IBM XL 8.0 on PPC, with GNU ld
12692             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12693             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12694             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12695             if test "x$supports_anon_versioning" = xyes; then
12696               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12697                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12698                 echo "local: *; };" >> $output_objdir/$libname.ver~
12699                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12700             fi
12701             ;;
12702           *)
12703             case `$CC -V 2>&1 | sed 5q` in
12704             *Sun\ C*)
12705               # Sun C++ 5.9
12706               no_undefined_flag_CXX=' -zdefs'
12707               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12708               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'
12709               hardcode_libdir_flag_spec_CXX='-R$libdir'
12710               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'
12711               compiler_needs_object_CXX=yes
12712
12713               # Not sure whether something based on
12714               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12715               # would be better.
12716               output_verbose_link_cmd='echo'
12717
12718               # Archives containing C++ object files must be created using
12719               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12720               # necessary to make sure instantiated templates are included
12721               # in the archive.
12722               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12723               ;;
12724             esac
12725             ;;
12726         esac
12727         ;;
12728
12729       lynxos*)
12730         # FIXME: insert proper C++ library support
12731         ld_shlibs_CXX=no
12732         ;;
12733
12734       m88k*)
12735         # FIXME: insert proper C++ library support
12736         ld_shlibs_CXX=no
12737         ;;
12738
12739       mvs*)
12740         case $cc_basename in
12741           cxx*)
12742             # FIXME: insert proper C++ library support
12743             ld_shlibs_CXX=no
12744             ;;
12745           *)
12746             # FIXME: insert proper C++ library support
12747             ld_shlibs_CXX=no
12748             ;;
12749         esac
12750         ;;
12751
12752       netbsd*)
12753         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12754           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12755           wlarc=
12756           hardcode_libdir_flag_spec_CXX='-R$libdir'
12757           hardcode_direct_CXX=yes
12758           hardcode_shlibpath_var_CXX=no
12759         fi
12760         # Workaround some broken pre-1.5 toolchains
12761         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12762         ;;
12763
12764       *nto* | *qnx*)
12765         ld_shlibs_CXX=yes
12766         ;;
12767
12768       openbsd2*)
12769         # C++ shared libraries are fairly broken
12770         ld_shlibs_CXX=no
12771         ;;
12772
12773       openbsd*)
12774         if test -f /usr/libexec/ld.so; then
12775           hardcode_direct_CXX=yes
12776           hardcode_shlibpath_var_CXX=no
12777           hardcode_direct_absolute_CXX=yes
12778           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12779           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12780           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12781             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12782             export_dynamic_flag_spec_CXX='${wl}-E'
12783             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12784           fi
12785           output_verbose_link_cmd=echo
12786         else
12787           ld_shlibs_CXX=no
12788         fi
12789         ;;
12790
12791       osf3* | osf4* | osf5*)
12792         case $cc_basename in
12793           KCC*)
12794             # Kuck and Associates, Inc. (KAI) C++ Compiler
12795
12796             # KCC will only create a shared library if the output file
12797             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12798             # to its proper name (with version) after linking.
12799             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'
12800
12801             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12802             hardcode_libdir_separator_CXX=:
12803
12804             # Archives containing C++ object files must be created using
12805             # the KAI C++ compiler.
12806             case $host in
12807               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12808               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12809             esac
12810             ;;
12811           RCC*)
12812             # Rational C++ 2.4.1
12813             # FIXME: insert proper C++ library support
12814             ld_shlibs_CXX=no
12815             ;;
12816           cxx*)
12817             case $host in
12818               osf3*)
12819                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12820                 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'
12821                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12822                 ;;
12823               *)
12824                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12825                 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'
12826                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12827                   echo "-hidden">> $lib.exp~
12828                   $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~
12829                   $RM $lib.exp'
12830                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12831                 ;;
12832             esac
12833
12834             hardcode_libdir_separator_CXX=:
12835
12836             # Commands to make compiler produce verbose output that lists
12837             # what "hidden" libraries, object files and flags are used when
12838             # linking a shared library.
12839             #
12840             # There doesn't appear to be a way to prevent this compiler from
12841             # explicitly linking system object files so we need to strip them
12842             # from the output so that they don't get included in the library
12843             # dependencies.
12844             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'
12845             ;;
12846           *)
12847             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12848               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12849               case $host in
12850                 osf3*)
12851                   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'
12852                   ;;
12853                 *)
12854                   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'
12855                   ;;
12856               esac
12857
12858               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12859               hardcode_libdir_separator_CXX=:
12860
12861               # Commands to make compiler produce verbose output that lists
12862               # what "hidden" libraries, object files and flags are used when
12863               # linking a shared library.
12864               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12865
12866             else
12867               # FIXME: insert proper C++ library support
12868               ld_shlibs_CXX=no
12869             fi
12870             ;;
12871         esac
12872         ;;
12873
12874       psos*)
12875         # FIXME: insert proper C++ library support
12876         ld_shlibs_CXX=no
12877         ;;
12878
12879       sunos4*)
12880         case $cc_basename in
12881           CC*)
12882             # Sun C++ 4.x
12883             # FIXME: insert proper C++ library support
12884             ld_shlibs_CXX=no
12885             ;;
12886           lcc*)
12887             # Lucid
12888             # FIXME: insert proper C++ library support
12889             ld_shlibs_CXX=no
12890             ;;
12891           *)
12892             # FIXME: insert proper C++ library support
12893             ld_shlibs_CXX=no
12894             ;;
12895         esac
12896         ;;
12897
12898       solaris*)
12899         case $cc_basename in
12900           CC*)
12901             # Sun C++ 4.2, 5.x and Centerline C++
12902             archive_cmds_need_lc_CXX=yes
12903             no_undefined_flag_CXX=' -zdefs'
12904             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12905             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12906               $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'
12907
12908             hardcode_libdir_flag_spec_CXX='-R$libdir'
12909             hardcode_shlibpath_var_CXX=no
12910             case $host_os in
12911               solaris2.[0-5] | solaris2.[0-5].*) ;;
12912               *)
12913                 # The compiler driver will combine and reorder linker options,
12914                 # but understands `-z linker_flag'.
12915                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12916                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12917                 ;;
12918             esac
12919             link_all_deplibs_CXX=yes
12920
12921             output_verbose_link_cmd='echo'
12922
12923             # Archives containing C++ object files must be created using
12924             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12925             # necessary to make sure instantiated templates are included
12926             # in the archive.
12927             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12928             ;;
12929           gcx*)
12930             # Green Hills C++ Compiler
12931             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12932
12933             # The C++ compiler must be used to create the archive.
12934             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12935             ;;
12936           *)
12937             # GNU C++ compiler with Solaris linker
12938             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12939               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12940               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12941                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12942                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12943                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12944
12945                 # Commands to make compiler produce verbose output that lists
12946                 # what "hidden" libraries, object files and flags are used when
12947                 # linking a shared library.
12948                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12949               else
12950                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12951                 # platform.
12952                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12953                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12954                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12955
12956                 # Commands to make compiler produce verbose output that lists
12957                 # what "hidden" libraries, object files and flags are used when
12958                 # linking a shared library.
12959                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12960               fi
12961
12962               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12963               case $host_os in
12964                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12965                 *)
12966                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12967                   ;;
12968               esac
12969             fi
12970             ;;
12971         esac
12972         ;;
12973
12974     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12975       no_undefined_flag_CXX='${wl}-z,text'
12976       archive_cmds_need_lc_CXX=no
12977       hardcode_shlibpath_var_CXX=no
12978       runpath_var='LD_RUN_PATH'
12979
12980       case $cc_basename in
12981         CC*)
12982           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12983           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12984           ;;
12985         *)
12986           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12987           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12988           ;;
12989       esac
12990       ;;
12991
12992       sysv5* | sco3.2v5* | sco5v6*)
12993         # Note: We can NOT use -z defs as we might desire, because we do not
12994         # link with -lc, and that would cause any symbols used from libc to
12995         # always be unresolved, which means just about no library would
12996         # ever link correctly.  If we're not using GNU ld we use -z text
12997         # though, which does catch some bad symbols but isn't as heavy-handed
12998         # as -z defs.
12999         no_undefined_flag_CXX='${wl}-z,text'
13000         allow_undefined_flag_CXX='${wl}-z,nodefs'
13001         archive_cmds_need_lc_CXX=no
13002         hardcode_shlibpath_var_CXX=no
13003         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13004         hardcode_libdir_separator_CXX=':'
13005         link_all_deplibs_CXX=yes
13006         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13007         runpath_var='LD_RUN_PATH'
13008
13009         case $cc_basename in
13010           CC*)
13011             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13012             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13013             ;;
13014           *)
13015             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13016             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13017             ;;
13018         esac
13019       ;;
13020
13021       tandem*)
13022         case $cc_basename in
13023           NCC*)
13024             # NonStop-UX NCC 3.20
13025             # FIXME: insert proper C++ library support
13026             ld_shlibs_CXX=no
13027             ;;
13028           *)
13029             # FIXME: insert proper C++ library support
13030             ld_shlibs_CXX=no
13031             ;;
13032         esac
13033         ;;
13034
13035       vxworks*)
13036         # FIXME: insert proper C++ library support
13037         ld_shlibs_CXX=no
13038         ;;
13039
13040       *)
13041         # FIXME: insert proper C++ library support
13042         ld_shlibs_CXX=no
13043         ;;
13044     esac
13045
13046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13047 $as_echo "$ld_shlibs_CXX" >&6; }
13048     test "$ld_shlibs_CXX" = no && can_build_shared=no
13049
13050     GCC_CXX="$GXX"
13051     LD_CXX="$LD"
13052
13053     ## CAVEAT EMPTOR:
13054     ## There is no encapsulation within the following macros, do not change
13055     ## the running order or otherwise move them around unless you know exactly
13056     ## what you are doing...
13057     # Dependencies to place before and after the object being linked:
13058 predep_objects_CXX=
13059 postdep_objects_CXX=
13060 predeps_CXX=
13061 postdeps_CXX=
13062 compiler_lib_search_path_CXX=
13063
13064 cat > conftest.$ac_ext <<_LT_EOF
13065 class Foo
13066 {
13067 public:
13068   Foo (void) { a = 0; }
13069 private:
13070   int a;
13071 };
13072 _LT_EOF
13073
13074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13075   (eval $ac_compile) 2>&5
13076   ac_status=$?
13077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078   test $ac_status = 0; }; then
13079   # Parse the compiler output and extract the necessary
13080   # objects, libraries and library flags.
13081
13082   # Sentinel used to keep track of whether or not we are before
13083   # the conftest object file.
13084   pre_test_object_deps_done=no
13085
13086   for p in `eval "$output_verbose_link_cmd"`; do
13087     case $p in
13088
13089     -L* | -R* | -l*)
13090        # Some compilers place space between "-{L,R}" and the path.
13091        # Remove the space.
13092        if test $p = "-L" ||
13093           test $p = "-R"; then
13094          prev=$p
13095          continue
13096        else
13097          prev=
13098        fi
13099
13100        if test "$pre_test_object_deps_done" = no; then
13101          case $p in
13102          -L* | -R*)
13103            # Internal compiler library paths should come after those
13104            # provided the user.  The postdeps already come after the
13105            # user supplied libs so there is no need to process them.
13106            if test -z "$compiler_lib_search_path_CXX"; then
13107              compiler_lib_search_path_CXX="${prev}${p}"
13108            else
13109              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13110            fi
13111            ;;
13112          # The "-l" case would never come before the object being
13113          # linked, so don't bother handling this case.
13114          esac
13115        else
13116          if test -z "$postdeps_CXX"; then
13117            postdeps_CXX="${prev}${p}"
13118          else
13119            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13120          fi
13121        fi
13122        ;;
13123
13124     *.$objext)
13125        # This assumes that the test object file only shows up
13126        # once in the compiler output.
13127        if test "$p" = "conftest.$objext"; then
13128          pre_test_object_deps_done=yes
13129          continue
13130        fi
13131
13132        if test "$pre_test_object_deps_done" = no; then
13133          if test -z "$predep_objects_CXX"; then
13134            predep_objects_CXX="$p"
13135          else
13136            predep_objects_CXX="$predep_objects_CXX $p"
13137          fi
13138        else
13139          if test -z "$postdep_objects_CXX"; then
13140            postdep_objects_CXX="$p"
13141          else
13142            postdep_objects_CXX="$postdep_objects_CXX $p"
13143          fi
13144        fi
13145        ;;
13146
13147     *) ;; # Ignore the rest.
13148
13149     esac
13150   done
13151
13152   # Clean up.
13153   rm -f a.out a.exe
13154 else
13155   echo "libtool.m4: error: problem compiling CXX test program"
13156 fi
13157
13158 $RM -f confest.$objext
13159
13160 # PORTME: override above test on systems where it is broken
13161 case $host_os in
13162 interix[3-9]*)
13163   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13164   # hack all around it, let's just trust "g++" to DTRT.
13165   predep_objects_CXX=
13166   postdep_objects_CXX=
13167   postdeps_CXX=
13168   ;;
13169
13170 linux*)
13171   case `$CC -V 2>&1 | sed 5q` in
13172   *Sun\ C*)
13173     # Sun C++ 5.9
13174
13175     # The more standards-conforming stlport4 library is
13176     # incompatible with the Cstd library. Avoid specifying
13177     # it if it's in CXXFLAGS. Ignore libCrun as
13178     # -library=stlport4 depends on it.
13179     case " $CXX $CXXFLAGS " in
13180     *" -library=stlport4 "*)
13181       solaris_use_stlport4=yes
13182       ;;
13183     esac
13184
13185     if test "$solaris_use_stlport4" != yes; then
13186       postdeps_CXX='-library=Cstd -library=Crun'
13187     fi
13188     ;;
13189   esac
13190   ;;
13191
13192 solaris*)
13193   case $cc_basename in
13194   CC*)
13195     # The more standards-conforming stlport4 library is
13196     # incompatible with the Cstd library. Avoid specifying
13197     # it if it's in CXXFLAGS. Ignore libCrun as
13198     # -library=stlport4 depends on it.
13199     case " $CXX $CXXFLAGS " in
13200     *" -library=stlport4 "*)
13201       solaris_use_stlport4=yes
13202       ;;
13203     esac
13204
13205     # Adding this requires a known-good setup of shared libraries for
13206     # Sun compiler versions before 5.6, else PIC objects from an old
13207     # archive will be linked into the output, leading to subtle bugs.
13208     if test "$solaris_use_stlport4" != yes; then
13209       postdeps_CXX='-library=Cstd -library=Crun'
13210     fi
13211     ;;
13212   esac
13213   ;;
13214 esac
13215
13216
13217 case " $postdeps_CXX " in
13218 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13219 esac
13220  compiler_lib_search_dirs_CXX=
13221 if test -n "${compiler_lib_search_path_CXX}"; then
13222  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13223 fi
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
13252
13253
13254
13255     lt_prog_compiler_wl_CXX=
13256 lt_prog_compiler_pic_CXX=
13257 lt_prog_compiler_static_CXX=
13258
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13260 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13261
13262   # C++ specific cases for pic, static, wl, etc.
13263   if test "$GXX" = yes; then
13264     lt_prog_compiler_wl_CXX='-Wl,'
13265     lt_prog_compiler_static_CXX='-static'
13266
13267     case $host_os in
13268     aix*)
13269       # All AIX code is PIC.
13270       if test "$host_cpu" = ia64; then
13271         # AIX 5 now supports IA64 processor
13272         lt_prog_compiler_static_CXX='-Bstatic'
13273       fi
13274       ;;
13275
13276     amigaos*)
13277       case $host_cpu in
13278       powerpc)
13279             # see comment about AmigaOS4 .so support
13280             lt_prog_compiler_pic_CXX='-fPIC'
13281         ;;
13282       m68k)
13283             # FIXME: we need at least 68020 code to build shared libraries, but
13284             # adding the `-m68020' flag to GCC prevents building anything better,
13285             # like `-m68040'.
13286             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13287         ;;
13288       esac
13289       ;;
13290
13291     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13292       # PIC is the default for these OSes.
13293       ;;
13294     mingw* | cygwin* | os2* | pw32* | cegcc*)
13295       # This hack is so that the source file can tell whether it is being
13296       # built for inclusion in a dll (and should export symbols for example).
13297       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13298       # (--disable-auto-import) libraries
13299       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13300       ;;
13301     darwin* | rhapsody*)
13302       # PIC is the default on this platform
13303       # Common symbols not allowed in MH_DYLIB files
13304       lt_prog_compiler_pic_CXX='-fno-common'
13305       ;;
13306     *djgpp*)
13307       # DJGPP does not support shared libraries at all
13308       lt_prog_compiler_pic_CXX=
13309       ;;
13310     interix[3-9]*)
13311       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13312       # Instead, we relocate shared libraries at runtime.
13313       ;;
13314     sysv4*MP*)
13315       if test -d /usr/nec; then
13316         lt_prog_compiler_pic_CXX=-Kconform_pic
13317       fi
13318       ;;
13319     hpux*)
13320       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13321       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13322       # sets the default TLS model and affects inlining.
13323       case $host_cpu in
13324       hppa*64*)
13325         ;;
13326       *)
13327         lt_prog_compiler_pic_CXX='-fPIC'
13328         ;;
13329       esac
13330       ;;
13331     *qnx* | *nto*)
13332       # QNX uses GNU C++, but need to define -shared option too, otherwise
13333       # it will coredump.
13334       lt_prog_compiler_pic_CXX='-fPIC -shared'
13335       ;;
13336     *)
13337       lt_prog_compiler_pic_CXX='-fPIC'
13338       ;;
13339     esac
13340   else
13341     case $host_os in
13342       aix[4-9]*)
13343         # All AIX code is PIC.
13344         if test "$host_cpu" = ia64; then
13345           # AIX 5 now supports IA64 processor
13346           lt_prog_compiler_static_CXX='-Bstatic'
13347         else
13348           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13349         fi
13350         ;;
13351       chorus*)
13352         case $cc_basename in
13353         cxch68*)
13354           # Green Hills C++ Compiler
13355           # _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"
13356           ;;
13357         esac
13358         ;;
13359       dgux*)
13360         case $cc_basename in
13361           ec++*)
13362             lt_prog_compiler_pic_CXX='-KPIC'
13363             ;;
13364           ghcx*)
13365             # Green Hills C++ Compiler
13366             lt_prog_compiler_pic_CXX='-pic'
13367             ;;
13368           *)
13369             ;;
13370         esac
13371         ;;
13372       freebsd* | dragonfly*)
13373         # FreeBSD uses GNU C++
13374         ;;
13375       hpux9* | hpux10* | hpux11*)
13376         case $cc_basename in
13377           CC*)
13378             lt_prog_compiler_wl_CXX='-Wl,'
13379             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13380             if test "$host_cpu" != ia64; then
13381               lt_prog_compiler_pic_CXX='+Z'
13382             fi
13383             ;;
13384           aCC*)
13385             lt_prog_compiler_wl_CXX='-Wl,'
13386             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13387             case $host_cpu in
13388             hppa*64*|ia64*)
13389               # +Z the default
13390               ;;
13391             *)
13392               lt_prog_compiler_pic_CXX='+Z'
13393               ;;
13394             esac
13395             ;;
13396           *)
13397             ;;
13398         esac
13399         ;;
13400       interix*)
13401         # This is c89, which is MS Visual C++ (no shared libs)
13402         # Anyone wants to do a port?
13403         ;;
13404       irix5* | irix6* | nonstopux*)
13405         case $cc_basename in
13406           CC*)
13407             lt_prog_compiler_wl_CXX='-Wl,'
13408             lt_prog_compiler_static_CXX='-non_shared'
13409             # CC pic flag -KPIC is the default.
13410             ;;
13411           *)
13412             ;;
13413         esac
13414         ;;
13415       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13416         case $cc_basename in
13417           KCC*)
13418             # KAI C++ Compiler
13419             lt_prog_compiler_wl_CXX='--backend -Wl,'
13420             lt_prog_compiler_pic_CXX='-fPIC'
13421             ;;
13422           ecpc* )
13423             # old Intel C++ for x86_64 which still supported -KPIC.
13424             lt_prog_compiler_wl_CXX='-Wl,'
13425             lt_prog_compiler_pic_CXX='-KPIC'
13426             lt_prog_compiler_static_CXX='-static'
13427             ;;
13428           icpc* )
13429             # Intel C++, used to be incompatible with GCC.
13430             # ICC 10 doesn't accept -KPIC any more.
13431             lt_prog_compiler_wl_CXX='-Wl,'
13432             lt_prog_compiler_pic_CXX='-fPIC'
13433             lt_prog_compiler_static_CXX='-static'
13434             ;;
13435           pgCC* | pgcpp*)
13436             # Portland Group C++ compiler
13437             lt_prog_compiler_wl_CXX='-Wl,'
13438             lt_prog_compiler_pic_CXX='-fpic'
13439             lt_prog_compiler_static_CXX='-Bstatic'
13440             ;;
13441           cxx*)
13442             # Compaq C++
13443             # Make sure the PIC flag is empty.  It appears that all Alpha
13444             # Linux and Compaq Tru64 Unix objects are PIC.
13445             lt_prog_compiler_pic_CXX=
13446             lt_prog_compiler_static_CXX='-non_shared'
13447             ;;
13448           xlc* | xlC*)
13449             # IBM XL 8.0 on PPC
13450             lt_prog_compiler_wl_CXX='-Wl,'
13451             lt_prog_compiler_pic_CXX='-qpic'
13452             lt_prog_compiler_static_CXX='-qstaticlink'
13453             ;;
13454           *)
13455             case `$CC -V 2>&1 | sed 5q` in
13456             *Sun\ C*)
13457               # Sun C++ 5.9
13458               lt_prog_compiler_pic_CXX='-KPIC'
13459               lt_prog_compiler_static_CXX='-Bstatic'
13460               lt_prog_compiler_wl_CXX='-Qoption ld '
13461               ;;
13462             esac
13463             ;;
13464         esac
13465         ;;
13466       lynxos*)
13467         ;;
13468       m88k*)
13469         ;;
13470       mvs*)
13471         case $cc_basename in
13472           cxx*)
13473             lt_prog_compiler_pic_CXX='-W c,exportall'
13474             ;;
13475           *)
13476             ;;
13477         esac
13478         ;;
13479       netbsd* | netbsdelf*-gnu)
13480         ;;
13481       *qnx* | *nto*)
13482         # QNX uses GNU C++, but need to define -shared option too, otherwise
13483         # it will coredump.
13484         lt_prog_compiler_pic_CXX='-fPIC -shared'
13485         ;;
13486       osf3* | osf4* | osf5*)
13487         case $cc_basename in
13488           KCC*)
13489             lt_prog_compiler_wl_CXX='--backend -Wl,'
13490             ;;
13491           RCC*)
13492             # Rational C++ 2.4.1
13493             lt_prog_compiler_pic_CXX='-pic'
13494             ;;
13495           cxx*)
13496             # Digital/Compaq C++
13497             lt_prog_compiler_wl_CXX='-Wl,'
13498             # Make sure the PIC flag is empty.  It appears that all Alpha
13499             # Linux and Compaq Tru64 Unix objects are PIC.
13500             lt_prog_compiler_pic_CXX=
13501             lt_prog_compiler_static_CXX='-non_shared'
13502             ;;
13503           *)
13504             ;;
13505         esac
13506         ;;
13507       psos*)
13508         ;;
13509       solaris*)
13510         case $cc_basename in
13511           CC*)
13512             # Sun C++ 4.2, 5.x and Centerline C++
13513             lt_prog_compiler_pic_CXX='-KPIC'
13514             lt_prog_compiler_static_CXX='-Bstatic'
13515             lt_prog_compiler_wl_CXX='-Qoption ld '
13516             ;;
13517           gcx*)
13518             # Green Hills C++ Compiler
13519             lt_prog_compiler_pic_CXX='-PIC'
13520             ;;
13521           *)
13522             ;;
13523         esac
13524         ;;
13525       sunos4*)
13526         case $cc_basename in
13527           CC*)
13528             # Sun C++ 4.x
13529             lt_prog_compiler_pic_CXX='-pic'
13530             lt_prog_compiler_static_CXX='-Bstatic'
13531             ;;
13532           lcc*)
13533             # Lucid
13534             lt_prog_compiler_pic_CXX='-pic'
13535             ;;
13536           *)
13537             ;;
13538         esac
13539         ;;
13540       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13541         case $cc_basename in
13542           CC*)
13543             lt_prog_compiler_wl_CXX='-Wl,'
13544             lt_prog_compiler_pic_CXX='-KPIC'
13545             lt_prog_compiler_static_CXX='-Bstatic'
13546             ;;
13547         esac
13548         ;;
13549       tandem*)
13550         case $cc_basename in
13551           NCC*)
13552             # NonStop-UX NCC 3.20
13553             lt_prog_compiler_pic_CXX='-KPIC'
13554             ;;
13555           *)
13556             ;;
13557         esac
13558         ;;
13559       vxworks*)
13560         ;;
13561       *)
13562         lt_prog_compiler_can_build_shared_CXX=no
13563         ;;
13564     esac
13565   fi
13566
13567 case $host_os in
13568   # For platforms which do not support PIC, -DPIC is meaningless:
13569   *djgpp*)
13570     lt_prog_compiler_pic_CXX=
13571     ;;
13572   *)
13573     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13574     ;;
13575 esac
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13577 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13578
13579
13580
13581 #
13582 # Check to make sure the PIC flag actually works.
13583 #
13584 if test -n "$lt_prog_compiler_pic_CXX"; then
13585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13586 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13587 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13588   $as_echo_n "(cached) " >&6
13589 else
13590   lt_cv_prog_compiler_pic_works_CXX=no
13591    ac_outfile=conftest.$ac_objext
13592    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13593    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13594    # Insert the option either (1) after the last *FLAGS variable, or
13595    # (2) before a word containing "conftest.", or (3) at the end.
13596    # Note that $ac_compile itself does not contain backslashes and begins
13597    # with a dollar sign (not a hyphen), so the echo should work correctly.
13598    # The option is referenced via a variable to avoid confusing sed.
13599    lt_compile=`echo "$ac_compile" | $SED \
13600    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13601    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13602    -e 's:$: $lt_compiler_flag:'`
13603    (eval echo "\"\$as_me:13603: $lt_compile\"" >&5)
13604    (eval "$lt_compile" 2>conftest.err)
13605    ac_status=$?
13606    cat conftest.err >&5
13607    echo "$as_me:13607: \$? = $ac_status" >&5
13608    if (exit $ac_status) && test -s "$ac_outfile"; then
13609      # The compiler can only warn and ignore the option if not recognized
13610      # So say no if there are warnings other than the usual output.
13611      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13612      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13613      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13614        lt_cv_prog_compiler_pic_works_CXX=yes
13615      fi
13616    fi
13617    $RM conftest*
13618
13619 fi
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13621 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13622
13623 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13624     case $lt_prog_compiler_pic_CXX in
13625      "" | " "*) ;;
13626      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13627      esac
13628 else
13629     lt_prog_compiler_pic_CXX=
13630      lt_prog_compiler_can_build_shared_CXX=no
13631 fi
13632
13633 fi
13634
13635
13636
13637 #
13638 # Check to make sure the static flag actually works.
13639 #
13640 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13642 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13643 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13644   $as_echo_n "(cached) " >&6
13645 else
13646   lt_cv_prog_compiler_static_works_CXX=no
13647    save_LDFLAGS="$LDFLAGS"
13648    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13649    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13650    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13651      # The linker can only warn and ignore the option if not recognized
13652      # So say no if there are warnings
13653      if test -s conftest.err; then
13654        # Append any errors to the config.log.
13655        cat conftest.err 1>&5
13656        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13657        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13658        if diff conftest.exp conftest.er2 >/dev/null; then
13659          lt_cv_prog_compiler_static_works_CXX=yes
13660        fi
13661      else
13662        lt_cv_prog_compiler_static_works_CXX=yes
13663      fi
13664    fi
13665    $RM -r conftest*
13666    LDFLAGS="$save_LDFLAGS"
13667
13668 fi
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13670 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13671
13672 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13673     :
13674 else
13675     lt_prog_compiler_static_CXX=
13676 fi
13677
13678
13679
13680
13681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13683 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13684   $as_echo_n "(cached) " >&6
13685 else
13686   lt_cv_prog_compiler_c_o_CXX=no
13687    $RM -r conftest 2>/dev/null
13688    mkdir conftest
13689    cd conftest
13690    mkdir out
13691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13692
13693    lt_compiler_flag="-o out/conftest2.$ac_objext"
13694    # Insert the option either (1) after the last *FLAGS variable, or
13695    # (2) before a word containing "conftest.", or (3) at the end.
13696    # Note that $ac_compile itself does not contain backslashes and begins
13697    # with a dollar sign (not a hyphen), so the echo should work correctly.
13698    lt_compile=`echo "$ac_compile" | $SED \
13699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13701    -e 's:$: $lt_compiler_flag:'`
13702    (eval echo "\"\$as_me:13702: $lt_compile\"" >&5)
13703    (eval "$lt_compile" 2>out/conftest.err)
13704    ac_status=$?
13705    cat out/conftest.err >&5
13706    echo "$as_me:13706: \$? = $ac_status" >&5
13707    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13708    then
13709      # The compiler can only warn and ignore the option if not recognized
13710      # So say no if there are warnings
13711      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13712      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13713      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13714        lt_cv_prog_compiler_c_o_CXX=yes
13715      fi
13716    fi
13717    chmod u+w . 2>&5
13718    $RM conftest*
13719    # SGI C++ compiler will create directory out/ii_files/ for
13720    # template instantiation
13721    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13722    $RM out/* && rmdir out
13723    cd ..
13724    $RM -r conftest
13725    $RM conftest*
13726
13727 fi
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13729 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13730
13731
13732
13733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13735 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13736   $as_echo_n "(cached) " >&6
13737 else
13738   lt_cv_prog_compiler_c_o_CXX=no
13739    $RM -r conftest 2>/dev/null
13740    mkdir conftest
13741    cd conftest
13742    mkdir out
13743    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13744
13745    lt_compiler_flag="-o out/conftest2.$ac_objext"
13746    # Insert the option either (1) after the last *FLAGS variable, or
13747    # (2) before a word containing "conftest.", or (3) at the end.
13748    # Note that $ac_compile itself does not contain backslashes and begins
13749    # with a dollar sign (not a hyphen), so the echo should work correctly.
13750    lt_compile=`echo "$ac_compile" | $SED \
13751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13753    -e 's:$: $lt_compiler_flag:'`
13754    (eval echo "\"\$as_me:13754: $lt_compile\"" >&5)
13755    (eval "$lt_compile" 2>out/conftest.err)
13756    ac_status=$?
13757    cat out/conftest.err >&5
13758    echo "$as_me:13758: \$? = $ac_status" >&5
13759    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13760    then
13761      # The compiler can only warn and ignore the option if not recognized
13762      # So say no if there are warnings
13763      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13764      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13765      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13766        lt_cv_prog_compiler_c_o_CXX=yes
13767      fi
13768    fi
13769    chmod u+w . 2>&5
13770    $RM conftest*
13771    # SGI C++ compiler will create directory out/ii_files/ for
13772    # template instantiation
13773    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13774    $RM out/* && rmdir out
13775    cd ..
13776    $RM -r conftest
13777    $RM conftest*
13778
13779 fi
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13781 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13782
13783
13784
13785
13786 hard_links="nottested"
13787 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13788   # do not overwrite the value of need_locks provided by the user
13789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13790 $as_echo_n "checking if we can lock with hard links... " >&6; }
13791   hard_links=yes
13792   $RM conftest*
13793   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13794   touch conftest.a
13795   ln conftest.a conftest.b 2>&5 || hard_links=no
13796   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13798 $as_echo "$hard_links" >&6; }
13799   if test "$hard_links" = no; then
13800     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13801 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13802     need_locks=warn
13803   fi
13804 else
13805   need_locks=no
13806 fi
13807
13808
13809
13810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13811 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13812
13813   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13814   case $host_os in
13815   aix[4-9]*)
13816     # If we're using GNU nm, then we don't want the "-C" option.
13817     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13818     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13819       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'
13820     else
13821       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'
13822     fi
13823     ;;
13824   pw32*)
13825     export_symbols_cmds_CXX="$ltdll_cmds"
13826   ;;
13827   cygwin* | mingw* | cegcc*)
13828     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'
13829   ;;
13830   linux* | k*bsd*-gnu)
13831     link_all_deplibs_CXX=no
13832   ;;
13833   *)
13834     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13835   ;;
13836   esac
13837   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13840 $as_echo "$ld_shlibs_CXX" >&6; }
13841 test "$ld_shlibs_CXX" = no && can_build_shared=no
13842
13843 with_gnu_ld_CXX=$with_gnu_ld
13844
13845
13846
13847
13848
13849
13850 #
13851 # Do we need to explicitly link libc?
13852 #
13853 case "x$archive_cmds_need_lc_CXX" in
13854 x|xyes)
13855   # Assume -lc should be added
13856   archive_cmds_need_lc_CXX=yes
13857
13858   if test "$enable_shared" = yes && test "$GCC" = yes; then
13859     case $archive_cmds_CXX in
13860     *'~'*)
13861       # FIXME: we may have to deal with multi-command sequences.
13862       ;;
13863     '$CC '*)
13864       # Test whether the compiler implicitly links with -lc since on some
13865       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13866       # to ld, don't add -lc before -lgcc.
13867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13869       $RM conftest*
13870       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13871
13872       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13873   (eval $ac_compile) 2>&5
13874   ac_status=$?
13875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13876   test $ac_status = 0; } 2>conftest.err; then
13877         soname=conftest
13878         lib=conftest
13879         libobjs=conftest.$ac_objext
13880         deplibs=
13881         wl=$lt_prog_compiler_wl_CXX
13882         pic_flag=$lt_prog_compiler_pic_CXX
13883         compiler_flags=-v
13884         linker_flags=-v
13885         verstring=
13886         output_objdir=.
13887         libname=conftest
13888         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13889         allow_undefined_flag_CXX=
13890         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13891   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13892   ac_status=$?
13893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894   test $ac_status = 0; }
13895         then
13896           archive_cmds_need_lc_CXX=no
13897         else
13898           archive_cmds_need_lc_CXX=yes
13899         fi
13900         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13901       else
13902         cat conftest.err 1>&5
13903       fi
13904       $RM conftest*
13905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13906 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13907       ;;
13908     esac
13909   fi
13910   ;;
13911 esac
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
13973
13974
13975
13976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13977 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13978
13979 library_names_spec=
13980 libname_spec='lib$name'
13981 soname_spec=
13982 shrext_cmds=".so"
13983 postinstall_cmds=
13984 postuninstall_cmds=
13985 finish_cmds=
13986 finish_eval=
13987 shlibpath_var=
13988 shlibpath_overrides_runpath=unknown
13989 version_type=none
13990 dynamic_linker="$host_os ld.so"
13991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13992 need_lib_prefix=unknown
13993 hardcode_into_libs=no
13994
13995 # when you set need_version to no, make sure it does not cause -set_version
13996 # flags to be left without arguments
13997 need_version=unknown
13998
13999 case $host_os in
14000 aix3*)
14001   version_type=linux
14002   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14003   shlibpath_var=LIBPATH
14004
14005   # AIX 3 has no versioning support, so we append a major version to the name.
14006   soname_spec='${libname}${release}${shared_ext}$major'
14007   ;;
14008
14009 aix[4-9]*)
14010   version_type=linux
14011   need_lib_prefix=no
14012   need_version=no
14013   hardcode_into_libs=yes
14014   if test "$host_cpu" = ia64; then
14015     # AIX 5 supports IA64
14016     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14017     shlibpath_var=LD_LIBRARY_PATH
14018   else
14019     # With GCC up to 2.95.x, collect2 would create an import file
14020     # for dependence libraries.  The import file would start with
14021     # the line `#! .'.  This would cause the generated library to
14022     # depend on `.', always an invalid library.  This was fixed in
14023     # development snapshots of GCC prior to 3.0.
14024     case $host_os in
14025       aix4 | aix4.[01] | aix4.[01].*)
14026       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14027            echo ' yes '
14028            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14029         :
14030       else
14031         can_build_shared=no
14032       fi
14033       ;;
14034     esac
14035     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14036     # soname into executable. Probably we can add versioning support to
14037     # collect2, so additional links can be useful in future.
14038     if test "$aix_use_runtimelinking" = yes; then
14039       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14040       # instead of lib<name>.a to let people know that these are not
14041       # typical AIX shared libraries.
14042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14043     else
14044       # We preserve .a as extension for shared libraries through AIX4.2
14045       # and later when we are not doing run time linking.
14046       library_names_spec='${libname}${release}.a $libname.a'
14047       soname_spec='${libname}${release}${shared_ext}$major'
14048     fi
14049     shlibpath_var=LIBPATH
14050   fi
14051   ;;
14052
14053 amigaos*)
14054   case $host_cpu in
14055   powerpc)
14056     # Since July 2007 AmigaOS4 officially supports .so libraries.
14057     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059     ;;
14060   m68k)
14061     library_names_spec='$libname.ixlibrary $libname.a'
14062     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14063     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'
14064     ;;
14065   esac
14066   ;;
14067
14068 beos*)
14069   library_names_spec='${libname}${shared_ext}'
14070   dynamic_linker="$host_os ld.so"
14071   shlibpath_var=LIBRARY_PATH
14072   ;;
14073
14074 bsdi[45]*)
14075   version_type=linux
14076   need_version=no
14077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078   soname_spec='${libname}${release}${shared_ext}$major'
14079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14080   shlibpath_var=LD_LIBRARY_PATH
14081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14083   # the default ld.so.conf also contains /usr/contrib/lib and
14084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14085   # libtool to hard-code these into programs
14086   ;;
14087
14088 cygwin* | mingw* | pw32* | cegcc*)
14089   version_type=windows
14090   shrext_cmds=".dll"
14091   need_version=no
14092   need_lib_prefix=no
14093
14094   case $GCC,$host_os in
14095   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14096     library_names_spec='$libname.dll.a'
14097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14098     postinstall_cmds='base_file=`basename \${file}`~
14099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14100       dldir=$destdir/`dirname \$dlpath`~
14101       test -d \$dldir || mkdir -p \$dldir~
14102       $install_prog $dir/$dlname \$dldir/$dlname~
14103       chmod a+x \$dldir/$dlname~
14104       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14105         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14106       fi'
14107     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14108       dlpath=$dir/\$dldll~
14109        $RM \$dlpath'
14110     shlibpath_overrides_runpath=yes
14111
14112     case $host_os in
14113     cygwin*)
14114       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14115       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14116       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14117       ;;
14118     mingw* | cegcc*)
14119       # MinGW DLLs use traditional 'lib' prefix
14120       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14121       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14122       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14123         # It is most probably a Windows format PATH printed by
14124         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14125         # path with ; separators, and with drive letters. We can handle the
14126         # drive letters (cygwin fileutils understands them), so leave them,
14127         # especially as we might pass files found there to a mingw objdump,
14128         # which wouldn't understand a cygwinified path. Ahh.
14129         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14130       else
14131         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14132       fi
14133       ;;
14134     pw32*)
14135       # pw32 DLLs use 'pw' prefix rather than 'lib'
14136       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14137       ;;
14138     esac
14139     ;;
14140
14141   *)
14142     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14143     ;;
14144   esac
14145   dynamic_linker='Win32 ld.exe'
14146   # FIXME: first we should search . and the directory the executable is in
14147   shlibpath_var=PATH
14148   ;;
14149
14150 darwin* | rhapsody*)
14151   dynamic_linker="$host_os dyld"
14152   version_type=darwin
14153   need_lib_prefix=no
14154   need_version=no
14155   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14156   soname_spec='${libname}${release}${major}$shared_ext'
14157   shlibpath_overrides_runpath=yes
14158   shlibpath_var=DYLD_LIBRARY_PATH
14159   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14160
14161   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14162   ;;
14163
14164 dgux*)
14165   version_type=linux
14166   need_lib_prefix=no
14167   need_version=no
14168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14169   soname_spec='${libname}${release}${shared_ext}$major'
14170   shlibpath_var=LD_LIBRARY_PATH
14171   ;;
14172
14173 freebsd1*)
14174   dynamic_linker=no
14175   ;;
14176
14177 freebsd* | dragonfly*)
14178   # DragonFly does not have aout.  When/if they implement a new
14179   # versioning mechanism, adjust this.
14180   if test -x /usr/bin/objformat; then
14181     objformat=`/usr/bin/objformat`
14182   else
14183     case $host_os in
14184     freebsd[123]*) objformat=aout ;;
14185     *) objformat=elf ;;
14186     esac
14187   fi
14188   version_type=freebsd-$objformat
14189   case $version_type in
14190     freebsd-elf*)
14191       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14192       need_version=no
14193       need_lib_prefix=no
14194       ;;
14195     freebsd-*)
14196       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14197       need_version=yes
14198       ;;
14199   esac
14200   shlibpath_var=LD_LIBRARY_PATH
14201   case $host_os in
14202   freebsd2*)
14203     shlibpath_overrides_runpath=yes
14204     ;;
14205   freebsd3.[01]* | freebsdelf3.[01]*)
14206     shlibpath_overrides_runpath=yes
14207     hardcode_into_libs=yes
14208     ;;
14209   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14210   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14211     shlibpath_overrides_runpath=no
14212     hardcode_into_libs=yes
14213     ;;
14214   *) # from 4.6 on, and DragonFly
14215     shlibpath_overrides_runpath=yes
14216     hardcode_into_libs=yes
14217     ;;
14218   esac
14219   ;;
14220
14221 gnu*)
14222   version_type=linux
14223   need_lib_prefix=no
14224   need_version=no
14225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14226   soname_spec='${libname}${release}${shared_ext}$major'
14227   shlibpath_var=LD_LIBRARY_PATH
14228   hardcode_into_libs=yes
14229   ;;
14230
14231 hpux9* | hpux10* | hpux11*)
14232   # Give a soname corresponding to the major version so that dld.sl refuses to
14233   # link against other versions.
14234   version_type=sunos
14235   need_lib_prefix=no
14236   need_version=no
14237   case $host_cpu in
14238   ia64*)
14239     shrext_cmds='.so'
14240     hardcode_into_libs=yes
14241     dynamic_linker="$host_os dld.so"
14242     shlibpath_var=LD_LIBRARY_PATH
14243     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245     soname_spec='${libname}${release}${shared_ext}$major'
14246     if test "X$HPUX_IA64_MODE" = X32; then
14247       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14248     else
14249       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14250     fi
14251     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14252     ;;
14253   hppa*64*)
14254     shrext_cmds='.sl'
14255     hardcode_into_libs=yes
14256     dynamic_linker="$host_os dld.sl"
14257     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14260     soname_spec='${libname}${release}${shared_ext}$major'
14261     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14262     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14263     ;;
14264   *)
14265     shrext_cmds='.sl'
14266     dynamic_linker="$host_os dld.sl"
14267     shlibpath_var=SHLIB_PATH
14268     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14270     soname_spec='${libname}${release}${shared_ext}$major'
14271     ;;
14272   esac
14273   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14274   postinstall_cmds='chmod 555 $lib'
14275   ;;
14276
14277 interix[3-9]*)
14278   version_type=linux
14279   need_lib_prefix=no
14280   need_version=no
14281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14282   soname_spec='${libname}${release}${shared_ext}$major'
14283   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14284   shlibpath_var=LD_LIBRARY_PATH
14285   shlibpath_overrides_runpath=no
14286   hardcode_into_libs=yes
14287   ;;
14288
14289 irix5* | irix6* | nonstopux*)
14290   case $host_os in
14291     nonstopux*) version_type=nonstopux ;;
14292     *)
14293         if test "$lt_cv_prog_gnu_ld" = yes; then
14294                 version_type=linux
14295         else
14296                 version_type=irix
14297         fi ;;
14298   esac
14299   need_lib_prefix=no
14300   need_version=no
14301   soname_spec='${libname}${release}${shared_ext}$major'
14302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14303   case $host_os in
14304   irix5* | nonstopux*)
14305     libsuff= shlibsuff=
14306     ;;
14307   *)
14308     case $LD in # libtool.m4 will add one of these switches to LD
14309     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14310       libsuff= shlibsuff= libmagic=32-bit;;
14311     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14312       libsuff=32 shlibsuff=N32 libmagic=N32;;
14313     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14314       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14315     *) libsuff= shlibsuff= libmagic=never-match;;
14316     esac
14317     ;;
14318   esac
14319   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14320   shlibpath_overrides_runpath=no
14321   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14322   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14323   hardcode_into_libs=yes
14324   ;;
14325
14326 # No shared lib support for Linux oldld, aout, or coff.
14327 linux*oldld* | linux*aout* | linux*coff*)
14328   dynamic_linker=no
14329   ;;
14330
14331 # This must be Linux ELF.
14332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14333   version_type=linux
14334   need_lib_prefix=no
14335   need_version=no
14336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337   soname_spec='${libname}${release}${shared_ext}$major'
14338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14339   shlibpath_var=LD_LIBRARY_PATH
14340   shlibpath_overrides_runpath=no
14341   # Some binutils ld are patched to set DT_RUNPATH
14342   save_LDFLAGS=$LDFLAGS
14343   save_libdir=$libdir
14344   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14345        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h.  */
14348
14349 int
14350 main ()
14351 {
14352
14353   ;
14354   return 0;
14355 }
14356 _ACEOF
14357 if ac_fn_cxx_try_link "$LINENO"; then :
14358   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14359   shlibpath_overrides_runpath=yes
14360 fi
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext \
14363     conftest$ac_exeext conftest.$ac_ext
14364   LDFLAGS=$save_LDFLAGS
14365   libdir=$save_libdir
14366
14367   # This implies no fast_install, which is unacceptable.
14368   # Some rework will be needed to allow for fast_install
14369   # before this can be enabled.
14370   hardcode_into_libs=yes
14371
14372   # Append ld.so.conf contents to the search path
14373   if test -f /etc/ld.so.conf; then
14374     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' ' '`
14375     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14376   fi
14377
14378   # We used to test for /lib/ld.so.1 and disable shared libraries on
14379   # powerpc, because MkLinux only supported shared libraries with the
14380   # GNU dynamic linker.  Since this was broken with cross compilers,
14381   # most powerpc-linux boxes support dynamic linking these days and
14382   # people can always --disable-shared, the test was removed, and we
14383   # assume the GNU/Linux dynamic linker is in use.
14384   dynamic_linker='GNU/Linux ld.so'
14385   ;;
14386
14387 netbsdelf*-gnu)
14388   version_type=linux
14389   need_lib_prefix=no
14390   need_version=no
14391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14392   soname_spec='${libname}${release}${shared_ext}$major'
14393   shlibpath_var=LD_LIBRARY_PATH
14394   shlibpath_overrides_runpath=no
14395   hardcode_into_libs=yes
14396   dynamic_linker='NetBSD ld.elf_so'
14397   ;;
14398
14399 netbsd*)
14400   version_type=sunos
14401   need_lib_prefix=no
14402   need_version=no
14403   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14405     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14406     dynamic_linker='NetBSD (a.out) ld.so'
14407   else
14408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14409     soname_spec='${libname}${release}${shared_ext}$major'
14410     dynamic_linker='NetBSD ld.elf_so'
14411   fi
14412   shlibpath_var=LD_LIBRARY_PATH
14413   shlibpath_overrides_runpath=yes
14414   hardcode_into_libs=yes
14415   ;;
14416
14417 newsos6)
14418   version_type=linux
14419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420   shlibpath_var=LD_LIBRARY_PATH
14421   shlibpath_overrides_runpath=yes
14422   ;;
14423
14424 *nto* | *qnx*)
14425   version_type=qnx
14426   need_lib_prefix=no
14427   need_version=no
14428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429   soname_spec='${libname}${release}${shared_ext}$major'
14430   shlibpath_var=LD_LIBRARY_PATH
14431   shlibpath_overrides_runpath=no
14432   hardcode_into_libs=yes
14433   dynamic_linker='ldqnx.so'
14434   ;;
14435
14436 openbsd*)
14437   version_type=sunos
14438   sys_lib_dlsearch_path_spec="/usr/lib"
14439   need_lib_prefix=no
14440   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14441   case $host_os in
14442     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14443     *)                          need_version=no  ;;
14444   esac
14445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14446   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14447   shlibpath_var=LD_LIBRARY_PATH
14448   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14449     case $host_os in
14450       openbsd2.[89] | openbsd2.[89].*)
14451         shlibpath_overrides_runpath=no
14452         ;;
14453       *)
14454         shlibpath_overrides_runpath=yes
14455         ;;
14456       esac
14457   else
14458     shlibpath_overrides_runpath=yes
14459   fi
14460   ;;
14461
14462 os2*)
14463   libname_spec='$name'
14464   shrext_cmds=".dll"
14465   need_lib_prefix=no
14466   library_names_spec='$libname${shared_ext} $libname.a'
14467   dynamic_linker='OS/2 ld.exe'
14468   shlibpath_var=LIBPATH
14469   ;;
14470
14471 osf3* | osf4* | osf5*)
14472   version_type=osf
14473   need_lib_prefix=no
14474   need_version=no
14475   soname_spec='${libname}${release}${shared_ext}$major'
14476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477   shlibpath_var=LD_LIBRARY_PATH
14478   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14479   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14480   ;;
14481
14482 rdos*)
14483   dynamic_linker=no
14484   ;;
14485
14486 solaris*)
14487   version_type=linux
14488   need_lib_prefix=no
14489   need_version=no
14490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491   soname_spec='${libname}${release}${shared_ext}$major'
14492   shlibpath_var=LD_LIBRARY_PATH
14493   shlibpath_overrides_runpath=yes
14494   hardcode_into_libs=yes
14495   # ldd complains unless libraries are executable
14496   postinstall_cmds='chmod +x $lib'
14497   ;;
14498
14499 sunos4*)
14500   version_type=sunos
14501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14502   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14503   shlibpath_var=LD_LIBRARY_PATH
14504   shlibpath_overrides_runpath=yes
14505   if test "$with_gnu_ld" = yes; then
14506     need_lib_prefix=no
14507   fi
14508   need_version=yes
14509   ;;
14510
14511 sysv4 | sysv4.3*)
14512   version_type=linux
14513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514   soname_spec='${libname}${release}${shared_ext}$major'
14515   shlibpath_var=LD_LIBRARY_PATH
14516   case $host_vendor in
14517     sni)
14518       shlibpath_overrides_runpath=no
14519       need_lib_prefix=no
14520       runpath_var=LD_RUN_PATH
14521       ;;
14522     siemens)
14523       need_lib_prefix=no
14524       ;;
14525     motorola)
14526       need_lib_prefix=no
14527       need_version=no
14528       shlibpath_overrides_runpath=no
14529       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14530       ;;
14531   esac
14532   ;;
14533
14534 sysv4*MP*)
14535   if test -d /usr/nec ;then
14536     version_type=linux
14537     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14538     soname_spec='$libname${shared_ext}.$major'
14539     shlibpath_var=LD_LIBRARY_PATH
14540   fi
14541   ;;
14542
14543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14544   version_type=freebsd-elf
14545   need_lib_prefix=no
14546   need_version=no
14547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14548   soname_spec='${libname}${release}${shared_ext}$major'
14549   shlibpath_var=LD_LIBRARY_PATH
14550   shlibpath_overrides_runpath=yes
14551   hardcode_into_libs=yes
14552   if test "$with_gnu_ld" = yes; then
14553     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14554   else
14555     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14556     case $host_os in
14557       sco3.2v5*)
14558         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14559         ;;
14560     esac
14561   fi
14562   sys_lib_dlsearch_path_spec='/usr/lib'
14563   ;;
14564
14565 tpf*)
14566   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14567   version_type=linux
14568   need_lib_prefix=no
14569   need_version=no
14570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571   shlibpath_var=LD_LIBRARY_PATH
14572   shlibpath_overrides_runpath=no
14573   hardcode_into_libs=yes
14574   ;;
14575
14576 uts4*)
14577   version_type=linux
14578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579   soname_spec='${libname}${release}${shared_ext}$major'
14580   shlibpath_var=LD_LIBRARY_PATH
14581   ;;
14582
14583 *)
14584   dynamic_linker=no
14585   ;;
14586 esac
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14588 $as_echo "$dynamic_linker" >&6; }
14589 test "$dynamic_linker" = no && can_build_shared=no
14590
14591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14592 if test "$GCC" = yes; then
14593   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14594 fi
14595
14596 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14597   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14598 fi
14599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14600   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14601 fi
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14639 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14640 hardcode_action_CXX=
14641 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14642    test -n "$runpath_var_CXX" ||
14643    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14644
14645   # We can hardcode non-existent directories.
14646   if test "$hardcode_direct_CXX" != no &&
14647      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14648      # have to relink, otherwise we might link with an installed library
14649      # when we should be linking with a yet-to-be-installed one
14650      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14651      test "$hardcode_minus_L_CXX" != no; then
14652     # Linking always hardcodes the temporary library directory.
14653     hardcode_action_CXX=relink
14654   else
14655     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14656     hardcode_action_CXX=immediate
14657   fi
14658 else
14659   # We cannot hardcode anything, or else we can only hardcode existing
14660   # directories.
14661   hardcode_action_CXX=unsupported
14662 fi
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14664 $as_echo "$hardcode_action_CXX" >&6; }
14665
14666 if test "$hardcode_action_CXX" = relink ||
14667    test "$inherit_rpath_CXX" = yes; then
14668   # Fast installation is not supported
14669   enable_fast_install=no
14670 elif test "$shlibpath_overrides_runpath" = yes ||
14671      test "$enable_shared" = no; then
14672   # Fast installation is not necessary
14673   enable_fast_install=needless
14674 fi
14675
14676
14677
14678
14679
14680
14681
14682   fi # test -n "$compiler"
14683
14684   CC=$lt_save_CC
14685   LDCXX=$LD
14686   LD=$lt_save_LD
14687   GCC=$lt_save_GCC
14688   with_gnu_ld=$lt_save_with_gnu_ld
14689   lt_cv_path_LDCXX=$lt_cv_path_LD
14690   lt_cv_path_LD=$lt_save_path_LD
14691   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14692   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14693 fi # test "$_lt_caught_CXX_error" != yes
14694
14695 ac_ext=cpp
14696 ac_cpp='$CXXCPP $CPPFLAGS'
14697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713         ac_config_commands="$ac_config_commands libtool"
14714
14715
14716
14717
14718 # Only expand once:
14719
14720
14721
14722
14723 # Check whether some low-level functions/files are available
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14726 $as_echo_n "checking for ANSI C header files... " >&6; }
14727 if test "${ac_cv_header_stdc+set}" = set; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h.  */
14732 #include <stdlib.h>
14733 #include <stdarg.h>
14734 #include <string.h>
14735 #include <float.h>
14736
14737 int
14738 main ()
14739 {
14740
14741   ;
14742   return 0;
14743 }
14744 _ACEOF
14745 if ac_fn_cxx_try_compile "$LINENO"; then :
14746   ac_cv_header_stdc=yes
14747 else
14748   ac_cv_header_stdc=no
14749 fi
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751
14752 if test $ac_cv_header_stdc = yes; then
14753   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h.  */
14756 #include <string.h>
14757
14758 _ACEOF
14759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14760   $EGREP "memchr" >/dev/null 2>&1; then :
14761
14762 else
14763   ac_cv_header_stdc=no
14764 fi
14765 rm -f conftest*
14766
14767 fi
14768
14769 if test $ac_cv_header_stdc = yes; then
14770   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h.  */
14773 #include <stdlib.h>
14774
14775 _ACEOF
14776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14777   $EGREP "free" >/dev/null 2>&1; then :
14778
14779 else
14780   ac_cv_header_stdc=no
14781 fi
14782 rm -f conftest*
14783
14784 fi
14785
14786 if test $ac_cv_header_stdc = yes; then
14787   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14788   if test "$cross_compiling" = yes; then :
14789   :
14790 else
14791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h.  */
14793 #include <ctype.h>
14794 #include <stdlib.h>
14795 #if ((' ' & 0x0FF) == 0x020)
14796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14798 #else
14799 # define ISLOWER(c) \
14800                    (('a' <= (c) && (c) <= 'i') \
14801                      || ('j' <= (c) && (c) <= 'r') \
14802                      || ('s' <= (c) && (c) <= 'z'))
14803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14804 #endif
14805
14806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14807 int
14808 main ()
14809 {
14810   int i;
14811   for (i = 0; i < 256; i++)
14812     if (XOR (islower (i), ISLOWER (i))
14813         || toupper (i) != TOUPPER (i))
14814       return 2;
14815   return 0;
14816 }
14817 _ACEOF
14818 if ac_fn_cxx_try_run "$LINENO"; then :
14819
14820 else
14821   ac_cv_header_stdc=no
14822 fi
14823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14824   conftest.$ac_objext conftest.beam conftest.$ac_ext
14825 fi
14826
14827 fi
14828 fi
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14830 $as_echo "$ac_cv_header_stdc" >&6; }
14831 if test $ac_cv_header_stdc = yes; then
14832
14833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14834
14835 fi
14836
14837
14838 # These are tested for by AC_HEADER_STDC, but I check again to set the var
14839 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14840 if test "x$ac_cv_header_stdint_h" = x""yes; then :
14841   ac_cv_have_stdint_h=1
14842 else
14843   ac_cv_have_stdint_h=0
14844 fi
14845
14846
14847 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14848 if test "x$ac_cv_header_sys_types_h" = x""yes; then :
14849   ac_cv_have_systypes_h=1
14850 else
14851   ac_cv_have_systypes_h=0
14852 fi
14853
14854
14855 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14856 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
14857   ac_cv_have_inttypes_h=1
14858 else
14859   ac_cv_have_inttypes_h=0
14860 fi
14861
14862
14863 for ac_header in unistd.h
14864 do :
14865   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14866 if test "x$ac_cv_header_unistd_h" = x""yes; then :
14867   cat >>confdefs.h <<_ACEOF
14868 #define HAVE_UNISTD_H 1
14869 _ACEOF
14870  ac_cv_have_unistd_h=1
14871 else
14872   ac_cv_have_unistd_h=0
14873 fi
14874
14875 done
14876
14877 for ac_header in syscall.h
14878 do :
14879   ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
14880 if test "x$ac_cv_header_syscall_h" = x""yes; then :
14881   cat >>confdefs.h <<_ACEOF
14882 #define HAVE_SYSCALL_H 1
14883 _ACEOF
14884
14885 fi
14886
14887 done
14888
14889 for ac_header in sys/syscall.h
14890 do :
14891   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
14892 if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
14893   cat >>confdefs.h <<_ACEOF
14894 #define HAVE_SYS_SYSCALL_H 1
14895 _ACEOF
14896
14897 fi
14898
14899 done
14900
14901 # For backtrace with glibc.
14902 for ac_header in execinfo.h
14903 do :
14904   ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
14905 if test "x$ac_cv_header_execinfo_h" = x""yes; then :
14906   cat >>confdefs.h <<_ACEOF
14907 #define HAVE_EXECINFO_H 1
14908 _ACEOF
14909
14910 fi
14911
14912 done
14913
14914 # For backtrace with libunwind.
14915 for ac_header in libunwind.h
14916 do :
14917   ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
14918 if test "x$ac_cv_header_libunwind_h" = x""yes; then :
14919   cat >>confdefs.h <<_ACEOF
14920 #define HAVE_LIBUNWIND_H 1
14921 _ACEOF
14922  ac_cv_have_libunwind_h=1
14923 else
14924   ac_cv_have_libunwind_h=0
14925 fi
14926
14927 done
14928
14929 for ac_header in ucontext.h
14930 do :
14931   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
14932 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
14933   cat >>confdefs.h <<_ACEOF
14934 #define HAVE_UCONTEXT_H 1
14935 _ACEOF
14936
14937 fi
14938
14939 done
14940
14941 for ac_header in sys/utsname.h
14942 do :
14943   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14944 if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
14945   cat >>confdefs.h <<_ACEOF
14946 #define HAVE_SYS_UTSNAME_H 1
14947 _ACEOF
14948
14949 fi
14950
14951 done
14952
14953 for ac_header in pwd.h
14954 do :
14955   ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14956 if test "x$ac_cv_header_pwd_h" = x""yes; then :
14957   cat >>confdefs.h <<_ACEOF
14958 #define HAVE_PWD_H 1
14959 _ACEOF
14960
14961 fi
14962
14963 done
14964
14965 for ac_header in syslog.h
14966 do :
14967   ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14968 if test "x$ac_cv_header_syslog_h" = x""yes; then :
14969   cat >>confdefs.h <<_ACEOF
14970 #define HAVE_SYSLOG_H 1
14971 _ACEOF
14972
14973 fi
14974
14975 done
14976
14977 for ac_header in sys/time.h
14978 do :
14979   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14980 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
14981   cat >>confdefs.h <<_ACEOF
14982 #define HAVE_SYS_TIME_H 1
14983 _ACEOF
14984
14985 fi
14986
14987 done
14988
14989 for ac_header in glob.h
14990 do :
14991   ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
14992 if test "x$ac_cv_header_glob_h" = x""yes; then :
14993   cat >>confdefs.h <<_ACEOF
14994 #define HAVE_GLOB_H 1
14995 _ACEOF
14996
14997 fi
14998
14999 done
15000
15001
15002 # The cast to long int works around a bug in the HP C Compiler
15003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15005 # This bug is HP SR number 8606223364.
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15007 $as_echo_n "checking size of void *... " >&6; }
15008 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15009   $as_echo_n "(cached) " >&6
15010 else
15011   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15012
15013 else
15014   if test "$ac_cv_type_void_p" = yes; then
15015      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15017 { as_fn_set_status 77
15018 as_fn_error "cannot compute sizeof (void *)
15019 See \`config.log' for more details." "$LINENO" 5; }; }
15020    else
15021      ac_cv_sizeof_void_p=0
15022    fi
15023 fi
15024
15025 fi
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15027 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15028
15029
15030
15031 cat >>confdefs.h <<_ACEOF
15032 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15033 _ACEOF
15034
15035
15036
15037 # These are the types I need.  We look for them in either stdint.h,
15038 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15039 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15040 if test "x$ac_cv_type_uint16_t" = x""yes; then :
15041   ac_cv_have_uint16_t=1
15042 else
15043   ac_cv_have_uint16_t=0
15044 fi
15045
15046 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15047 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
15048   ac_cv_have_u_int16_t=1
15049 else
15050   ac_cv_have_u_int16_t=0
15051 fi
15052
15053 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15054 if test "x$ac_cv_type___uint16" = x""yes; then :
15055   ac_cv_have___uint16=1
15056 else
15057   ac_cv_have___uint16=0
15058 fi
15059
15060
15061 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15062 if test "x$ac_cv_func_sigaltstack" = x""yes; then :
15063
15064 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15065
15066 fi
15067
15068 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15069 if test "x$ac_cv_func_dladdr" = x""yes; then :
15070
15071 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15072
15073 fi
15074
15075 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15076 if test "x$ac_cv_func_fcntl" = x""yes; then :
15077
15078 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15079
15080 fi
15081
15082
15083
15084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15085 $as_echo_n "checking for __attribute__... " >&6; }
15086   if test "${ac_cv___attribute__+set}" = set; then :
15087   $as_echo_n "(cached) " >&6
15088 else
15089
15090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h.  */
15092 #include <stdlib.h>
15093        static void foo(void) __attribute__ ((unused));
15094        void foo(void) { exit(1); }
15095 int
15096 main ()
15097 {
15098
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 if ac_fn_cxx_try_compile "$LINENO"; then :
15104   ac_cv___attribute__=yes
15105 else
15106   ac_cv___attribute__=no
15107
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 fi
15111
15112   if test "$ac_cv___attribute__" = "yes"; then
15113
15114 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15115
15116   fi
15117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15118 $as_echo "$ac_cv___attribute__" >&6; }
15119
15120 # We only care about these two attributes.
15121 if test x"$ac_cv___attribute__" = x"yes"; then
15122   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15123   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15124 else
15125   ac_cv___attribute___noreturn=
15126   ac_cv___attribute___printf_4_5=
15127 fi
15128
15129
15130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15131 $as_echo_n "checking for __builtin_expect... " >&6; }
15132   if test "${ac_cv___builtin_expect+set}" = set; then :
15133   $as_echo_n "(cached) " >&6
15134 else
15135
15136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h.  */
15138 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15139 int
15140 main ()
15141 {
15142
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 if ac_fn_cxx_try_compile "$LINENO"; then :
15148   ac_cv___builtin_expect=yes
15149 else
15150   ac_cv___builtin_expect=no
15151
15152 fi
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154 fi
15155
15156   if test "$ac_cv___builtin_expect" = "yes"; then
15157
15158 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15159
15160   fi
15161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15162 $as_echo "$ac_cv___builtin_expect" >&6; }
15163
15164 if test x"$ac_cv___builtin_expect" = x"yes"; then
15165   ac_cv_have___builtin_expect=1
15166 else
15167   ac_cv_have___builtin_expect=0
15168 fi
15169
15170
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15172 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15173   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then :
15174   $as_echo_n "(cached) " >&6
15175 else
15176
15177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h.  */
15179
15180 int
15181 main ()
15182 {
15183 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15184   ;
15185   return 0;
15186 }
15187 _ACEOF
15188 if ac_fn_cxx_try_link "$LINENO"; then :
15189   ac_cv___sync_val_compare_and_swap=yes
15190 else
15191   ac_cv___sync_val_compare_and_swap=no
15192
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext \
15195     conftest$ac_exeext conftest.$ac_ext
15196 fi
15197
15198   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15199
15200 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15201
15202   fi
15203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15204 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15205
15206
15207 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15208 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15209 # Check whether --enable-frame_pointers was given.
15210 if test "${enable_frame_pointers+set}" = set; then :
15211   enableval=$enable_frame_pointers;
15212 else
15213   enable_frame_pointers=no
15214 fi
15215
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h.  */
15218
15219 int
15220 main ()
15221 {
15222 return __x86_64__ == 1 ? 0 : 1
15223   ;
15224   return 0;
15225 }
15226 _ACEOF
15227 if ac_fn_cxx_try_compile "$LINENO"; then :
15228   is_x86_64=yes
15229 else
15230   is_x86_64=no
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15233  if test "$enable_frame_pointers" = yes; then
15234   ENABLE_FRAME_POINTERS_TRUE=
15235   ENABLE_FRAME_POINTERS_FALSE='#'
15236 else
15237   ENABLE_FRAME_POINTERS_TRUE='#'
15238   ENABLE_FRAME_POINTERS_FALSE=
15239 fi
15240
15241  if test "$is_x86_64" = yes; then
15242   X86_64_TRUE=
15243   X86_64_FALSE='#'
15244 else
15245   X86_64_TRUE='#'
15246   X86_64_FALSE=
15247 fi
15248
15249
15250 # Check whether --enable-rtti was given.
15251 if test "${enable_rtti+set}" = set; then :
15252   enableval=$enable_rtti;
15253 fi
15254
15255  if test x"$enable_rtti" = x"no"; then
15256   DISABLE_RTTI_TRUE=
15257   DISABLE_RTTI_FALSE='#'
15258 else
15259   DISABLE_RTTI_TRUE='#'
15260   DISABLE_RTTI_FALSE=
15261 fi
15262
15263 if test x"$enable_rtti" = x"no"; then
15264
15265 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15266
15267 fi
15268
15269 # Some of the code in this directory depends on pthreads
15270
15271
15272
15273 ac_ext=c
15274 ac_cpp='$CPP $CPPFLAGS'
15275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15278
15279 acx_pthread_ok=no
15280
15281 # We used to check for pthread.h first, but this fails if pthread.h
15282 # requires special compiler flags (e.g. on True64 or Sequent).
15283 # It gets checked for in the link test anyway.
15284
15285 # First of all, check if the user has set any of the PTHREAD_LIBS,
15286 # etcetera environment variables, and if threads linking works using
15287 # them:
15288 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15289         save_CFLAGS="$CFLAGS"
15290         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15291         save_LIBS="$LIBS"
15292         LIBS="$PTHREAD_LIBS $LIBS"
15293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15294 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15295         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h.  */
15297
15298 /* Override any GCC internal prototype to avoid an error.
15299    Use char because int might match the return type of a GCC
15300    builtin and then its argument prototype would still apply.  */
15301 #ifdef __cplusplus
15302 extern "C"
15303 #endif
15304 char pthread_join ();
15305 int
15306 main ()
15307 {
15308 return pthread_join ();
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_c_try_link "$LINENO"; then :
15314   acx_pthread_ok=yes
15315 fi
15316 rm -f core conftest.err conftest.$ac_objext \
15317     conftest$ac_exeext conftest.$ac_ext
15318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15319 $as_echo "$acx_pthread_ok" >&6; }
15320         if test x"$acx_pthread_ok" = xno; then
15321                 PTHREAD_LIBS=""
15322                 PTHREAD_CFLAGS=""
15323         fi
15324         LIBS="$save_LIBS"
15325         CFLAGS="$save_CFLAGS"
15326 fi
15327
15328 # We must check for the threads library under a number of different
15329 # names; the ordering is very important because some systems
15330 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15331 # libraries is broken (non-POSIX).
15332
15333 # Create a list of thread flags to try.  Items starting with a "-" are
15334 # C compiler flags, and other items are library names, except for "none"
15335 # which indicates that we try without any flags at all, and "pthread-config"
15336 # which is a program returning the flags for the Pth emulation library.
15337
15338 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15339
15340 # The ordering *is* (sometimes) important.  Some notes on the
15341 # individual items follow:
15342
15343 # pthreads: AIX (must check this before -lpthread)
15344 # none: in case threads are in libc; should be tried before -Kthread and
15345 #       other compiler flags to prevent continual compiler warnings
15346 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15347 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15348 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15349 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15350 # -pthreads: Solaris/gcc
15351 # -mthreads: Mingw32/gcc, Lynx/gcc
15352 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15353 #      doesn't hurt to check since this sometimes defines pthreads too;
15354 #      also defines -D_REENTRANT)
15355 #      ... -mt is also the pthreads flag for HP/aCC
15356 # pthread: Linux, etcetera
15357 # --thread-safe: KAI C++
15358 # pthread-config: use pthread-config program (for GNU Pth library)
15359
15360 case "${host_cpu}-${host_os}" in
15361         *solaris*)
15362
15363         # On Solaris (at least, for some versions), libc contains stubbed
15364         # (non-functional) versions of the pthreads routines, so link-based
15365         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15366         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15367         # a function called by this macro, so we could check for that, but
15368         # who knows whether they'll stub that too in a future libc.)  So,
15369         # we'll just look for -pthreads and -lpthread first:
15370
15371         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15372         ;;
15373 esac
15374
15375 if test x"$acx_pthread_ok" = xno; then
15376 for flag in $acx_pthread_flags; do
15377
15378         case $flag in
15379                 none)
15380                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15381 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15382                 ;;
15383
15384                 -*)
15385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15386 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15387                 PTHREAD_CFLAGS="$flag"
15388                 ;;
15389
15390                 pthread-config)
15391                 # Extract the first word of "pthread-config", so it can be a program name with args.
15392 set dummy pthread-config; ac_word=$2
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15394 $as_echo_n "checking for $ac_word... " >&6; }
15395 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
15396   $as_echo_n "(cached) " >&6
15397 else
15398   if test -n "$acx_pthread_config"; then
15399   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15400 else
15401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15402 for as_dir in $PATH
15403 do
15404   IFS=$as_save_IFS
15405   test -z "$as_dir" && as_dir=.
15406     for ac_exec_ext in '' $ac_executable_extensions; do
15407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15408     ac_cv_prog_acx_pthread_config="yes"
15409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15410     break 2
15411   fi
15412 done
15413   done
15414 IFS=$as_save_IFS
15415
15416   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15417 fi
15418 fi
15419 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15420 if test -n "$acx_pthread_config"; then
15421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15422 $as_echo "$acx_pthread_config" >&6; }
15423 else
15424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15425 $as_echo "no" >&6; }
15426 fi
15427
15428
15429                 if test x"$acx_pthread_config" = xno; then continue; fi
15430                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15431                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15432                 ;;
15433
15434                 *)
15435                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15436 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15437                 PTHREAD_LIBS="-l$flag"
15438                 ;;
15439         esac
15440
15441         save_LIBS="$LIBS"
15442         save_CFLAGS="$CFLAGS"
15443         LIBS="$PTHREAD_LIBS $LIBS"
15444         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15445
15446         # Check for various functions.  We must include pthread.h,
15447         # since some functions may be macros.  (On the Sequent, we
15448         # need a special flag -Kthread to make this header compile.)
15449         # We check for pthread_join because it is in -lpthread on IRIX
15450         # while pthread_create is in libc.  We check for pthread_attr_init
15451         # due to DEC craziness with -lpthreads.  We check for
15452         # pthread_cleanup_push because it is one of the few pthread
15453         # functions on Solaris that doesn't have a non-functional libc stub.
15454         # We try pthread_create on general principles.
15455         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h.  */
15457 #include <pthread.h>
15458 int
15459 main ()
15460 {
15461 pthread_t th; pthread_join(th, 0);
15462                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15463                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15464   ;
15465   return 0;
15466 }
15467 _ACEOF
15468 if ac_fn_c_try_link "$LINENO"; then :
15469   acx_pthread_ok=yes
15470 fi
15471 rm -f core conftest.err conftest.$ac_objext \
15472     conftest$ac_exeext conftest.$ac_ext
15473
15474         LIBS="$save_LIBS"
15475         CFLAGS="$save_CFLAGS"
15476
15477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15478 $as_echo "$acx_pthread_ok" >&6; }
15479         if test "x$acx_pthread_ok" = xyes; then
15480                 break;
15481         fi
15482
15483         PTHREAD_LIBS=""
15484         PTHREAD_CFLAGS=""
15485 done
15486 fi
15487
15488 # Various other checks:
15489 if test "x$acx_pthread_ok" = xyes; then
15490         save_LIBS="$LIBS"
15491         LIBS="$PTHREAD_LIBS $LIBS"
15492         save_CFLAGS="$CFLAGS"
15493         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15494
15495         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15497 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15498         attr_name=unknown
15499         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15500             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h.  */
15502 #include <pthread.h>
15503 int
15504 main ()
15505 {
15506 int attr=$attr; return attr;
15507   ;
15508   return 0;
15509 }
15510 _ACEOF
15511 if ac_fn_c_try_link "$LINENO"; then :
15512   attr_name=$attr; break
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext \
15515     conftest$ac_exeext conftest.$ac_ext
15516         done
15517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15518 $as_echo "$attr_name" >&6; }
15519         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15520
15521 cat >>confdefs.h <<_ACEOF
15522 #define PTHREAD_CREATE_JOINABLE $attr_name
15523 _ACEOF
15524
15525         fi
15526
15527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15528 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15529         flag=no
15530         case "${host_cpu}-${host_os}" in
15531             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15532             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15533         esac
15534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15535 $as_echo "${flag}" >&6; }
15536         if test "x$flag" != xno; then
15537             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15538         fi
15539
15540         LIBS="$save_LIBS"
15541         CFLAGS="$save_CFLAGS"
15542         # More AIX lossage: must compile with xlc_r or cc_r
15543         if test x"$GCC" != xyes; then
15544           for ac_prog in xlc_r cc_r
15545 do
15546   # Extract the first word of "$ac_prog", so it can be a program name with args.
15547 set dummy $ac_prog; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 $as_echo_n "checking for $ac_word... " >&6; }
15550 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15551   $as_echo_n "(cached) " >&6
15552 else
15553   if test -n "$PTHREAD_CC"; then
15554   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15555 else
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $PATH
15558 do
15559   IFS=$as_save_IFS
15560   test -z "$as_dir" && as_dir=.
15561     for ac_exec_ext in '' $ac_executable_extensions; do
15562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15563     ac_cv_prog_PTHREAD_CC="$ac_prog"
15564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15565     break 2
15566   fi
15567 done
15568   done
15569 IFS=$as_save_IFS
15570
15571 fi
15572 fi
15573 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15574 if test -n "$PTHREAD_CC"; then
15575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15576 $as_echo "$PTHREAD_CC" >&6; }
15577 else
15578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579 $as_echo "no" >&6; }
15580 fi
15581
15582
15583   test -n "$PTHREAD_CC" && break
15584 done
15585 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15586
15587         else
15588           PTHREAD_CC=$CC
15589         fi
15590
15591         # The next part tries to detect GCC inconsistency with -shared on some
15592         # architectures and systems. The problem is that in certain
15593         # configurations, when -shared is specified, GCC "forgets" to
15594         # internally use various flags which are still necessary.
15595
15596         #
15597         # Prepare the flags
15598         #
15599         save_CFLAGS="$CFLAGS"
15600         save_LIBS="$LIBS"
15601         save_CC="$CC"
15602
15603         # Try with the flags determined by the earlier checks.
15604         #
15605         # -Wl,-z,defs forces link-time symbol resolution, so that the
15606         # linking checks with -shared actually have any value
15607         #
15608         # FIXME: -fPIC is required for -shared on many architectures,
15609         # so we specify it here, but the right way would probably be to
15610         # properly detect whether it is actually required.
15611         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15612         LIBS="$PTHREAD_LIBS $LIBS"
15613         CC="$PTHREAD_CC"
15614
15615         # In order not to create several levels of indentation, we test
15616         # the value of "$done" until we find the cure or run out of ideas.
15617         done="no"
15618
15619         # First, make sure the CFLAGS we added are actually accepted by our
15620         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
15621         # then we can't do this test.
15622         if test x"$done" = xno; then
15623            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15624 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15625            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627
15628 int
15629 main ()
15630 {
15631
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 if ac_fn_c_try_link "$LINENO"; then :
15637
15638 else
15639   done=yes
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext \
15642     conftest$ac_exeext conftest.$ac_ext
15643
15644            if test "x$done" = xyes ; then
15645               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 $as_echo "no" >&6; }
15647            else
15648               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15649 $as_echo "yes" >&6; }
15650            fi
15651         fi
15652
15653         if test x"$done" = xno; then
15654            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15655 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15656            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h.  */
15658 #include <pthread.h>
15659 int
15660 main ()
15661 {
15662 pthread_t th; pthread_join(th, 0);
15663               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15664               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15665   ;
15666   return 0;
15667 }
15668 _ACEOF
15669 if ac_fn_c_try_link "$LINENO"; then :
15670   done=yes
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext \
15673     conftest$ac_exeext conftest.$ac_ext
15674
15675            if test "x$done" = xyes; then
15676               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15677 $as_echo "yes" >&6; }
15678            else
15679               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; }
15681            fi
15682         fi
15683
15684         #
15685         # Linux gcc on some architectures such as mips/mipsel forgets
15686         # about -lpthread
15687         #
15688         if test x"$done" = xno; then
15689            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15690 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15691            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15692            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h.  */
15694 #include <pthread.h>
15695 int
15696 main ()
15697 {
15698 pthread_t th; pthread_join(th, 0);
15699               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15700               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 if ac_fn_c_try_link "$LINENO"; then :
15706   done=yes
15707 fi
15708 rm -f core conftest.err conftest.$ac_objext \
15709     conftest$ac_exeext conftest.$ac_ext
15710
15711            if test "x$done" = xyes; then
15712               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15713 $as_echo "yes" >&6; }
15714               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15715            else
15716               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15718            fi
15719         fi
15720         #
15721         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15722         #
15723         if test x"$done" = xno; then
15724            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15725 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15726            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15727            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h.  */
15729 #include <pthread.h>
15730 int
15731 main ()
15732 {
15733 pthread_t th; pthread_join(th, 0);
15734                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15735                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15736   ;
15737   return 0;
15738 }
15739 _ACEOF
15740 if ac_fn_c_try_link "$LINENO"; then :
15741   done=yes
15742 fi
15743 rm -f core conftest.err conftest.$ac_objext \
15744     conftest$ac_exeext conftest.$ac_ext
15745
15746            if test "x$done" = xyes; then
15747               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15748 $as_echo "yes" >&6; }
15749               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15750            else
15751               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752 $as_echo "no" >&6; }
15753            fi
15754         fi
15755         if test x"$done" = xno; then
15756            # OK, we have run out of ideas
15757            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15758 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15759
15760            # so it's not safe to assume that we may use pthreads
15761            acx_pthread_ok=no
15762         fi
15763
15764         CFLAGS="$save_CFLAGS"
15765         LIBS="$save_LIBS"
15766         CC="$save_CC"
15767 else
15768         PTHREAD_CC="$CC"
15769 fi
15770
15771
15772
15773
15774
15775 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15776 if test x"$acx_pthread_ok" = xyes; then
15777
15778 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15779
15780         :
15781 else
15782         acx_pthread_ok=no
15783
15784 fi
15785 ac_ext=cpp
15786 ac_cpp='$CXXCPP $CPPFLAGS'
15787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15790
15791
15792 if test x"$acx_pthread_ok" = x"yes"; then
15793   # To make libglog depend on libpthread on Linux, we need to add
15794   # -lpthread in addition to -pthread.
15795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
15796 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
15797 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
15798   $as_echo_n "(cached) " >&6
15799 else
15800   ac_check_lib_save_LIBS=$LIBS
15801 LIBS="-lpthread  $LIBS"
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h.  */
15804
15805 /* Override any GCC internal prototype to avoid an error.
15806    Use char because int might match the return type of a GCC
15807    builtin and then its argument prototype would still apply.  */
15808 #ifdef __cplusplus
15809 extern "C"
15810 #endif
15811 char pthread_self ();
15812 int
15813 main ()
15814 {
15815 return pthread_self ();
15816   ;
15817   return 0;
15818 }
15819 _ACEOF
15820 if ac_fn_cxx_try_link "$LINENO"; then :
15821   ac_cv_lib_pthread_pthread_self=yes
15822 else
15823   ac_cv_lib_pthread_pthread_self=no
15824 fi
15825 rm -f core conftest.err conftest.$ac_objext \
15826     conftest$ac_exeext conftest.$ac_ext
15827 LIBS=$ac_check_lib_save_LIBS
15828 fi
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
15830 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
15831 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
15832   cat >>confdefs.h <<_ACEOF
15833 #define HAVE_LIBPTHREAD 1
15834 _ACEOF
15835
15836   LIBS="-lpthread $LIBS"
15837
15838 fi
15839
15840 fi
15841
15842 # Check if there is google-gflags library installed.
15843 SAVE_CFLAGS="$CFLAGS"
15844 SAVE_LIBS="$LIBS"
15845
15846 # Check whether --with-gflags was given.
15847 if test "${with_gflags+set}" = set; then :
15848   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
15849   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
15850   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
15851   LIBS="$LIBS $GFLAGS_LIBS"
15852
15853 fi
15854
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
15856 $as_echo_n "checking for main in -lgflags... " >&6; }
15857 if test "${ac_cv_lib_gflags_main+set}" = set; then :
15858   $as_echo_n "(cached) " >&6
15859 else
15860   ac_check_lib_save_LIBS=$LIBS
15861 LIBS="-lgflags  $LIBS"
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h.  */
15864
15865
15866 int
15867 main ()
15868 {
15869 return main ();
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 if ac_fn_cxx_try_link "$LINENO"; then :
15875   ac_cv_lib_gflags_main=yes
15876 else
15877   ac_cv_lib_gflags_main=no
15878 fi
15879 rm -f core conftest.err conftest.$ac_objext \
15880     conftest$ac_exeext conftest.$ac_ext
15881 LIBS=$ac_check_lib_save_LIBS
15882 fi
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
15884 $as_echo "$ac_cv_lib_gflags_main" >&6; }
15885 if test "x$ac_cv_lib_gflags_main" = x""yes; then :
15886   ac_cv_have_libgflags=1
15887 else
15888   ac_cv_have_libgflags=0
15889 fi
15890
15891 if test x"$ac_cv_have_libgflags" = x"1"; then
15892
15893 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
15894
15895   if test x"$GFLAGS_LIBS" = x""; then
15896     GFLAGS_LIBS="-lgflags"
15897   fi
15898 else
15899   GFLAGS_CFLAGS=
15900   GFLAGS_LIBS=
15901 fi
15902 CFLAGS="$SAVE_CFLAGS"
15903 LIBS="$SAVE_LIBS"
15904
15905 # TODO(hamaji): Use official m4 macros provided by testing libraries
15906 #               once the m4 macro of Google Mocking becomes ready.
15907 # Check if there is Google Test library installed.
15908 # Extract the first word of "gtest-config", so it can be a program name with args.
15909 set dummy gtest-config; ac_word=$2
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15911 $as_echo_n "checking for $ac_word... " >&6; }
15912 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then :
15913   $as_echo_n "(cached) " >&6
15914 else
15915   if test -n "$GTEST_CONFIG"; then
15916   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
15917 else
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $PATH
15920 do
15921   IFS=$as_save_IFS
15922   test -z "$as_dir" && as_dir=.
15923     for ac_exec_ext in '' $ac_executable_extensions; do
15924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15925     ac_cv_prog_GTEST_CONFIG=""yes""
15926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15927     break 2
15928   fi
15929 done
15930   done
15931 IFS=$as_save_IFS
15932
15933 fi
15934 fi
15935 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
15936 if test -n "$GTEST_CONFIG"; then
15937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
15938 $as_echo "$GTEST_CONFIG" >&6; }
15939 else
15940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15942 fi
15943
15944
15945 if test x"$GTEST_CONFIG" = "xyes"; then
15946   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
15947   GTEST_LIBS=`gtest-config --ldflags --libs`
15948
15949 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
15950
15951
15952   # Check if there is Google Mocking library installed.
15953   # Extract the first word of "gmock-config", so it can be a program name with args.
15954 set dummy gmock-config; ac_word=$2
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15956 $as_echo_n "checking for $ac_word... " >&6; }
15957 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then :
15958   $as_echo_n "(cached) " >&6
15959 else
15960   if test -n "$GMOCK_CONFIG"; then
15961   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
15962 else
15963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15964 for as_dir in $PATH
15965 do
15966   IFS=$as_save_IFS
15967   test -z "$as_dir" && as_dir=.
15968     for ac_exec_ext in '' $ac_executable_extensions; do
15969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15970     ac_cv_prog_GMOCK_CONFIG=""yes""
15971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15972     break 2
15973   fi
15974 done
15975   done
15976 IFS=$as_save_IFS
15977
15978 fi
15979 fi
15980 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
15981 if test -n "$GMOCK_CONFIG"; then
15982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
15983 $as_echo "$GMOCK_CONFIG" >&6; }
15984 else
15985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15986 $as_echo "no" >&6; }
15987 fi
15988
15989
15990   if test x"$GMOCK_CONFIG" = "xyes"; then
15991     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
15992     GMOCK_LIBS=`gmock-config --ldflags --libs`
15993
15994 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
15995
15996   else
15997     # We don't run test cases which use Google Mocking framework.
15998     GMOCK_CFLAGS=
15999     GMOCK_LIBS=
16000   fi
16001 else
16002   # We'll use src/googletest.h for our unittests.
16003   GTEST_CFLAGS=
16004   GTEST_LIBS=
16005 fi
16006  if test x"$GMOCK_CONFIG" = "xyes"; then
16007   HAVE_GMOCK_TRUE=
16008   HAVE_GMOCK_FALSE='#'
16009 else
16010   HAVE_GMOCK_TRUE='#'
16011   HAVE_GMOCK_FALSE=
16012 fi
16013
16014
16015 # We want to link in libunwind if it exists
16016 UNWIND_LIBS=
16017 # Unfortunately, we need to check the header file in addition to the
16018 # lib file to check if libunwind is available since libunwind-0.98
16019 # doesn't install all necessary header files.
16020 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16022 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16023 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
16024   $as_echo_n "(cached) " >&6
16025 else
16026   ac_check_lib_save_LIBS=$LIBS
16027 LIBS="-lunwind  $LIBS"
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h.  */
16030
16031 /* Override any GCC internal prototype to avoid an error.
16032    Use char because int might match the return type of a GCC
16033    builtin and then its argument prototype would still apply.  */
16034 #ifdef __cplusplus
16035 extern "C"
16036 #endif
16037 char backtrace ();
16038 int
16039 main ()
16040 {
16041 return backtrace ();
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 if ac_fn_cxx_try_link "$LINENO"; then :
16047   ac_cv_lib_unwind_backtrace=yes
16048 else
16049   ac_cv_lib_unwind_backtrace=no
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext \
16052     conftest$ac_exeext conftest.$ac_ext
16053 LIBS=$ac_check_lib_save_LIBS
16054 fi
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16056 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16057 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
16058   UNWIND_LIBS=-lunwind
16059 fi
16060
16061 fi
16062
16063 if test x"$UNWIND_LIBS" != x""; then
16064
16065 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16066
16067 fi
16068
16069 # We'd like to use read/write locks in several places in the code.
16070 # See if our pthreads support extends to that.  Note: for linux, it
16071 # does as long as you define _XOPEN_SOURCE appropriately.
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16073 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16074 if test "${ac_cv_rwlock+set}" = set; then :
16075   $as_echo_n "(cached) " >&6
16076 else
16077
16078  ac_ext=c
16079 ac_cpp='$CPP $CPPFLAGS'
16080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16083
16084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h.  */
16086 #define _XOPEN_SOURCE 500
16087                  #include <pthread.h>
16088 int
16089 main ()
16090 {
16091 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16092                  pthread_rwlock_rdlock(&l);
16093                  return 0;
16094   ;
16095   return 0;
16096 }
16097 _ACEOF
16098 if ac_fn_c_try_compile "$LINENO"; then :
16099   ac_cv_rwlock=yes
16100 else
16101   ac_cv_rwlock=no
16102 fi
16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104  ac_ext=cpp
16105 ac_cpp='$CXXCPP $CPPFLAGS'
16106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16109
16110
16111 fi
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16113 $as_echo "$ac_cv_rwlock" >&6; }
16114 if test "$ac_cv_rwlock" = yes; then
16115
16116 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16117
16118 fi
16119
16120
16121 # Find out what namespace 'normal' STL code lives in, and also what namespace
16122 # the user wants our classes to be defined in
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16124 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16125 if test "${ac_cv_cxx_namespaces+set}" = set; then :
16126   $as_echo_n "(cached) " >&6
16127 else
16128
16129                   ac_ext=cpp
16130 ac_cpp='$CXXCPP $CPPFLAGS'
16131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16134
16135                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h.  */
16137 namespace Outer {
16138                                     namespace Inner { int i = 0; }}
16139 int
16140 main ()
16141 {
16142 using namespace Outer::Inner; return i;
16143   ;
16144   return 0;
16145 }
16146 _ACEOF
16147 if ac_fn_cxx_try_compile "$LINENO"; then :
16148   ac_cv_cxx_namespaces=yes
16149 else
16150   ac_cv_cxx_namespaces=no
16151 fi
16152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153                   ac_ext=cpp
16154 ac_cpp='$CXXCPP $CPPFLAGS'
16155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16158
16159 fi
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16161 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16162   if test "$ac_cv_cxx_namespaces" = yes; then
16163
16164 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16165
16166   fi
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16168 $as_echo_n "checking what namespace STL code is in... " >&6; }
16169 if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172
16173
16174       ac_ext=cpp
16175 ac_cpp='$CXXCPP $CPPFLAGS'
16176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16179
16180       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h.  */
16182 #include <vector>
16183 int
16184 main ()
16185 {
16186 vector<int> t; return 0;
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 if ac_fn_cxx_try_compile "$LINENO"; then :
16192   ac_cv_cxx_stl_namespace=none
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h.  */
16197 #include <vector>
16198 int
16199 main ()
16200 {
16201 std::vector<int> t; return 0;
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 if ac_fn_cxx_try_compile "$LINENO"; then :
16207   ac_cv_cxx_stl_namespace=std
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210       ac_ext=cpp
16211 ac_cpp='$CXXCPP $CPPFLAGS'
16212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16215
16216 fi
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16218 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16219    if test "$ac_cv_cxx_stl_namespace" = none; then
16220
16221 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16222
16223    fi
16224    if test "$ac_cv_cxx_stl_namespace" = std; then
16225
16226 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16227
16228    fi
16229
16230 google_namespace_default=google
16231    # Check whether --enable-namespace was given.
16232 if test "${enable_namespace+set}" = set; then :
16233   enableval=$enable_namespace; case "$enableval" in
16234                     yes) google_namespace="$google_namespace_default" ;;
16235                      no) google_namespace="" ;;
16236                       *) google_namespace="$enableval" ;;
16237                   esac
16238 else
16239   google_namespace="$google_namespace_default"
16240 fi
16241
16242    if test -n "$google_namespace"; then
16243      ac_google_namespace="$google_namespace"
16244      ac_google_start_namespace="namespace $google_namespace {"
16245      ac_google_end_namespace="}"
16246    else
16247      ac_google_namespace=""
16248      ac_google_start_namespace=""
16249      ac_google_end_namespace=""
16250    fi
16251
16252 cat >>confdefs.h <<_ACEOF
16253 #define GOOGLE_NAMESPACE $ac_google_namespace
16254 _ACEOF
16255
16256
16257 cat >>confdefs.h <<_ACEOF
16258 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16259 _ACEOF
16260
16261
16262 cat >>confdefs.h <<_ACEOF
16263 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16264 _ACEOF
16265
16266
16267
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16269 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16270 if test "${ac_cv_cxx_using_operator+set}" = set; then :
16271   $as_echo_n "(cached) " >&6
16272 else
16273
16274        ac_ext=cpp
16275 ac_cpp='$CXXCPP $CPPFLAGS'
16276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16279
16280        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h.  */
16282 #include <iostream>
16283                        std::ostream& operator<<(std::ostream&, struct s);
16284 int
16285 main ()
16286 {
16287 using ::operator<<; return 0;
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 if ac_fn_cxx_try_compile "$LINENO"; then :
16293   ac_cv_cxx_using_operator=1
16294 else
16295   ac_cv_cxx_using_operator=0
16296 fi
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298       ac_ext=cpp
16299 ac_cpp='$CXXCPP $CPPFLAGS'
16300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16303
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
16306 $as_echo "$ac_cv_cxx_using_operator" >&6; }
16307   if test "$ac_cv_cxx_using_operator" = 1; then
16308
16309 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
16310
16311   fi
16312
16313 for ac_header in ucontext.h
16314 do :
16315   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
16316 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
16317   cat >>confdefs.h <<_ACEOF
16318 #define HAVE_UCONTEXT_H 1
16319 _ACEOF
16320
16321 fi
16322
16323 done
16324
16325    for ac_header in sys/ucontext.h
16326 do :
16327   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
16328 if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then :
16329   cat >>confdefs.h <<_ACEOF
16330 #define HAVE_SYS_UCONTEXT_H 1
16331 _ACEOF
16332
16333 fi
16334
16335 done
16336        # ucontext on OS X 10.6 (at least)
16337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
16338 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
16339    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
16340    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
16341    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
16342    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
16343    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
16344    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
16345    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
16346    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
16347    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
16348    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
16349    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
16350    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
16351    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
16352    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
16353    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
16354    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
16355    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
16356    pc_field_found=false
16357    for pc_field in $pc_fields; do
16358      if ! $pc_field_found; then
16359        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
16360          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h.  */
16362 #define _GNU_SOURCE 1
16363                          #include <sys/ucontext.h>
16364 int
16365 main ()
16366 {
16367 ucontext_t u; return u.$pc_field == 0;
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 if ac_fn_cxx_try_compile "$LINENO"; then :
16373
16374 cat >>confdefs.h <<_ACEOF
16375 #define PC_FROM_UCONTEXT $pc_field
16376 _ACEOF
16377
16378                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16379 $as_echo "$pc_field" >&6; }
16380                         pc_field_found=true
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16383        else
16384          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h.  */
16386 #define _GNU_SOURCE 1
16387                          #include <ucontext.h>
16388 int
16389 main ()
16390 {
16391 ucontext_t u; return u.$pc_field == 0;
16392   ;
16393   return 0;
16394 }
16395 _ACEOF
16396 if ac_fn_cxx_try_compile "$LINENO"; then :
16397
16398 cat >>confdefs.h <<_ACEOF
16399 #define PC_FROM_UCONTEXT $pc_field
16400 _ACEOF
16401
16402                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16403 $as_echo "$pc_field" >&6; }
16404                         pc_field_found=true
16405 fi
16406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16407        fi
16408      fi
16409    done
16410    if ! $pc_field_found; then
16411      pc_fields="           sc_eip"  # OpenBSD (i386)
16412      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
16413      for pc_field in $pc_fields; do
16414        if ! $pc_field_found; then
16415          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h.  */
16417 #include <signal.h>
16418 int
16419 main ()
16420 {
16421 ucontext_t u; return u.$pc_field == 0;
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 if ac_fn_cxx_try_compile "$LINENO"; then :
16427
16428 cat >>confdefs.h <<_ACEOF
16429 #define PC_FROM_UCONTEXT $pc_field
16430 _ACEOF
16431
16432                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16433 $as_echo "$pc_field" >&6; }
16434                         pc_field_found=true
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437        fi
16438      done
16439    fi
16440    if ! $pc_field_found; then
16441      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
16442 $as_echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
16443    fi
16444
16445
16446 cat >>confdefs.h <<_ACEOF
16447 #define TEST_SRC_DIR "$srcdir"
16448 _ACEOF
16449
16450
16451 # These are what's needed by logging.h.in and raw_logging.h.in
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474 # Write generated configuration file
16475 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"
16476
16477 ac_config_files="$ac_config_files libglog.pc"
16478
16479 cat >confcache <<\_ACEOF
16480 # This file is a shell script that caches the results of configure
16481 # tests run on this system so they can be shared between configure
16482 # scripts and configure runs, see configure's option --config-cache.
16483 # It is not useful on other systems.  If it contains results you don't
16484 # want to keep, you may remove or edit it.
16485 #
16486 # config.status only pays attention to the cache file if you give it
16487 # the --recheck option to rerun configure.
16488 #
16489 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16491 # following values.
16492
16493 _ACEOF
16494
16495 # The following way of writing the cache mishandles newlines in values,
16496 # but we know of no workaround that is simple, portable, and efficient.
16497 # So, we kill variables containing newlines.
16498 # Ultrix sh set writes to stderr and can't be redirected directly,
16499 # and sets the high bit in the cache file unless we assign to the vars.
16500 (
16501   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16502     eval ac_val=\$$ac_var
16503     case $ac_val in #(
16504     *${as_nl}*)
16505       case $ac_var in #(
16506       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16507 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16508       esac
16509       case $ac_var in #(
16510       _ | IFS | as_nl) ;; #(
16511       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16512       *) { eval $ac_var=; unset $ac_var;} ;;
16513       esac ;;
16514     esac
16515   done
16516
16517   (set) 2>&1 |
16518     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16519     *${as_nl}ac_space=\ *)
16520       # `set' does not quote correctly, so add quotes: double-quote
16521       # substitution turns \\\\ into \\, and sed turns \\ into \.
16522       sed -n \
16523         "s/'/'\\\\''/g;
16524           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16525       ;; #(
16526     *)
16527       # `set' quotes correctly as required by POSIX, so do not add quotes.
16528       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16529       ;;
16530     esac |
16531     sort
16532 ) |
16533   sed '
16534      /^ac_cv_env_/b end
16535      t clear
16536      :clear
16537      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16538      t end
16539      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16540      :end' >>confcache
16541 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16542   if test -w "$cache_file"; then
16543     test "x$cache_file" != "x/dev/null" &&
16544       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16545 $as_echo "$as_me: updating cache $cache_file" >&6;}
16546     cat confcache >$cache_file
16547   else
16548     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16549 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16550   fi
16551 fi
16552 rm -f confcache
16553
16554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16555 # Let make expand exec_prefix.
16556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16557
16558 DEFS=-DHAVE_CONFIG_H
16559
16560 ac_libobjs=
16561 ac_ltlibobjs=
16562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16563   # 1. Remove the extension, and $U if already installed.
16564   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16565   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16566   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16567   #    will be set to the directory where LIBOBJS objects are built.
16568   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16569   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16570 done
16571 LIBOBJS=$ac_libobjs
16572
16573 LTLIBOBJS=$ac_ltlibobjs
16574
16575
16576  if test -n "$EXEEXT"; then
16577   am__EXEEXT_TRUE=
16578   am__EXEEXT_FALSE='#'
16579 else
16580   am__EXEEXT_TRUE='#'
16581   am__EXEEXT_FALSE=
16582 fi
16583
16584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16585   as_fn_error "conditional \"AMDEP\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 fi
16588 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16589   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 fi
16592 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16593   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 fi
16596 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
16597   as_fn_error "conditional \"GCC\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 fi
16600 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16601   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603 fi
16604 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
16605   as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607 fi
16608 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
16609   as_fn_error "conditional \"X86_64\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16611 fi
16612 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
16613   as_fn_error "conditional \"DISABLE_RTTI\" was never defined.
16614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16615 fi
16616 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
16617   as_fn_error "conditional \"HAVE_GMOCK\" was never defined.
16618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16619 fi
16620
16621 : ${CONFIG_STATUS=./config.status}
16622 ac_write_fail=0
16623 ac_clean_files_save=$ac_clean_files
16624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16626 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16627 as_write_fail=0
16628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16629 #! $SHELL
16630 # Generated by $as_me.
16631 # Run this file to recreate the current configuration.
16632 # Compiler output produced by configure, useful for debugging
16633 # configure, is in config.log if it exists.
16634
16635 debug=false
16636 ac_cs_recheck=false
16637 ac_cs_silent=false
16638
16639 SHELL=\${CONFIG_SHELL-$SHELL}
16640 export SHELL
16641 _ASEOF
16642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16643 ## -------------------- ##
16644 ## M4sh Initialization. ##
16645 ## -------------------- ##
16646
16647 # Be more Bourne compatible
16648 DUALCASE=1; export DUALCASE # for MKS sh
16649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16650   emulate sh
16651   NULLCMD=:
16652   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16653   # is contrary to our usage.  Disable this feature.
16654   alias -g '${1+"$@"}'='"$@"'
16655   setopt NO_GLOB_SUBST
16656 else
16657   case `(set -o) 2>/dev/null` in #(
16658   *posix*) :
16659     set -o posix ;; #(
16660   *) :
16661      ;;
16662 esac
16663 fi
16664
16665
16666 as_nl='
16667 '
16668 export as_nl
16669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16673 # Prefer a ksh shell builtin over an external printf program on Solaris,
16674 # but without wasting forks for bash or zsh.
16675 if test -z "$BASH_VERSION$ZSH_VERSION" \
16676     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16677   as_echo='print -r --'
16678   as_echo_n='print -rn --'
16679 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16680   as_echo='printf %s\n'
16681   as_echo_n='printf %s'
16682 else
16683   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16684     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16685     as_echo_n='/usr/ucb/echo -n'
16686   else
16687     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16688     as_echo_n_body='eval
16689       arg=$1;
16690       case $arg in #(
16691       *"$as_nl"*)
16692         expr "X$arg" : "X\\(.*\\)$as_nl";
16693         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16694       esac;
16695       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16696     '
16697     export as_echo_n_body
16698     as_echo_n='sh -c $as_echo_n_body as_echo'
16699   fi
16700   export as_echo_body
16701   as_echo='sh -c $as_echo_body as_echo'
16702 fi
16703
16704 # The user is always right.
16705 if test "${PATH_SEPARATOR+set}" != set; then
16706   PATH_SEPARATOR=:
16707   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16708     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16709       PATH_SEPARATOR=';'
16710   }
16711 fi
16712
16713
16714 # IFS
16715 # We need space, tab and new line, in precisely that order.  Quoting is
16716 # there to prevent editors from complaining about space-tab.
16717 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16718 # splitting by setting IFS to empty value.)
16719 IFS=" ""        $as_nl"
16720
16721 # Find who we are.  Look in the path if we contain no directory separator.
16722 case $0 in #((
16723   *[\\/]* ) as_myself=$0 ;;
16724   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16725 for as_dir in $PATH
16726 do
16727   IFS=$as_save_IFS
16728   test -z "$as_dir" && as_dir=.
16729     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16730   done
16731 IFS=$as_save_IFS
16732
16733      ;;
16734 esac
16735 # We did not find ourselves, most probably we were run as `sh COMMAND'
16736 # in which case we are not to be found in the path.
16737 if test "x$as_myself" = x; then
16738   as_myself=$0
16739 fi
16740 if test ! -f "$as_myself"; then
16741   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16742   exit 1
16743 fi
16744
16745 # Unset variables that we do not need and which cause bugs (e.g. in
16746 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16747 # suppresses any "Segmentation fault" message there.  '((' could
16748 # trigger a bug in pdksh 5.2.14.
16749 for as_var in BASH_ENV ENV MAIL MAILPATH
16750 do eval test x\${$as_var+set} = xset \
16751   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16752 done
16753 PS1='$ '
16754 PS2='> '
16755 PS4='+ '
16756
16757 # NLS nuisances.
16758 LC_ALL=C
16759 export LC_ALL
16760 LANGUAGE=C
16761 export LANGUAGE
16762
16763 # CDPATH.
16764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16765
16766
16767 # as_fn_error ERROR [LINENO LOG_FD]
16768 # ---------------------------------
16769 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16770 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16771 # script with status $?, using 1 if that was 0.
16772 as_fn_error ()
16773 {
16774   as_status=$?; test $as_status -eq 0 && as_status=1
16775   if test "$3"; then
16776     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16777     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16778   fi
16779   $as_echo "$as_me: error: $1" >&2
16780   as_fn_exit $as_status
16781 } # as_fn_error
16782
16783
16784 # as_fn_set_status STATUS
16785 # -----------------------
16786 # Set $? to STATUS, without forking.
16787 as_fn_set_status ()
16788 {
16789   return $1
16790 } # as_fn_set_status
16791
16792 # as_fn_exit STATUS
16793 # -----------------
16794 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16795 as_fn_exit ()
16796 {
16797   set +e
16798   as_fn_set_status $1
16799   exit $1
16800 } # as_fn_exit
16801
16802 # as_fn_unset VAR
16803 # ---------------
16804 # Portably unset VAR.
16805 as_fn_unset ()
16806 {
16807   { eval $1=; unset $1;}
16808 }
16809 as_unset=as_fn_unset
16810 # as_fn_append VAR VALUE
16811 # ----------------------
16812 # Append the text in VALUE to the end of the definition contained in VAR. Take
16813 # advantage of any shell optimizations that allow amortized linear growth over
16814 # repeated appends, instead of the typical quadratic growth present in naive
16815 # implementations.
16816 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16817   eval 'as_fn_append ()
16818   {
16819     eval $1+=\$2
16820   }'
16821 else
16822   as_fn_append ()
16823   {
16824     eval $1=\$$1\$2
16825   }
16826 fi # as_fn_append
16827
16828 # as_fn_arith ARG...
16829 # ------------------
16830 # Perform arithmetic evaluation on the ARGs, and store the result in the
16831 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16832 # must be portable across $(()) and expr.
16833 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16834   eval 'as_fn_arith ()
16835   {
16836     as_val=$(( $* ))
16837   }'
16838 else
16839   as_fn_arith ()
16840   {
16841     as_val=`expr "$@" || test $? -eq 1`
16842   }
16843 fi # as_fn_arith
16844
16845
16846 if expr a : '\(a\)' >/dev/null 2>&1 &&
16847    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16848   as_expr=expr
16849 else
16850   as_expr=false
16851 fi
16852
16853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16854   as_basename=basename
16855 else
16856   as_basename=false
16857 fi
16858
16859 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16860   as_dirname=dirname
16861 else
16862   as_dirname=false
16863 fi
16864
16865 as_me=`$as_basename -- "$0" ||
16866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16867          X"$0" : 'X\(//\)$' \| \
16868          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16869 $as_echo X/"$0" |
16870     sed '/^.*\/\([^/][^/]*\)\/*$/{
16871             s//\1/
16872             q
16873           }
16874           /^X\/\(\/\/\)$/{
16875             s//\1/
16876             q
16877           }
16878           /^X\/\(\/\).*/{
16879             s//\1/
16880             q
16881           }
16882           s/.*/./; q'`
16883
16884 # Avoid depending upon Character Ranges.
16885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16888 as_cr_digits='0123456789'
16889 as_cr_alnum=$as_cr_Letters$as_cr_digits
16890
16891 ECHO_C= ECHO_N= ECHO_T=
16892 case `echo -n x` in #(((((
16893 -n*)
16894   case `echo 'xy\c'` in
16895   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16896   xy)  ECHO_C='\c';;
16897   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16898        ECHO_T=' ';;
16899   esac;;
16900 *)
16901   ECHO_N='-n';;
16902 esac
16903
16904 rm -f conf$$ conf$$.exe conf$$.file
16905 if test -d conf$$.dir; then
16906   rm -f conf$$.dir/conf$$.file
16907 else
16908   rm -f conf$$.dir
16909   mkdir conf$$.dir 2>/dev/null
16910 fi
16911 if (echo >conf$$.file) 2>/dev/null; then
16912   if ln -s conf$$.file conf$$ 2>/dev/null; then
16913     as_ln_s='ln -s'
16914     # ... but there are two gotchas:
16915     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16916     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16917     # In both cases, we have to default to `cp -p'.
16918     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16919       as_ln_s='cp -p'
16920   elif ln conf$$.file conf$$ 2>/dev/null; then
16921     as_ln_s=ln
16922   else
16923     as_ln_s='cp -p'
16924   fi
16925 else
16926   as_ln_s='cp -p'
16927 fi
16928 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16929 rmdir conf$$.dir 2>/dev/null
16930
16931
16932 # as_fn_mkdir_p
16933 # -------------
16934 # Create "$as_dir" as a directory, including parents if necessary.
16935 as_fn_mkdir_p ()
16936 {
16937
16938   case $as_dir in #(
16939   -*) as_dir=./$as_dir;;
16940   esac
16941   test -d "$as_dir" || eval $as_mkdir_p || {
16942     as_dirs=
16943     while :; do
16944       case $as_dir in #(
16945       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16946       *) as_qdir=$as_dir;;
16947       esac
16948       as_dirs="'$as_qdir' $as_dirs"
16949       as_dir=`$as_dirname -- "$as_dir" ||
16950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16951          X"$as_dir" : 'X\(//\)[^/]' \| \
16952          X"$as_dir" : 'X\(//\)$' \| \
16953          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16954 $as_echo X"$as_dir" |
16955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16956             s//\1/
16957             q
16958           }
16959           /^X\(\/\/\)[^/].*/{
16960             s//\1/
16961             q
16962           }
16963           /^X\(\/\/\)$/{
16964             s//\1/
16965             q
16966           }
16967           /^X\(\/\).*/{
16968             s//\1/
16969             q
16970           }
16971           s/.*/./; q'`
16972       test -d "$as_dir" && break
16973     done
16974     test -z "$as_dirs" || eval "mkdir $as_dirs"
16975   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16976
16977
16978 } # as_fn_mkdir_p
16979 if mkdir -p . 2>/dev/null; then
16980   as_mkdir_p='mkdir -p "$as_dir"'
16981 else
16982   test -d ./-p && rmdir ./-p
16983   as_mkdir_p=false
16984 fi
16985
16986 if test -x / >/dev/null 2>&1; then
16987   as_test_x='test -x'
16988 else
16989   if ls -dL / >/dev/null 2>&1; then
16990     as_ls_L_option=L
16991   else
16992     as_ls_L_option=
16993   fi
16994   as_test_x='
16995     eval sh -c '\''
16996       if test -d "$1"; then
16997         test -d "$1/.";
16998       else
16999         case $1 in #(
17000         -*)set "./$1";;
17001         esac;
17002         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17003         ???[sx]*):;;*)false;;esac;fi
17004     '\'' sh
17005   '
17006 fi
17007 as_executable_p=$as_test_x
17008
17009 # Sed expression to map a string onto a valid CPP name.
17010 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17011
17012 # Sed expression to map a string onto a valid variable name.
17013 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17014
17015
17016 exec 6>&1
17017 ## ----------------------------------- ##
17018 ## Main body of $CONFIG_STATUS script. ##
17019 ## ----------------------------------- ##
17020 _ASEOF
17021 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17022
17023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17024 # Save the log message, to keep $0 and so on meaningful, and to
17025 # report actual input values of CONFIG_FILES etc. instead of their
17026 # values after options handling.
17027 ac_log="
17028 This file was extended by glog $as_me 0.3.2, which was
17029 generated by GNU Autoconf 2.65.  Invocation command line was
17030
17031   CONFIG_FILES    = $CONFIG_FILES
17032   CONFIG_HEADERS  = $CONFIG_HEADERS
17033   CONFIG_LINKS    = $CONFIG_LINKS
17034   CONFIG_COMMANDS = $CONFIG_COMMANDS
17035   $ $0 $@
17036
17037 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17038 "
17039
17040 _ACEOF
17041
17042 case $ac_config_files in *"
17043 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17044 esac
17045
17046 case $ac_config_headers in *"
17047 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17048 esac
17049
17050
17051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17052 # Files that config.status was made for.
17053 config_files="$ac_config_files"
17054 config_headers="$ac_config_headers"
17055 config_commands="$ac_config_commands"
17056
17057 _ACEOF
17058
17059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17060 ac_cs_usage="\
17061 \`$as_me' instantiates files and other configuration actions
17062 from templates according to the current configuration.  Unless the files
17063 and actions are specified as TAGs, all are instantiated by default.
17064
17065 Usage: $0 [OPTION]... [TAG]...
17066
17067   -h, --help       print this help, then exit
17068   -V, --version    print version number and configuration settings, then exit
17069       --config     print configuration, then exit
17070   -q, --quiet, --silent
17071                    do not print progress messages
17072   -d, --debug      don't remove temporary files
17073       --recheck    update $as_me by reconfiguring in the same conditions
17074       --file=FILE[:TEMPLATE]
17075                    instantiate the configuration file FILE
17076       --header=FILE[:TEMPLATE]
17077                    instantiate the configuration header FILE
17078
17079 Configuration files:
17080 $config_files
17081
17082 Configuration headers:
17083 $config_headers
17084
17085 Configuration commands:
17086 $config_commands
17087
17088 Report bugs to <opensource@google.com>."
17089
17090 _ACEOF
17091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17093 ac_cs_version="\\
17094 glog config.status 0.3.2
17095 configured by $0, generated by GNU Autoconf 2.65,
17096   with options \\"\$ac_cs_config\\"
17097
17098 Copyright (C) 2009 Free Software Foundation, Inc.
17099 This config.status script is free software; the Free Software Foundation
17100 gives unlimited permission to copy, distribute and modify it."
17101
17102 ac_pwd='$ac_pwd'
17103 srcdir='$srcdir'
17104 INSTALL='$INSTALL'
17105 MKDIR_P='$MKDIR_P'
17106 AWK='$AWK'
17107 test -n "\$AWK" || AWK=awk
17108 _ACEOF
17109
17110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17111 # The default lists apply if the user does not specify any file.
17112 ac_need_defaults=:
17113 while test $# != 0
17114 do
17115   case $1 in
17116   --*=*)
17117     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17118     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17119     ac_shift=:
17120     ;;
17121   *)
17122     ac_option=$1
17123     ac_optarg=$2
17124     ac_shift=shift
17125     ;;
17126   esac
17127
17128   case $ac_option in
17129   # Handling of the options.
17130   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17131     ac_cs_recheck=: ;;
17132   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17133     $as_echo "$ac_cs_version"; exit ;;
17134   --config | --confi | --conf | --con | --co | --c )
17135     $as_echo "$ac_cs_config"; exit ;;
17136   --debug | --debu | --deb | --de | --d | -d )
17137     debug=: ;;
17138   --file | --fil | --fi | --f )
17139     $ac_shift
17140     case $ac_optarg in
17141     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17142     esac
17143     as_fn_append CONFIG_FILES " '$ac_optarg'"
17144     ac_need_defaults=false;;
17145   --header | --heade | --head | --hea )
17146     $ac_shift
17147     case $ac_optarg in
17148     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17149     esac
17150     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17151     ac_need_defaults=false;;
17152   --he | --h)
17153     # Conflict between --help and --header
17154     as_fn_error "ambiguous option: \`$1'
17155 Try \`$0 --help' for more information.";;
17156   --help | --hel | -h )
17157     $as_echo "$ac_cs_usage"; exit ;;
17158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17159   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17160     ac_cs_silent=: ;;
17161
17162   # This is an error.
17163   -*) as_fn_error "unrecognized option: \`$1'
17164 Try \`$0 --help' for more information." ;;
17165
17166   *) as_fn_append ac_config_targets " $1"
17167      ac_need_defaults=false ;;
17168
17169   esac
17170   shift
17171 done
17172
17173 ac_configure_extra_args=
17174
17175 if $ac_cs_silent; then
17176   exec 6>/dev/null
17177   ac_configure_extra_args="$ac_configure_extra_args --silent"
17178 fi
17179
17180 _ACEOF
17181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17182 if \$ac_cs_recheck; then
17183   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17184   shift
17185   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17186   CONFIG_SHELL='$SHELL'
17187   export CONFIG_SHELL
17188   exec "\$@"
17189 fi
17190
17191 _ACEOF
17192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17193 exec 5>>config.log
17194 {
17195   echo
17196   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17197 ## Running $as_me. ##
17198 _ASBOX
17199   $as_echo "$ac_log"
17200 } >&5
17201
17202 _ACEOF
17203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17204 #
17205 # INIT-COMMANDS
17206 #
17207 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17208
17209
17210 # The HP-UX ksh and POSIX shell print the target directory to stdout
17211 # if CDPATH is set.
17212 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17213
17214 sed_quote_subst='$sed_quote_subst'
17215 double_quote_subst='$double_quote_subst'
17216 delay_variable_subst='$delay_variable_subst'
17217 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17218 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17219 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17220 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17221 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17222 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17223 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17224 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17225 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17226 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17227 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17228 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17229 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17230 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17231 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17232 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17233 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17234 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17235 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17236 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17237 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17238 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17239 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17240 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17241 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17242 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17243 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17244 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17245 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17246 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17247 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17248 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17249 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17250 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17251 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17252 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17253 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17254 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17255 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17256 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17257 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17258 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17259 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17260 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17261 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"`'
17262 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"`'
17263 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17264 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17265 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17266 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17267 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17268 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17269 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17270 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17271 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17272 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17273 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17274 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17275 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17276 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17277 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17278 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17279 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17280 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17281 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17282 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17283 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17284 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17285 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17286 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17287 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17288 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17289 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17290 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17291 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17292 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17293 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17294 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17295 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17296 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17297 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17298 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17299 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17300 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17301 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17302 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17303 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17304 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17305 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17306 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17307 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17308 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17309 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17310 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17311 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17312 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17313 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17314 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17315 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17316 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17317 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17318 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17319 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17320 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17321 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17322 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17323 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17324 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17325 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17326 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17327 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17328 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17329 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17330 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17331 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17332 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17333 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17334 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17335 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17336 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17337 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17338 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17339 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17340 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17341 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17342 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17343 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17344 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17345 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17346 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17347 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17348 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17349 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17350 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17351 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17352 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17353 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17354 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17355 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17356 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17357 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17358 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17359 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17360 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17361 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17362 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17363 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17364 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17365 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17366 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17367 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17368 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17369 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17370 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17371 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17372 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17373 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17374 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17375 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17376 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17377 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17378 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17379 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17380 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17381 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17382 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17383 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17384 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17385 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17386 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17387 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17388
17389 LTCC='$LTCC'
17390 LTCFLAGS='$LTCFLAGS'
17391 compiler='$compiler_DEFAULT'
17392
17393 # Quote evaled strings.
17394 for var in SED \
17395 GREP \
17396 EGREP \
17397 FGREP \
17398 LD \
17399 NM \
17400 LN_S \
17401 lt_SP2NL \
17402 lt_NL2SP \
17403 reload_flag \
17404 OBJDUMP \
17405 deplibs_check_method \
17406 file_magic_cmd \
17407 AR \
17408 AR_FLAGS \
17409 STRIP \
17410 RANLIB \
17411 CC \
17412 CFLAGS \
17413 compiler \
17414 lt_cv_sys_global_symbol_pipe \
17415 lt_cv_sys_global_symbol_to_cdecl \
17416 lt_cv_sys_global_symbol_to_c_name_address \
17417 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17418 SHELL \
17419 ECHO \
17420 lt_prog_compiler_no_builtin_flag \
17421 lt_prog_compiler_wl \
17422 lt_prog_compiler_pic \
17423 lt_prog_compiler_static \
17424 lt_cv_prog_compiler_c_o \
17425 need_locks \
17426 DSYMUTIL \
17427 NMEDIT \
17428 LIPO \
17429 OTOOL \
17430 OTOOL64 \
17431 shrext_cmds \
17432 export_dynamic_flag_spec \
17433 whole_archive_flag_spec \
17434 compiler_needs_object \
17435 with_gnu_ld \
17436 allow_undefined_flag \
17437 no_undefined_flag \
17438 hardcode_libdir_flag_spec \
17439 hardcode_libdir_flag_spec_ld \
17440 hardcode_libdir_separator \
17441 fix_srcfile_path \
17442 exclude_expsyms \
17443 include_expsyms \
17444 file_list_spec \
17445 variables_saved_for_relink \
17446 libname_spec \
17447 library_names_spec \
17448 soname_spec \
17449 finish_eval \
17450 old_striplib \
17451 striplib \
17452 compiler_lib_search_dirs \
17453 predep_objects \
17454 postdep_objects \
17455 predeps \
17456 postdeps \
17457 compiler_lib_search_path \
17458 LD_CXX \
17459 compiler_CXX \
17460 lt_prog_compiler_no_builtin_flag_CXX \
17461 lt_prog_compiler_wl_CXX \
17462 lt_prog_compiler_pic_CXX \
17463 lt_prog_compiler_static_CXX \
17464 lt_cv_prog_compiler_c_o_CXX \
17465 export_dynamic_flag_spec_CXX \
17466 whole_archive_flag_spec_CXX \
17467 compiler_needs_object_CXX \
17468 with_gnu_ld_CXX \
17469 allow_undefined_flag_CXX \
17470 no_undefined_flag_CXX \
17471 hardcode_libdir_flag_spec_CXX \
17472 hardcode_libdir_flag_spec_ld_CXX \
17473 hardcode_libdir_separator_CXX \
17474 fix_srcfile_path_CXX \
17475 exclude_expsyms_CXX \
17476 include_expsyms_CXX \
17477 file_list_spec_CXX \
17478 compiler_lib_search_dirs_CXX \
17479 predep_objects_CXX \
17480 postdep_objects_CXX \
17481 predeps_CXX \
17482 postdeps_CXX \
17483 compiler_lib_search_path_CXX; do
17484     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17485     *[\\\\\\\`\\"\\\$]*)
17486       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17487       ;;
17488     *)
17489       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17490       ;;
17491     esac
17492 done
17493
17494 # Double-quote double-evaled strings.
17495 for var in reload_cmds \
17496 old_postinstall_cmds \
17497 old_postuninstall_cmds \
17498 old_archive_cmds \
17499 extract_expsyms_cmds \
17500 old_archive_from_new_cmds \
17501 old_archive_from_expsyms_cmds \
17502 archive_cmds \
17503 archive_expsym_cmds \
17504 module_cmds \
17505 module_expsym_cmds \
17506 export_symbols_cmds \
17507 prelink_cmds \
17508 postinstall_cmds \
17509 postuninstall_cmds \
17510 finish_cmds \
17511 sys_lib_search_path_spec \
17512 sys_lib_dlsearch_path_spec \
17513 old_archive_cmds_CXX \
17514 old_archive_from_new_cmds_CXX \
17515 old_archive_from_expsyms_cmds_CXX \
17516 archive_cmds_CXX \
17517 archive_expsym_cmds_CXX \
17518 module_cmds_CXX \
17519 module_expsym_cmds_CXX \
17520 export_symbols_cmds_CXX \
17521 prelink_cmds_CXX; do
17522     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17523     *[\\\\\\\`\\"\\\$]*)
17524       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17525       ;;
17526     *)
17527       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17528       ;;
17529     esac
17530 done
17531
17532 # Fix-up fallback echo if it was mangled by the above quoting rules.
17533 case \$lt_ECHO in
17534 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17535   ;;
17536 esac
17537
17538 ac_aux_dir='$ac_aux_dir'
17539 xsi_shell='$xsi_shell'
17540 lt_shell_append='$lt_shell_append'
17541
17542 # See if we are running on zsh, and set the options which allow our
17543 # commands through without removal of \ escapes INIT.
17544 if test -n "\${ZSH_VERSION+set}" ; then
17545    setopt NO_GLOB_SUBST
17546 fi
17547
17548
17549     PACKAGE='$PACKAGE'
17550     VERSION='$VERSION'
17551     TIMESTAMP='$TIMESTAMP'
17552     RM='$RM'
17553     ofile='$ofile'
17554
17555
17556
17557
17558
17559
17560 _ACEOF
17561
17562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17563
17564 # Handling of arguments.
17565 for ac_config_target in $ac_config_targets
17566 do
17567   case $ac_config_target in
17568     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17569     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17570     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17571     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17572     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
17573     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
17574     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
17575     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
17576     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
17577
17578   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17579   esac
17580 done
17581
17582
17583 # If the user did not use the arguments to specify the items to instantiate,
17584 # then the envvar interface is used.  Set only those that are not.
17585 # We use the long form for the default assignment because of an extremely
17586 # bizarre bug on SunOS 4.1.3.
17587 if $ac_need_defaults; then
17588   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17589   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17590   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17591 fi
17592
17593 # Have a temporary directory for convenience.  Make it in the build tree
17594 # simply because there is no reason against having it here, and in addition,
17595 # creating and moving files from /tmp can sometimes cause problems.
17596 # Hook for its removal unless debugging.
17597 # Note that there is a small window in which the directory will not be cleaned:
17598 # after its creation but before its name has been assigned to `$tmp'.
17599 $debug ||
17600 {
17601   tmp=
17602   trap 'exit_status=$?
17603   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17604 ' 0
17605   trap 'as_fn_exit 1' 1 2 13 15
17606 }
17607 # Create a (secure) tmp directory for tmp files.
17608
17609 {
17610   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17611   test -n "$tmp" && test -d "$tmp"
17612 }  ||
17613 {
17614   tmp=./conf$$-$RANDOM
17615   (umask 077 && mkdir "$tmp")
17616 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17617
17618 # Set up the scripts for CONFIG_FILES section.
17619 # No need to generate them if there are no CONFIG_FILES.
17620 # This happens for instance with `./config.status config.h'.
17621 if test -n "$CONFIG_FILES"; then
17622
17623
17624 ac_cr=`echo X | tr X '\015'`
17625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17626 # But we know of no other shell where ac_cr would be empty at this
17627 # point, so we can use a bashism as a fallback.
17628 if test "x$ac_cr" = x; then
17629   eval ac_cr=\$\'\\r\'
17630 fi
17631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17633   ac_cs_awk_cr='\r'
17634 else
17635   ac_cs_awk_cr=$ac_cr
17636 fi
17637
17638 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17639 _ACEOF
17640
17641
17642 {
17643   echo "cat >conf$$subs.awk <<_ACEOF" &&
17644   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17645   echo "_ACEOF"
17646 } >conf$$subs.sh ||
17647   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17649 ac_delim='%!_!# '
17650 for ac_last_try in false false false false false :; do
17651   . ./conf$$subs.sh ||
17652     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17653
17654   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17655   if test $ac_delim_n = $ac_delim_num; then
17656     break
17657   elif $ac_last_try; then
17658     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17659   else
17660     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17661   fi
17662 done
17663 rm -f conf$$subs.sh
17664
17665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17666 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17667 _ACEOF
17668 sed -n '
17669 h
17670 s/^/S["/; s/!.*/"]=/
17671 p
17672 g
17673 s/^[^!]*!//
17674 :repl
17675 t repl
17676 s/'"$ac_delim"'$//
17677 t delim
17678 :nl
17679 h
17680 s/\(.\{148\}\)..*/\1/
17681 t more1
17682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17683 p
17684 n
17685 b repl
17686 :more1
17687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17688 p
17689 g
17690 s/.\{148\}//
17691 t nl
17692 :delim
17693 h
17694 s/\(.\{148\}\)..*/\1/
17695 t more2
17696 s/["\\]/\\&/g; s/^/"/; s/$/"/
17697 p
17698 b
17699 :more2
17700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17701 p
17702 g
17703 s/.\{148\}//
17704 t delim
17705 ' <conf$$subs.awk | sed '
17706 /^[^""]/{
17707   N
17708   s/\n//
17709 }
17710 ' >>$CONFIG_STATUS || ac_write_fail=1
17711 rm -f conf$$subs.awk
17712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17713 _ACAWK
17714 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17715   for (key in S) S_is_set[key] = 1
17716   FS = "\a"
17717
17718 }
17719 {
17720   line = $ 0
17721   nfields = split(line, field, "@")
17722   substed = 0
17723   len = length(field[1])
17724   for (i = 2; i < nfields; i++) {
17725     key = field[i]
17726     keylen = length(key)
17727     if (S_is_set[key]) {
17728       value = S[key]
17729       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17730       len += length(value) + length(field[++i])
17731       substed = 1
17732     } else
17733       len += 1 + keylen
17734   }
17735
17736   print line
17737 }
17738
17739 _ACAWK
17740 _ACEOF
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17743   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17744 else
17745   cat
17746 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17747   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17748 _ACEOF
17749
17750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17752 # trailing colons and then remove the whole line if VPATH becomes empty
17753 # (actually we leave an empty line to preserve line numbers).
17754 if test "x$srcdir" = x.; then
17755   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17756 s/:*\$(srcdir):*/:/
17757 s/:*\${srcdir}:*/:/
17758 s/:*@srcdir@:*/:/
17759 s/^\([^=]*=[     ]*\):*/\1/
17760 s/:*$//
17761 s/^[^=]*=[       ]*$//
17762 }'
17763 fi
17764
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766 fi # test -n "$CONFIG_FILES"
17767
17768 # Set up the scripts for CONFIG_HEADERS section.
17769 # No need to generate them if there are no CONFIG_HEADERS.
17770 # This happens for instance with `./config.status Makefile'.
17771 if test -n "$CONFIG_HEADERS"; then
17772 cat >"$tmp/defines.awk" <<\_ACAWK ||
17773 BEGIN {
17774 _ACEOF
17775
17776 # Transform confdefs.h into an awk script `defines.awk', embedded as
17777 # here-document in config.status, that substitutes the proper values into
17778 # config.h.in to produce config.h.
17779
17780 # Create a delimiter string that does not exist in confdefs.h, to ease
17781 # handling of long lines.
17782 ac_delim='%!_!# '
17783 for ac_last_try in false false :; do
17784   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17785   if test -z "$ac_t"; then
17786     break
17787   elif $ac_last_try; then
17788     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17789   else
17790     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17791   fi
17792 done
17793
17794 # For the awk script, D is an array of macro values keyed by name,
17795 # likewise P contains macro parameters if any.  Preserve backslash
17796 # newline sequences.
17797
17798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17799 sed -n '
17800 s/.\{148\}/&'"$ac_delim"'/g
17801 t rset
17802 :rset
17803 s/^[     ]*#[    ]*define[       ][      ]*/ /
17804 t def
17805 d
17806 :def
17807 s/\\$//
17808 t bsnl
17809 s/["\\]/\\&/g
17810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17811 D["\1"]=" \3"/p
17812 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17813 d
17814 :bsnl
17815 s/["\\]/\\&/g
17816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17817 D["\1"]=" \3\\\\\\n"\\/p
17818 t cont
17819 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17820 t cont
17821 d
17822 :cont
17823 n
17824 s/.\{148\}/&'"$ac_delim"'/g
17825 t clear
17826 :clear
17827 s/\\$//
17828 t bsnlc
17829 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17830 d
17831 :bsnlc
17832 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17833 b cont
17834 ' <confdefs.h | sed '
17835 s/'"$ac_delim"'/"\\\
17836 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17837
17838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17839   for (key in D) D_is_set[key] = 1
17840   FS = "\a"
17841 }
17842 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17843   line = \$ 0
17844   split(line, arg, " ")
17845   if (arg[1] == "#") {
17846     defundef = arg[2]
17847     mac1 = arg[3]
17848   } else {
17849     defundef = substr(arg[1], 2)
17850     mac1 = arg[2]
17851   }
17852   split(mac1, mac2, "(") #)
17853   macro = mac2[1]
17854   prefix = substr(line, 1, index(line, defundef) - 1)
17855   if (D_is_set[macro]) {
17856     # Preserve the white space surrounding the "#".
17857     print prefix "define", macro P[macro] D[macro]
17858     next
17859   } else {
17860     # Replace #undef with comments.  This is necessary, for example,
17861     # in the case of _POSIX_SOURCE, which is predefined and required
17862     # on some systems where configure will not decide to define it.
17863     if (defundef == "undef") {
17864       print "/*", prefix defundef, macro, "*/"
17865       next
17866     }
17867   }
17868 }
17869 { print }
17870 _ACAWK
17871 _ACEOF
17872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17873   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17874 fi # test -n "$CONFIG_HEADERS"
17875
17876
17877 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17878 shift
17879 for ac_tag
17880 do
17881   case $ac_tag in
17882   :[FHLC]) ac_mode=$ac_tag; continue;;
17883   esac
17884   case $ac_mode$ac_tag in
17885   :[FHL]*:*);;
17886   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17887   :[FH]-) ac_tag=-:-;;
17888   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17889   esac
17890   ac_save_IFS=$IFS
17891   IFS=:
17892   set x $ac_tag
17893   IFS=$ac_save_IFS
17894   shift
17895   ac_file=$1
17896   shift
17897
17898   case $ac_mode in
17899   :L) ac_source=$1;;
17900   :[FH])
17901     ac_file_inputs=
17902     for ac_f
17903     do
17904       case $ac_f in
17905       -) ac_f="$tmp/stdin";;
17906       *) # Look for the file first in the build tree, then in the source tree
17907          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17908          # because $ac_f cannot contain `:'.
17909          test -f "$ac_f" ||
17910            case $ac_f in
17911            [\\/$]*) false;;
17912            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17913            esac ||
17914            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17915       esac
17916       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17917       as_fn_append ac_file_inputs " '$ac_f'"
17918     done
17919
17920     # Let's still pretend it is `configure' which instantiates (i.e., don't
17921     # use $as_me), people would be surprised to read:
17922     #    /* config.h.  Generated by config.status.  */
17923     configure_input='Generated from '`
17924           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17925         `' by configure.'
17926     if test x"$ac_file" != x-; then
17927       configure_input="$ac_file.  $configure_input"
17928       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17929 $as_echo "$as_me: creating $ac_file" >&6;}
17930     fi
17931     # Neutralize special characters interpreted by sed in replacement strings.
17932     case $configure_input in #(
17933     *\&* | *\|* | *\\* )
17934        ac_sed_conf_input=`$as_echo "$configure_input" |
17935        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17936     *) ac_sed_conf_input=$configure_input;;
17937     esac
17938
17939     case $ac_tag in
17940     *:-:* | *:-) cat >"$tmp/stdin" \
17941       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17942     esac
17943     ;;
17944   esac
17945
17946   ac_dir=`$as_dirname -- "$ac_file" ||
17947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17948          X"$ac_file" : 'X\(//\)[^/]' \| \
17949          X"$ac_file" : 'X\(//\)$' \| \
17950          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17951 $as_echo X"$ac_file" |
17952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17953             s//\1/
17954             q
17955           }
17956           /^X\(\/\/\)[^/].*/{
17957             s//\1/
17958             q
17959           }
17960           /^X\(\/\/\)$/{
17961             s//\1/
17962             q
17963           }
17964           /^X\(\/\).*/{
17965             s//\1/
17966             q
17967           }
17968           s/.*/./; q'`
17969   as_dir="$ac_dir"; as_fn_mkdir_p
17970   ac_builddir=.
17971
17972 case "$ac_dir" in
17973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17974 *)
17975   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17976   # A ".." for each directory in $ac_dir_suffix.
17977   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17978   case $ac_top_builddir_sub in
17979   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17980   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17981   esac ;;
17982 esac
17983 ac_abs_top_builddir=$ac_pwd
17984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17985 # for backward compatibility:
17986 ac_top_builddir=$ac_top_build_prefix
17987
17988 case $srcdir in
17989   .)  # We are building in place.
17990     ac_srcdir=.
17991     ac_top_srcdir=$ac_top_builddir_sub
17992     ac_abs_top_srcdir=$ac_pwd ;;
17993   [\\/]* | ?:[\\/]* )  # Absolute name.
17994     ac_srcdir=$srcdir$ac_dir_suffix;
17995     ac_top_srcdir=$srcdir
17996     ac_abs_top_srcdir=$srcdir ;;
17997   *) # Relative name.
17998     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17999     ac_top_srcdir=$ac_top_build_prefix$srcdir
18000     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18001 esac
18002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18003
18004
18005   case $ac_mode in
18006   :F)
18007   #
18008   # CONFIG_FILE
18009   #
18010
18011   case $INSTALL in
18012   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18013   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18014   esac
18015   ac_MKDIR_P=$MKDIR_P
18016   case $MKDIR_P in
18017   [\\/$]* | ?:[\\/]* ) ;;
18018   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18019   esac
18020 _ACEOF
18021
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 # If the template does not know about datarootdir, expand it.
18024 # FIXME: This hack should be removed a few years after 2.60.
18025 ac_datarootdir_hack=; ac_datarootdir_seen=
18026 ac_sed_dataroot='
18027 /datarootdir/ {
18028   p
18029   q
18030 }
18031 /@datadir@/p
18032 /@docdir@/p
18033 /@infodir@/p
18034 /@localedir@/p
18035 /@mandir@/p'
18036 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18037 *datarootdir*) ac_datarootdir_seen=yes;;
18038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18039   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18040 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18041 _ACEOF
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18043   ac_datarootdir_hack='
18044   s&@datadir@&$datadir&g
18045   s&@docdir@&$docdir&g
18046   s&@infodir@&$infodir&g
18047   s&@localedir@&$localedir&g
18048   s&@mandir@&$mandir&g
18049   s&\\\${datarootdir}&$datarootdir&g' ;;
18050 esac
18051 _ACEOF
18052
18053 # Neutralize VPATH when `$srcdir' = `.'.
18054 # Shell code in configure.ac might set extrasub.
18055 # FIXME: do we really want to maintain this feature?
18056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18057 ac_sed_extra="$ac_vpsub
18058 $extrasub
18059 _ACEOF
18060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18061 :t
18062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18063 s|@configure_input@|$ac_sed_conf_input|;t t
18064 s&@top_builddir@&$ac_top_builddir_sub&;t t
18065 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18066 s&@srcdir@&$ac_srcdir&;t t
18067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18068 s&@top_srcdir@&$ac_top_srcdir&;t t
18069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18070 s&@builddir@&$ac_builddir&;t t
18071 s&@abs_builddir@&$ac_abs_builddir&;t t
18072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18073 s&@INSTALL@&$ac_INSTALL&;t t
18074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18075 $ac_datarootdir_hack
18076 "
18077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18078   || as_fn_error "could not create $ac_file" "$LINENO" 5
18079
18080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18081   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18082   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18083   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18084 which seems to be undefined.  Please make sure it is defined." >&5
18085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18086 which seems to be undefined.  Please make sure it is defined." >&2;}
18087
18088   rm -f "$tmp/stdin"
18089   case $ac_file in
18090   -) cat "$tmp/out" && rm -f "$tmp/out";;
18091   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18092   esac \
18093   || as_fn_error "could not create $ac_file" "$LINENO" 5
18094  ;;
18095   :H)
18096   #
18097   # CONFIG_HEADER
18098   #
18099   if test x"$ac_file" != x-; then
18100     {
18101       $as_echo "/* $configure_input  */" \
18102       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18103     } >"$tmp/config.h" \
18104       || as_fn_error "could not create $ac_file" "$LINENO" 5
18105     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18106       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18107 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18108     else
18109       rm -f "$ac_file"
18110       mv "$tmp/config.h" "$ac_file" \
18111         || as_fn_error "could not create $ac_file" "$LINENO" 5
18112     fi
18113   else
18114     $as_echo "/* $configure_input  */" \
18115       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18116       || as_fn_error "could not create -" "$LINENO" 5
18117   fi
18118 # Compute "$ac_file"'s index in $config_headers.
18119 _am_arg="$ac_file"
18120 _am_stamp_count=1
18121 for _am_header in $config_headers :; do
18122   case $_am_header in
18123     $_am_arg | $_am_arg:* )
18124       break ;;
18125     * )
18126       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18127   esac
18128 done
18129 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18130 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18131          X"$_am_arg" : 'X\(//\)[^/]' \| \
18132          X"$_am_arg" : 'X\(//\)$' \| \
18133          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18134 $as_echo X"$_am_arg" |
18135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18136             s//\1/
18137             q
18138           }
18139           /^X\(\/\/\)[^/].*/{
18140             s//\1/
18141             q
18142           }
18143           /^X\(\/\/\)$/{
18144             s//\1/
18145             q
18146           }
18147           /^X\(\/\).*/{
18148             s//\1/
18149             q
18150           }
18151           s/.*/./; q'`/stamp-h$_am_stamp_count
18152  ;;
18153
18154   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18155 $as_echo "$as_me: executing $ac_file commands" >&6;}
18156  ;;
18157   esac
18158
18159
18160   case $ac_file$ac_mode in
18161     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18162   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18163   # are listed without --file.  Let's play safe and only enable the eval
18164   # if we detect the quoting.
18165   case $CONFIG_FILES in
18166   *\'*) eval set x "$CONFIG_FILES" ;;
18167   *)   set x $CONFIG_FILES ;;
18168   esac
18169   shift
18170   for mf
18171   do
18172     # Strip MF so we end up with the name of the file.
18173     mf=`echo "$mf" | sed -e 's/:.*$//'`
18174     # Check whether this is an Automake generated Makefile or not.
18175     # We used to match only the files named `Makefile.in', but
18176     # some people rename them; so instead we look at the file content.
18177     # Grep'ing the first line is not enough: some people post-process
18178     # each Makefile.in and add a new line on top of each file to say so.
18179     # Grep'ing the whole file is not good either: AIX grep has a line
18180     # limit of 2048, but all sed's we know have understand at least 4000.
18181     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18182       dirpart=`$as_dirname -- "$mf" ||
18183 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18184          X"$mf" : 'X\(//\)[^/]' \| \
18185          X"$mf" : 'X\(//\)$' \| \
18186          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18187 $as_echo X"$mf" |
18188     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18189             s//\1/
18190             q
18191           }
18192           /^X\(\/\/\)[^/].*/{
18193             s//\1/
18194             q
18195           }
18196           /^X\(\/\/\)$/{
18197             s//\1/
18198             q
18199           }
18200           /^X\(\/\).*/{
18201             s//\1/
18202             q
18203           }
18204           s/.*/./; q'`
18205     else
18206       continue
18207     fi
18208     # Extract the definition of DEPDIR, am__include, and am__quote
18209     # from the Makefile without running `make'.
18210     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18211     test -z "$DEPDIR" && continue
18212     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18213     test -z "am__include" && continue
18214     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18215     # When using ansi2knr, U may be empty or an underscore; expand it
18216     U=`sed -n 's/^U = //p' < "$mf"`
18217     # Find all dependency output files, they are included files with
18218     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18219     # simplest approach to changing $(DEPDIR) to its actual value in the
18220     # expansion.
18221     for file in `sed -n "
18222       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18223          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18224       # Make sure the directory exists.
18225       test -f "$dirpart/$file" && continue
18226       fdir=`$as_dirname -- "$file" ||
18227 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18228          X"$file" : 'X\(//\)[^/]' \| \
18229          X"$file" : 'X\(//\)$' \| \
18230          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18231 $as_echo X"$file" |
18232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18233             s//\1/
18234             q
18235           }
18236           /^X\(\/\/\)[^/].*/{
18237             s//\1/
18238             q
18239           }
18240           /^X\(\/\/\)$/{
18241             s//\1/
18242             q
18243           }
18244           /^X\(\/\).*/{
18245             s//\1/
18246             q
18247           }
18248           s/.*/./; q'`
18249       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18250       # echo "creating $dirpart/$file"
18251       echo '# dummy' > "$dirpart/$file"
18252     done
18253   done
18254 }
18255  ;;
18256     "libtool":C)
18257
18258     # See if we are running on zsh, and set the options which allow our
18259     # commands through without removal of \ escapes.
18260     if test -n "${ZSH_VERSION+set}" ; then
18261       setopt NO_GLOB_SUBST
18262     fi
18263
18264     cfgfile="${ofile}T"
18265     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18266     $RM "$cfgfile"
18267
18268     cat <<_LT_EOF >> "$cfgfile"
18269 #! $SHELL
18270
18271 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18272 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18274 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18275 #
18276 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18277 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18278 #   Written by Gordon Matzigkeit, 1996
18279 #
18280 #   This file is part of GNU Libtool.
18281 #
18282 # GNU Libtool is free software; you can redistribute it and/or
18283 # modify it under the terms of the GNU General Public License as
18284 # published by the Free Software Foundation; either version 2 of
18285 # the License, or (at your option) any later version.
18286 #
18287 # As a special exception to the GNU General Public License,
18288 # if you distribute this file as part of a program or library that
18289 # is built using GNU Libtool, you may include this file under the
18290 # same distribution terms that you use for the rest of that program.
18291 #
18292 # GNU Libtool is distributed in the hope that it will be useful,
18293 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18295 # GNU General Public License for more details.
18296 #
18297 # You should have received a copy of the GNU General Public License
18298 # along with GNU Libtool; see the file COPYING.  If not, a copy
18299 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18300 # obtained by writing to the Free Software Foundation, Inc.,
18301 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18302
18303
18304 # The names of the tagged configurations supported by this script.
18305 available_tags="CXX "
18306
18307 # ### BEGIN LIBTOOL CONFIG
18308
18309 # Which release of libtool.m4 was used?
18310 macro_version=$macro_version
18311 macro_revision=$macro_revision
18312
18313 # Whether or not to build shared libraries.
18314 build_libtool_libs=$enable_shared
18315
18316 # Whether or not to build static libraries.
18317 build_old_libs=$enable_static
18318
18319 # What type of objects to build.
18320 pic_mode=$pic_mode
18321
18322 # Whether or not to optimize for fast installation.
18323 fast_install=$enable_fast_install
18324
18325 # The host system.
18326 host_alias=$host_alias
18327 host=$host
18328 host_os=$host_os
18329
18330 # The build system.
18331 build_alias=$build_alias
18332 build=$build
18333 build_os=$build_os
18334
18335 # A sed program that does not truncate output.
18336 SED=$lt_SED
18337
18338 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18339 Xsed="\$SED -e 1s/^X//"
18340
18341 # A grep program that handles long lines.
18342 GREP=$lt_GREP
18343
18344 # An ERE matcher.
18345 EGREP=$lt_EGREP
18346
18347 # A literal string matcher.
18348 FGREP=$lt_FGREP
18349
18350 # A BSD- or MS-compatible name lister.
18351 NM=$lt_NM
18352
18353 # Whether we need soft or hard links.
18354 LN_S=$lt_LN_S
18355
18356 # What is the maximum length of a command?
18357 max_cmd_len=$max_cmd_len
18358
18359 # Object file suffix (normally "o").
18360 objext=$ac_objext
18361
18362 # Executable file suffix (normally "").
18363 exeext=$exeext
18364
18365 # whether the shell understands "unset".
18366 lt_unset=$lt_unset
18367
18368 # turn spaces into newlines.
18369 SP2NL=$lt_lt_SP2NL
18370
18371 # turn newlines into spaces.
18372 NL2SP=$lt_lt_NL2SP
18373
18374 # How to create reloadable object files.
18375 reload_flag=$lt_reload_flag
18376 reload_cmds=$lt_reload_cmds
18377
18378 # An object symbol dumper.
18379 OBJDUMP=$lt_OBJDUMP
18380
18381 # Method to check whether dependent libraries are shared objects.
18382 deplibs_check_method=$lt_deplibs_check_method
18383
18384 # Command to use when deplibs_check_method == "file_magic".
18385 file_magic_cmd=$lt_file_magic_cmd
18386
18387 # The archiver.
18388 AR=$lt_AR
18389 AR_FLAGS=$lt_AR_FLAGS
18390
18391 # A symbol stripping program.
18392 STRIP=$lt_STRIP
18393
18394 # Commands used to install an old-style archive.
18395 RANLIB=$lt_RANLIB
18396 old_postinstall_cmds=$lt_old_postinstall_cmds
18397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18398
18399 # A C compiler.
18400 LTCC=$lt_CC
18401
18402 # LTCC compiler flags.
18403 LTCFLAGS=$lt_CFLAGS
18404
18405 # Take the output of nm and produce a listing of raw symbols and C names.
18406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18407
18408 # Transform the output of nm in a proper C declaration.
18409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18410
18411 # Transform the output of nm in a C name address pair.
18412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18413
18414 # Transform the output of nm in a C name address pair when lib prefix is needed.
18415 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18416
18417 # The name of the directory that contains temporary libtool files.
18418 objdir=$objdir
18419
18420 # Shell to use when invoking shell scripts.
18421 SHELL=$lt_SHELL
18422
18423 # An echo program that does not interpret backslashes.
18424 ECHO=$lt_ECHO
18425
18426 # Used to examine libraries when file_magic_cmd begins with "file".
18427 MAGIC_CMD=$MAGIC_CMD
18428
18429 # Must we lock files when doing compilation?
18430 need_locks=$lt_need_locks
18431
18432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18433 DSYMUTIL=$lt_DSYMUTIL
18434
18435 # Tool to change global to local symbols on Mac OS X.
18436 NMEDIT=$lt_NMEDIT
18437
18438 # Tool to manipulate fat objects and archives on Mac OS X.
18439 LIPO=$lt_LIPO
18440
18441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18442 OTOOL=$lt_OTOOL
18443
18444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18445 OTOOL64=$lt_OTOOL64
18446
18447 # Old archive suffix (normally "a").
18448 libext=$libext
18449
18450 # Shared library suffix (normally ".so").
18451 shrext_cmds=$lt_shrext_cmds
18452
18453 # The commands to extract the exported symbol list from a shared archive.
18454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18455
18456 # Variables whose values should be saved in libtool wrapper scripts and
18457 # restored at link time.
18458 variables_saved_for_relink=$lt_variables_saved_for_relink
18459
18460 # Do we need the "lib" prefix for modules?
18461 need_lib_prefix=$need_lib_prefix
18462
18463 # Do we need a version for libraries?
18464 need_version=$need_version
18465
18466 # Library versioning type.
18467 version_type=$version_type
18468
18469 # Shared library runtime path variable.
18470 runpath_var=$runpath_var
18471
18472 # Shared library path variable.
18473 shlibpath_var=$shlibpath_var
18474
18475 # Is shlibpath searched before the hard-coded library search path?
18476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18477
18478 # Format of library name prefix.
18479 libname_spec=$lt_libname_spec
18480
18481 # List of archive names.  First name is the real one, the rest are links.
18482 # The last name is the one that the linker finds with -lNAME
18483 library_names_spec=$lt_library_names_spec
18484
18485 # The coded name of the library, if different from the real name.
18486 soname_spec=$lt_soname_spec
18487
18488 # Command to use after installation of a shared archive.
18489 postinstall_cmds=$lt_postinstall_cmds
18490
18491 # Command to use after uninstallation of a shared archive.
18492 postuninstall_cmds=$lt_postuninstall_cmds
18493
18494 # Commands used to finish a libtool library installation in a directory.
18495 finish_cmds=$lt_finish_cmds
18496
18497 # As "finish_cmds", except a single script fragment to be evaled but
18498 # not shown.
18499 finish_eval=$lt_finish_eval
18500
18501 # Whether we should hardcode library paths into libraries.
18502 hardcode_into_libs=$hardcode_into_libs
18503
18504 # Compile-time system search path for libraries.
18505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18506
18507 # Run-time system search path for libraries.
18508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18509
18510 # Whether dlopen is supported.
18511 dlopen_support=$enable_dlopen
18512
18513 # Whether dlopen of programs is supported.
18514 dlopen_self=$enable_dlopen_self
18515
18516 # Whether dlopen of statically linked programs is supported.
18517 dlopen_self_static=$enable_dlopen_self_static
18518
18519 # Commands to strip libraries.
18520 old_striplib=$lt_old_striplib
18521 striplib=$lt_striplib
18522
18523
18524 # The linker used to build libraries.
18525 LD=$lt_LD
18526
18527 # Commands used to build an old-style archive.
18528 old_archive_cmds=$lt_old_archive_cmds
18529
18530 # A language specific compiler.
18531 CC=$lt_compiler
18532
18533 # Is the compiler the GNU compiler?
18534 with_gcc=$GCC
18535
18536 # Compiler flag to turn off builtin functions.
18537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18538
18539 # How to pass a linker flag through the compiler.
18540 wl=$lt_lt_prog_compiler_wl
18541
18542 # Additional compiler flags for building library objects.
18543 pic_flag=$lt_lt_prog_compiler_pic
18544
18545 # Compiler flag to prevent dynamic linking.
18546 link_static_flag=$lt_lt_prog_compiler_static
18547
18548 # Does compiler simultaneously support -c and -o options?
18549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18550
18551 # Whether or not to add -lc for building shared libraries.
18552 build_libtool_need_lc=$archive_cmds_need_lc
18553
18554 # Whether or not to disallow shared libs when runtime libs are static.
18555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18556
18557 # Compiler flag to allow reflexive dlopens.
18558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18559
18560 # Compiler flag to generate shared objects directly from archives.
18561 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18562
18563 # Whether the compiler copes with passing no objects directly.
18564 compiler_needs_object=$lt_compiler_needs_object
18565
18566 # Create an old-style archive from a shared archive.
18567 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18568
18569 # Create a temporary old-style archive to link instead of a shared archive.
18570 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18571
18572 # Commands used to build a shared archive.
18573 archive_cmds=$lt_archive_cmds
18574 archive_expsym_cmds=$lt_archive_expsym_cmds
18575
18576 # Commands used to build a loadable module if different from building
18577 # a shared archive.
18578 module_cmds=$lt_module_cmds
18579 module_expsym_cmds=$lt_module_expsym_cmds
18580
18581 # Whether we are building with GNU ld or not.
18582 with_gnu_ld=$lt_with_gnu_ld
18583
18584 # Flag that allows shared libraries with undefined symbols to be built.
18585 allow_undefined_flag=$lt_allow_undefined_flag
18586
18587 # Flag that enforces no undefined symbols.
18588 no_undefined_flag=$lt_no_undefined_flag
18589
18590 # Flag to hardcode \$libdir into a binary during linking.
18591 # This must work even if \$libdir does not exist
18592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18593
18594 # If ld is used when linking, flag to hardcode \$libdir into a binary
18595 # during linking.  This must work even if \$libdir does not exist.
18596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18597
18598 # Whether we need a single "-rpath" flag with a separated argument.
18599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18600
18601 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18602 # DIR into the resulting binary.
18603 hardcode_direct=$hardcode_direct
18604
18605 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18606 # DIR into the resulting binary and the resulting library dependency is
18607 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18608 # library is relocated.
18609 hardcode_direct_absolute=$hardcode_direct_absolute
18610
18611 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18612 # into the resulting binary.
18613 hardcode_minus_L=$hardcode_minus_L
18614
18615 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18616 # into the resulting binary.
18617 hardcode_shlibpath_var=$hardcode_shlibpath_var
18618
18619 # Set to "yes" if building a shared library automatically hardcodes DIR
18620 # into the library and all subsequent libraries and executables linked
18621 # against it.
18622 hardcode_automatic=$hardcode_automatic
18623
18624 # Set to yes if linker adds runtime paths of dependent libraries
18625 # to runtime path list.
18626 inherit_rpath=$inherit_rpath
18627
18628 # Whether libtool must link a program against all its dependency libraries.
18629 link_all_deplibs=$link_all_deplibs
18630
18631 # Fix the shell variable \$srcfile for the compiler.
18632 fix_srcfile_path=$lt_fix_srcfile_path
18633
18634 # Set to "yes" if exported symbols are required.
18635 always_export_symbols=$always_export_symbols
18636
18637 # The commands to list exported symbols.
18638 export_symbols_cmds=$lt_export_symbols_cmds
18639
18640 # Symbols that should not be listed in the preloaded symbols.
18641 exclude_expsyms=$lt_exclude_expsyms
18642
18643 # Symbols that must always be exported.
18644 include_expsyms=$lt_include_expsyms
18645
18646 # Commands necessary for linking programs (against libraries) with templates.
18647 prelink_cmds=$lt_prelink_cmds
18648
18649 # Specify filename containing input files.
18650 file_list_spec=$lt_file_list_spec
18651
18652 # How to hardcode a shared library path into an executable.
18653 hardcode_action=$hardcode_action
18654
18655 # The directories searched by this compiler when creating a shared library.
18656 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18657
18658 # Dependencies to place before and after the objects being linked to
18659 # create a shared library.
18660 predep_objects=$lt_predep_objects
18661 postdep_objects=$lt_postdep_objects
18662 predeps=$lt_predeps
18663 postdeps=$lt_postdeps
18664
18665 # The library search path used internally by the compiler when linking
18666 # a shared library.
18667 compiler_lib_search_path=$lt_compiler_lib_search_path
18668
18669 # ### END LIBTOOL CONFIG
18670
18671 _LT_EOF
18672
18673   case $host_os in
18674   aix3*)
18675     cat <<\_LT_EOF >> "$cfgfile"
18676 # AIX sometimes has problems with the GCC collect2 program.  For some
18677 # reason, if we set the COLLECT_NAMES environment variable, the problems
18678 # vanish in a puff of smoke.
18679 if test "X${COLLECT_NAMES+set}" != Xset; then
18680   COLLECT_NAMES=
18681   export COLLECT_NAMES
18682 fi
18683 _LT_EOF
18684     ;;
18685   esac
18686
18687
18688 ltmain="$ac_aux_dir/ltmain.sh"
18689
18690
18691   # We use sed instead of cat because bash on DJGPP gets confused if
18692   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18693   # text mode, it properly converts lines to CR/LF.  This bash problem
18694   # is reportedly fixed, but why not run on old versions too?
18695   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18696     || (rm -f "$cfgfile"; exit 1)
18697
18698   case $xsi_shell in
18699   yes)
18700     cat << \_LT_EOF >> "$cfgfile"
18701
18702 # func_dirname file append nondir_replacement
18703 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18704 # otherwise set result to NONDIR_REPLACEMENT.
18705 func_dirname ()
18706 {
18707   case ${1} in
18708     */*) func_dirname_result="${1%/*}${2}" ;;
18709     *  ) func_dirname_result="${3}" ;;
18710   esac
18711 }
18712
18713 # func_basename file
18714 func_basename ()
18715 {
18716   func_basename_result="${1##*/}"
18717 }
18718
18719 # func_dirname_and_basename file append nondir_replacement
18720 # perform func_basename and func_dirname in a single function
18721 # call:
18722 #   dirname:  Compute the dirname of FILE.  If nonempty,
18723 #             add APPEND to the result, otherwise set result
18724 #             to NONDIR_REPLACEMENT.
18725 #             value returned in "$func_dirname_result"
18726 #   basename: Compute filename of FILE.
18727 #             value retuned in "$func_basename_result"
18728 # Implementation must be kept synchronized with func_dirname
18729 # and func_basename. For efficiency, we do not delegate to
18730 # those functions but instead duplicate the functionality here.
18731 func_dirname_and_basename ()
18732 {
18733   case ${1} in
18734     */*) func_dirname_result="${1%/*}${2}" ;;
18735     *  ) func_dirname_result="${3}" ;;
18736   esac
18737   func_basename_result="${1##*/}"
18738 }
18739
18740 # func_stripname prefix suffix name
18741 # strip PREFIX and SUFFIX off of NAME.
18742 # PREFIX and SUFFIX must not contain globbing or regex special
18743 # characters, hashes, percent signs, but SUFFIX may contain a leading
18744 # dot (in which case that matches only a dot).
18745 func_stripname ()
18746 {
18747   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18748   # positional parameters, so assign one to ordinary parameter first.
18749   func_stripname_result=${3}
18750   func_stripname_result=${func_stripname_result#"${1}"}
18751   func_stripname_result=${func_stripname_result%"${2}"}
18752 }
18753
18754 # func_opt_split
18755 func_opt_split ()
18756 {
18757   func_opt_split_opt=${1%%=*}
18758   func_opt_split_arg=${1#*=}
18759 }
18760
18761 # func_lo2o object
18762 func_lo2o ()
18763 {
18764   case ${1} in
18765     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18766     *)    func_lo2o_result=${1} ;;
18767   esac
18768 }
18769
18770 # func_xform libobj-or-source
18771 func_xform ()
18772 {
18773   func_xform_result=${1%.*}.lo
18774 }
18775
18776 # func_arith arithmetic-term...
18777 func_arith ()
18778 {
18779   func_arith_result=$(( $* ))
18780 }
18781
18782 # func_len string
18783 # STRING may not start with a hyphen.
18784 func_len ()
18785 {
18786   func_len_result=${#1}
18787 }
18788
18789 _LT_EOF
18790     ;;
18791   *) # Bourne compatible functions.
18792     cat << \_LT_EOF >> "$cfgfile"
18793
18794 # func_dirname file append nondir_replacement
18795 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18796 # otherwise set result to NONDIR_REPLACEMENT.
18797 func_dirname ()
18798 {
18799   # Extract subdirectory from the argument.
18800   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18801   if test "X$func_dirname_result" = "X${1}"; then
18802     func_dirname_result="${3}"
18803   else
18804     func_dirname_result="$func_dirname_result${2}"
18805   fi
18806 }
18807
18808 # func_basename file
18809 func_basename ()
18810 {
18811   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18812 }
18813
18814
18815 # func_stripname prefix suffix name
18816 # strip PREFIX and SUFFIX off of NAME.
18817 # PREFIX and SUFFIX must not contain globbing or regex special
18818 # characters, hashes, percent signs, but SUFFIX may contain a leading
18819 # dot (in which case that matches only a dot).
18820 # func_strip_suffix prefix name
18821 func_stripname ()
18822 {
18823   case ${2} in
18824     .*) func_stripname_result=`$ECHO "X${3}" \
18825            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18826     *)  func_stripname_result=`$ECHO "X${3}" \
18827            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18828   esac
18829 }
18830
18831 # sed scripts:
18832 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18833 my_sed_long_arg='1s/^-[^=]*=//'
18834
18835 # func_opt_split
18836 func_opt_split ()
18837 {
18838   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18839   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18840 }
18841
18842 # func_lo2o object
18843 func_lo2o ()
18844 {
18845   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18846 }
18847
18848 # func_xform libobj-or-source
18849 func_xform ()
18850 {
18851   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18852 }
18853
18854 # func_arith arithmetic-term...
18855 func_arith ()
18856 {
18857   func_arith_result=`expr "$@"`
18858 }
18859
18860 # func_len string
18861 # STRING may not start with a hyphen.
18862 func_len ()
18863 {
18864   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18865 }
18866
18867 _LT_EOF
18868 esac
18869
18870 case $lt_shell_append in
18871   yes)
18872     cat << \_LT_EOF >> "$cfgfile"
18873
18874 # func_append var value
18875 # Append VALUE to the end of shell variable VAR.
18876 func_append ()
18877 {
18878   eval "$1+=\$2"
18879 }
18880 _LT_EOF
18881     ;;
18882   *)
18883     cat << \_LT_EOF >> "$cfgfile"
18884
18885 # func_append var value
18886 # Append VALUE to the end of shell variable VAR.
18887 func_append ()
18888 {
18889   eval "$1=\$$1\$2"
18890 }
18891
18892 _LT_EOF
18893     ;;
18894   esac
18895
18896
18897   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18898     || (rm -f "$cfgfile"; exit 1)
18899
18900   mv -f "$cfgfile" "$ofile" ||
18901     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18902   chmod +x "$ofile"
18903
18904
18905     cat <<_LT_EOF >> "$ofile"
18906
18907 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18908
18909 # The linker used to build libraries.
18910 LD=$lt_LD_CXX
18911
18912 # Commands used to build an old-style archive.
18913 old_archive_cmds=$lt_old_archive_cmds_CXX
18914
18915 # A language specific compiler.
18916 CC=$lt_compiler_CXX
18917
18918 # Is the compiler the GNU compiler?
18919 with_gcc=$GCC_CXX
18920
18921 # Compiler flag to turn off builtin functions.
18922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18923
18924 # How to pass a linker flag through the compiler.
18925 wl=$lt_lt_prog_compiler_wl_CXX
18926
18927 # Additional compiler flags for building library objects.
18928 pic_flag=$lt_lt_prog_compiler_pic_CXX
18929
18930 # Compiler flag to prevent dynamic linking.
18931 link_static_flag=$lt_lt_prog_compiler_static_CXX
18932
18933 # Does compiler simultaneously support -c and -o options?
18934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18935
18936 # Whether or not to add -lc for building shared libraries.
18937 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18938
18939 # Whether or not to disallow shared libs when runtime libs are static.
18940 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18941
18942 # Compiler flag to allow reflexive dlopens.
18943 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18944
18945 # Compiler flag to generate shared objects directly from archives.
18946 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18947
18948 # Whether the compiler copes with passing no objects directly.
18949 compiler_needs_object=$lt_compiler_needs_object_CXX
18950
18951 # Create an old-style archive from a shared archive.
18952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18953
18954 # Create a temporary old-style archive to link instead of a shared archive.
18955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18956
18957 # Commands used to build a shared archive.
18958 archive_cmds=$lt_archive_cmds_CXX
18959 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18960
18961 # Commands used to build a loadable module if different from building
18962 # a shared archive.
18963 module_cmds=$lt_module_cmds_CXX
18964 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18965
18966 # Whether we are building with GNU ld or not.
18967 with_gnu_ld=$lt_with_gnu_ld_CXX
18968
18969 # Flag that allows shared libraries with undefined symbols to be built.
18970 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18971
18972 # Flag that enforces no undefined symbols.
18973 no_undefined_flag=$lt_no_undefined_flag_CXX
18974
18975 # Flag to hardcode \$libdir into a binary during linking.
18976 # This must work even if \$libdir does not exist
18977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18978
18979 # If ld is used when linking, flag to hardcode \$libdir into a binary
18980 # during linking.  This must work even if \$libdir does not exist.
18981 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18982
18983 # Whether we need a single "-rpath" flag with a separated argument.
18984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18985
18986 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18987 # DIR into the resulting binary.
18988 hardcode_direct=$hardcode_direct_CXX
18989
18990 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18991 # DIR into the resulting binary and the resulting library dependency is
18992 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18993 # library is relocated.
18994 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18995
18996 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18997 # into the resulting binary.
18998 hardcode_minus_L=$hardcode_minus_L_CXX
18999
19000 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19001 # into the resulting binary.
19002 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19003
19004 # Set to "yes" if building a shared library automatically hardcodes DIR
19005 # into the library and all subsequent libraries and executables linked
19006 # against it.
19007 hardcode_automatic=$hardcode_automatic_CXX
19008
19009 # Set to yes if linker adds runtime paths of dependent libraries
19010 # to runtime path list.
19011 inherit_rpath=$inherit_rpath_CXX
19012
19013 # Whether libtool must link a program against all its dependency libraries.
19014 link_all_deplibs=$link_all_deplibs_CXX
19015
19016 # Fix the shell variable \$srcfile for the compiler.
19017 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19018
19019 # Set to "yes" if exported symbols are required.
19020 always_export_symbols=$always_export_symbols_CXX
19021
19022 # The commands to list exported symbols.
19023 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19024
19025 # Symbols that should not be listed in the preloaded symbols.
19026 exclude_expsyms=$lt_exclude_expsyms_CXX
19027
19028 # Symbols that must always be exported.
19029 include_expsyms=$lt_include_expsyms_CXX
19030
19031 # Commands necessary for linking programs (against libraries) with templates.
19032 prelink_cmds=$lt_prelink_cmds_CXX
19033
19034 # Specify filename containing input files.
19035 file_list_spec=$lt_file_list_spec_CXX
19036
19037 # How to hardcode a shared library path into an executable.
19038 hardcode_action=$hardcode_action_CXX
19039
19040 # The directories searched by this compiler when creating a shared library.
19041 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19042
19043 # Dependencies to place before and after the objects being linked to
19044 # create a shared library.
19045 predep_objects=$lt_predep_objects_CXX
19046 postdep_objects=$lt_postdep_objects_CXX
19047 predeps=$lt_predeps_CXX
19048 postdeps=$lt_postdeps_CXX
19049
19050 # The library search path used internally by the compiler when linking
19051 # a shared library.
19052 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19053
19054 # ### END LIBTOOL TAG CONFIG: CXX
19055 _LT_EOF
19056
19057  ;;
19058
19059   esac
19060 done # for ac_tag
19061
19062
19063 as_fn_exit 0
19064 _ACEOF
19065 ac_clean_files=$ac_clean_files_save
19066
19067 test $ac_write_fail = 0 ||
19068   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19069
19070
19071 # configure is writing to config.log, and then calls config.status.
19072 # config.status does its own redirection, appending to config.log.
19073 # Unfortunately, on DOS this fails, as config.log is still kept open
19074 # by configure, so config.status won't be able to write to it; its
19075 # output is simply discarded.  So we exec the FD to /dev/null,
19076 # effectively closing config.log, so it can be properly (re)opened and
19077 # appended to by config.status.  When coming back to configure, we
19078 # need to make the FD available again.
19079 if test "$no_create" != yes; then
19080   ac_cs_success=:
19081   ac_config_status_args=
19082   test "$silent" = yes &&
19083     ac_config_status_args="$ac_config_status_args --quiet"
19084   exec 5>/dev/null
19085   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19086   exec 5>>config.log
19087   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19088   # would make configure fail if this is the last instruction.
19089   $ac_cs_success || as_fn_exit $?
19090 fi
19091 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19093 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19094 fi
19095